From b3562ec0cc30c1390502b1bebf4fa95363e95530 Mon Sep 17 00:00:00 2001 From: Wiley Conte Date: Sun, 22 Dec 2024 15:48:45 -0500 Subject: [PATCH] Updates for public gql schema --- codegen.public.yml | 10 + generated/schema/manifest.json | 2 +- generated/schema/mutations.json | 1480 +---- generated/schema/queries.json | 196 - generated/schema/types.json | 9699 ++++++++++------------------- graphql/schema-public.graphql | 1626 +++++ package.json | 2 +- scripts/process-graphql-schema.ts | 6 +- 8 files changed, 4951 insertions(+), 8070 deletions(-) create mode 100644 codegen.public.yml create mode 100644 graphql/schema-public.graphql diff --git a/codegen.public.yml b/codegen.public.yml new file mode 100644 index 00000000..7e175724 --- /dev/null +++ b/codegen.public.yml @@ -0,0 +1,10 @@ +schema: + - ${GRAPHQL_SCHEMA_PATH}: + headers: + authorization: "Bearer ${POPULIST_API_KEY_PUBLIC}" +generates: + ./graphql/schema-public.graphql: + plugins: + - schema-ast + config: + includeDirectives: true diff --git a/generated/schema/manifest.json b/generated/schema/manifest.json index 736df2b8..4ef232c5 100644 --- a/generated/schema/manifest.json +++ b/generated/schema/manifest.json @@ -1,6 +1,6 @@ { "version": "1.0", - "generated": "2024-12-20T18:43:36.087Z", + "generated": "2024-12-22T20:48:21.166Z", "categories": [ "types", "queries", diff --git a/generated/schema/mutations.json b/generated/schema/mutations.json index e6ca616e..92b6c544 100644 --- a/generated/schema/mutations.json +++ b/generated/schema/mutations.json @@ -21,50 +21,6 @@ } } }, - { - "name": "beginUserRegistration", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "BeginUserRegistrationInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "LoginResult" - } - } - }, - { - "name": "confirmUserEmail", - "args": [ - { - "name": "confirmationToken", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, { "name": "copyQuestionSubmission", "args": [ @@ -92,1137 +48,21 @@ "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "QuestionSubmissionResult" - } - } - }, - { - "name": "createConversation", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateConversationInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "ConversationResult" - } - } - }, - { - "name": "createUser", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateUserInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "CreateUserResult" - } - } - }, - { - "name": "deleteAccount", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "deleteAccountByEmail", - "args": [ - { - "name": "email", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "deleteArgument", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteArgumentResult" - } - } - }, - { - "name": "deleteBallotMeasure", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteBallotMeasureResult" - } - } - }, - { - "name": "deleteBill", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteBillResult" - } - } - }, - { - "name": "deleteCandidateGuide", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "deleteElection", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteElectionResult" - } - } - }, - { - "name": "deleteEmbed", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteEmbedResult" - } - } - }, - { - "name": "deleteInvite", - "args": [ - { - "name": "token", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "deleteIssueTag", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteIssueTagResult" - } - } - }, - { - "name": "deleteOffice", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteOfficeResult" - } - } - }, - { - "name": "deleteOrganization", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteOrganizationResult" - } - } - }, - { - "name": "deleteOrganizationUser", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "userId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "deletePolitician", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeletePoliticianResult" - } - } - }, - { - "name": "deletePoll", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeletePollResult" - } - } - }, - { - "name": "deleteProfilePicture", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "deleteQuestion", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteQuestionResult" - } - } - }, - { - "name": "deleteRace", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteRaceResult" - } - } - }, - { - "name": "deleteVotingGuide", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "DeleteVotingGuideResult" - } - } - }, - { - "name": "deleteVotingGuideCandidateNote", - "args": [ - { - "name": "candidateId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "votingGuideId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "VotingGuideCandidateResult" - } - } - }, - { - "name": "downloadAllCandidateGuideData", - "description": "Download all candidate guide data as a CSV string, must be converted to CSV file by client", - "args": [ - { - "name": "candidateGuideId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "raceId", - "type": { - "kind": "SCALAR", - "name": "ID" - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "downvoteArgument", - "args": [ - { - "name": "argumentId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "populistUserId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "generateIntakeTokenLink", - "args": [ - { - "name": "candidateGuideId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "politicianId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "raceId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "insertPolitician", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "InsertPoliticianInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PoliticianResult" - } - } - }, - { - "name": "inviteUser", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "InviteUserInput" - } - } - } - ], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "login", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "LoginInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "LoginResult" - } - } - }, - { - "name": "logout", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "moderateStatement", - "args": [ - { - "name": "moderationStatus", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "StatementModerationStatus" - } - } - }, - { - "name": "statementId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "Statement" - } - } - }, - { - "name": "openAllCandidateGuideSubmissions", - "args": [ - { - "name": "candidateGuideId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "pingEmbedOrigin", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "PingEmbedOriginInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "EmbedOriginResult" - } - } - }, - { - "name": "removeCandidateGuideRace", - "args": [ - { - "name": "candidateGuideId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "raceId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "removePoliticianOffice", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "requestPasswordReset", - "args": [ - { - "name": "email", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "resetPassword", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ResetPasswordInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "setAllCandidateGuideRacesEmailed", - "args": [ - { - "name": "candidateGuideId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "wereCandidatesEmailed", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "updateAddress", - "args": [ - { - "name": "address", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "AddressResult" - } - } - }, - { - "name": "updateArgument", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdateArgumentInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "ArgumentResult" - } - } - }, - { - "name": "updateCandidateGuideRace", - "args": [ - { - "name": "candidateGuideId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdateCandidateGuideRaceInput" - } - } - }, - { - "name": "raceId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "UpdateCandidateGuideRaceResult" - } - } - }, - { - "name": "updateConversation", - "args": [ - { - "name": "conversationId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "topic", - "type": { - "kind": "SCALAR", - "name": "String" - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "ConversationResult" - } - } - }, - { - "name": "updateEmail", - "args": [ - { - "name": "email", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "UpdateEmailResult" - } - } - }, - { - "name": "updateFirstAndLastName", - "args": [ - { - "name": "firstName", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "lastName", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "UpdateNameResult" - } - } - }, - { - "name": "updateOrganization", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdateOrganizationInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OrganizationResult" - } - } - }, - { - "name": "updatePassword", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdatePasswordInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "updatePolitician", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpdatePoliticianInput" - } - } - }, - { - "name": "intakeToken", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, + "kind": "OBJECT", + "name": "QuestionSubmissionResult" + } + } + }, + { + "name": "createConversation", + "args": [ { - "name": "slug", + "name": "input", "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "INPUT_OBJECT", + "name": "CreateConversationInput" } } } @@ -1231,20 +71,20 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "PoliticianResult" + "name": "ConversationResult" } } }, { - "name": "updateUsername", + "name": "deleteCandidateGuide", "args": [ { - "name": "username", + "name": "id", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "ID" } } } @@ -1252,32 +92,41 @@ "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "UpdateUsernameResult" + "kind": "SCALAR", + "name": "Boolean" + } + } + }, + { + "name": "deleteProfilePicture", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Boolean" } } }, { - "name": "uploadOrganizationThumbnail", + "name": "downloadAllCandidateGuideData", + "description": "Download all candidate guide data as a CSV string, must be converted to CSV file by client", "args": [ { - "name": "file", + "name": "candidateGuideId", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Upload" + "name": "ID" } } }, { - "name": "id", + "name": "raceId", "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } + "kind": "SCALAR", + "name": "ID" } } ], @@ -1290,35 +139,35 @@ } }, { - "name": "uploadPoliticianPicture", + "name": "generateIntakeTokenLink", "args": [ { - "name": "file", + "name": "candidateGuideId", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Upload" + "name": "ID" } } }, { - "name": "intakeToken", + "name": "politicianId", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "ID" } } }, { - "name": "slug", + "name": "raceId", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "ID" } } } @@ -1332,37 +181,25 @@ } }, { - "name": "uploadProfilePicture", + "name": "moderateStatement", "args": [ { - "name": "file", + "name": "moderationStatus", "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "Upload" + "kind": "ENUM", + "name": "StatementModerationStatus" } } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "upsertBallotMeasure", - "args": [ + }, { - "name": "input", + "name": "statementId", "type": { "kind": "NON_NULL", "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertBallotMeasureInput" + "kind": "SCALAR", + "name": "ID" } } } @@ -1371,20 +208,20 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "BallotMeasureResult" + "name": "Statement" } } }, { - "name": "upsertBill", + "name": "openAllCandidateGuideSubmissions", "args": [ { - "name": "input", + "name": "candidateGuideId", "type": { "kind": "NON_NULL", "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertBillInput" + "kind": "SCALAR", + "name": "ID" } } } @@ -1392,16 +229,16 @@ "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "BillResult" + "kind": "SCALAR", + "name": "Boolean" } } }, { - "name": "upsertBillPublicVote", + "name": "removeCandidateGuideRace", "args": [ { - "name": "billId", + "name": "candidateGuideId", "type": { "kind": "NON_NULL", "ofType": { @@ -1411,53 +248,44 @@ } }, { - "name": "position", + "name": "raceId", "type": { - "kind": "ENUM", - "name": "ArgumentPosition" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } } } ], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "UpsertBillPublicVoteResult" + "kind": "SCALAR", + "name": "Boolean" } } }, { - "name": "upsertCandidateGuide", + "name": "setAllCandidateGuideRacesEmailed", "args": [ { - "name": "input", + "name": "candidateGuideId", "type": { "kind": "NON_NULL", "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertCandidateGuideInput" + "kind": "SCALAR", + "name": "ID" } } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "CandidateGuideResult" - } - } - }, - { - "name": "upsertElection", - "args": [ + }, { - "name": "input", + "name": "wereCandidatesEmailed", "type": { "kind": "NON_NULL", "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertElectionInput" + "kind": "SCALAR", + "name": "Boolean" } } } @@ -1465,21 +293,41 @@ "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "ElectionResult" + "kind": "SCALAR", + "name": "Boolean" } } }, { - "name": "upsertEmbed", + "name": "updateCandidateGuideRace", "args": [ + { + "name": "candidateGuideId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } + }, { "name": "input", "type": { "kind": "NON_NULL", "ofType": { "kind": "INPUT_OBJECT", - "name": "UpsertEmbedInput" + "name": "UpdateCandidateGuideRaceInput" + } + } + }, + { + "name": "raceId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" } } } @@ -1488,34 +336,48 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "EmbedResult" + "name": "UpdateCandidateGuideRaceResult" } } }, { - "name": "upsertIssueTag", + "name": "updateConversation", "args": [ { - "name": "input", + "name": "conversationId", "type": { "kind": "NON_NULL", "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertIssueTagInput" + "kind": "SCALAR", + "name": "ID" } } + }, + { + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String" + } + }, + { + "name": "topic", + "type": { + "kind": "SCALAR", + "name": "String" + } } ], "type": { "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "IssueTagResult" + "name": "ConversationResult" } } }, { - "name": "upsertOffice", + "name": "upsertCandidateGuide", "args": [ { "name": "input", @@ -1523,7 +385,7 @@ "kind": "NON_NULL", "ofType": { "kind": "INPUT_OBJECT", - "name": "UpsertOfficeInput" + "name": "UpsertCandidateGuideInput" } } } @@ -1532,7 +394,7 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "OfficeResult" + "name": "CandidateGuideResult" } } }, @@ -1638,104 +500,6 @@ } } }, - { - "name": "upsertRace", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertRaceInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RaceResult" - } - } - }, - { - "name": "upsertVotingGuide", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertVotingGuideInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "VotingGuideResult" - } - } - }, - { - "name": "upsertVotingGuideCandidate", - "args": [ - { - "name": "input", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertVotingGuideCandidateInput" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "VotingGuideCandidateResult" - } - } - }, - { - "name": "upvoteArgument", - "args": [ - { - "name": "argumentId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "populistUserId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, { "name": "voteOnStatement", "args": [ diff --git a/generated/schema/queries.json b/generated/schema/queries.json index 655d6875..451d29b6 100644 --- a/generated/schema/queries.json +++ b/generated/schema/queries.json @@ -401,15 +401,6 @@ } } }, - { - "name": "currentUser", - "description": "Provides current user based on JWT found in client's access_token cookie", - "args": [], - "type": { - "kind": "OBJECT", - "name": "AuthTokenResult" - } - }, { "name": "electionById", "args": [ @@ -528,91 +519,6 @@ } } }, - { - "name": "embedById", - "args": [ - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "EmbedResult" - } - } - }, - { - "name": "embedsActivity", - "args": [ - { - "name": "organizationId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "EmbedsCountResult" - } - } - } - } - }, - { - "name": "embedsByOrganization", - "args": [ - { - "name": "filter", - "type": { - "kind": "INPUT_OBJECT", - "name": "EmbedFilter" - } - }, - { - "name": "organizationId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "EmbedResult" - } - } - } - } - }, { "name": "health", "description": "Returns `true` to indicate the GraphQL server is reachable", @@ -1168,41 +1074,6 @@ } } }, - { - "name": "recentDeployments", - "args": [ - { - "name": "limit", - "type": { - "kind": "SCALAR", - "name": "Int" - } - }, - { - "name": "organizationId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "EnhancedEmbedOriginResult" - } - } - } - } - }, { "name": "relatedQuestionSubmissionByCandidateAndQuestion", "args": [ @@ -1330,28 +1201,6 @@ } } }, - { - "name": "totalCandidateGuideSubmissions", - "args": [ - { - "name": "organizationId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, { "name": "userCount", "description": "Get all users", @@ -1392,51 +1241,6 @@ } } }, - { - "name": "validateEmailAvailable", - "description": "Validate that a user does not already exist with this email", - "args": [ - { - "name": "email", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - }, - { - "name": "validatePasswordEntropy", - "args": [ - { - "name": "password", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PasswordEntropyResult" - } - } - }, { "name": "votingGuideById", "args": [ diff --git a/generated/schema/types.json b/generated/schema/types.json index 9a19ad1d..e768752e 100644 --- a/generated/schema/types.json +++ b/generated/schema/types.json @@ -53,101 +53,6 @@ "description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID.", "kind": "SCALAR" }, - { - "name": "AddressExtendedMNResult", - "kind": "OBJECT", - "fields": [ - { - "name": "countyCode", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "countyCommissionerDistrict", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "countyName", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "judicialDistrict", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "precinctCode", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "precinctName", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "schoolDistrictName", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "schoolDistrictNumber", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "schoolSubdistrictCode", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "schoolSubdistrictName", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "votingTabulationDistrictId", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - } - ], - "interfaces": [] - }, { "name": "AddressInput", "kind": "INPUT_OBJECT", @@ -257,76 +162,6 @@ } ] }, - { - "name": "AddressResult", - "kind": "OBJECT", - "fields": [ - { - "name": "city", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "country", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "line1", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "line2", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "postalCode", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "state", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "State" - } - } - } - ], - "interfaces": [] - }, { "name": "ArgumentPosition", "kind": "ENUM", @@ -439,85 +274,6 @@ "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", "kind": "SCALAR" }, - { - "name": "AuthTokenResult", - "kind": "OBJECT", - "fields": [ - { - "name": "email", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "id", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "organizations", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OrganizationRole" - } - } - } - } - }, - { - "name": "systemRole", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "SystemRoleType" - } - } - }, - { - "name": "userProfile", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "UserResult" - } - } - }, - { - "name": "username", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "interfaces": [] - }, { "name": "AuthorResult", "kind": "UNION", @@ -964,79 +720,35 @@ ] }, { - "name": "BeginUserRegistrationInput", - "kind": "INPUT_OBJECT", - "inputFields": [ + "name": "Bill", + "description": "Legiscan Bill object", + "kind": "OBJECT", + "fields": [ { - "name": "address", + "name": "amendments", + "args": [], "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BillAmendment" + } + } + } + } }, { - "name": "email", + "name": "billId", + "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - }, - { - "name": "inviteToken", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "password", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - } - ] - }, - { - "name": "Bill", - "description": "Legiscan Bill object", - "kind": "OBJECT", - "fields": [ - { - "name": "amendments", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "BillAmendment" - } - } - } - } - }, - { - "name": "billId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" + "name": "Int" } } }, @@ -3600,53 +3312,6 @@ } ] }, - { - "name": "CreateArgumentInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "authorId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - }, - { - "name": "body", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "position", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "ArgumentPosition" - } - }, - "defaultValue": null - }, - { - "name": "title", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - } - ] - }, { "name": "CreateConversationInput", "kind": "INPUT_OBJECT", @@ -3698,180 +3363,190 @@ ] }, { - "name": "CreateOrConnectIssueTagInput", - "kind": "INPUT_OBJECT", - "inputFields": [ + "name": "DateTime", + "description": "Implement the DateTime scalar\n\nThe input/output is a string in RFC3339 format.", + "kind": "SCALAR" + }, + { + "name": "DistrictType", + "kind": "ENUM", + "enumValues": [ { - "name": "connect", - "type": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - "defaultValue": null + "name": "CITY" }, { - "name": "create", - "type": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertIssueTagInput" - } - } - }, - "defaultValue": null + "name": "COUNTY" + }, + { + "name": "HOSPITAL" + }, + { + "name": "JUDICIAL" + }, + { + "name": "SCHOOL" + }, + { + "name": "SOIL_AND_WATER" + }, + { + "name": "STATE_HOUSE" + }, + { + "name": "STATE_SENATE" + }, + { + "name": "TRANSPORTATION" + }, + { + "name": "US_CONGRESSIONAL" } ] }, { - "name": "CreateOrConnectOrganizationInput", - "kind": "INPUT_OBJECT", - "inputFields": [ + "name": "DonationsByIndustry", + "kind": "OBJECT", + "fields": [ { - "name": "connect", + "name": "cycle", + "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "Int" } - }, - "defaultValue": null + } }, { - "name": "create", + "name": "lastUpdated", + "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateOrganizationInput" - } + "kind": "SCALAR", + "name": "NaiveDate" } - }, - "defaultValue": null - } - ] - }, - { - "name": "CreateOrConnectPoliticianInput", - "kind": "INPUT_OBJECT", - "inputFields": [ + } + }, { - "name": "connect", + "name": "sectors", + "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "ofType": { - "kind": "NON_NULL", + "kind": "LIST", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "Sector" + } } } - }, - "defaultValue": null + } }, { - "name": "create", + "name": "source", + "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "InsertPoliticianInput" - } + "kind": "SCALAR", + "name": "String" } - }, - "defaultValue": null + } } - ] + ], + "interfaces": [] }, { - "name": "CreateOrganizationInput", - "kind": "INPUT_OBJECT", - "inputFields": [ + "name": "DonationsSummary", + "kind": "OBJECT", + "fields": [ { - "name": "assets", + "name": "cashOnHand", + "args": [], "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Float" + } + } }, { - "name": "description", + "name": "debt", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Float" + } + } }, { - "name": "email", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "facebookUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "headquartersAddressId", + "name": "lastUpdated", + "args": [], "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "NaiveDate" + } + } }, { - "name": "headquartersPhone", + "name": "source", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } }, { - "name": "instagramUrl", + "name": "spent", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Float" + } + } }, { - "name": "name", + "name": "totalRaised", + "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Float" } + } + } + ], + "interfaces": [] + }, + { + "name": "ElectionFilter", + "kind": "INPUT_OBJECT", + "inputFields": [ + { + "name": "municipality", + "type": { + "kind": "SCALAR", + "name": "String" }, "defaultValue": null }, { - "name": "taxClassification", + "name": "query", "type": { "kind": "SCALAR", "name": "String" @@ -3879,7 +3554,7 @@ "defaultValue": null }, { - "name": "thumbnailImageUrl", + "name": "slug", "type": { "kind": "SCALAR", "name": "String" @@ -3887,96 +3562,97 @@ "defaultValue": null }, { - "name": "twitterUrl", + "name": "state", "type": { - "kind": "SCALAR", - "name": "String" + "kind": "ENUM", + "name": "State" }, "defaultValue": null }, { - "name": "votesmartSigId", + "name": "title", "type": { "kind": "SCALAR", - "name": "Int" + "name": "String" }, "defaultValue": null }, { - "name": "websiteUrl", + "name": "year", "type": { "kind": "SCALAR", - "name": "String" + "name": "Int" }, "defaultValue": null } ] }, { - "name": "CreateUserInput", + "name": "ElectionRaceFilter", "kind": "INPUT_OBJECT", "inputFields": [ { - "name": "confirmationToken", + "name": "state", "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "ENUM", + "name": "State" }, "defaultValue": null - }, + } + ] + }, + { + "name": "ElectionResult", + "kind": "OBJECT", + "fields": [ { - "name": "email", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" + "name": "ballotMeasuresByAddress", + "args": [ + { + "name": "address", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressInput" + } + }, + "defaultValue": null } - }, - "defaultValue": null - }, - { - "name": "password", + ], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BallotMeasureResult" + } + } } - }, - "defaultValue": null + } }, { - "name": "systemRole", + "name": "description", + "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "SystemRoleType" - } - }, - "defaultValue": null + "kind": "SCALAR", + "name": "String" + } }, { - "name": "username", + "name": "electionDate", + "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "NaiveDate" } - }, - "defaultValue": null - } - ] - }, - { - "name": "CreateUserResult", - "kind": "OBJECT", - "fields": [ + } + }, { "name": "id", "args": [], @@ -3987,93 +3663,112 @@ "name": "ID" } } - } - ], - "interfaces": [] - }, - { - "name": "DateTime", - "description": "Implement the DateTime scalar\n\nThe input/output is a string in RFC3339 format.", - "kind": "SCALAR" - }, - { - "name": "DeleteArgumentResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", - "args": [], + "name": "races", + "args": [ + { + "name": "filter", + "type": { + "kind": "INPUT_OBJECT", + "name": "ElectionRaceFilter" + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RaceResult" + } + } } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteBallotMeasureResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", - "args": [], + "name": "racesByAddress", + "description": "Show races based on an anonymous user with an address", + "args": [ + { + "name": "address", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressInput" + } + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RaceResult" + } + } } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteBillResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", + "name": "racesByUserDistricts", + "description": "Show races relevant to the user based on their address", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RaceResult" + } + } + } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteElectionResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", - "args": [], + "name": "racesByVotingGuide", + "args": [ + { + "name": "votingGuideId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RaceResult" + } + } } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteEmbedResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", + "name": "slug", "args": [], "type": { "kind": "NON_NULL", @@ -4082,16 +3777,17 @@ "name": "String" } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteIssueTagResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", + "name": "state", + "args": [], + "type": { + "kind": "ENUM", + "name": "State" + } + }, + { + "name": "title", "args": [], "type": { "kind": "NON_NULL", @@ -4105,65 +3801,120 @@ "interfaces": [] }, { - "name": "DeleteOfficeResult", + "name": "ElectionScope", + "kind": "ENUM", + "enumValues": [ + { + "name": "CITY" + }, + { + "name": "COUNTY" + }, + { + "name": "DISTRICT" + }, + { + "name": "NATIONAL" + }, + { + "name": "STATE" + } + ] + }, + { + "name": "EmbedResult", "kind": "OBJECT", "fields": [ { - "name": "id", + "name": "attributes", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "JSON" } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteOrganizationResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", + "name": "ballotMeasure", + "args": [], + "type": { + "kind": "OBJECT", + "name": "BallotMeasureResult" + } + }, + { + "name": "bill", + "args": [], + "type": { + "kind": "OBJECT", + "name": "BillResult" + } + }, + { + "name": "bills", + "args": [], + "type": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BillResult" + } + } + } + }, + { + "name": "candidateGuide", + "args": [], + "type": { + "kind": "OBJECT", + "name": "CandidateGuideResult" + } + }, + { + "name": "candidateGuideRace", + "args": [], + "type": { + "kind": "OBJECT", + "name": "CandidateGuideRaceResult" + } + }, + { + "name": "candidateGuideSubmissionCountByRace", + "description": "Each candidate guide embed is associated with a single race. This field returns the\nthe number of questions submitted by candidates in this race, divided by the number\nof questions in a candidate guide", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int" + } + }, + { + "name": "createdAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "DateTime" } } - } - ], - "interfaces": [] - }, - { - "name": "DeletePoliticianResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", + "name": "createdBy", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "OBJECT", + "name": "UserResult" } } - } - ], - "interfaces": [] - }, - { - "name": "DeletePollResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", + "name": "createdById", "args": [], "type": { "kind": "NON_NULL", @@ -4172,14 +3923,34 @@ "name": "ID" } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteQuestionResult", - "kind": "OBJECT", - "fields": [ + }, + { + "name": "description", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String" + } + }, + { + "name": "election", + "args": [], + "type": { + "kind": "OBJECT", + "name": "ElectionResult" + } + }, + { + "name": "embedType", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "ENUM", + "name": "EmbedType" + } + } + }, { "name": "id", "args": [], @@ -4190,16 +3961,9 @@ "name": "ID" } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteRaceResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", + "name": "name", "args": [], "type": { "kind": "NON_NULL", @@ -4208,16 +3972,9 @@ "name": "String" } } - } - ], - "interfaces": [] - }, - { - "name": "DeleteVotingGuideResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "id", + "name": "organizationId", "args": [], "type": { "kind": "NON_NULL", @@ -4226,74 +3983,128 @@ "name": "ID" } } - } - ], - "interfaces": [] - }, - { - "name": "DistrictType", - "kind": "ENUM", - "enumValues": [ - { - "name": "CITY" - }, - { - "name": "COUNTY" }, { - "name": "HOSPITAL" - }, - { - "name": "JUDICIAL" + "name": "politician", + "args": [], + "type": { + "kind": "OBJECT", + "name": "PoliticianResult" + } }, { - "name": "SCHOOL" + "name": "poll", + "args": [], + "type": { + "kind": "OBJECT", + "name": "PollResult" + } }, { - "name": "SOIL_AND_WATER" + "name": "question", + "args": [], + "type": { + "kind": "OBJECT", + "name": "QuestionResult" + } }, { - "name": "STATE_HOUSE" + "name": "race", + "args": [], + "type": { + "kind": "OBJECT", + "name": "RaceResult" + } }, { - "name": "STATE_SENATE" + "name": "updatedAt", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" + } + } }, { - "name": "TRANSPORTATION" + "name": "updatedBy", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "UserResult" + } + } }, { - "name": "US_CONGRESSIONAL" - } - ] - }, - { - "name": "DonationsByIndustry", - "kind": "OBJECT", - "fields": [ - { - "name": "cycle", + "name": "updatedById", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Int" + "name": "ID" } } + } + ], + "interfaces": [] + }, + { + "name": "EmbedType", + "kind": "ENUM", + "enumValues": [ + { + "name": "CANDIDATE_GUIDE" }, { - "name": "lastUpdated", + "name": "LEGISLATION" + }, + { + "name": "LEGISLATION_TRACKER" + }, + { + "name": "MY_BALLOT" + }, + { + "name": "POLITICIAN" + }, + { + "name": "POLL" + }, + { + "name": "QUESTION" + }, + { + "name": "RACE" + } + ] + }, + { + "name": "Endorsements", + "kind": "OBJECT", + "fields": [ + { + "name": "organizations", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "NaiveDate" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OrganizationResult" + } + } } } }, { - "name": "sectors", + "name": "politicians", "args": [], "type": { "kind": "NON_NULL", @@ -4303,14 +4114,32 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "Sector" + "name": "PoliticianResult" } } } } + } + ], + "interfaces": [] + }, + { + "name": "GeneralInfo", + "kind": "OBJECT", + "fields": [ + { + "name": "linkBack", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } }, { - "name": "source", + "name": "title", "args": [], "type": { "kind": "NON_NULL", @@ -4324,44 +4153,77 @@ "interfaces": [] }, { - "name": "DonationsSummary", + "name": "GetCandidateBioResponse", "kind": "OBJECT", "fields": [ { - "name": "cashOnHand", + "name": "candidate", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "Float" + "kind": "OBJECT", + "name": "Candidate" } } }, { - "name": "debt", + "name": "generalInfo", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "Float" + "kind": "OBJECT", + "name": "GeneralInfo" } } }, { - "name": "lastUpdated", + "name": "office", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Office" + } + } + ], + "interfaces": [] + }, + { + "name": "Heartbeat", + "kind": "OBJECT", + "fields": [ + { + "name": "utc", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "NaiveDate" + "name": "DateTime" + } + } + } + ], + "interfaces": [] + }, + { + "name": "History", + "kind": "OBJECT", + "fields": [ + { + "name": "action", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" } } }, { - "name": "source", + "name": "chamber", "args": [], "type": { "kind": "NON_NULL", @@ -4372,24 +4234,35 @@ } }, { - "name": "spent", + "name": "chamberId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Float" + "name": "Int" } } }, { - "name": "totalRaised", + "name": "date", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Float" + "name": "String" + } + } + }, + { + "name": "importance", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" } } } @@ -4397,148 +4270,196 @@ "interfaces": [] }, { - "name": "ElectionFilter", - "kind": "INPUT_OBJECT", - "inputFields": [ + "name": "IssueTagResult", + "kind": "OBJECT", + "fields": [ { - "name": "municipality", + "name": "ballotMeasures", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BallotMeasureResult" + } + } + } + } }, { - "name": "query", + "name": "bills", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "BillResult" + } + } + } + } }, { - "name": "slug", + "name": "description", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null + } }, { - "name": "state", + "name": "id", + "args": [], "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } }, { - "name": "title", + "name": "name", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } }, { - "name": "year", + "name": "organizations", + "args": [], "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OrganizationResult" + } + } + } + } + }, + { + "name": "politicians", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianResult" + } + } + } + } + }, + { + "name": "slug", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } } - ] + ], + "interfaces": [] }, { - "name": "ElectionRaceFilter", + "name": "IssueTagSearch", "kind": "INPUT_OBJECT", "inputFields": [ { - "name": "state", + "name": "name", "type": { - "kind": "ENUM", - "name": "State" + "kind": "SCALAR", + "name": "String" }, "defaultValue": null } ] }, { - "name": "ElectionResult", + "name": "JSON", + "description": "A scalar that can represent any JSON value.", + "kind": "SCALAR" + }, + { + "name": "NaiveDate", + "description": "ISO 8601 calendar date without timezone.\nFormat: %Y-%m-%d\n\n# Examples\n\n* `1994-11-13`\n* `2000-02-24`", + "kind": "SCALAR" + }, + { + "name": "Office", "kind": "OBJECT", "fields": [ { - "name": "ballotMeasuresByAddress", - "args": [ - { - "name": "address", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput" - } - }, - "defaultValue": null - } - ], + "name": "district", + "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "BallotMeasureResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "description", + "name": "districtId", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "electionDate", + "name": "firstElect", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "NaiveDate" + "name": "String" } } }, { - "name": "id", + "name": "lastElect", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "String" } } }, { - "name": "races", - "args": [ - { - "name": "filter", - "type": { - "kind": "INPUT_OBJECT", - "name": "ElectionRaceFilter" - }, - "defaultValue": null - } - ], + "name": "name", + "args": [], "type": { "kind": "NON_NULL", "ofType": { @@ -4546,92 +4467,70 @@ "ofType": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "RaceResult" + "kind": "SCALAR", + "name": "String" } } } } }, { - "name": "racesByAddress", - "description": "Show races based on an anonymous user with an address", - "args": [ - { - "name": "address", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "AddressInput" - } - }, - "defaultValue": null + "name": "nextElect", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" } - ], + } + }, + { + "name": "parties", + "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RaceResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "racesByUserDistricts", - "description": "Show races relevant to the user based on their address", + "name": "shortTitle", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RaceResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "racesByVotingGuide", - "args": [ - { - "name": "votingGuideId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - }, - "defaultValue": null + "name": "stateId", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" } - ], + } + }, + { + "name": "status", + "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RaceResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "slug", + "name": "termEnd", "args": [], "type": { "kind": "NON_NULL", @@ -4642,11 +4541,14 @@ } }, { - "name": "state", + "name": "termStart", "args": [], "type": { - "kind": "ENUM", - "name": "State" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { @@ -4659,62 +4561,65 @@ "name": "String" } } - } - ], - "interfaces": [] - }, - { - "name": "ElectionScope", - "kind": "ENUM", - "enumValues": [ - { - "name": "CITY" - }, - { - "name": "COUNTY" - }, - { - "name": "DISTRICT" - }, - { - "name": "NATIONAL" }, { - "name": "STATE" + "name": "typeField", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } } - ] + ], + "interfaces": [] }, { - "name": "EmbedFilter", + "name": "OfficeFilter", "kind": "INPUT_OBJECT", "inputFields": [ { - "name": "embedType", + "name": "politicalScope", + "type": { + "kind": "ENUM", + "name": "PoliticalScope" + }, + "defaultValue": null + }, + { + "name": "query", + "type": { + "kind": "SCALAR", + "name": "String" + }, + "defaultValue": null + }, + { + "name": "state", "type": { "kind": "ENUM", - "name": "EmbedType" + "name": "State" }, "defaultValue": null } ] }, { - "name": "EmbedOriginResult", + "name": "OfficeResult", "kind": "OBJECT", "fields": [ { - "name": "lastPingAt", + "name": "chamber", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } + "kind": "ENUM", + "name": "Chamber" } }, { - "name": "pageTitle", + "name": "county", "args": [], "type": { "kind": "SCALAR", @@ -4722,162 +4627,179 @@ } }, { - "name": "url", + "name": "district", + "description": "The district name, e.g. \"2, 3B, Ward 5\"", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "String" } - } - ], - "interfaces": [] - }, - { - "name": "EmbedResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "attributes", + "name": "districtType", + "description": "The type of district, used to determine which field is referenced for the district", + "args": [], + "type": { + "kind": "ENUM", + "name": "DistrictType" + } + }, + { + "name": "electionScope", + "description": "National, State, County, City, or District", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "JSON" + "kind": "ENUM", + "name": "ElectionScope" } } }, { - "name": "ballotMeasure", + "name": "hospitalDistrict", "args": [], "type": { - "kind": "OBJECT", - "name": "BallotMeasureResult" + "kind": "SCALAR", + "name": "String" } }, { - "name": "bill", + "name": "id", "args": [], "type": { - "kind": "OBJECT", - "name": "BillResult" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } } }, { - "name": "bills", + "name": "incumbents", "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "ofType": { - "kind": "NON_NULL", + "kind": "LIST", "ofType": { - "kind": "OBJECT", - "name": "BillResult" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianResult" + } } } } }, { - "name": "candidateGuide", + "name": "municipality", "args": [], "type": { - "kind": "OBJECT", - "name": "CandidateGuideResult" + "kind": "SCALAR", + "name": "String" } }, { - "name": "candidateGuideRace", + "name": "name", + "description": "Name of the office, e.g. \"U.S. Senate\"", "args": [], "type": { - "kind": "OBJECT", - "name": "CandidateGuideRaceResult" + "kind": "SCALAR", + "name": "String" } }, { - "name": "candidateGuideSubmissionCountByRace", - "description": "Each candidate guide embed is associated with a single race. This field returns the\nthe number of questions submitted by candidates in this race, divided by the number\nof questions in a candidate guide", + "name": "officeType", "args": [], "type": { "kind": "SCALAR", - "name": "Int" + "name": "String" } }, { - "name": "createdAt", + "name": "politicalScope", + "description": "Local, State, or Federal", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "DateTime" + "kind": "ENUM", + "name": "PoliticalScope" } } }, { - "name": "createdBy", + "name": "priority", + "description": "Used to determine order of offices in a list", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "UserResult" - } + "kind": "SCALAR", + "name": "Int" } }, { - "name": "createdById", + "name": "schoolDistrict", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String" + } + }, + { + "name": "seat", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String" + } + }, + { + "name": "slug", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "String" } } }, { - "name": "description", + "name": "state", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "ENUM", + "name": "State" } }, { - "name": "election", + "name": "subtitle", "args": [], "type": { - "kind": "OBJECT", - "name": "ElectionResult" + "kind": "SCALAR", + "name": "String" } }, { - "name": "embedType", + "name": "subtitleShort", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "EmbedType" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "id", + "name": "termLength", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } + "kind": "SCALAR", + "name": "Int" } }, { - "name": "name", + "name": "title", + "description": "What the person in office would be called, e.g. \"Senator\", \"Governor\"", "args": [], "type": { "kind": "NON_NULL", @@ -4886,20 +4808,35 @@ "name": "String" } } - }, + } + ], + "interfaces": [] + }, + { + "name": "OfficeResultConnection", + "kind": "OBJECT", + "fields": [ { - "name": "organizationId", + "name": "edges", + "description": "A list of edges.", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "ID" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OfficeResultEdge" + } + } } } }, { - "name": "origins", + "name": "nodes", + "description": "A list of nodes.", "args": [], "type": { "kind": "NON_NULL", @@ -4909,166 +4846,77 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "EmbedOriginResult" + "name": "OfficeResult" } } } } }, { - "name": "politician", + "name": "pageInfo", + "description": "Information to aid in pagination.", "args": [], "type": { - "kind": "OBJECT", - "name": "PoliticianResult" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo" + } } }, { - "name": "poll", + "name": "totalCount", + "description": "Total result set count", "args": [], "type": { - "kind": "OBJECT", - "name": "PollResult" - } - }, - { - "name": "question", - "args": [], - "type": { - "kind": "OBJECT", - "name": "QuestionResult" - } - }, - { - "name": "race", - "args": [], - "type": { - "kind": "OBJECT", - "name": "RaceResult" - } - }, - { - "name": "updatedAt", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - }, - { - "name": "updatedBy", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "UserResult" - } - } - }, - { - "name": "updatedById", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } } ], "interfaces": [] }, { - "name": "EmbedType", - "kind": "ENUM", - "enumValues": [ - { - "name": "CANDIDATE_GUIDE" - }, - { - "name": "LEGISLATION" - }, - { - "name": "LEGISLATION_TRACKER" - }, - { - "name": "MY_BALLOT" - }, - { - "name": "POLITICIAN" - }, - { - "name": "POLL" - }, - { - "name": "QUESTION" - }, - { - "name": "RACE" - } - ] - }, - { - "name": "EmbedsCountResult", + "name": "OfficeResultEdge", + "description": "An edge in a connection.", "kind": "OBJECT", "fields": [ { - "name": "embedCount", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int" - } - }, - { - "name": "embedType", + "name": "cursor", + "description": "A cursor for use in pagination", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "ENUM", - "name": "EmbedType" + "kind": "SCALAR", + "name": "String" } } }, { - "name": "submissions", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int" - } - }, - { - "name": "totalDeployments", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int" - } - }, - { - "name": "uniqueOriginCount", + "name": "node", + "description": "The item at the end of the edge", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OfficeResult" + } } } ], "interfaces": [] }, { - "name": "Endorsements", + "name": "OpinionAnalysis", "kind": "OBJECT", "fields": [ { - "name": "organizations", + "name": "consensusOpinions", "args": [], "type": { "kind": "NON_NULL", @@ -5078,14 +4926,14 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "OrganizationResult" + "name": "OpinionScore" } } } } }, { - "name": "politicians", + "name": "divisiveOpinions", "args": [], "type": { "kind": "NON_NULL", @@ -5095,54 +4943,57 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "PoliticianResult" + "name": "OpinionScore" } } } } + }, + { + "name": "overview", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String" + } } ], "interfaces": [] }, { - "name": "EnhancedEmbedOriginResult", + "name": "OpinionGroup", "kind": "OBJECT", "fields": [ { - "name": "embedId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - } - }, - { - "name": "embedType", + "name": "characteristicVotes", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "ENUM", - "name": "EmbedType" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "CharacteristicVote" + } + } } } }, { - "name": "lastPingAt", + "name": "id", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "ID" } } }, { - "name": "name", + "name": "summary", "args": [], "type": { "kind": "NON_NULL", @@ -5153,13 +5004,19 @@ } }, { - "name": "url", + "name": "users", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } } } } @@ -5167,11 +5024,11 @@ "interfaces": [] }, { - "name": "GeneralInfo", + "name": "OpinionScore", "kind": "OBJECT", "fields": [ { - "name": "linkBack", + "name": "content", "args": [], "type": { "kind": "NON_NULL", @@ -5182,7 +5039,7 @@ } }, { - "name": "title", + "name": "id", "args": [], "type": { "kind": "NON_NULL", @@ -5191,93 +5048,53 @@ "name": "String" } } - } - ], - "interfaces": [] - }, - { - "name": "GetCandidateBioResponse", - "kind": "OBJECT", - "fields": [ - { - "name": "candidate", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "Candidate" - } - } }, { - "name": "generalInfo", + "name": "neutralVotes", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "GeneralInfo" + "kind": "SCALAR", + "name": "Int" } } }, { - "name": "office", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Office" - } - } - ], - "interfaces": [] - }, - { - "name": "Heartbeat", - "kind": "OBJECT", - "fields": [ - { - "name": "utc", + "name": "nonVotingViews", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "Int" } } - } - ], - "interfaces": [] - }, - { - "name": "History", - "kind": "OBJECT", - "fields": [ + }, { - "name": "action", + "name": "opposeVotes", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Int" } } }, { - "name": "chamber", + "name": "score", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Float" } } }, { - "name": "chamberId", + "name": "supportVotes", "args": [], "type": { "kind": "NON_NULL", @@ -5288,18 +5105,18 @@ } }, { - "name": "date", + "name": "totalViews", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Int" } } }, { - "name": "importance", + "name": "totalVotes", "args": [], "type": { "kind": "NON_NULL", @@ -5313,352 +5130,401 @@ "interfaces": [] }, { - "name": "InsertPoliticianInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "assets", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, + "name": "OrganizationAssets", + "kind": "OBJECT", + "fields": [ { - "name": "biography", + "name": "bannerImage", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null + } }, { - "name": "biographySource", + "name": "thumbnailImage160", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null + } }, { - "name": "campaignWebsiteUrl", + "name": "thumbnailImage400", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null - }, + } + } + ], + "interfaces": [] + }, + { + "name": "OrganizationAttributes", + "kind": "OBJECT", + "fields": [ { - "name": "crpCandidateId", + "name": "supportedLanguages", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } + } + } + ], + "interfaces": [] + }, + { + "name": "OrganizationPoliticianNoteResult", + "kind": "OBJECT", + "fields": [ + { + "name": "createdAt", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" + } + } }, { - "name": "dateOfBirth", + "name": "electionId", + "args": [], "type": { - "kind": "SCALAR", - "name": "NaiveDate" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } }, { - "name": "email", + "name": "id", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } }, { - "name": "facebookUrl", + "name": "issueTagIds", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } + } + } }, { - "name": "fecCandidateId", + "name": "issueTags", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "IssueTagResult" + } + } + } + } }, { - "name": "firstName", + "name": "notes", + "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "JSON" } - }, - "defaultValue": null + } }, { - "name": "homeState", + "name": "organization", + "args": [], "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OrganizationResult" + } + } }, { - "name": "instagramUrl", + "name": "organizationId", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } }, { - "name": "issueTags", + "name": "politician", + "args": [], "type": { - "kind": "INPUT_OBJECT", - "name": "CreateOrConnectIssueTagInput" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianResult" + } + } }, { - "name": "lastName", + "name": "politicianId", + "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "ID" } - }, - "defaultValue": null + } }, { - "name": "legiscanPeopleId", + "name": "updatedAt", + "args": [], "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" + } + } + } + ], + "interfaces": [] + }, + { + "name": "OrganizationResult", + "kind": "OBJECT", + "fields": [ + { + "name": "assets", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OrganizationAssets" + } + } }, { - "name": "linkedinUrl", + "name": "attributes", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OrganizationAttributes" + } + } }, { - "name": "middleName", + "name": "description", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null + } }, { - "name": "officeId", + "name": "email", + "args": [], "type": { "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null + "name": "String" + } }, { - "name": "officialWebsiteUrl", + "name": "facebookUrl", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null + } }, { - "name": "organizationEndorsements", - "type": { - "kind": "INPUT_OBJECT", - "name": "CreateOrConnectOrganizationInput" - }, - "defaultValue": null - }, - { - "name": "partyId", + "name": "headquartersAddressId", + "args": [], "type": { "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null + "name": "ID" + } }, { - "name": "phone", + "name": "headquartersPhone", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null + } }, { - "name": "politicianEndorsements", + "name": "id", + "args": [], "type": { - "kind": "INPUT_OBJECT", - "name": "CreateOrConnectPoliticianInput" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } }, { - "name": "preferredName", + "name": "instagramUrl", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null + } }, { - "name": "raceLosses", + "name": "issueTags", + "args": [], "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "IssueTagResult" + } + } + } + } }, { - "name": "raceWins", + "name": "name", + "args": [], "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } }, { - "name": "slug", + "name": "politicianNotes", + "args": [ + { + "name": "electionId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + }, + "defaultValue": null + } + ], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OrganizationPoliticianNoteResult" + } + } + } + } }, { - "name": "suffix", + "name": "slug", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } }, { - "name": "thumbnailImageUrl", + "name": "taxClassification", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null + } }, { - "name": "tiktokUrl", + "name": "thumbnailImageUrl", + "args": [], "type": { "kind": "SCALAR", "name": "String" }, - "defaultValue": null + "deprecationReason": "Use `assets.thumbnailImage160` instead" }, { "name": "twitterUrl", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null - }, - { - "name": "upcomingRaceId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "votesmartCandidateBio", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null + } }, { - "name": "votesmartCandidateId", + "name": "votesmartSigId", + "args": [], "type": { "kind": "SCALAR", "name": "Int" - }, - "defaultValue": null - }, - { - "name": "votesmartCandidateRatings", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null + } }, { - "name": "youtubeUrl", + "name": "websiteUrl", + "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "InviteUserInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "email", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - }, - { - "name": "organizationId", - "type": { - "kind": "SCALAR", - "name": "ID" - }, - "defaultValue": null - }, - { - "name": "politicianId", - "type": { - "kind": "SCALAR", - "name": "ID" - }, - "defaultValue": null - }, - { - "name": "role", - "type": { - "kind": "ENUM", - "name": "OrganizationRoleType" - }, - "defaultValue": null + } } - ] + ], + "interfaces": [] }, { - "name": "IssueTagResult", + "name": "OrganizationResultConnection", "kind": "OBJECT", "fields": [ { - "name": "ballotMeasures", + "name": "edges", + "description": "A list of edges.", "args": [], "type": { "kind": "NON_NULL", @@ -5668,14 +5534,15 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "BallotMeasureResult" + "name": "OrganizationResultEdge" } } } } }, { - "name": "bills", + "name": "nodes", + "description": "A list of nodes.", "args": [], "type": { "kind": "NON_NULL", @@ -5685,33 +5552,47 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "BillResult" + "name": "OrganizationResult" } } } } }, { - "name": "description", + "name": "pageInfo", + "description": "Information to aid in pagination.", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo" + } } }, { - "name": "id", + "name": "totalCount", + "description": "Total result set count", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "Int" } } - }, + } + ], + "interfaces": [] + }, + { + "name": "OrganizationResultEdge", + "description": "An edge in a connection.", + "kind": "OBJECT", + "fields": [ { - "name": "name", + "name": "cursor", + "description": "A cursor for use in pagination", "args": [], "type": { "kind": "NON_NULL", @@ -5722,47 +5603,14 @@ } }, { - "name": "organizations", + "name": "node", + "description": "The item at the end of the edge", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OrganizationResult" - } - } - } - } - }, - { - "name": "politicians", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PoliticianResult" - } - } - } - } - }, - { - "name": "slug", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "OBJECT", + "name": "OrganizationResult" } } } @@ -5770,7 +5618,7 @@ "interfaces": [] }, { - "name": "IssueTagSearch", + "name": "OrganizationSearch", "kind": "INPUT_OBJECT", "inputFields": [ { @@ -5784,150 +5632,88 @@ ] }, { - "name": "JSON", - "description": "A scalar that can represent any JSON value.", - "kind": "SCALAR" - }, - { - "name": "LoginInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "emailOrUsername", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - }, - { - "name": "password", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - } - ] - }, - { - "name": "LoginResult", - "kind": "OBJECT", - "fields": [ - { - "name": "userId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } - ], - "interfaces": [] - }, - { - "name": "NaiveDate", - "description": "ISO 8601 calendar date without timezone.\nFormat: %Y-%m-%d\n\n# Examples\n\n* `1994-11-13`\n* `2000-02-24`", - "kind": "SCALAR" - }, - { - "name": "Office", + "name": "PageInfo", + "description": "Information about pagination in a connection", "kind": "OBJECT", "fields": [ { - "name": "district", + "name": "endCursor", + "description": "When paginating forwards, the cursor to continue.", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "districtId", + "name": "hasNextPage", + "description": "When paginating forwards, are there more items?", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Boolean" } } }, { - "name": "firstElect", + "name": "hasPreviousPage", + "description": "When paginating backwards, are there more items?", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Boolean" } } }, { - "name": "lastElect", + "name": "startCursor", + "description": "When paginating backwards, the cursor to continue.", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "String" } - }, + } + ], + "interfaces": [] + }, + { + "name": "PoliticalParty", + "kind": "OBJECT", + "fields": [ { - "name": "name", + "name": "description", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "nextElect", + "name": "fecCode", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "parties", + "name": "id", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "ID" } } }, { - "name": "shortTitle", + "name": "name", "args": [], "type": { "kind": "NON_NULL", @@ -5938,18 +5724,15 @@ } }, { - "name": "stateId", + "name": "notes", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "status", + "name": "slug", "args": [], "type": { "kind": "NON_NULL", @@ -5958,107 +5741,111 @@ "name": "String" } } - }, + } + ], + "interfaces": [] + }, + { + "name": "PoliticalScope", + "kind": "ENUM", + "enumValues": [ { - "name": "termEnd", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } + "name": "FEDERAL" }, { - "name": "termStart", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } + "name": "LOCAL" }, { - "name": "title", + "name": "STATE" + } + ] + }, + { + "name": "PoliticianAssets", + "kind": "OBJECT", + "fields": [ + { + "name": "thumbnailImage160", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "typeField", + "name": "thumbnailImage400", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "String" } } ], "interfaces": [] }, { - "name": "OfficeFilter", + "name": "PoliticianFilter", "kind": "INPUT_OBJECT", "inputFields": [ { - "name": "politicalScope", + "name": "chambers", "type": { "kind": "ENUM", - "name": "PoliticalScope" + "name": "Chambers" }, "defaultValue": null }, { - "name": "query", + "name": "homeState", "type": { - "kind": "SCALAR", - "name": "String" + "kind": "ENUM", + "name": "State" }, "defaultValue": null }, { - "name": "state", + "name": "politicalScope", "type": { "kind": "ENUM", - "name": "State" + "name": "PoliticalScope" + }, + "defaultValue": null + }, + { + "name": "query", + "type": { + "kind": "SCALAR", + "name": "String" }, "defaultValue": null } ] }, { - "name": "OfficeResult", + "name": "PoliticianResult", "kind": "OBJECT", "fields": [ { - "name": "chamber", + "name": "age", "args": [], "type": { - "kind": "ENUM", - "name": "Chamber" + "kind": "SCALAR", + "name": "Int" } }, { - "name": "county", + "name": "assets", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianAssets" + } } }, { - "name": "district", - "description": "The district name, e.g. \"2, 3B, Ward 5\"", + "name": "biography", "args": [], "type": { "kind": "SCALAR", @@ -6066,28 +5853,23 @@ } }, { - "name": "districtType", - "description": "The type of district, used to determine which field is referenced for the district", + "name": "biographySource", "args": [], "type": { - "kind": "ENUM", - "name": "DistrictType" + "kind": "SCALAR", + "name": "String" } }, { - "name": "electionScope", - "description": "National, State, County, City, or District", + "name": "campaignWebsiteUrl", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "ElectionScope" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "hospitalDistrict", + "name": "crpCandidateId", "args": [], "type": { "kind": "SCALAR", @@ -6095,52 +5877,39 @@ } }, { - "name": "id", + "name": "currentOffice", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } + "kind": "OBJECT", + "name": "OfficeResult" } }, { - "name": "incumbents", + "name": "dateOfBirth", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PoliticianResult" - } - } - } + "kind": "SCALAR", + "name": "NaiveDate" } }, { - "name": "municipality", + "name": "donationsByIndustry", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "OBJECT", + "name": "DonationsByIndustry" } }, { - "name": "name", - "description": "Name of the office, e.g. \"U.S. Senate\"", + "name": "donationsSummary", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "OBJECT", + "name": "DonationsSummary" } }, { - "name": "officeType", + "name": "email", "args": [], "type": { "kind": "SCALAR", @@ -6148,28 +5917,26 @@ } }, { - "name": "politicalScope", - "description": "Local, State, or Federal", + "name": "endorsements", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "ENUM", - "name": "PoliticalScope" + "kind": "OBJECT", + "name": "Endorsements" } } }, { - "name": "priority", - "description": "Used to determine order of offices in a list", + "name": "facebookUrl", "args": [], "type": { "kind": "SCALAR", - "name": "Int" + "name": "String" } }, { - "name": "schoolDistrict", + "name": "fecCandidateId", "args": [], "type": { "kind": "SCALAR", @@ -6177,15 +5944,18 @@ } }, { - "name": "seat", + "name": "firstName", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "slug", + "name": "fullName", "args": [], "type": { "kind": "NON_NULL", @@ -6196,7 +5966,7 @@ } }, { - "name": "state", + "name": "homeState", "args": [], "type": { "kind": "ENUM", @@ -6204,15 +5974,18 @@ } }, { - "name": "subtitle", + "name": "id", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } } }, { - "name": "subtitleShort", + "name": "instagramUrl", "args": [], "type": { "kind": "SCALAR", @@ -6220,35 +5993,7 @@ } }, { - "name": "termLength", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int" - } - }, - { - "name": "title", - "description": "What the person in office would be called, e.g. \"Senator\", \"Governor\"", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "interfaces": [] - }, - { - "name": "OfficeResultConnection", - "kind": "OBJECT", - "fields": [ - { - "name": "edges", - "description": "A list of edges.", + "name": "issueTags", "args": [], "type": { "kind": "NON_NULL", @@ -6258,218 +6003,158 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "OfficeResultEdge" + "name": "IssueTagResult" } } } } }, { - "name": "nodes", - "description": "A list of nodes.", + "name": "lastName", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OfficeResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "pageInfo", - "description": "Information to aid in pagination.", + "name": "legiscanPeopleId", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PageInfo" - } + "kind": "SCALAR", + "name": "Int" } }, { - "name": "totalCount", - "description": "Total result set count", + "name": "linkedinUrl", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } + "kind": "SCALAR", + "name": "String" } - } - ], - "interfaces": [] - }, - { - "name": "OfficeResultEdge", - "description": "An edge in a connection.", - "kind": "OBJECT", - "fields": [ + }, { - "name": "cursor", - "description": "A cursor for use in pagination", + "name": "middleName", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "node", - "description": "The item at the end of the edge", + "name": "officeId", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OfficeResult" - } + "kind": "SCALAR", + "name": "ID" } - } - ], - "interfaces": [] - }, - { - "name": "OpinionAnalysis", - "kind": "OBJECT", - "fields": [ + }, { - "name": "consensusOpinions", + "name": "officialWebsiteUrl", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OpinionScore" - } - } - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "divisiveOpinions", + "name": "party", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OpinionScore" - } - } - } + "kind": "OBJECT", + "name": "PoliticalParty" } }, { - "name": "overview", + "name": "partyId", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "ID" } - } - ], - "interfaces": [] - }, - { - "name": "OpinionGroup", - "kind": "OBJECT", - "fields": [ + }, { - "name": "characteristicVotes", + "name": "phone", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "CharacteristicVote" - } - } - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "id", + "name": "preferredName", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "summary", + "name": "raceLosses", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "Int" } }, { - "name": "users", + "name": "raceWins", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } + "kind": "SCALAR", + "name": "Int" } - } - ], - "interfaces": [] - }, - { - "name": "OpinionScore", - "kind": "OBJECT", - "fields": [ + }, { - "name": "content", - "args": [], + "name": "ratings", + "description": "Leverages Votesmart ratings data for the time being", + "args": [ + { + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String" + }, + "defaultValue": null + }, + { + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String" + }, + "defaultValue": null + }, + { + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int" + }, + "defaultValue": null + }, + { + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int" + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "OBJECT", + "name": "RatingResultConnection" } } }, { - "name": "id", + "name": "slug", "args": [], "type": { "kind": "NON_NULL", @@ -6480,107 +6165,162 @@ } }, { - "name": "neutralVotes", - "args": [], + "name": "sponsoredBills", + "args": [ + { + "name": "after", + "type": { + "kind": "SCALAR", + "name": "String" + }, + "defaultValue": null + }, + { + "name": "before", + "type": { + "kind": "SCALAR", + "name": "String" + }, + "defaultValue": null + }, + { + "name": "first", + "type": { + "kind": "SCALAR", + "name": "Int" + }, + "defaultValue": null + }, + { + "name": "last", + "type": { + "kind": "SCALAR", + "name": "Int" + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "Int" + "kind": "OBJECT", + "name": "BillResultConnection" } } }, { - "name": "nonVotingViews", + "name": "suffix", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "opposeVotes", + "name": "thumbnailImageUrl", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } + "kind": "SCALAR", + "name": "String" + }, + "deprecationReason": "Use `assets.thumbnailImage160` instead" + }, + { + "name": "tiktokUrl", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String" } }, { - "name": "score", + "name": "twitterUrl", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Float" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "supportVotes", + "name": "upcomingRace", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } + "kind": "OBJECT", + "name": "RaceResult" } }, { - "name": "totalViews", + "name": "upcomingRaceId", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" + "kind": "SCALAR", + "name": "ID" + } + }, + { + "name": "votes", + "args": [ + { + "name": "raceId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "UUID" + } + }, + "defaultValue": null } + ], + "type": { + "kind": "SCALAR", + "name": "Int" } }, { - "name": "totalVotes", + "name": "votesmartCandidateBio", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } + "kind": "OBJECT", + "name": "GetCandidateBioResponse" } - } - ], - "interfaces": [] - }, - { - "name": "OrganizationAssets", - "kind": "OBJECT", - "fields": [ + }, { - "name": "bannerImage", + "name": "votesmartCandidateId", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "Int" } }, { - "name": "thumbnailImage160", + "name": "votesmartCandidateRatings", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "VsRating" + } + } + } + } + }, + { + "name": "yearsInPublicOffice", + "description": "Calculates the total years a politician has been in office using\nthe votesmart politicial experience array. Does not take into account\nobjects where the politician is considered a 'candidate'", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "Int" } }, { - "name": "thumbnailImage400", + "name": "youtubeUrl", "args": [], "type": { "kind": "SCALAR", @@ -6591,32 +6331,80 @@ "interfaces": [] }, { - "name": "OrganizationAttributes", + "name": "PoliticianResultConnection", "kind": "OBJECT", "fields": [ { - "name": "supportedLanguages", + "name": "edges", + "description": "A list of edges.", "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "ofType": { - "kind": "NON_NULL", + "kind": "LIST", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianResultEdge" + } + } + } + } + }, + { + "name": "nodes", + "description": "A list of nodes.", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianResult" + } } } } + }, + { + "name": "pageInfo", + "description": "Information to aid in pagination.", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo" + } + } + }, + { + "name": "totalCount", + "description": "Total result set count", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } + } } ], "interfaces": [] }, { - "name": "OrganizationMemberResult", + "name": "PoliticianResultEdge", + "description": "An edge in a connection.", "kind": "OBJECT", "fields": [ { - "name": "email", + "name": "cursor", + "description": "A cursor for use in pagination", "args": [], "type": { "kind": "NON_NULL", @@ -6627,11 +6415,33 @@ } }, { - "name": "firstName", + "name": "node", + "description": "The item at the end of the edge", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianResult" + } + } + } + ], + "interfaces": [] + }, + { + "name": "PollOptionResult", + "kind": "OBJECT", + "fields": [ + { + "name": "createdAt", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" + } } }, { @@ -6646,29 +6456,35 @@ } }, { - "name": "lastName", + "name": "optionText", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "profilePictureUrl", + "name": "pollId", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } } }, { - "name": "role", + "name": "updatedAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "ENUM", - "name": "OrganizationRoleType" + "kind": "SCALAR", + "name": "DateTime" } } } @@ -6676,128 +6492,128 @@ "interfaces": [] }, { - "name": "OrganizationPoliticianNoteResult", + "name": "PollResult", "kind": "OBJECT", "fields": [ { - "name": "createdAt", + "name": "allowAnonymousResponses", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "Boolean" } } }, { - "name": "electionId", + "name": "allowWriteInResponses", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "Boolean" } } }, { - "name": "id", + "name": "createdAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "DateTime" } } }, { - "name": "issueTagIds", + "name": "embedId", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - } + "kind": "SCALAR", + "name": "ID" } }, { - "name": "issueTags", + "name": "id", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "IssueTagResult" - } - } + "kind": "SCALAR", + "name": "ID" } } }, { - "name": "notes", + "name": "name", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "JSON" - } + "kind": "SCALAR", + "name": "String" } }, { - "name": "organization", + "name": "options", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "OrganizationResult" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PollOptionResult" + } + } } } }, { - "name": "organizationId", + "name": "prompt", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "String" } } }, { - "name": "politician", + "name": "submissionCountByDate", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "PoliticianResult" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "SubmissionCountByDateResult" + } + } } } }, { - "name": "politicianId", + "name": "submissions", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "ID" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PollSubmissionResult" + } + } } } }, @@ -6816,57 +6632,63 @@ "interfaces": [] }, { - "name": "OrganizationResult", + "name": "PollSubmissionResult", "kind": "OBJECT", "fields": [ { - "name": "assets", + "name": "createdAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "OrganizationAssets" + "kind": "SCALAR", + "name": "DateTime" } } }, { - "name": "attributes", + "name": "id", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "OrganizationAttributes" + "kind": "SCALAR", + "name": "ID" } } }, { - "name": "description", + "name": "option", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "OBJECT", + "name": "PollOptionResult" } }, { - "name": "email", + "name": "poll", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PollResult" + } } }, { - "name": "facebookUrl", + "name": "pollId", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } } }, { - "name": "headquartersAddressId", + "name": "pollOptionId", "args": [], "type": { "kind": "SCALAR", @@ -6874,79 +6696,135 @@ } }, { - "name": "headquartersPhone", + "name": "respondent", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "OBJECT", + "name": "RespondentResult" } }, { - "name": "id", + "name": "respondentId", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" + "kind": "SCALAR", + "name": "ID" + } + }, + { + "name": "updatedAt", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" } } }, { - "name": "instagramUrl", + "name": "writeInResponse", "args": [], "type": { "kind": "SCALAR", "name": "String" } + } + ], + "interfaces": [] + }, + { + "name": "PopularitySort", + "kind": "ENUM", + "enumValues": [ + { + "name": "MOST_OPPOSED" }, { - "name": "issueTags", + "name": "MOST_POPULAR" + }, + { + "name": "MOST_SUPPORTED" + } + ] + }, + { + "name": "Progress", + "kind": "OBJECT", + "fields": [ + { + "name": "date", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "IssueTagResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "members", + "name": "event", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OrganizationMemberResult" - } - } + "kind": "SCALAR", + "name": "Int" } } + } + ], + "interfaces": [] + }, + { + "name": "PublicVotes", + "kind": "OBJECT", + "fields": [ + { + "name": "neutral", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int" + } }, { - "name": "name", + "name": "oppose", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int" + } + }, + { + "name": "support", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int" + } + } + ], + "interfaces": [] + }, + { + "name": "QuestionResult", + "kind": "OBJECT", + "fields": [ + { + "name": "allowAnonymousResponses", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Boolean" } } }, { - "name": "pendingInvites", + "name": "commonWords", "args": [], "type": { "kind": "NON_NULL", @@ -6956,27 +6834,37 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "PendingInviteResult" + "name": "CommonWordsResult" } } } } }, { - "name": "politicianNotes", - "args": [ - { - "name": "electionId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - }, - "defaultValue": null + "name": "createdAt", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" } - ], + } + }, + { + "name": "id", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + } + }, + { + "name": "issueTags", + "args": [], "type": { "kind": "NON_NULL", "ofType": { @@ -6985,14 +6873,14 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "OrganizationPoliticianNoteResult" + "name": "IssueTagResult" } } } } }, { - "name": "slug", + "name": "prompt", "args": [], "type": { "kind": "NON_NULL", @@ -7003,57 +6891,87 @@ } }, { - "name": "taxClassification", + "name": "responseCharLimit", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "Int" } }, { - "name": "thumbnailImageUrl", + "name": "responsePlaceholderText", "args": [], "type": { "kind": "SCALAR", "name": "String" - }, - "deprecationReason": "Use `assets.thumbnailImage160` instead" + } }, { - "name": "twitterUrl", + "name": "sentimentCounts", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "SentimentCountResult" + } + } + } } }, { - "name": "votesmartSigId", + "name": "submissionCountByDate", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "SubmissionCountByDateResult" + } + } + } } }, { - "name": "websiteUrl", + "name": "submissions", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "QuestionSubmissionResult" + } + } + } } - } - ], - "interfaces": [] - }, - { - "name": "OrganizationResultConnection", - "kind": "OBJECT", - "fields": [ + }, { - "name": "edges", - "description": "A list of edges.", - "args": [], + "name": "submissionsByCandidateId", + "args": [ + { + "name": "candidateId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "ofType": { @@ -7062,16 +6980,27 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "OrganizationResultEdge" + "name": "QuestionSubmissionResult" } } } } }, { - "name": "nodes", - "description": "A list of nodes.", - "args": [], + "name": "submissionsByRace", + "args": [ + { + "name": "raceId", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } + }, + "defaultValue": null + } + ], "type": { "kind": "NON_NULL", "ofType": { @@ -7080,33 +7009,28 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "OrganizationResult" + "name": "QuestionSubmissionResult" } } } } }, { - "name": "pageInfo", - "description": "Information to aid in pagination.", + "name": "translations", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PageInfo" - } + "kind": "SCALAR", + "name": "JSON" } }, { - "name": "totalCount", - "description": "Total result set count", + "name": "updatedAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Int" + "name": "DateTime" } } } @@ -7114,106 +7038,39 @@ "interfaces": [] }, { - "name": "OrganizationResultEdge", - "description": "An edge in a connection.", + "name": "QuestionSubmissionResult", "kind": "OBJECT", "fields": [ { - "name": "cursor", - "description": "A cursor for use in pagination", + "name": "candidateGuideEmbed", + "description": "Returns the candidate guide embed associated with the question submission.", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "OBJECT", + "name": "EmbedResult" } }, { - "name": "node", - "description": "The item at the end of the edge", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OrganizationResult" - } - } - } - ], - "interfaces": [] - }, - { - "name": "OrganizationRole", - "kind": "OBJECT", - "fields": [ - { - "name": "organizationId", + "name": "candidateId", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } + "kind": "SCALAR", + "name": "ID" } }, { - "name": "role", + "name": "createdAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "ENUM", - "name": "OrganizationRoleType" + "kind": "SCALAR", + "name": "DateTime" } } - } - ], - "interfaces": [] - }, - { - "name": "OrganizationRoleType", - "kind": "ENUM", - "enumValues": [ - { - "name": "ADMIN" }, { - "name": "MEMBER" - }, - { - "name": "OWNER" - }, - { - "name": "READ_ONLY" - } - ] - }, - { - "name": "OrganizationSearch", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "name", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "PageInfo", - "description": "Information about pagination in a connection", - "kind": "OBJECT", - "fields": [ - { - "name": "endCursor", - "description": "When paginating forwards, the cursor to continue.", + "name": "editorial", "args": [], "type": { "kind": "SCALAR", @@ -7221,128 +7078,97 @@ } }, { - "name": "hasNextPage", - "description": "When paginating forwards, are there more items?", + "name": "id", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Boolean" + "name": "ID" } } }, { - "name": "hasPreviousPage", - "description": "When paginating backwards, are there more items?", + "name": "politician", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } + "kind": "OBJECT", + "name": "PoliticianResult" } }, { - "name": "startCursor", - "description": "When paginating backwards, the cursor to continue.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - } - ], - "interfaces": [] - }, - { - "name": "PasswordEntropyResult", - "kind": "OBJECT", - "fields": [ - { - "name": "message", + "name": "question", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "QuestionResult" + } } }, { - "name": "score", + "name": "questionId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Int" + "name": "ID" } } }, { - "name": "valid", + "name": "respondent", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } + "kind": "OBJECT", + "name": "RespondentResult" } - } - ], - "interfaces": [] - }, - { - "name": "PendingInviteResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "acceptedAt", + "name": "respondentId", "args": [], "type": { "kind": "SCALAR", - "name": "DateTime" + "name": "ID" } }, { - "name": "createdAt", + "name": "response", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "String" } } }, { - "name": "email", + "name": "sentiment", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "ENUM", + "name": "Sentiment" } }, { - "name": "role", + "name": "translations", "args": [], "type": { - "kind": "ENUM", - "name": "OrganizationRoleType" + "kind": "SCALAR", + "name": "JSON" } }, { - "name": "token", + "name": "updatedAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "DateTime" } } } @@ -7350,198 +7176,192 @@ "interfaces": [] }, { - "name": "PingEmbedOriginInput", + "name": "QuestionSubmissionsFilter", "kind": "INPUT_OBJECT", "inputFields": [ { - "name": "embedId", + "name": "county", "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } + "kind": "SCALAR", + "name": "String" }, "defaultValue": null }, { - "name": "url", + "name": "politicalScope", "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "ENUM", + "name": "PoliticalScope" }, "defaultValue": null - } - ] - }, - { - "name": "PoliticalParty", - "kind": "OBJECT", - "fields": [ + }, { - "name": "description", - "args": [], + "name": "query", "type": { "kind": "SCALAR", "name": "String" - } + }, + "defaultValue": null }, { - "name": "fecCode", - "args": [], + "name": "raceType", "type": { - "kind": "SCALAR", - "name": "String" - } + "kind": "ENUM", + "name": "RaceType" + }, + "defaultValue": null }, { - "name": "id", - "args": [], + "name": "state", "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, + "kind": "ENUM", + "name": "State" + }, + "defaultValue": null + } + ] + }, + { + "name": "RaceCandidateResult", + "kind": "OBJECT", + "fields": [ { - "name": "name", + "name": "candidateId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "ID" } } }, { - "name": "notes", + "name": "votePercentage", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "Float" } }, { - "name": "slug", + "name": "votes", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } + "kind": "SCALAR", + "name": "Int" } } ], "interfaces": [] }, { - "name": "PoliticalScope", - "kind": "ENUM", - "enumValues": [ + "name": "RaceFilter", + "kind": "INPUT_OBJECT", + "inputFields": [ { - "name": "FEDERAL" + "name": "electionId", + "type": { + "kind": "SCALAR", + "name": "UUID" + }, + "defaultValue": null }, { - "name": "LOCAL" + "name": "electionScope", + "type": { + "kind": "ENUM", + "name": "ElectionScope" + }, + "defaultValue": null }, { - "name": "STATE" - } - ] - }, - { - "name": "PoliticianAssets", - "kind": "OBJECT", - "fields": [ + "name": "officeTitles", + "type": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } + }, + "defaultValue": null + }, { - "name": "thumbnailImage160", - "args": [], + "name": "politicalScope", "type": { - "kind": "SCALAR", - "name": "String" - } + "kind": "ENUM", + "name": "PoliticalScope" + }, + "defaultValue": null }, { - "name": "thumbnailImage400", - "args": [], + "name": "query", "type": { "kind": "SCALAR", "name": "String" - } - } - ], - "interfaces": [] - }, - { - "name": "PoliticianFilter", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "chambers", - "type": { - "kind": "ENUM", - "name": "Chambers" }, "defaultValue": null }, { - "name": "homeState", + "name": "raceType", "type": { "kind": "ENUM", - "name": "State" + "name": "RaceType" }, "defaultValue": null }, { - "name": "politicalScope", + "name": "state", "type": { "kind": "ENUM", - "name": "PoliticalScope" + "name": "State" }, "defaultValue": null }, { - "name": "query", + "name": "year", "type": { "kind": "SCALAR", - "name": "String" + "name": "Int" }, "defaultValue": null } ] }, { - "name": "PoliticianResult", + "name": "RaceResult", "kind": "OBJECT", "fields": [ { - "name": "age", + "name": "ballotpediaLink", "args": [], "type": { "kind": "SCALAR", - "name": "Int" + "name": "String" } }, { - "name": "assets", + "name": "candidates", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "PoliticianAssets" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianResult" + } + } } } }, { - "name": "biography", + "name": "description", "args": [], "type": { "kind": "SCALAR", @@ -7549,82 +7369,94 @@ } }, { - "name": "biographySource", + "name": "earlyVotingBeginsDate", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "NaiveDate" } }, { - "name": "campaignWebsiteUrl", + "name": "election", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "ElectionResult" + } } }, { - "name": "crpCandidateId", + "name": "electionDate", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "NaiveDate" } }, { - "name": "currentOffice", + "name": "electionId", "args": [], "type": { - "kind": "OBJECT", - "name": "OfficeResult" + "kind": "SCALAR", + "name": "ID" } }, { - "name": "dateOfBirth", + "name": "id", "args": [], "type": { - "kind": "SCALAR", - "name": "NaiveDate" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "ID" + } } }, { - "name": "donationsByIndustry", + "name": "isSpecialElection", "args": [], "type": { - "kind": "OBJECT", - "name": "DonationsByIndustry" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Boolean" + } } }, { - "name": "donationsSummary", + "name": "numElect", "args": [], "type": { - "kind": "OBJECT", - "name": "DonationsSummary" + "kind": "SCALAR", + "name": "Int" } }, { - "name": "email", + "name": "office", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "OfficeResult" + } } }, { - "name": "endorsements", + "name": "officeId", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "Endorsements" + "kind": "SCALAR", + "name": "ID" } } }, { - "name": "facebookUrl", + "name": "officialWebsite", "args": [], "type": { "kind": "SCALAR", @@ -7632,26 +7464,62 @@ } }, { - "name": "fecCandidateId", + "name": "party", + "args": [], + "type": { + "kind": "OBJECT", + "name": "PoliticalParty" + } + }, + { + "name": "partyId", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "ID" } }, { - "name": "firstName", + "name": "raceType", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "ENUM", + "name": "RaceType" } } }, { - "name": "fullName", + "name": "relatedEmbeds", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "EmbedResult" + } + } + } + } + }, + { + "name": "results", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RaceResultsResult" + } + } + }, + { + "name": "slug", "args": [], "type": { "kind": "NON_NULL", @@ -7662,7 +7530,7 @@ } }, { - "name": "homeState", + "name": "state", "args": [], "type": { "kind": "ENUM", @@ -7670,26 +7538,37 @@ } }, { - "name": "id", + "name": "title", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "String" } } }, { - "name": "instagramUrl", + "name": "voteType", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "ENUM", + "name": "VoteType" + } } - }, + } + ], + "interfaces": [] + }, + { + "name": "RaceResultConnection", + "kind": "OBJECT", + "fields": [ { - "name": "issueTags", + "name": "edges", + "description": "A list of edges.", "args": [], "type": { "kind": "NON_NULL", @@ -7699,335 +7578,389 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "IssueTagResult" + "name": "RaceResultEdge" } } } } }, { - "name": "lastName", + "name": "nodes", + "description": "A list of nodes.", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RaceResult" + } + } } } }, { - "name": "legiscanPeopleId", + "name": "pageInfo", + "description": "Information to aid in pagination.", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" - } - }, - { - "name": "linkedinUrl", + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo" + } + } + }, + { + "name": "totalCount", + "description": "Total result set count", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } - }, + } + ], + "interfaces": [] + }, + { + "name": "RaceResultEdge", + "description": "An edge in a connection.", + "kind": "OBJECT", + "fields": [ { - "name": "middleName", + "name": "cursor", + "description": "A cursor for use in pagination", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "officeId", + "name": "node", + "description": "The item at the end of the edge", "args": [], "type": { - "kind": "SCALAR", - "name": "ID" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RaceResult" + } } - }, + } + ], + "interfaces": [] + }, + { + "name": "RaceResultsResult", + "kind": "OBJECT", + "fields": [ { - "name": "officialWebsiteUrl", + "name": "numPrecinctsReporting", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "Int" } }, { - "name": "party", + "name": "precinctReportingPercentage", "args": [], "type": { - "kind": "OBJECT", - "name": "PoliticalParty" + "kind": "SCALAR", + "name": "Float" } }, { - "name": "partyId", + "name": "totalPrecincts", "args": [], "type": { "kind": "SCALAR", - "name": "ID" + "name": "Int" } }, { - "name": "phone", + "name": "totalVotes", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "Int" } }, { - "name": "preferredName", + "name": "votesByCandidate", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RaceCandidateResult" + } + } + } } }, { - "name": "raceLosses", + "name": "winners", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PoliticianResult" + } + } } + } + ], + "interfaces": [] + }, + { + "name": "RaceType", + "kind": "ENUM", + "enumValues": [ + { + "name": "GENERAL" }, { - "name": "raceWins", + "name": "PRIMARY" + } + ] + }, + { + "name": "RatingResult", + "kind": "OBJECT", + "fields": [ + { + "name": "organization", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "OBJECT", + "name": "OrganizationResult" } }, { - "name": "ratings", - "description": "Leverages Votesmart ratings data for the time being", - "args": [ - { - "name": "after", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "before", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "first", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "last", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - } - ], + "name": "vsRating", + "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "RatingResultConnection" + "name": "VsRating" } } - }, + } + ], + "interfaces": [] + }, + { + "name": "RatingResultConnection", + "kind": "OBJECT", + "fields": [ { - "name": "slug", + "name": "edges", + "description": "A list of edges.", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RatingResultEdge" + } + } } } }, { - "name": "sponsoredBills", - "args": [ - { - "name": "after", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "before", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "first", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "last", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - } - ], + "name": "nodes", + "description": "A list of nodes.", + "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "BillResultConnection" + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RatingResult" + } + } } } }, { - "name": "suffix", + "name": "pageInfo", + "description": "Information to aid in pagination.", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "PageInfo" + } } }, { - "name": "thumbnailImageUrl", + "name": "totalCount", + "description": "Total result set count", "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "deprecationReason": "Use `assets.thumbnailImage160` instead" - }, - { - "name": "tiktokUrl", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } - }, + } + ], + "interfaces": [] + }, + { + "name": "RatingResultEdge", + "description": "An edge in a connection.", + "kind": "OBJECT", + "fields": [ { - "name": "twitterUrl", + "name": "cursor", + "description": "A cursor for use in pagination", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "upcomingRace", + "name": "node", + "description": "The item at the end of the edge", "args": [], "type": { - "kind": "OBJECT", - "name": "RaceResult" + "kind": "NON_NULL", + "ofType": { + "kind": "OBJECT", + "name": "RatingResult" + } } - }, + } + ], + "interfaces": [] + }, + { + "name": "Referral", + "kind": "OBJECT", + "fields": [ { - "name": "upcomingRaceId", + "name": "chamber", "args": [], "type": { - "kind": "SCALAR", - "name": "ID" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "votes", - "args": [ - { - "name": "raceId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - }, - "defaultValue": null - } - ], + "name": "chamberId", + "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } }, { - "name": "votesmartCandidateBio", + "name": "committeeId", "args": [], "type": { - "kind": "OBJECT", - "name": "GetCandidateBioResponse" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } }, { - "name": "votesmartCandidateId", + "name": "date", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "votesmartCandidateRatings", + "name": "name", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "VsRating" - } - } + "kind": "SCALAR", + "name": "String" } } - }, + } + ], + "interfaces": [] + }, + { + "name": "RespondentResult", + "kind": "OBJECT", + "fields": [ { - "name": "yearsInPublicOffice", - "description": "Calculates the total years a politician has been in office using\nthe votesmart politicial experience array. Does not take into account\nobjects where the politician is considered a 'candidate'", + "name": "email", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "youtubeUrl", + "name": "name", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } } ], "interfaces": [] }, { - "name": "PoliticianResultConnection", + "name": "RespondentResultConnection", "kind": "OBJECT", "fields": [ { @@ -8042,7 +7975,7 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "PoliticianResultEdge" + "name": "RespondentResultEdge" } } } @@ -8060,7 +7993,7 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "PoliticianResult" + "name": "RespondentResult" } } } @@ -8094,7 +8027,7 @@ "interfaces": [] }, { - "name": "PoliticianResultEdge", + "name": "RespondentResultEdge", "description": "An edge in a connection.", "kind": "OBJECT", "fields": [ @@ -8118,7 +8051,7 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "PoliticianResult" + "name": "RespondentResult" } } } @@ -8126,33 +8059,33 @@ "interfaces": [] }, { - "name": "PollOptionResult", + "name": "RollCall", "kind": "OBJECT", "fields": [ { - "name": "createdAt", + "name": "absent", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "Int" } } }, { - "name": "id", + "name": "billId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "Int" } } }, { - "name": "optionText", + "name": "chamber", "args": [], "type": { "kind": "NON_NULL", @@ -8163,96 +8096,95 @@ } }, { - "name": "pollId", + "name": "chamberId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "Int" } } }, { - "name": "updatedAt", + "name": "date", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "String" } } - } - ], - "interfaces": [] - }, - { - "name": "PollResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "allowAnonymousResponses", + "name": "desc", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Boolean" + "name": "String" } } }, { - "name": "allowWriteInResponses", + "name": "nay", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Boolean" + "name": "Int" } } }, { - "name": "createdAt", + "name": "nv", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "Int" } } }, { - "name": "embedId", + "name": "passed", "args": [], "type": { - "kind": "SCALAR", - "name": "ID" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } }, { - "name": "id", + "name": "rollCallId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "Int" } } }, { - "name": "name", + "name": "total", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } }, { - "name": "options", + "name": "votes", "args": [], "type": { "kind": "NON_NULL", @@ -8262,65 +8194,60 @@ "kind": "NON_NULL", "ofType": { "kind": "OBJECT", - "name": "PollOptionResult" + "name": "RollCallVote" } } } } }, { - "name": "prompt", + "name": "yea", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Int" } } - }, + } + ], + "interfaces": [] + }, + { + "name": "RollCallVote", + "kind": "OBJECT", + "fields": [ { - "name": "submissionCountByDate", + "name": "peopleId", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "SubmissionCountByDateResult" - } - } + "kind": "SCALAR", + "name": "Int" } } }, { - "name": "submissions", + "name": "voteId", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PollSubmissionResult" - } - } + "kind": "SCALAR", + "name": "Int" } } }, { - "name": "updatedAt", + "name": "voteText", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "String" } } } @@ -8328,145 +8255,159 @@ "interfaces": [] }, { - "name": "PollSubmissionResult", + "name": "Sast", "kind": "OBJECT", "fields": [ { - "name": "createdAt", + "name": "sastBillId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "Int" } } }, { - "name": "id", + "name": "sastBillNumber", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "String" } } }, { - "name": "option", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PollOptionResult" - } - }, - { - "name": "poll", + "name": "typeField", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "PollResult" + "kind": "SCALAR", + "name": "String" } } }, { - "name": "pollId", + "name": "typeId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "Int" } } - }, + } + ], + "interfaces": [] + }, + { + "name": "Sector", + "kind": "OBJECT", + "fields": [ { - "name": "pollOptionId", + "name": "id", "args": [], "type": { - "kind": "SCALAR", - "name": "ID" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "respondent", + "name": "individuals", "args": [], "type": { - "kind": "OBJECT", - "name": "RespondentResult" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } }, { - "name": "respondentId", + "name": "name", "args": [], "type": { - "kind": "SCALAR", - "name": "ID" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "updatedAt", + "name": "pacs", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "Int" } } }, { - "name": "writeInResponse", + "name": "total", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } } } ], "interfaces": [] }, { - "name": "PopularitySort", + "name": "Sentiment", "kind": "ENUM", "enumValues": [ { - "name": "MOST_OPPOSED" + "name": "NEGATIVE" }, { - "name": "MOST_POPULAR" + "name": "NEUTRAL" }, { - "name": "MOST_SUPPORTED" + "name": "POSITIVE" + }, + { + "name": "UNKNOWN" } ] }, { - "name": "Progress", + "name": "SentimentCountResult", "kind": "OBJECT", "fields": [ { - "name": "date", + "name": "count", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "Int" } } }, { - "name": "event", + "name": "sentiment", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "Int" + "kind": "ENUM", + "name": "Sentiment" } } } @@ -8474,109 +8415,141 @@ "interfaces": [] }, { - "name": "PublicVotes", + "name": "SessionResult", "kind": "OBJECT", "fields": [ { - "name": "neutral", + "name": "congressName", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "oppose", + "name": "description", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } + }, + { + "name": "endDate", "args": [], "type": { "kind": "SCALAR", - "name": "Int" + "name": "NaiveDate" } }, { - "name": "support", + "name": "name", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } + }, + { + "name": "startDate", "args": [], "type": { "kind": "SCALAR", - "name": "Int" + "name": "NaiveDate" + } + }, + { + "name": "state", + "args": [], + "type": { + "kind": "ENUM", + "name": "State" } } ], "interfaces": [] }, { - "name": "QuestionResult", + "name": "Sponsor", "kind": "OBJECT", "fields": [ { - "name": "allowAnonymousResponses", + "name": "ballotpedia", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Boolean" + "name": "String" } } }, { - "name": "commonWords", + "name": "committeeId", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "CommonWordsResult" - } - } + "kind": "SCALAR", + "name": "JSON" } } }, { - "name": "createdAt", + "name": "committeeSponsor", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "Int" } } }, { - "name": "id", + "name": "district", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "String" } } }, { - "name": "issueTags", + "name": "firstName", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "IssueTagResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "prompt", + "name": "ftmEid", + "args": [], + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } + } + }, + { + "name": "lastName", "args": [], "type": { "kind": "NON_NULL", @@ -8587,251 +8560,139 @@ } }, { - "name": "responseCharLimit", + "name": "middleName", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "responsePlaceholderText", + "name": "name", "args": [], "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } } }, { - "name": "sentimentCounts", + "name": "nickname", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "SentimentCountResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "submissionCountByDate", + "name": "opensecretsId", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "SubmissionCountByDateResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "submissions", + "name": "party", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "QuestionSubmissionResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "submissionsByCandidateId", - "args": [ - { - "name": "candidateId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - }, - "defaultValue": null - } - ], + "name": "partyId", + "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "QuestionSubmissionResult" - } - } + "kind": "SCALAR", + "name": "JSON" } } }, { - "name": "submissionsByRace", - "args": [ - { - "name": "raceId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - }, - "defaultValue": null - } - ], + "name": "peopleId", + "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "QuestionSubmissionResult" - } - } + "kind": "SCALAR", + "name": "Int" } } }, { - "name": "translations", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSON" - } - }, - { - "name": "updatedAt", + "name": "personHash", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "String" } } - } - ], - "interfaces": [] - }, - { - "name": "QuestionSubmissionResult", - "kind": "OBJECT", - "fields": [ - { - "name": "candidateGuideEmbed", - "description": "Returns the candidate guide embed associated with the question submission.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "EmbedResult" - } - }, - { - "name": "candidateId", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID" - } }, { - "name": "createdAt", + "name": "role", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "String" } } }, { - "name": "editorial", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "id", + "name": "roleId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "Int" } } }, { - "name": "politician", - "args": [], - "type": { - "kind": "OBJECT", - "name": "PoliticianResult" - } - }, - { - "name": "question", + "name": "sponsorOrder", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "QuestionResult" + "kind": "SCALAR", + "name": "Int" } } }, { - "name": "questionId", + "name": "sponsorTypeId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "Int" } } }, { - "name": "respondent", - "args": [], - "type": { - "kind": "OBJECT", - "name": "RespondentResult" - } - }, - { - "name": "respondentId", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID" - } - }, - { - "name": "response", + "name": "suffix", "args": [], "type": { "kind": "NON_NULL", @@ -8842,29 +8703,13 @@ } }, { - "name": "sentiment", - "args": [], - "type": { - "kind": "ENUM", - "name": "Sentiment" - } - }, - { - "name": "translations", - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSON" - } - }, - { - "name": "updatedAt", + "name": "votesmartId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "DateTime" + "name": "Int" } } } @@ -8872,303 +8717,321 @@ "interfaces": [] }, { - "name": "QuestionSubmissionsFilter", - "kind": "INPUT_OBJECT", - "inputFields": [ + "name": "State", + "kind": "ENUM", + "enumValues": [ { - "name": "county", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "name": "AK" }, { - "name": "politicalScope", - "type": { - "kind": "ENUM", - "name": "PoliticalScope" - }, - "defaultValue": null + "name": "AL" }, { - "name": "query", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "name": "AR" }, { - "name": "raceType", - "type": { - "kind": "ENUM", - "name": "RaceType" - }, - "defaultValue": null + "name": "AS" }, { - "name": "state", - "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null - } - ] - }, - { - "name": "RaceCandidateResult", - "kind": "OBJECT", - "fields": [ + "name": "AZ" + }, { - "name": "candidateId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } + "name": "CA" }, { - "name": "votePercentage", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Float" - } + "name": "CO" }, { - "name": "votes", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int" - } - } - ], - "interfaces": [] - }, - { - "name": "RaceFilter", - "kind": "INPUT_OBJECT", - "inputFields": [ + "name": "CT" + }, { - "name": "electionId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null + "name": "DC" }, { - "name": "electionScope", - "type": { - "kind": "ENUM", - "name": "ElectionScope" - }, - "defaultValue": null + "name": "DE" }, { - "name": "officeTitles", - "type": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - "defaultValue": null + "name": "FL" }, { - "name": "politicalScope", - "type": { - "kind": "ENUM", - "name": "PoliticalScope" - }, - "defaultValue": null + "name": "FM" }, { - "name": "query", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "name": "GA" }, { - "name": "raceType", - "type": { - "kind": "ENUM", - "name": "RaceType" - }, - "defaultValue": null + "name": "GU" }, { - "name": "state", - "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null + "name": "HI" }, { - "name": "year", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null + "name": "IA" + }, + { + "name": "ID" + }, + { + "name": "IL" + }, + { + "name": "IN" + }, + { + "name": "KS" + }, + { + "name": "KY" + }, + { + "name": "LA" + }, + { + "name": "MA" + }, + { + "name": "MD" + }, + { + "name": "ME" + }, + { + "name": "MH" + }, + { + "name": "MI" + }, + { + "name": "MN" + }, + { + "name": "MO" + }, + { + "name": "MP" + }, + { + "name": "MS" + }, + { + "name": "MT" + }, + { + "name": "NC" + }, + { + "name": "ND" + }, + { + "name": "NE" + }, + { + "name": "NH" + }, + { + "name": "NJ" + }, + { + "name": "NM" + }, + { + "name": "NV" + }, + { + "name": "NY" + }, + { + "name": "OH" + }, + { + "name": "OK" + }, + { + "name": "OR" + }, + { + "name": "PA" + }, + { + "name": "PR" + }, + { + "name": "PW" + }, + { + "name": "RI" + }, + { + "name": "SC" + }, + { + "name": "SD" + }, + { + "name": "TN" + }, + { + "name": "TX" + }, + { + "name": "UT" + }, + { + "name": "VA" + }, + { + "name": "VI" + }, + { + "name": "VT" + }, + { + "name": "WA" + }, + { + "name": "WI" + }, + { + "name": "WV" + }, + { + "name": "WY" } ] }, { - "name": "RaceResult", + "name": "Statement", "kind": "OBJECT", "fields": [ { - "name": "ballotpediaLink", + "name": "authorId", "args": [], "type": { "kind": "SCALAR", - "name": "String" + "name": "UUID" } }, { - "name": "candidates", + "name": "content", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PoliticianResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "description", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "earlyVotingBeginsDate", - "args": [], - "type": { - "kind": "SCALAR", - "name": "NaiveDate" - } - }, - { - "name": "election", + "name": "conversationId", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "ElectionResult" + "kind": "SCALAR", + "name": "UUID" } } }, { - "name": "electionDate", - "args": [], - "type": { - "kind": "SCALAR", - "name": "NaiveDate" - } - }, - { - "name": "electionId", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID" - } - }, - { - "name": "id", + "name": "createdAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "DateTime" } } }, { - "name": "isSpecialElection", + "name": "id", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "Boolean" + "name": "UUID" } } }, { - "name": "numElect", - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int" - } - }, - { - "name": "office", + "name": "moderationStatus", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "OfficeResult" + "kind": "ENUM", + "name": "StatementModerationStatus" } } }, { - "name": "officeId", + "name": "updatedAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "DateTime" } } - }, + } + ], + "interfaces": [] + }, + { + "name": "StatementFilter", + "kind": "INPUT_OBJECT", + "inputFields": [ { - "name": "officialWebsite", - "args": [], + "name": "moderationStatuses", "type": { - "kind": "SCALAR", - "name": "String" - } + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "ENUM", + "name": "StatementModerationStatus" + } + } + }, + "defaultValue": null + } + ] + }, + { + "name": "StatementModerationStatus", + "kind": "ENUM", + "enumValues": [ + { + "name": "ACCEPTED" }, { - "name": "party", + "name": "REJECTED" + }, + { + "name": "SEED" + }, + { + "name": "UNMODERATED" + } + ] + }, + { + "name": "StatementResult", + "kind": "OBJECT", + "fields": [ + { + "name": "author", "args": [], "type": { "kind": "OBJECT", - "name": "PoliticalParty" + "name": "UserResult" } }, { - "name": "partyId", + "name": "authorId", "args": [], "type": { "kind": "SCALAR", @@ -9176,143 +9039,106 @@ } }, { - "name": "raceType", + "name": "content", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "ENUM", - "name": "RaceType" + "kind": "SCALAR", + "name": "String" } } }, { - "name": "relatedEmbeds", + "name": "conversationId", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "EmbedResult" - } - } + "kind": "SCALAR", + "name": "ID" } } }, { - "name": "results", + "name": "createdAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "RaceResultsResult" + "kind": "SCALAR", + "name": "DateTime" } } }, { - "name": "slug", + "name": "id", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "ID" } } }, { - "name": "state", - "args": [], - "type": { - "kind": "ENUM", - "name": "State" - } - }, - { - "name": "title", + "name": "moderationStatus", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "String" + "kind": "ENUM", + "name": "StatementModerationStatus" } } }, { - "name": "voteType", + "name": "neutralVotes", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "ENUM", - "name": "VoteType" + "kind": "SCALAR", + "name": "Int" } } - } - ], - "interfaces": [] - }, - { - "name": "RaceResultConnection", - "kind": "OBJECT", - "fields": [ + }, { - "name": "edges", - "description": "A list of edges.", + "name": "opposeVotes", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RaceResultEdge" - } - } + "kind": "SCALAR", + "name": "Int" } } }, { - "name": "nodes", - "description": "A list of nodes.", + "name": "percentVoted", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RaceResult" - } - } + "kind": "SCALAR", + "name": "Float" } } }, { - "name": "pageInfo", - "description": "Information to aid in pagination.", + "name": "supportVotes", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "PageInfo" + "kind": "SCALAR", + "name": "Int" } } }, { - "name": "totalCount", - "description": "Total result set count", + "name": "totalVotes", "args": [], "type": { "kind": "NON_NULL", @@ -9321,18 +9147,51 @@ "name": "Int" } } + }, + { + "name": "voteByUserOrSession", + "args": [ + { + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "ID" + }, + "defaultValue": null + } + ], + "type": { + "kind": "ENUM", + "name": "ArgumentPosition" + } } ], "interfaces": [] }, { - "name": "RaceResultEdge", - "description": "An edge in a connection.", + "name": "StatementSort", + "kind": "ENUM", + "enumValues": [ + { + "name": "CONTROVERSIAL" + }, + { + "name": "MOST_AGREE" + }, + { + "name": "MOST_VOTES" + }, + { + "name": "NEWEST" + } + ] + }, + { + "name": "StatementVote", "kind": "OBJECT", "fields": [ { - "name": "cursor", - "description": "A cursor for use in pagination", + "name": "content", "args": [], "type": { "kind": "NON_NULL", @@ -9343,122 +9202,73 @@ } }, { - "name": "node", - "description": "The item at the end of the edge", + "name": "createdAt", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "RaceResult" + "kind": "SCALAR", + "name": "DateTime" } } - } - ], - "interfaces": [] - }, - { - "name": "RaceResultsResult", - "kind": "OBJECT", - "fields": [ + }, { - "name": "numPrecinctsReporting", + "name": "id", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "UUID" + } } }, { - "name": "precinctReportingPercentage", + "name": "sessionId", "args": [], "type": { "kind": "SCALAR", - "name": "Float" + "name": "UUID" } }, { - "name": "totalPrecincts", + "name": "statementId", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "UUID" + } } }, { - "name": "totalVotes", + "name": "updatedAt", "args": [], "type": { - "kind": "SCALAR", - "name": "Int" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" + } } }, { - "name": "votesByCandidate", + "name": "userId", "args": [], "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RaceCandidateResult" - } - } - } + "kind": "SCALAR", + "name": "UUID" } }, { - "name": "winners", + "name": "voteType", "args": [], "type": { - "kind": "LIST", + "kind": "NON_NULL", "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PoliticianResult" - } - } - } - } - ], - "interfaces": [] - }, - { - "name": "RaceType", - "kind": "ENUM", - "enumValues": [ - { - "name": "GENERAL" - }, - { - "name": "PRIMARY" - } - ] - }, - { - "name": "RatingResult", - "kind": "OBJECT", - "fields": [ - { - "name": "organization", - "args": [], - "type": { - "kind": "OBJECT", - "name": "OrganizationResult" - } - }, - { - "name": "vsRating", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "VsRating" + "kind": "ENUM", + "name": "ArgumentPosition" } } } @@ -9466,60 +9276,11 @@ "interfaces": [] }, { - "name": "RatingResultConnection", + "name": "Subject", "kind": "OBJECT", "fields": [ { - "name": "edges", - "description": "A list of edges.", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RatingResultEdge" - } - } - } - } - }, - { - "name": "nodes", - "description": "A list of nodes.", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RatingResult" - } - } - } - } - }, - { - "name": "pageInfo", - "description": "Information to aid in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PageInfo" - } - } - }, - { - "name": "totalCount", - "description": "Total result set count", + "name": "subjectId", "args": [], "type": { "kind": "NON_NULL", @@ -9528,18 +9289,9 @@ "name": "Int" } } - } - ], - "interfaces": [] - }, - { - "name": "RatingResultEdge", - "description": "An edge in a connection.", - "kind": "OBJECT", - "fields": [ + }, { - "name": "cursor", - "description": "A cursor for use in pagination", + "name": "subjectName", "args": [], "type": { "kind": "NON_NULL", @@ -9548,50 +9300,16 @@ "name": "String" } } - }, - { - "name": "node", - "description": "The item at the end of the edge", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RatingResult" - } - } } ], "interfaces": [] }, { - "name": "Referral", + "name": "SubmissionCountByDateResult", "kind": "OBJECT", "fields": [ { - "name": "chamber", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "chamberId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "committeeId", + "name": "count", "args": [], "type": { "kind": "NON_NULL", @@ -9608,18 +9326,7 @@ "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "name", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" + "name": "DateTime" } } } @@ -9627,39 +9334,11 @@ "interfaces": [] }, { - "name": "ResetPasswordInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "newPassword", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - }, - { - "name": "resetToken", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - } - ] - }, - { - "name": "RespondentResult", + "name": "Text", "kind": "OBJECT", "fields": [ { - "name": "email", + "name": "date", "args": [], "type": { "kind": "NON_NULL", @@ -9670,3159 +9349,193 @@ } }, { - "name": "name", + "name": "docId", "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" - } - } - } - ], - "interfaces": [] - }, - { - "name": "RespondentResultConnection", - "kind": "OBJECT", - "fields": [ - { - "name": "edges", - "description": "A list of edges.", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RespondentResultEdge" - } - } + "name": "Int" } } }, { - "name": "nodes", - "description": "A list of nodes.", + "name": "mime", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RespondentResult" - } - } + "kind": "SCALAR", + "name": "String" } } }, { - "name": "pageInfo", - "description": "Information to aid in pagination.", + "name": "mimeId", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "OBJECT", - "name": "PageInfo" + "kind": "SCALAR", + "name": "Int" } } }, { - "name": "totalCount", - "description": "Total result set count", + "name": "stateLink", "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - } - ], - "interfaces": [] - }, - { - "name": "RespondentResultEdge", - "description": "An edge in a connection.", - "kind": "OBJECT", - "fields": [ - { - "name": "cursor", - "description": "A cursor for use in pagination", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "node", - "description": "The item at the end of the edge", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RespondentResult" - } - } - } - ], - "interfaces": [] - }, - { - "name": "RollCall", - "kind": "OBJECT", - "fields": [ - { - "name": "absent", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "billId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "chamber", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "chamberId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "date", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "desc", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "nay", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "nv", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "passed", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "rollCallId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "total", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "votes", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "RollCallVote" - } - } - } - } - }, - { - "name": "yea", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - } - ], - "interfaces": [] - }, - { - "name": "RollCallVote", - "kind": "OBJECT", - "fields": [ - { - "name": "peopleId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "voteId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "voteText", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "interfaces": [] - }, - { - "name": "Sast", - "kind": "OBJECT", - "fields": [ - { - "name": "sastBillId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "sastBillNumber", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "typeField", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "typeId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - } - ], - "interfaces": [] - }, - { - "name": "Sector", - "kind": "OBJECT", - "fields": [ - { - "name": "id", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "individuals", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "name", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "pacs", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "total", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - } - ], - "interfaces": [] - }, - { - "name": "Sentiment", - "kind": "ENUM", - "enumValues": [ - { - "name": "NEGATIVE" - }, - { - "name": "NEUTRAL" - }, - { - "name": "POSITIVE" - }, - { - "name": "UNKNOWN" - } - ] - }, - { - "name": "SentimentCountResult", - "kind": "OBJECT", - "fields": [ - { - "name": "count", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "sentiment", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "Sentiment" - } - } - } - ], - "interfaces": [] - }, - { - "name": "SessionResult", - "kind": "OBJECT", - "fields": [ - { - "name": "congressName", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "description", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "endDate", - "args": [], - "type": { - "kind": "SCALAR", - "name": "NaiveDate" - } - }, - { - "name": "name", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "startDate", - "args": [], - "type": { - "kind": "SCALAR", - "name": "NaiveDate" - } - }, - { - "name": "state", - "args": [], - "type": { - "kind": "ENUM", - "name": "State" - } - } - ], - "interfaces": [] - }, - { - "name": "Sponsor", - "kind": "OBJECT", - "fields": [ - { - "name": "ballotpedia", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "committeeId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "JSON" - } - } - }, - { - "name": "committeeSponsor", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "district", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "firstName", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "ftmEid", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "lastName", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "middleName", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "name", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "nickname", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "opensecretsId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "party", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "partyId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "JSON" - } - } - }, - { - "name": "peopleId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "personHash", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "role", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "roleId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "sponsorOrder", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "sponsorTypeId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "suffix", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "votesmartId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - } - ], - "interfaces": [] - }, - { - "name": "State", - "kind": "ENUM", - "enumValues": [ - { - "name": "AK" - }, - { - "name": "AL" - }, - { - "name": "AR" - }, - { - "name": "AS" - }, - { - "name": "AZ" - }, - { - "name": "CA" - }, - { - "name": "CO" - }, - { - "name": "CT" - }, - { - "name": "DC" - }, - { - "name": "DE" - }, - { - "name": "FL" - }, - { - "name": "FM" - }, - { - "name": "GA" - }, - { - "name": "GU" - }, - { - "name": "HI" - }, - { - "name": "IA" - }, - { - "name": "ID" - }, - { - "name": "IL" - }, - { - "name": "IN" - }, - { - "name": "KS" - }, - { - "name": "KY" - }, - { - "name": "LA" - }, - { - "name": "MA" - }, - { - "name": "MD" - }, - { - "name": "ME" - }, - { - "name": "MH" - }, - { - "name": "MI" - }, - { - "name": "MN" - }, - { - "name": "MO" - }, - { - "name": "MP" - }, - { - "name": "MS" - }, - { - "name": "MT" - }, - { - "name": "NC" - }, - { - "name": "ND" - }, - { - "name": "NE" - }, - { - "name": "NH" - }, - { - "name": "NJ" - }, - { - "name": "NM" - }, - { - "name": "NV" - }, - { - "name": "NY" - }, - { - "name": "OH" - }, - { - "name": "OK" - }, - { - "name": "OR" - }, - { - "name": "PA" - }, - { - "name": "PR" - }, - { - "name": "PW" - }, - { - "name": "RI" - }, - { - "name": "SC" - }, - { - "name": "SD" - }, - { - "name": "TN" - }, - { - "name": "TX" - }, - { - "name": "UT" - }, - { - "name": "VA" - }, - { - "name": "VI" - }, - { - "name": "VT" - }, - { - "name": "WA" - }, - { - "name": "WI" - }, - { - "name": "WV" - }, - { - "name": "WY" - } - ] - }, - { - "name": "Statement", - "kind": "OBJECT", - "fields": [ - { - "name": "authorId", - "args": [], - "type": { - "kind": "SCALAR", - "name": "UUID" - } - }, - { - "name": "content", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "conversationId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - } - }, - { - "name": "createdAt", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - }, - { - "name": "id", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - } - }, - { - "name": "moderationStatus", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "StatementModerationStatus" - } - } - }, - { - "name": "updatedAt", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - } - ], - "interfaces": [] - }, - { - "name": "StatementFilter", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "moderationStatuses", - "type": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "StatementModerationStatus" - } - } - }, - "defaultValue": null - } - ] - }, - { - "name": "StatementModerationStatus", - "kind": "ENUM", - "enumValues": [ - { - "name": "ACCEPTED" - }, - { - "name": "REJECTED" - }, - { - "name": "SEED" - }, - { - "name": "UNMODERATED" - } - ] - }, - { - "name": "StatementResult", - "kind": "OBJECT", - "fields": [ - { - "name": "author", - "args": [], - "type": { - "kind": "OBJECT", - "name": "UserResult" - } - }, - { - "name": "authorId", - "args": [], - "type": { - "kind": "SCALAR", - "name": "ID" - } - }, - { - "name": "content", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "conversationId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "createdAt", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - }, - { - "name": "id", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } - } - }, - { - "name": "moderationStatus", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "StatementModerationStatus" - } - } - }, - { - "name": "neutralVotes", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "opposeVotes", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "percentVoted", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Float" - } - } - }, - { - "name": "supportVotes", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "totalVotes", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "voteByUserOrSession", - "args": [ - { - "name": "userId", - "type": { - "kind": "SCALAR", - "name": "ID" - }, - "defaultValue": null - } - ], - "type": { - "kind": "ENUM", - "name": "ArgumentPosition" - } - } - ], - "interfaces": [] - }, - { - "name": "StatementSort", - "kind": "ENUM", - "enumValues": [ - { - "name": "CONTROVERSIAL" - }, - { - "name": "MOST_AGREE" - }, - { - "name": "MOST_VOTES" - }, - { - "name": "NEWEST" - } - ] - }, - { - "name": "StatementVote", - "kind": "OBJECT", - "fields": [ - { - "name": "content", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "createdAt", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - }, - { - "name": "id", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - } - }, - { - "name": "sessionId", - "args": [], - "type": { - "kind": "SCALAR", - "name": "UUID" - } - }, - { - "name": "statementId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - } - }, - { - "name": "updatedAt", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - }, - { - "name": "userId", - "args": [], - "type": { - "kind": "SCALAR", - "name": "UUID" - } - }, - { - "name": "voteType", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "ArgumentPosition" - } - } - } - ], - "interfaces": [] - }, - { - "name": "Subject", - "kind": "OBJECT", - "fields": [ - { - "name": "subjectId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "subjectName", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "interfaces": [] - }, - { - "name": "SubmissionCountByDateResult", - "kind": "OBJECT", - "fields": [ - { - "name": "count", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "date", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - } - ], - "interfaces": [] - }, - { - "name": "SystemRoleType", - "kind": "ENUM", - "enumValues": [ - { - "name": "STAFF" - }, - { - "name": "SUPERUSER" - }, - { - "name": "USER" - } - ] - }, - { - "name": "Text", - "kind": "OBJECT", - "fields": [ - { - "name": "date", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "docId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "mime", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "mimeId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "stateLink", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "textSize", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "typeField", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "typeId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "url", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "interfaces": [] - }, - { - "name": "TimeSeriesPoint", - "kind": "OBJECT", - "fields": [ - { - "name": "count", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Int" - } - } - }, - { - "name": "timestamp", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - } - ], - "interfaces": [] - }, - { - "name": "UUID", - "description": "A UUID is a unique 128-bit number, stored as 16 octets. UUIDs are parsed as\nStrings within GraphQL. UUIDs are used to assign unique identifiers to\nentities without requiring a central allocating authority.\n\n# References\n\n* [Wikipedia: Universally Unique Identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier)\n* [RFC4122: A Universally Unique IDentifier (UUID) URN Namespace](http://tools.ietf.org/html/rfc4122)", - "kind": "SCALAR" - }, - { - "name": "UpdateArgumentInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "body", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "position", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "ArgumentPosition" - } - }, - "defaultValue": null - }, - { - "name": "title", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpdateCandidateGuideRaceInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "wereCandidatesEmailed", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - }, - "defaultValue": null - } - ] - }, - { - "name": "UpdateCandidateGuideRaceResult", - "kind": "OBJECT", - "fields": [ - { - "name": "createdAt", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - }, - { - "name": "updatedAt", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "DateTime" - } - } - }, - { - "name": "wereCandidatesEmailed", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "Boolean" - } - } - } - ], - "interfaces": [] - }, - { - "name": "UpdateEmailResult", - "kind": "OBJECT", - "fields": [ - { - "name": "email", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "interfaces": [] - }, - { - "name": "UpdateNameResult", - "kind": "OBJECT", - "fields": [ - { - "name": "firstName", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - }, - { - "name": "lastName", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String" - } - } - ], - "interfaces": [] - }, - { - "name": "UpdateOrganizationInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "assets", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, - { - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "email", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "facebookUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "headquartersAddressId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "headquartersPhone", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - }, - "defaultValue": null - }, - { - "name": "instagramUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "issueTags", - "type": { - "kind": "INPUT_OBJECT", - "name": "CreateOrConnectIssueTagInput" - }, - "defaultValue": null - }, - { - "name": "name", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "slug", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "taxClassification", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "thumbnailImageUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "twitterUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "votesmartSigId", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "websiteUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpdatePasswordInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "newPassword", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - }, - { - "name": "oldPassword", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - } - ] - }, - { - "name": "UpdatePoliticianInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "assets", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, - { - "name": "biography", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "biographySource", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "campaignWebsiteUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "crpCandidateId", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "dateOfBirth", - "type": { - "kind": "SCALAR", - "name": "NaiveDate" - }, - "defaultValue": null - }, - { - "name": "email", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "facebookUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "fecCandidateId", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "firstName", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "homeState", - "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - }, - "defaultValue": null - }, - { - "name": "instagramUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "issueTags", - "type": { - "kind": "INPUT_OBJECT", - "name": "CreateOrConnectIssueTagInput" - }, - "defaultValue": null - }, - { - "name": "lastName", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "legiscanPeopleId", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "linkedinUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "middleName", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "officeId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "officialWebsiteUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "organizationEndorsements", - "type": { - "kind": "INPUT_OBJECT", - "name": "CreateOrConnectOrganizationInput" - }, - "defaultValue": null - }, - { - "name": "partyId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "phone", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "politicianEndorsements", - "type": { - "kind": "INPUT_OBJECT", - "name": "CreateOrConnectPoliticianInput" - }, - "defaultValue": null - }, - { - "name": "preferredName", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "raceLosses", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "raceWins", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "slug", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "suffix", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "thumbnailImageUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "tiktokUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "twitterUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "upcomingRaceId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "votesmartCandidateBio", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, - { - "name": "votesmartCandidateId", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "votesmartCandidateRatings", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, - { - "name": "youtubeUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpdateUsernameResult", - "kind": "OBJECT", - "fields": [ - { - "name": "username", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - } - ], - "interfaces": [] - }, - { - "name": "Upload", - "kind": "SCALAR" - }, - { - "name": "UpsertBallotMeasureInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "ballotMeasureCode", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "county", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "countyFips", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "definitions", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "electionId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "electionScope", - "type": { - "kind": "ENUM", - "name": "ElectionScope" - }, - "defaultValue": null - }, - { - "name": "fullTextUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "measureType", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "municipality", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "municipalityFips", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "officialSummary", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "populistSummary", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "schoolDistrict", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "slug", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "state", - "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null - }, - { - "name": "status", - "type": { - "kind": "ENUM", - "name": "BallotMeasureStatus" - }, - "defaultValue": null - }, - { - "name": "title", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpsertBillInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "arguments", - "type": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CreateArgumentInput" - } - } - }, - "defaultValue": null - }, - { - "name": "attributes", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, - { - "name": "billNumber", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - }, - "defaultValue": null - }, - { - "name": "billType", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "chamber", - "type": { - "kind": "ENUM", - "name": "Chamber" - }, - "defaultValue": null - }, - { - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "fullTextUrl", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "history", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "legiscanBillId", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "legiscanCommittee", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "legiscanCommitteeId", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "legiscanData", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, - { - "name": "legiscanLastAction", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "legiscanLastActionDate", - "type": { - "kind": "SCALAR", - "name": "NaiveDate" - }, - "defaultValue": null - }, - { - "name": "legiscanSessionId", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "officialSummary", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "politicalScope", - "type": { - "kind": "ENUM", - "name": "PoliticalScope" - }, - "defaultValue": null - }, - { - "name": "populistSummary", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "populistTitle", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "sessionId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - }, - "defaultValue": null - }, - { - "name": "slug", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "state", - "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null - }, - { - "name": "status", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "ENUM", - "name": "BillStatus" - } - }, - "defaultValue": null - }, - { - "name": "title", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "votesmartBillId", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpsertBillPublicVoteResult", - "kind": "OBJECT", - "fields": [ - { - "name": "billId", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "String" - } - } - }, - { - "name": "position", - "args": [], - "type": { - "kind": "ENUM", - "name": "ArgumentPosition" - } - }, - { - "name": "publicVotes", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "PublicVotes" - } - } - } - ], - "interfaces": [] - }, - { - "name": "UpsertCandidateGuideInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "name", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "organizationId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "raceIds", - "type": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - } - }, - "defaultValue": null - }, - { - "name": "submissionsCloseAt", - "type": { - "kind": "SCALAR", - "name": "DateTime" - }, - "defaultValue": null - }, - { - "name": "submissionsOpenAt", - "type": { - "kind": "SCALAR", - "name": "DateTime" - }, - "defaultValue": null - }, - { - "name": "userId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpsertElectionInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "electionDate", - "type": { - "kind": "SCALAR", - "name": "NaiveDate" - }, - "description": "Must use format YYYY-MM-DD", - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "municipality", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "slug", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "state", - "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null - }, - { - "name": "title", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpsertEmbedInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "attributes", - "type": { - "kind": "SCALAR", - "name": "JSON" - }, - "defaultValue": null - }, - { - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "embedType", - "type": { - "kind": "ENUM", - "name": "EmbedType" - }, - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "name", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "organizationId", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpsertIssueTagInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "category", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "description", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "name", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "slug", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpsertOfficeInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "chamber", - "type": { - "kind": "ENUM", - "name": "Chamber" - }, - "defaultValue": null - }, - { - "name": "county", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "district", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "districtType", - "type": { - "kind": "ENUM", - "name": "DistrictType" - }, - "defaultValue": null - }, - { - "name": "electionScope", - "type": { - "kind": "ENUM", - "name": "ElectionScope" - }, - "defaultValue": null - }, - { - "name": "hospitalDistrict", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "municipality", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "name", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "officeType", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "politicalScope", - "type": { - "kind": "ENUM", - "name": "PoliticalScope" - }, - "defaultValue": null - }, - { - "name": "priority", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "schoolDistrict", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "seat", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "slug", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "state", - "type": { - "kind": "ENUM", - "name": "State" - }, - "defaultValue": null - }, - { - "name": "subtitle", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "subtitleShort", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "termLength", - "type": { - "kind": "SCALAR", - "name": "Int" - }, - "defaultValue": null - }, - { - "name": "title", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - } - ] - }, - { - "name": "UpsertPollInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "allowAnonymousResponses", - "type": { - "kind": "SCALAR", - "name": "Boolean" - }, - "defaultValue": null - }, - { - "name": "allowWriteInResponses", - "type": { - "kind": "SCALAR", - "name": "Boolean" - }, - "defaultValue": null - }, - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null + "kind": "SCALAR", + "name": "String" + } + } }, { - "name": "name", + "name": "textSize", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } + } }, { - "name": "options", + "name": "typeField", + "args": [], "type": { "kind": "NON_NULL", "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "INPUT_OBJECT", - "name": "UpsertPollOptionInput" - } - } + "kind": "SCALAR", + "name": "String" } - }, - "defaultValue": null + } }, { - "name": "organizationId", + "name": "typeId", + "args": [], "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } + } }, { - "name": "prompt", + "name": "url", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "String" + } + } } - ] + ], + "interfaces": [] }, { - "name": "UpsertPollOptionInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, + "name": "TimeSeriesPoint", + "kind": "OBJECT", + "fields": [ { - "name": "isWriteIn", + "name": "count", + "args": [], "type": { - "kind": "SCALAR", - "name": "Boolean" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Int" + } + } }, { - "name": "optionText", + "name": "timestamp", + "args": [], "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "DateTime" } - }, - "defaultValue": null + } } - ] + ], + "interfaces": [] }, { - "name": "UpsertPollSubmissionInput", + "name": "UUID", + "description": "A UUID is a unique 128-bit number, stored as 16 octets. UUIDs are parsed as\nStrings within GraphQL. UUIDs are used to assign unique identifiers to\nentities without requiring a central allocating authority.\n\n# References\n\n* [Wikipedia: Universally Unique Identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier)\n* [RFC4122: A Universally Unique IDentifier (UUID) URN Namespace](http://tools.ietf.org/html/rfc4122)", + "kind": "SCALAR" + }, + { + "name": "UpdateCandidateGuideRaceInput", "kind": "INPUT_OBJECT", "inputFields": [ { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null - }, - { - "name": "pollId", + "name": "wereCandidatesEmailed", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "UUID" + "name": "Boolean" } }, "defaultValue": null - }, + } + ] + }, + { + "name": "UpdateCandidateGuideRaceResult", + "kind": "OBJECT", + "fields": [ { - "name": "pollOptionId", + "name": "createdAt", + "args": [], "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" + } + } }, { - "name": "respondentId", + "name": "updatedAt", + "args": [], "type": { - "kind": "SCALAR", - "name": "UUID" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "DateTime" + } + } }, { - "name": "writeInResponse", + "name": "wereCandidatesEmailed", + "args": [], "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "Boolean" + } + } } - ] + ], + "interfaces": [] }, { - "name": "UpsertQuestionInput", + "name": "UpsertCandidateGuideInput", "kind": "INPUT_OBJECT", "inputFields": [ { - "name": "allowAnonymousResponses", - "type": { - "kind": "SCALAR", - "name": "Boolean" - }, - "defaultValue": null - }, - { - "name": "candidateGuideId", + "name": "id", "type": { "kind": "SCALAR", "name": "UUID" @@ -12830,15 +9543,15 @@ "defaultValue": null }, { - "name": "embedId", + "name": "name", "type": { "kind": "SCALAR", - "name": "UUID" + "name": "String" }, "defaultValue": null }, { - "name": "id", + "name": "organizationId", "type": { "kind": "SCALAR", "name": "UUID" @@ -12846,7 +9559,7 @@ "defaultValue": null }, { - "name": "issueTagIds", + "name": "raceIds", "type": { "kind": "LIST", "ofType": { @@ -12860,69 +9573,86 @@ "defaultValue": null }, { - "name": "name", + "name": "submissionsCloseAt", "type": { "kind": "SCALAR", - "name": "String" + "name": "DateTime" }, "defaultValue": null }, { - "name": "organizationId", + "name": "submissionsOpenAt", "type": { "kind": "SCALAR", - "name": "UUID" + "name": "DateTime" }, "defaultValue": null }, { - "name": "prompt", + "name": "userId", "type": { "kind": "SCALAR", - "name": "String" + "name": "UUID" }, "defaultValue": null - }, + } + ] + }, + { + "name": "UpsertPollInput", + "kind": "INPUT_OBJECT", + "inputFields": [ { - "name": "responseCharLimit", + "name": "allowAnonymousResponses", "type": { "kind": "SCALAR", - "name": "Int" + "name": "Boolean" }, "defaultValue": null }, { - "name": "responsePlaceholderText", + "name": "allowWriteInResponses", "type": { "kind": "SCALAR", - "name": "String" + "name": "Boolean" }, "defaultValue": null }, { - "name": "shouldTranslate", + "name": "id", "type": { "kind": "SCALAR", - "name": "Boolean" + "name": "UUID" }, "defaultValue": null }, { - "name": "translations", + "name": "name", "type": { "kind": "SCALAR", - "name": "JSON" + "name": "String" }, "defaultValue": null - } - ] - }, - { - "name": "UpsertQuestionSubmissionInput", - "kind": "INPUT_OBJECT", - "inputFields": [ + }, { - "name": "candidateId", + "name": "options", + "type": { + "kind": "NON_NULL", + "ofType": { + "kind": "LIST", + "ofType": { + "kind": "NON_NULL", + "ofType": { + "kind": "INPUT_OBJECT", + "name": "UpsertPollOptionInput" + } + } + } + }, + "defaultValue": null + }, + { + "name": "organizationId", "type": { "kind": "SCALAR", "name": "UUID" @@ -12930,42 +9660,54 @@ "defaultValue": null }, { - "name": "copiedFromId", + "name": "prompt", "type": { "kind": "SCALAR", - "name": "UUID" + "name": "String" }, "defaultValue": null - }, + } + ] + }, + { + "name": "UpsertPollOptionInput", + "kind": "INPUT_OBJECT", + "inputFields": [ { - "name": "editorial", + "name": "id", "type": { "kind": "SCALAR", - "name": "String" + "name": "UUID" }, "defaultValue": null }, { - "name": "id", + "name": "isWriteIn", "type": { "kind": "SCALAR", - "name": "UUID" + "name": "Boolean" }, "defaultValue": null }, { - "name": "questionId", + "name": "optionText", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "UUID" + "name": "String" } }, "defaultValue": null - }, + } + ] + }, + { + "name": "UpsertPollSubmissionInput", + "kind": "INPUT_OBJECT", + "inputFields": [ { - "name": "respondentId", + "name": "id", "type": { "kind": "SCALAR", "name": "UUID" @@ -12973,72 +9715,64 @@ "defaultValue": null }, { - "name": "response", + "name": "pollId", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "UUID" } }, "defaultValue": null }, { - "name": "sentiment", + "name": "pollOptionId", "type": { - "kind": "ENUM", - "name": "Sentiment" + "kind": "SCALAR", + "name": "UUID" }, "defaultValue": null }, { - "name": "shouldTranslate", + "name": "respondentId", "type": { "kind": "SCALAR", - "name": "Boolean" + "name": "UUID" }, "defaultValue": null }, { - "name": "translations", + "name": "writeInResponse", "type": { "kind": "SCALAR", - "name": "JSON" + "name": "String" }, "defaultValue": null } ] }, { - "name": "UpsertRaceInput", + "name": "UpsertQuestionInput", "kind": "INPUT_OBJECT", "inputFields": [ { - "name": "ballotpediaLink", - "type": { - "kind": "SCALAR", - "name": "String" - }, - "defaultValue": null - }, - { - "name": "description", + "name": "allowAnonymousResponses", "type": { "kind": "SCALAR", - "name": "String" + "name": "Boolean" }, "defaultValue": null }, { - "name": "earlyVotingBeginsDate", + "name": "candidateGuideId", "type": { "kind": "SCALAR", - "name": "NaiveDate" + "name": "UUID" }, "defaultValue": null }, { - "name": "electionId", + "name": "embedId", "type": { "kind": "SCALAR", "name": "UUID" @@ -13054,26 +9788,29 @@ "defaultValue": null }, { - "name": "isSpecialElection", + "name": "issueTagIds", "type": { - "kind": "NON_NULL", + "kind": "LIST", "ofType": { - "kind": "SCALAR", - "name": "Boolean" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "UUID" + } } }, "defaultValue": null }, { - "name": "numElect", + "name": "name", "type": { "kind": "SCALAR", - "name": "Int" + "name": "String" }, "defaultValue": null }, { - "name": "officeId", + "name": "organizationId", "type": { "kind": "SCALAR", "name": "UUID" @@ -13081,7 +9818,7 @@ "defaultValue": null }, { - "name": "officialWebsite", + "name": "prompt", "type": { "kind": "SCALAR", "name": "String" @@ -13089,94 +9826,88 @@ "defaultValue": null }, { - "name": "partyId", + "name": "responseCharLimit", "type": { "kind": "SCALAR", - "name": "UUID" + "name": "Int" }, "defaultValue": null }, { - "name": "raceType", + "name": "responsePlaceholderText", "type": { - "kind": "ENUM", - "name": "RaceType" + "kind": "SCALAR", + "name": "String" }, "defaultValue": null }, { - "name": "slug", + "name": "shouldTranslate", "type": { "kind": "SCALAR", - "name": "String" + "name": "Boolean" }, "defaultValue": null }, { - "name": "state", + "name": "translations", "type": { - "kind": "ENUM", - "name": "State" + "kind": "SCALAR", + "name": "JSON" }, "defaultValue": null - }, + } + ] + }, + { + "name": "UpsertQuestionSubmissionInput", + "kind": "INPUT_OBJECT", + "inputFields": [ { - "name": "title", + "name": "candidateId", "type": { "kind": "SCALAR", - "name": "String" + "name": "UUID" }, "defaultValue": null }, { - "name": "totalVotes", + "name": "copiedFromId", "type": { "kind": "SCALAR", - "name": "Int" + "name": "UUID" }, "defaultValue": null }, { - "name": "voteType", + "name": "editorial", "type": { - "kind": "ENUM", - "name": "VoteType" + "kind": "SCALAR", + "name": "String" }, "defaultValue": null }, { - "name": "winnerIds", + "name": "id", "type": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - } + "kind": "SCALAR", + "name": "UUID" }, "defaultValue": null - } - ] - }, - { - "name": "UpsertRespondentInput", - "kind": "INPUT_OBJECT", - "inputFields": [ + }, { - "name": "email", + "name": "questionId", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "String" + "name": "UUID" } }, "defaultValue": null }, { - "name": "id", + "name": "respondentId", "type": { "kind": "SCALAR", "name": "UUID" @@ -13184,7 +9915,7 @@ "defaultValue": null }, { - "name": "name", + "name": "response", "type": { "kind": "NON_NULL", "ofType": { @@ -13195,35 +9926,15 @@ "defaultValue": null }, { - "name": "organizationId", - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "UUID" - } - }, - "defaultValue": null - } - ] - }, - { - "name": "UpsertVotingGuideCandidateInput", - "kind": "INPUT_OBJECT", - "inputFields": [ - { - "name": "candidateId", + "name": "sentiment", "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "SCALAR", - "name": "ID" - } + "kind": "ENUM", + "name": "Sentiment" }, "defaultValue": null }, { - "name": "isEndorsement", + "name": "shouldTranslate", "type": { "kind": "SCALAR", "name": "Boolean" @@ -13231,62 +9942,57 @@ "defaultValue": null }, { - "name": "note", + "name": "translations", "type": { "kind": "SCALAR", - "name": "String" + "name": "JSON" }, "defaultValue": null - }, + } + ] + }, + { + "name": "UpsertRespondentInput", + "kind": "INPUT_OBJECT", + "inputFields": [ { - "name": "votingGuideId", + "name": "email", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "String" } }, "defaultValue": null - } - ] - }, - { - "name": "UpsertVotingGuideInput", - "kind": "INPUT_OBJECT", - "inputFields": [ + }, { - "name": "description", + "name": "id", "type": { "kind": "SCALAR", - "name": "String" + "name": "UUID" }, "defaultValue": null }, { - "name": "electionId", + "name": "name", "type": { "kind": "NON_NULL", "ofType": { "kind": "SCALAR", - "name": "ID" + "name": "String" } }, "defaultValue": null }, { - "name": "id", - "type": { - "kind": "SCALAR", - "name": "ID" - }, - "defaultValue": null - }, - { - "name": "title", + "name": "organizationId", "type": { - "kind": "SCALAR", - "name": "String" + "kind": "NON_NULL", + "ofType": { + "kind": "SCALAR", + "name": "UUID" + } }, "defaultValue": null } @@ -13310,39 +10016,6 @@ "name": "UserResult", "kind": "OBJECT", "fields": [ - { - "name": "address", - "args": [], - "type": { - "kind": "OBJECT", - "name": "AddressResult" - } - }, - { - "name": "addressExtendedMn", - "args": [], - "type": { - "kind": "OBJECT", - "name": "AddressExtendedMNResult" - } - }, - { - "name": "availableOrganizations", - "args": [], - "type": { - "kind": "NON_NULL", - "ofType": { - "kind": "LIST", - "ofType": { - "kind": "NON_NULL", - "ofType": { - "kind": "OBJECT", - "name": "OrganizationResult" - } - } - } - } - }, { "name": "email", "args": [], diff --git a/graphql/schema-public.graphql b/graphql/schema-public.graphql new file mode 100644 index 00000000..1152aeca --- /dev/null +++ b/graphql/schema-public.graphql @@ -0,0 +1,1626 @@ +schema { + query: Query + mutation: Mutation + subscription: Subscription +} + +""" +Indicates that an Input Object is a OneOf Input Object (and thus requires + exactly one of its field be provided) +""" +directive @oneOf on INPUT_OBJECT + +input AddStatementInput { + content: String! + conversationId: ID! + moderationStatus: StatementModerationStatus + userId: ID +} + +input AddressInput { + city: String! + congressionalDistrict: String + coordinates: Coordinates + country: String! + county: String + line1: String! + line2: String + postalCode: String! + state: State! + stateHouseDistrict: String + stateSenateDistrict: String +} + +enum ArgumentPosition { + NEUTRAL + OPPOSE + SUPPORT +} + +type ArgumentResult { + author: AuthorResult! + authorId: ID! + authorType: AuthorType! + body: String + id: ID! + position: String! + title: String! + votes: Int! +} + +union AuthorResult = OrganizationResult | PoliticianResult + +enum AuthorType { + ORGANIZATION + POLITICIAN +} + +input BallotMeasureFilter { + issueTag: String + politicalScope: PoliticalScope + query: String + state: State + status: BallotMeasureStatus + year: Int +} + +type BallotMeasureResult { + arguments: [ArgumentResult!]! + ballotMeasureCode: String! + definitions: String + description: String + election: ElectionResult! + electionId: ID! + electionScope: ElectionScope + fullTextUrl: String + id: ID! + issueTags: [IssueTagResult!]! + measureType: String + noVotes: Int + numPrecinctsReporting: Int + officialSummary: String + populistSummary: String + publicVotes: PublicVotes! + slug: String! + state: State! + status: BallotMeasureStatus! + title: String! + totalPrecincts: Int + yesVotes: Int +} + +type BallotMeasureResultConnection { + """A list of edges.""" + edges: [BallotMeasureResultEdge!]! + """A list of nodes.""" + nodes: [BallotMeasureResult!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Total result set count""" + totalCount: Int! +} + +"""An edge in a connection.""" +type BallotMeasureResultEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: BallotMeasureResult! +} + +input BallotMeasureSort { + popularity: PopularitySort +} + +enum BallotMeasureStatus { + BECAME_LAW + FAILED + GATHERING_SIGNATURES + INTRODUCED + IN_CONSIDERATION + ON_THE_BALLOT + PROPOSED + UNKNOWN +} + +"""Legiscan Bill object""" +type Bill { + amendments: [BillAmendment!]! + billId: Int! + billNumber: String! + billType: String! + billTypeId: String! + body: String! + bodyId: Int! + calendar: [Calendar!]! + changeHash: String! + committee: JSON! + completed: Int! + currentBody: String! + currentBodyId: Int! + history: [History!]! + pendingCommitteeId: Int! + progress: [Progress!]! + referrals: [Referral!] + sasts: [Sast!]! + session: BillSession! + sessionId: Int! + sponsors: [Sponsor!]! + state: String! + stateId: Int! + stateLink: String! + status: Int! + statusDate: String + statusType: String! + subjects: [Subject!]! + supplements: [BillSupplement!]! + texts: [Text!]! + title: String! + url: String! + votes: [BillVote!]! +} + +type BillAmendment { + adopted: Int! + amendmentId: Int! + chamber: String! + chamberId: Int! + date: String! + description: String! + mime: String! + mimeId: Int! + stateLink: String! + title: String! + url: String! +} + +input BillFilter { + issueTag: String + politicalScope: PoliticalScope + query: String + state: State + status: BillStatus + year: Int +} + +type BillResult { + arguments: [ArgumentResult!]! + billNumber: String! + billType: BillType! + chamber: Chamber + description: String + fullTextUrl: String + history: JSON! + id: ID! + issueTags: [IssueTagResult!]! + legiscanBillId: Int + legiscanCommitteeName: String + legiscanData: Bill + legiscanLastAction: String + legiscanLastActionDate: NaiveDate + officialSummary: String + politicalScope: PoliticalScope! + populistSummary: String + populistTitle: String + publicVotes: PublicVotes! + session: SessionResult + sessionId: ID + slug: String! + sponsors: [PoliticianResult!]! + state: State + status: BillStatus! + title: String! + updatedAt: DateTime! + usersVote: ArgumentPosition + votesmartBillId: Int +} + +type BillResultConnection { + """A list of edges.""" + edges: [BillResultEdge!]! + """A list of nodes.""" + nodes: [BillResult!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Total result set count""" + totalCount: Int! +} + +"""An edge in a connection.""" +type BillResultEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: BillResult! +} + +type BillSession { + sessionId: Int! + sessionName: String! + sessionTitle: String! + special: Int! + yearEnd: Int! + yearStart: Int! +} + +input BillSort { + popularity: PopularitySort +} + +enum BillStatus { + BECAME_LAW + FAILED + INTRODUCED + IN_CONSIDERATION + UNKNOWN + VETOED +} + +type BillSupplement { + date: String! + description: String! + mime: String! + mimeId: Int! + stateLink: String! + supplementId: Int! + title: String! + typeField: String! + typeId: Int! + url: String! +} + +enum BillType { + """New Hampshire""" + ADDRESS + """Most states have these types""" + BILL + """DC City Council""" + CEREMONIAL_RESOLUTION + CONCURRENT_MEMORIAL + CONCURRENT_RESOLUTION + CONCURRENT_STUDY_REQUEST + CONSTITUTIONAL_AMENDMENT + EXECUTIVE_ORDER + JOINT_MEMORIAL + """Some states have these types""" + JOINT_RESOLUTION + JOINT_SESSION_RESOLUTION + MEMORIAL + NONE + PROCLAMATION + REMONSTRATION + REPEAL_BILL + RESOLUTION + STUDY_REQUEST +} + +type BillVote { + absent: Int! + chamber: String! + chamberId: Int! + date: String! + desc: String! + nay: Int! + nv: Int! + passed: Int! + """ + This field is not returned from get_bill, but can be populated with a subsequent call to `get_roll_call` + """ + rollCallData: RollCall + rollCallId: Int! + stateLink: String! + total: Int! + url: String! + yea: Int! +} + +type Calendar { + date: String! + description: String! + location: String! + time: String! + typeField: String! + typeId: Int! +} + +type Candidate { + birthDate: String! + birthPlace: String! + candidateId: String! + congMembership: JSON! + crpId: String! + education: JSON! + family: String! + firstName: String! + gender: String! + homeCity: String! + homeState: String! + lastName: String! + middleName: String! + nickName: String! + orgMembership: JSON! + photo: String! + political: JSON! + preferredName: String! + profession: JSON! + pronunciation: String! + religion: String! + specialMsg: String! + suffix: String! +} + +type CandidateGuideRaceResult { + createdAt: DateTime! + race: RaceResult! + updatedAt: DateTime! + wereCandidatesEmailed: Boolean! +} + +type CandidateGuideResult { + createdAt: DateTime! + embedCount: Int! + embeds: [EmbedResult!]! + id: ID! + name: String + organization: OrganizationResult! + organizationId: ID! + questions: [QuestionResult!]! + """ + Returns the total number of question submissions in the candidate guide divided by the number of questions + in the candidate guide to get the number of intake submissions per candidate guide. + """ + submissionCount: Int! + submissionsCloseAt: DateTime + submissionsOpenAt: DateTime + updatedAt: DateTime! +} + +enum Chamber { + ASSEMBLY + HOUSE + LEGISLATURE + SENATE +} + +enum Chambers { + ALL + HOUSE + SENATE +} + +type CharacteristicVote { + consensusLevel: Float! + meanSentiment: Float! + significanceLevel: Float! + statement: StatementResult! + statementId: ID! +} + +type CommitteeResult { + chairId: ID + description: String! + id: ID! + legiscanCommitteeId: Int + name: String! + slug: String! + state: State +} + +type CommonWordsResult { + count: Int! + word: String! +} + +type ConversationResult { + createdAt: DateTime! + description: String + id: ID! + opinionAnalysis(limit: Int!): OpinionAnalysis! + opinionGroups: [OpinionGroup!]! + """Counts unique participants who voted in each time bucket""" + participationOverTime(interval: String): [TimeSeriesPoint!]! + relatedStatements(draftContent: String!, filter: StatementFilter, limit: Int, offset: Int): [StatementResult!]! + statements(filter: StatementFilter, limit: Int, offset: Int, sort: StatementSort): [StatementResult!]! + statementsOverTime(interval: String): [TimeSeriesPoint!]! + stats: ConversationStats! + topic: String! + updatedAt: DateTime! + """ + Returns distribution of voting activity across participants. + Shows how many participants cast X number of votes. + """ + voteDistribution(bucketSize: Int): [VoteDistributionBucket!]! + votesOverTime(interval: String): [TimeSeriesPoint!]! +} + +type ConversationStats { + avgVotesPerParticipant: Float! + totalParticipants: Int! + totalStatements: Int! + totalVotes: Int! +} + +input Coordinates { + latitude: Float! + longitude: Float! +} + +input CreateConversationInput { + description: String + organizationId: ID! + seedStatements: [String!] + topic: String! +} + +""" +Implement the DateTime scalar + +The input/output is a string in RFC3339 format. +""" +scalar DateTime + +enum DistrictType { + CITY + COUNTY + HOSPITAL + JUDICIAL + SCHOOL + SOIL_AND_WATER + STATE_HOUSE + STATE_SENATE + TRANSPORTATION + US_CONGRESSIONAL +} + +type DonationsByIndustry { + cycle: Int! + lastUpdated: NaiveDate! + sectors: [Sector!]! + source: String! +} + +type DonationsSummary { + cashOnHand: Float! + debt: Float! + lastUpdated: NaiveDate! + source: String! + spent: Float! + totalRaised: Float! +} + +input ElectionFilter { + municipality: String + query: String + slug: String + state: State + title: String + year: Int +} + +input ElectionRaceFilter { + state: State +} + +type ElectionResult { + ballotMeasuresByAddress(address: AddressInput!): [BallotMeasureResult!]! + description: String + electionDate: NaiveDate! + id: ID! + races(filter: ElectionRaceFilter): [RaceResult!]! + """Show races based on an anonymous user with an address""" + racesByAddress(address: AddressInput!): [RaceResult!]! + """Show races relevant to the user based on their address""" + racesByUserDistricts: [RaceResult!]! + racesByVotingGuide(votingGuideId: ID!): [RaceResult!]! + slug: String! + state: State + title: String! +} + +enum ElectionScope { + CITY + COUNTY + DISTRICT + NATIONAL + STATE +} + +type EmbedResult { + attributes: JSON! + ballotMeasure: BallotMeasureResult + bill: BillResult + bills: [BillResult!] + candidateGuide: CandidateGuideResult + candidateGuideRace: CandidateGuideRaceResult + """ + Each candidate guide embed is associated with a single race. This field returns the + the number of questions submitted by candidates in this race, divided by the number + of questions in a candidate guide + """ + candidateGuideSubmissionCountByRace: Int + createdAt: DateTime! + createdBy: UserResult! + createdById: ID! + description: String + election: ElectionResult + embedType: EmbedType! + id: ID! + name: String! + organizationId: ID! + politician: PoliticianResult + poll: PollResult + question: QuestionResult + race: RaceResult + updatedAt: DateTime! + updatedBy: UserResult! + updatedById: ID! +} + +enum EmbedType { + CANDIDATE_GUIDE + LEGISLATION + LEGISLATION_TRACKER + MY_BALLOT + POLITICIAN + POLL + QUESTION + RACE +} + +type Endorsements { + organizations: [OrganizationResult!]! + politicians: [PoliticianResult!]! +} + +type GeneralInfo { + linkBack: String! + title: String! +} + +type GetCandidateBioResponse { + candidate: Candidate! + generalInfo: GeneralInfo! + office: Office +} + +type Heartbeat { + utc: DateTime! +} + +type History { + action: String! + chamber: String! + chamberId: Int! + date: String! + importance: Int! +} + +type IssueTagResult { + ballotMeasures: [BallotMeasureResult!]! + bills: [BillResult!]! + description: String + id: ID! + name: String! + organizations: [OrganizationResult!]! + politicians: [PoliticianResult!]! + slug: String! +} + +input IssueTagSearch { + name: String +} + +"""A scalar that can represent any JSON value.""" +scalar JSON + +type Mutation { + addStatement(input: AddStatementInput!): Statement! + copyQuestionSubmission(questionSubmissionId: ID!, targetQuestionId: ID!): QuestionSubmissionResult! + createConversation(input: CreateConversationInput!): ConversationResult! + deleteCandidateGuide(id: ID!): Boolean! + deleteProfilePicture: Boolean! + """ + Download all candidate guide data as a CSV string, must be converted to CSV file by client + """ + downloadAllCandidateGuideData(candidateGuideId: ID!, raceId: ID): String! + generateIntakeTokenLink(candidateGuideId: ID!, politicianId: ID!, raceId: ID!): String! + moderateStatement(moderationStatus: StatementModerationStatus!, statementId: ID!): Statement! + openAllCandidateGuideSubmissions(candidateGuideId: ID!): Boolean! + removeCandidateGuideRace(candidateGuideId: ID!, raceId: ID!): Boolean! + setAllCandidateGuideRacesEmailed(candidateGuideId: ID!, wereCandidatesEmailed: Boolean!): Boolean! + updateCandidateGuideRace(candidateGuideId: ID!, input: UpdateCandidateGuideRaceInput!, raceId: ID!): UpdateCandidateGuideRaceResult! + updateConversation(conversationId: ID!, description: String, topic: String): ConversationResult! + upsertCandidateGuide(input: UpsertCandidateGuideInput!): CandidateGuideResult! + upsertPoll(input: UpsertPollInput!): PollResult! + upsertPollSubmission(pollSubmissionInput: UpsertPollSubmissionInput!, respondentInput: UpsertRespondentInput): PollSubmissionResult! + upsertQuestion(input: UpsertQuestionInput!): QuestionResult! + upsertQuestionSubmission(questionSubmissionInput: UpsertQuestionSubmissionInput!, respondentInput: UpsertRespondentInput): QuestionSubmissionResult! + voteOnStatement(statementId: ID!, userId: ID, voteType: ArgumentPosition!): StatementVote! +} + +""" +ISO 8601 calendar date without timezone. +Format: %Y-%m-%d + +# Examples + +* `1994-11-13` +* `2000-02-24` +""" +scalar NaiveDate + +type Office { + district: String! + districtId: String! + firstElect: String! + lastElect: String! + name: [String!]! + nextElect: String! + parties: String! + shortTitle: String! + stateId: String! + status: String! + termEnd: String! + termStart: String! + title: String! + typeField: String! +} + +input OfficeFilter { + politicalScope: PoliticalScope + query: String + state: State +} + +type OfficeResult { + chamber: Chamber + county: String + """ + The district name, e.g. "2, 3B, Ward 5" + """ + district: String + """ + The type of district, used to determine which field is referenced for the district + """ + districtType: DistrictType + """National, State, County, City, or District""" + electionScope: ElectionScope! + hospitalDistrict: String + id: ID! + incumbents: [PoliticianResult!]! + municipality: String + """ + Name of the office, e.g. "U.S. Senate" + """ + name: String + officeType: String + """Local, State, or Federal""" + politicalScope: PoliticalScope! + """Used to determine order of offices in a list""" + priority: Int + schoolDistrict: String + seat: String + slug: String! + state: State + subtitle: String + subtitleShort: String + termLength: Int + """ + What the person in office would be called, e.g. "Senator", "Governor" + """ + title: String! +} + +type OfficeResultConnection { + """A list of edges.""" + edges: [OfficeResultEdge!]! + """A list of nodes.""" + nodes: [OfficeResult!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Total result set count""" + totalCount: Int! +} + +"""An edge in a connection.""" +type OfficeResultEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: OfficeResult! +} + +type OpinionAnalysis { + consensusOpinions: [OpinionScore!]! + divisiveOpinions: [OpinionScore!]! + overview: String +} + +type OpinionGroup { + characteristicVotes: [CharacteristicVote!]! + id: ID! + summary: String! + users: [ID!]! +} + +type OpinionScore { + content: String! + id: String! + neutralVotes: Int! + nonVotingViews: Int! + opposeVotes: Int! + score: Float! + supportVotes: Int! + totalViews: Int! + totalVotes: Int! +} + +type OrganizationAssets { + bannerImage: String + thumbnailImage160: String + thumbnailImage400: String +} + +type OrganizationAttributes { + supportedLanguages: [String!] +} + +type OrganizationPoliticianNoteResult { + createdAt: DateTime! + electionId: ID! + id: ID! + issueTagIds: [ID!]! + issueTags: [IssueTagResult!]! + notes: JSON! + organization: OrganizationResult! + organizationId: ID! + politician: PoliticianResult! + politicianId: ID! + updatedAt: DateTime! +} + +type OrganizationResult { + assets: OrganizationAssets! + attributes: OrganizationAttributes! + description: String + email: String + facebookUrl: String + headquartersAddressId: ID + headquartersPhone: String + id: ID! + instagramUrl: String + issueTags: [IssueTagResult!]! + name: String! + politicianNotes(electionId: ID!): [OrganizationPoliticianNoteResult!]! + slug: String! + taxClassification: String + thumbnailImageUrl: String @deprecated(reason: "Use `assets.thumbnailImage160` instead") + twitterUrl: String + votesmartSigId: Int + websiteUrl: String +} + +type OrganizationResultConnection { + """A list of edges.""" + edges: [OrganizationResultEdge!]! + """A list of nodes.""" + nodes: [OrganizationResult!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Total result set count""" + totalCount: Int! +} + +"""An edge in a connection.""" +type OrganizationResultEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: OrganizationResult! +} + +input OrganizationSearch { + name: String +} + +"""Information about pagination in a connection""" +type PageInfo { + """When paginating forwards, the cursor to continue.""" + endCursor: String + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! + """When paginating backwards, the cursor to continue.""" + startCursor: String +} + +type PoliticalParty { + description: String + fecCode: String + id: ID! + name: String! + notes: String + slug: String! +} + +enum PoliticalScope { + FEDERAL + LOCAL + STATE +} + +type PoliticianAssets { + thumbnailImage160: String + thumbnailImage400: String +} + +input PoliticianFilter { + chambers: Chambers + homeState: State + politicalScope: PoliticalScope + query: String +} + +type PoliticianResult { + age: Int + assets: PoliticianAssets! + biography: String + biographySource: String + campaignWebsiteUrl: String + crpCandidateId: String + currentOffice: OfficeResult + dateOfBirth: NaiveDate + donationsByIndustry: DonationsByIndustry + donationsSummary: DonationsSummary + email: String + endorsements: Endorsements! + facebookUrl: String + fecCandidateId: String + firstName: String! + fullName: String! + homeState: State + id: ID! + instagramUrl: String + issueTags: [IssueTagResult!]! + lastName: String! + legiscanPeopleId: Int + linkedinUrl: String + middleName: String + officeId: ID + officialWebsiteUrl: String + party: PoliticalParty + partyId: ID + phone: String + preferredName: String + raceLosses: Int + raceWins: Int + """Leverages Votesmart ratings data for the time being""" + ratings(after: String, before: String, first: Int, last: Int): RatingResultConnection! + slug: String! + sponsoredBills(after: String, before: String, first: Int, last: Int): BillResultConnection! + suffix: String + thumbnailImageUrl: String @deprecated(reason: "Use `assets.thumbnailImage160` instead") + tiktokUrl: String + twitterUrl: String + upcomingRace: RaceResult + upcomingRaceId: ID + votes(raceId: UUID!): Int + votesmartCandidateBio: GetCandidateBioResponse + votesmartCandidateId: Int + votesmartCandidateRatings: [VsRating!]! + """ + Calculates the total years a politician has been in office using + the votesmart politicial experience array. Does not take into account + objects where the politician is considered a 'candidate' + """ + yearsInPublicOffice: Int + youtubeUrl: String +} + +type PoliticianResultConnection { + """A list of edges.""" + edges: [PoliticianResultEdge!]! + """A list of nodes.""" + nodes: [PoliticianResult!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Total result set count""" + totalCount: Int! +} + +"""An edge in a connection.""" +type PoliticianResultEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: PoliticianResult! +} + +type PollOptionResult { + createdAt: DateTime! + id: ID! + optionText: String! + pollId: ID! + updatedAt: DateTime! +} + +type PollResult { + allowAnonymousResponses: Boolean! + allowWriteInResponses: Boolean! + createdAt: DateTime! + embedId: ID + id: ID! + name: String + options: [PollOptionResult!]! + prompt: String! + submissionCountByDate: [SubmissionCountByDateResult!]! + submissions: [PollSubmissionResult!]! + updatedAt: DateTime! +} + +type PollSubmissionResult { + createdAt: DateTime! + id: ID! + option: PollOptionResult + poll: PollResult! + pollId: ID! + pollOptionId: ID + respondent: RespondentResult + respondentId: ID + updatedAt: DateTime! + writeInResponse: String +} + +enum PopularitySort { + MOST_OPPOSED + MOST_POPULAR + MOST_SUPPORTED +} + +type Progress { + date: String! + event: Int! +} + +type PublicVotes { + neutral: Int + oppose: Int + support: Int +} + +type Query { + allIssueTags: [IssueTagResult!]! + ballotMeasureById(id: ID!): BallotMeasureResult + ballotMeasures(after: String, before: String, filter: BallotMeasureFilter, first: Int, last: Int, sort: BallotMeasureSort): BallotMeasureResultConnection! + billById(id: ID!): BillResult + billBySlug(slug: String!): BillResult + """Returns all committees that have an associated bill""" + billCommittees: [CommitteeResult!]! + """Returns all issue tags that have an associated bill""" + billIssueTags: [IssueTagResult!]! + """Returns all session years that have an associated bill""" + billYears: [Int!]! + bills(after: String, before: String, filter: BillFilter, first: Int, last: Int, sort: BillSort): BillResultConnection! + billsByIds(ids: [ID!]!): [BillResult!]! + candidateGuideById(id: ID!): CandidateGuideResult! + candidateGuidesByOrganization(organizationId: ID!): [CandidateGuideResult!]! + conversationById(id: ID!): ConversationResult + conversationsByOrganization(limit: Int, organizationId: ID!): [ConversationResult!]! + countiesByState(state: State!): [String!]! + electionById(id: ID!): ElectionResult! + electionBySlug(slug: String!): ElectionResult! + """Returns a single voting guide for the given election and user""" + electionVotingGuideByUserId( + """Election ID""" + electionId: ID! + """User ID""" + userId: ID! + ): VotingGuideResult + elections(filter: ElectionFilter): [ElectionResult!]! + electionsByUser: [ElectionResult!]! + """Returns `true` to indicate the GraphQL server is reachable""" + health: Boolean! + issueTagBySlug( + """Search issue tag by slug""" + slug: String! + ): IssueTagResult! + issueTags( + """Search by issue tag name""" + search: IssueTagSearch! + ): [IssueTagResult!]! + nextElection: ElectionResult! + officeById(id: String!): OfficeResult! + officeBySlug(slug: String!): OfficeResult! + offices(after: String, before: String, filter: OfficeFilter, first: Int, last: Int): OfficeResultConnection! + organizationById(id: ID!): OrganizationResult! + organizationBySlug(slug: String!): OrganizationResult! + organizations( + after: String + before: String + first: Int + last: Int + """Search by organization name""" + search: OrganizationSearch + ): OrganizationResultConnection! + politicalParties: [PoliticalParty!]! + politicianById(id: ID!): PoliticianResult + politicianByIntakeToken(token: String!): PoliticianResult + politicianBySlug(slug: String!): PoliticianResult + politicianRespondentsByOrganizationId(organizationId: ID!): [PoliticianResult!]! + politicians(after: String, before: String, filter: PoliticianFilter, first: Int, last: Int): PoliticianResultConnection! + questionById(id: ID!): QuestionResult! + raceById(id: String!): RaceResult! + raceBySlug(slug: String!): RaceResult! + races(after: String, before: String, filter: RaceFilter, first: Int, last: Int): RaceResultConnection! + recentCandidateGuideQuestionSubmissionsByOrganization(limit: Int, organizationId: ID!): [QuestionSubmissionResult!]! + relatedQuestionSubmissionByCandidateAndQuestion(candidateId: ID!, organizationId: ID!, questionId: ID!): QuestionSubmissionResult + respondentsByOrganizationId(after: String, before: String, first: Int, last: Int, organizationId: ID!): RespondentResultConnection! + submissions(filter: QuestionSubmissionsFilter!, organizationId: ID!): [QuestionSubmissionResult!]! + """Get all users""" + userCount(filter: UserCountFilter): Int + """Publicly accessible user information""" + userProfile(userId: ID!): UserResult! + votingGuideById( + """Voting guide id""" + id: ID! + ): VotingGuideResult! + votingGuidesByIds(ids: [ID!]!): [VotingGuideResult!]! + votingGuidesByUserId( + """User id""" + userId: ID! + ): [VotingGuideResult!]! +} + +type QuestionResult { + allowAnonymousResponses: Boolean! + commonWords: [CommonWordsResult!]! + createdAt: DateTime! + id: ID! + issueTags: [IssueTagResult!]! + prompt: String! + responseCharLimit: Int + responsePlaceholderText: String + sentimentCounts: [SentimentCountResult!]! + submissionCountByDate: [SubmissionCountByDateResult!]! + submissions: [QuestionSubmissionResult!]! + submissionsByCandidateId(candidateId: ID!): [QuestionSubmissionResult!]! + submissionsByRace(raceId: ID!): [QuestionSubmissionResult!]! + translations: JSON + updatedAt: DateTime! +} + +type QuestionSubmissionResult { + """ + Returns the candidate guide embed associated with the question submission. + """ + candidateGuideEmbed: EmbedResult + candidateId: ID + createdAt: DateTime! + editorial: String + id: ID! + politician: PoliticianResult + question: QuestionResult! + questionId: ID! + respondent: RespondentResult + respondentId: ID + response: String! + sentiment: Sentiment + translations: JSON + updatedAt: DateTime! +} + +input QuestionSubmissionsFilter { + county: String + politicalScope: PoliticalScope + query: String + raceType: RaceType + state: State +} + +type RaceCandidateResult { + candidateId: ID! + votePercentage: Float + votes: Int +} + +input RaceFilter { + electionId: UUID + electionScope: ElectionScope + officeTitles: [String!] + politicalScope: PoliticalScope + query: String + raceType: RaceType + state: State + year: Int +} + +type RaceResult { + ballotpediaLink: String + candidates: [PoliticianResult!]! + description: String + earlyVotingBeginsDate: NaiveDate + election: ElectionResult! + electionDate: NaiveDate + electionId: ID + id: ID! + isSpecialElection: Boolean! + numElect: Int + office: OfficeResult! + officeId: ID! + officialWebsite: String + party: PoliticalParty + partyId: ID + raceType: RaceType! + relatedEmbeds: [EmbedResult!]! + results: RaceResultsResult! + slug: String! + state: State + title: String! + voteType: VoteType! +} + +type RaceResultConnection { + """A list of edges.""" + edges: [RaceResultEdge!]! + """A list of nodes.""" + nodes: [RaceResult!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Total result set count""" + totalCount: Int! +} + +"""An edge in a connection.""" +type RaceResultEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: RaceResult! +} + +type RaceResultsResult { + numPrecinctsReporting: Int + precinctReportingPercentage: Float + totalPrecincts: Int + totalVotes: Int + votesByCandidate: [RaceCandidateResult!]! + winners: [PoliticianResult!] +} + +enum RaceType { + GENERAL + PRIMARY +} + +type RatingResult { + organization: OrganizationResult + vsRating: VsRating! +} + +type RatingResultConnection { + """A list of edges.""" + edges: [RatingResultEdge!]! + """A list of nodes.""" + nodes: [RatingResult!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Total result set count""" + totalCount: Int! +} + +"""An edge in a connection.""" +type RatingResultEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: RatingResult! +} + +type Referral { + chamber: String! + chamberId: Int! + committeeId: Int! + date: String! + name: String! +} + +type RespondentResult { + email: String! + name: String! +} + +type RespondentResultConnection { + """A list of edges.""" + edges: [RespondentResultEdge!]! + """A list of nodes.""" + nodes: [RespondentResult!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + """Total result set count""" + totalCount: Int! +} + +"""An edge in a connection.""" +type RespondentResultEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: RespondentResult! +} + +type RollCall { + absent: Int! + billId: Int! + chamber: String! + chamberId: Int! + date: String! + desc: String! + nay: Int! + nv: Int! + passed: Int! + rollCallId: Int! + total: Int! + votes: [RollCallVote!]! + yea: Int! +} + +type RollCallVote { + peopleId: Int! + voteId: Int! + voteText: String! +} + +type Sast { + sastBillId: Int! + sastBillNumber: String! + typeField: String! + typeId: Int! +} + +type Sector { + id: String! + individuals: Int! + name: String! + pacs: Int! + total: Int! +} + +enum Sentiment { + NEGATIVE + NEUTRAL + POSITIVE + UNKNOWN +} + +type SentimentCountResult { + count: Int! + sentiment: Sentiment! +} + +type SessionResult { + congressName: String! + description: String! + endDate: NaiveDate + name: String! + startDate: NaiveDate + state: State +} + +type Sponsor { + ballotpedia: String! + committeeId: JSON! + committeeSponsor: Int! + district: String! + firstName: String! + ftmEid: Int! + lastName: String! + middleName: String! + name: String! + nickname: String! + opensecretsId: String! + party: String! + partyId: JSON! + peopleId: Int! + personHash: String! + role: String! + roleId: Int! + sponsorOrder: Int! + sponsorTypeId: Int! + suffix: String! + votesmartId: Int! +} + +enum State { + AK + AL + AR + AS + AZ + CA + CO + CT + DC + DE + FL + FM + GA + GU + HI + IA + ID + IL + IN + KS + KY + LA + MA + MD + ME + MH + MI + MN + MO + MP + MS + MT + NC + ND + NE + NH + NJ + NM + NV + NY + OH + OK + OR + PA + PR + PW + RI + SC + SD + TN + TX + UT + VA + VI + VT + WA + WI + WV + WY +} + +type Statement { + authorId: UUID + content: String! + conversationId: UUID! + createdAt: DateTime! + id: UUID! + moderationStatus: StatementModerationStatus! + updatedAt: DateTime! +} + +input StatementFilter { + moderationStatuses: [StatementModerationStatus!] +} + +enum StatementModerationStatus { + ACCEPTED + REJECTED + SEED + UNMODERATED +} + +type StatementResult { + author: UserResult + authorId: ID + content: String! + conversationId: ID! + createdAt: DateTime! + id: ID! + moderationStatus: StatementModerationStatus! + neutralVotes: Int! + opposeVotes: Int! + percentVoted: Float! + supportVotes: Int! + totalVotes: Int! + voteByUserOrSession(userId: ID): ArgumentPosition +} + +enum StatementSort { + CONTROVERSIAL + MOST_AGREE + MOST_VOTES + NEWEST +} + +type StatementVote { + content: String! + createdAt: DateTime! + id: UUID! + sessionId: UUID + statementId: UUID! + updatedAt: DateTime! + userId: UUID + voteType: ArgumentPosition! +} + +type Subject { + subjectId: Int! + subjectName: String! +} + +type SubmissionCountByDateResult { + count: Int! + date: DateTime! +} + +type Subscription { + """ + Heartbeat, containing the UTC timestamp of the last server-sent payload + """ + heartbeat(interval: Int! = 1000): Heartbeat! +} + +type Text { + date: String! + docId: Int! + mime: String! + mimeId: Int! + stateLink: String! + textSize: Int! + typeField: String! + typeId: Int! + url: String! +} + +type TimeSeriesPoint { + count: Int! + timestamp: DateTime! +} + +""" +A UUID is a unique 128-bit number, stored as 16 octets. UUIDs are parsed as +Strings within GraphQL. UUIDs are used to assign unique identifiers to +entities without requiring a central allocating authority. + +# References + +* [Wikipedia: Universally Unique Identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier) +* [RFC4122: A Universally Unique IDentifier (UUID) URN Namespace](http://tools.ietf.org/html/rfc4122) +""" +scalar UUID + +input UpdateCandidateGuideRaceInput { + wereCandidatesEmailed: Boolean! +} + +type UpdateCandidateGuideRaceResult { + createdAt: DateTime! + updatedAt: DateTime! + wereCandidatesEmailed: Boolean! +} + +input UpsertCandidateGuideInput { + id: UUID + name: String + organizationId: UUID + raceIds: [UUID!] + submissionsCloseAt: DateTime + submissionsOpenAt: DateTime + userId: UUID +} + +input UpsertPollInput { + allowAnonymousResponses: Boolean + allowWriteInResponses: Boolean + id: UUID + name: String + options: [UpsertPollOptionInput!]! + organizationId: UUID + prompt: String +} + +input UpsertPollOptionInput { + id: UUID + isWriteIn: Boolean + optionText: String! +} + +input UpsertPollSubmissionInput { + id: UUID + pollId: UUID! + pollOptionId: UUID + respondentId: UUID + writeInResponse: String +} + +input UpsertQuestionInput { + allowAnonymousResponses: Boolean + candidateGuideId: UUID + embedId: UUID + id: UUID + issueTagIds: [UUID!] + name: String + organizationId: UUID + prompt: String + responseCharLimit: Int + responsePlaceholderText: String + shouldTranslate: Boolean + translations: JSON +} + +input UpsertQuestionSubmissionInput { + candidateId: UUID + copiedFromId: UUID + editorial: String + id: UUID + questionId: UUID! + respondentId: UUID + response: String! + sentiment: Sentiment + shouldTranslate: Boolean + translations: JSON +} + +input UpsertRespondentInput { + email: String! + id: UUID + name: String! + organizationId: UUID! +} + +input UserCountFilter { + state: State +} + +type UserResult { + email: String! + firstName: String + id: ID! + lastName: String + profilePictureUrl: String + username: String! +} + +type VoteDistributionBucket { + participantCount: Int! + percentage: Float! + voteCount: Int! +} + +enum VoteType { + PLURALITY + RANKED_CHOICE +} + +type VotingGuideCandidateResult { + candidateId: ID! + isEndorsement: Boolean! + note: String + politician: PoliticianResult! +} + +type VotingGuideResult { + candidates: [VotingGuideCandidateResult!]! + description: String + election: ElectionResult! + electionId: ID! + id: ID! + title: String + user: UserResult! + userId: ID! +} + +type VsRating { + categories: JSON! + rating: JSON! + ratingId: JSON + ratingName: String! + ratingText: String! + sigId: JSON! + timespan: JSON! +} \ No newline at end of file diff --git a/package.json b/package.json index ec9f4de7..c71f64ab 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "prebuild": "dotenv -c production -- graphql-codegen", "prepare": "husky install", "build-search-index": "tsx scripts/build-search-index.ts", - "build-schema-docs": "tsx scripts/process-graphql-schema.ts", + "build-schema-docs": "dotenv -c local -- graphql-codegen --config codegen.public.yml && tsx scripts/process-graphql-schema.ts", "test": "npx playwright test" }, "sideEffects": [ diff --git a/scripts/process-graphql-schema.ts b/scripts/process-graphql-schema.ts index e5b66a32..3f18ad8b 100644 --- a/scripts/process-graphql-schema.ts +++ b/scripts/process-graphql-schema.ts @@ -171,7 +171,11 @@ const processType = (type: any) => ({ }); const processAndSaveSchema = async () => { - const SCHEMA_PATH = path.join(process.cwd(), "graphql", "schema.graphql"); + const SCHEMA_PATH = path.join( + process.cwd(), + "graphql", + "schema-public.graphql" + ); const OUTPUT_DIR = path.join(process.cwd(), "generated", "schema"); try {