diff --git a/hasura/metadata/databases/backend-db/tables/sequent_backend_ballot_publication.yaml b/hasura/metadata/databases/backend-db/tables/sequent_backend_ballot_publication.yaml index a7bb872f820..7da044f8209 100644 --- a/hasura/metadata/databases/backend-db/tables/sequent_backend_ballot_publication.yaml +++ b/hasura/metadata/databases/backend-db/tables/sequent_backend_ballot_publication.yaml @@ -136,7 +136,9 @@ select_permissions: - tenant_id filter: {} role: service-account - - comment: Allow voters to identify only the active publication containing their authorized elections. + - comment: >- + Allow voters to identify only the active publication containing their + authorized elections. permission: columns: - deleted_at diff --git a/packages/admin-portal/rust/sequent-core-0.1.0.tgz b/packages/admin-portal/rust/sequent-core-0.1.0.tgz index 80a279328c6..f7ffc5e17b9 100644 Binary files a/packages/admin-portal/rust/sequent-core-0.1.0.tgz and b/packages/admin-portal/rust/sequent-core-0.1.0.tgz differ diff --git a/packages/admin-portal/src/gql/graphql.ts b/packages/admin-portal/src/gql/graphql.ts index f8ae1a25edd..06b143fe822 100644 --- a/packages/admin-portal/src/gql/graphql.ts +++ b/packages/admin-portal/src/gql/graphql.ts @@ -2,7 +2,7 @@ import { VotingStatusChannel } from '@sequentech/ui-core'; import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; export type Maybe = T | null; -export type InputMaybe = T | null | undefined; +export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; diff --git a/packages/ballot-verifier/graphql.schema.json b/packages/ballot-verifier/graphql.schema.json index 16e64bf0d76..4d140d385f1 100644 --- a/packages/ballot-verifier/graphql.schema.json +++ b/packages/ballot-verifier/graphql.schema.json @@ -1894,6 +1894,18 @@ "description": null, "isOneOf": null, "fields": [ + { + "name": "error_msg", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ids", "description": null, @@ -1905,6 +1917,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "task_execution", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "tasks_execution_type", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -9607,6 +9631,126 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "description": null, + "isOneOf": null, + "fields": [ + { + "name": "annotations", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "jsonb", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_header", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "description": null, + "isOneOf": null, + "fields": [ + { + "name": "attributes", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttribute", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "groups", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "VoterInformationLetterOutput", @@ -16700,6 +16844,30 @@ "name": "delete_users", "description": "delete users", "args": [ + { + "name": "attributes", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "authorized_to_election_alias", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "election_event_id", "description": null, @@ -16712,6 +16880,102 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "election_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email_verified", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "enabled", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "has_voted", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "select_all", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "tenant_id", "description": null, @@ -16728,23 +16992,31 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "username", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "users_id", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } }, @@ -30317,6 +30589,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -30418,6 +30702,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -35725,6 +36021,51 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "get_user_profile_configuration", + "description": null, + "args": [ + { + "name": "election_event_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "tenant_id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "get_users", "description": null, @@ -118131,6 +118472,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -118638,6 +119003,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -118847,6 +119236,18 @@ "description": "aggregate fields of \"sequent_backend.results_election_area\"", "isOneOf": null, "fields": [ + { + "name": "avg", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "count", "description": null, @@ -118919,6 +119320,90 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "stddev", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sum", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variance", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -118950,6 +119435,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "description": "aggregate avg on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_bool_exp", @@ -119021,6 +119542,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119238,6 +119783,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "description": "input type for incrementing numeric columns in table \"sequent_backend.results_election_area\"", + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_insert_input", @@ -119257,6 +119838,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119388,6 +119993,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119508,6 +120137,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119745,6 +120398,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119973,6 +120650,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -120049,6 +120738,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120162,6 +120875,114 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "description": "aggregate stddev on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "description": "aggregate stddev_pop on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "description": "aggregate stddev_samp on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_stream_cursor_input", @@ -120221,6 +121042,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120334,6 +121179,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "description": "aggregate sum on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "sequent_backend_results_election_area_update_column", @@ -120349,6 +121230,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -120461,6 +121354,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -120506,12 +121411,144 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "description": "aggregate var_pop on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "description": "aggregate var_samp on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "description": "aggregate variance on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "sequent_backend_results_election_avg_fields", "description": "aggregate avg on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -120625,6 +121662,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120979,6 +122040,30 @@ "isOneOf": false, "fields": null, "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -121039,6 +122124,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121206,6 +122315,30 @@ "description": "aggregate max on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121350,6 +122483,30 @@ "description": "aggregate min on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121623,6 +122780,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121923,6 +123104,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -122023,6 +123216,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -122190,6 +123407,30 @@ "description": "aggregate stddev on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122238,6 +123479,30 @@ "description": "aggregate stddev_pop on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122286,6 +123551,30 @@ "description": "aggregate stddev_samp on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122387,6 +123676,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -122554,6 +123867,30 @@ "description": "aggregate sum on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122611,6 +123948,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -122810,6 +124159,30 @@ "description": "aggregate var_pop on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122858,6 +124231,30 @@ "description": "aggregate var_samp on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122906,6 +124303,30 @@ "description": "aggregate variance on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, diff --git a/packages/ballot-verifier/rust/sequent-core-0.1.0.tgz b/packages/ballot-verifier/rust/sequent-core-0.1.0.tgz index 80a279328c6..f7ffc5e17b9 100644 Binary files a/packages/ballot-verifier/rust/sequent-core-0.1.0.tgz and b/packages/ballot-verifier/rust/sequent-core-0.1.0.tgz differ diff --git a/packages/ballot-verifier/src/gql/gql.ts b/packages/ballot-verifier/src/gql/gql.ts index 30c6b78923a..b84ff08dcfa 100644 --- a/packages/ballot-verifier/src/gql/gql.ts +++ b/packages/ballot-verifier/src/gql/gql.ts @@ -13,10 +13,10 @@ import {TypedDocumentNode as DocumentNode} from "@graphql-typed-document-node/co * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size */ type Documents = { - "\n query GetBallotStyles {\n sequent_backend_ballot_style(where: {deleted_at: {_is_null: true}}) {\n id\n election_id\n election_event_id\n status\n tenant_id\n ballot_eml\n ballot_signature\n created_at\n area_id\n annotations\n labels\n last_updated_at\n deleted_at\n }\n }\n": typeof types.GetBallotStylesDocument + "\n query GetBallotStyles {\n sequent_backend_ballot_publication(\n where: {deleted_at: {_is_null: true}, published_at: {_is_null: false}}\n ) {\n id\n published_at\n }\n sequent_backend_ballot_style(where: {deleted_at: {_is_null: true}}) {\n id\n ballot_publication_id\n election_id\n election_event_id\n status\n tenant_id\n ballot_eml\n ballot_signature\n created_at\n area_id\n annotations\n labels\n last_updated_at\n deleted_at\n }\n }\n": typeof types.GetBallotStylesDocument } const documents: Documents = { - "\n query GetBallotStyles {\n sequent_backend_ballot_style(where: {deleted_at: {_is_null: true}}) {\n id\n election_id\n election_event_id\n status\n tenant_id\n ballot_eml\n ballot_signature\n created_at\n area_id\n annotations\n labels\n last_updated_at\n deleted_at\n }\n }\n": + "\n query GetBallotStyles {\n sequent_backend_ballot_publication(\n where: {deleted_at: {_is_null: true}, published_at: {_is_null: false}}\n ) {\n id\n published_at\n }\n sequent_backend_ballot_style(where: {deleted_at: {_is_null: true}}) {\n id\n ballot_publication_id\n election_id\n election_event_id\n status\n tenant_id\n ballot_eml\n ballot_signature\n created_at\n area_id\n annotations\n labels\n last_updated_at\n deleted_at\n }\n }\n": types.GetBallotStylesDocument, } @@ -38,8 +38,8 @@ export function graphql(source: string): unknown * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql( - source: "\n query GetBallotStyles {\n sequent_backend_ballot_style(where: {deleted_at: {_is_null: true}}) {\n id\n election_id\n election_event_id\n status\n tenant_id\n ballot_eml\n ballot_signature\n created_at\n area_id\n annotations\n labels\n last_updated_at\n deleted_at\n }\n }\n" -): (typeof documents)["\n query GetBallotStyles {\n sequent_backend_ballot_style(where: {deleted_at: {_is_null: true}}) {\n id\n election_id\n election_event_id\n status\n tenant_id\n ballot_eml\n ballot_signature\n created_at\n area_id\n annotations\n labels\n last_updated_at\n deleted_at\n }\n }\n"] + source: "\n query GetBallotStyles {\n sequent_backend_ballot_publication(\n where: {deleted_at: {_is_null: true}, published_at: {_is_null: false}}\n ) {\n id\n published_at\n }\n sequent_backend_ballot_style(where: {deleted_at: {_is_null: true}}) {\n id\n ballot_publication_id\n election_id\n election_event_id\n status\n tenant_id\n ballot_eml\n ballot_signature\n created_at\n area_id\n annotations\n labels\n last_updated_at\n deleted_at\n }\n }\n" +): (typeof documents)["\n query GetBallotStyles {\n sequent_backend_ballot_publication(\n where: {deleted_at: {_is_null: true}, published_at: {_is_null: false}}\n ) {\n id\n published_at\n }\n sequent_backend_ballot_style(where: {deleted_at: {_is_null: true}}) {\n id\n ballot_publication_id\n election_id\n election_event_id\n status\n tenant_id\n ballot_eml\n ballot_signature\n created_at\n area_id\n annotations\n labels\n last_updated_at\n deleted_at\n }\n }\n"] export function graphql(source: string) { return (documents as any)[source] ?? {} diff --git a/packages/ballot-verifier/src/gql/graphql.ts b/packages/ballot-verifier/src/gql/graphql.ts index 3017b84cd45..5ba686be4e0 100644 --- a/packages/ballot-verifier/src/gql/graphql.ts +++ b/packages/ballot-verifier/src/gql/graphql.ts @@ -239,7 +239,9 @@ export type DeleteUserOutput = { export type DeleteUsersOutput = { __typename?: "DeleteUsersOutput" + error_msg?: Maybe ids?: Maybe + task_execution?: Maybe } export type DocumentPasswordOutput = { @@ -1133,6 +1135,20 @@ export type UserProfileAttribute = { validations?: Maybe } +export type UserProfileAttributeGroup = { + __typename?: "UserProfileAttributeGroup" + annotations?: Maybe + display_description?: Maybe + display_header?: Maybe + name?: Maybe +} + +export type UserProfileConfiguration = { + __typename?: "UserProfileConfiguration" + attributes: Array + groups: Array +} + export type VoterInformationLetterOutput = { __typename?: "VoterInformationLetterOutput" document_id: Scalars["String"]["output"] @@ -2754,9 +2770,20 @@ export type Mutation_RootDelete_User_RoleArgs = { /** mutation root */ export type Mutation_RootDelete_UsersArgs = { + attributes?: InputMaybe + authorized_to_election_alias?: InputMaybe election_event_id?: InputMaybe + election_id?: InputMaybe + email?: InputMaybe + email_verified?: InputMaybe + enabled?: InputMaybe + first_name?: InputMaybe + has_voted?: InputMaybe + last_name?: InputMaybe + select_all?: InputMaybe tenant_id: Scalars["String"]["input"] - users_id: Array + username?: InputMaybe + users_id?: InputMaybe> } /** mutation root */ @@ -4382,6 +4409,7 @@ export type Mutation_RootUpdate_Sequent_Backend_Results_Election_AreaArgs = { _delete_at_path?: InputMaybe _delete_elem?: InputMaybe _delete_key?: InputMaybe + _inc?: InputMaybe _prepend?: InputMaybe _set?: InputMaybe where: Sequent_Backend_Results_Election_Area_Bool_Exp @@ -4393,6 +4421,7 @@ export type Mutation_RootUpdate_Sequent_Backend_Results_Election_Area_By_PkArgs _delete_at_path?: InputMaybe _delete_elem?: InputMaybe _delete_key?: InputMaybe + _inc?: InputMaybe _prepend?: InputMaybe _set?: InputMaybe pk_columns: Sequent_Backend_Results_Election_Area_Pk_Columns_Input @@ -4951,6 +4980,7 @@ export type Query_Root = { get_roles: GetRolesOutput get_top_votes_by_ip?: Maybe get_user_profile_attributes: Array + get_user_profile_configuration: UserProfileConfiguration get_users: GetUsersOutput /** List Electoral Log */ listElectoralLog?: Maybe @@ -5276,6 +5306,11 @@ export type Query_RootGet_User_Profile_AttributesArgs = { tenant_id: Scalars["String"]["input"] } +export type Query_RootGet_User_Profile_ConfigurationArgs = { + election_event_id?: InputMaybe + tenant_id: Scalars["String"]["input"] +} + export type Query_RootGet_UsersArgs = { body: GetUsersInput } @@ -15927,6 +15962,8 @@ export type Sequent_Backend_Results_Contest_Variance_Fields = { export type Sequent_Backend_Results_Election = { __typename?: "sequent_backend_results_election" annotations?: Maybe + blank_ballots?: Maybe + blank_ballots_percent?: Maybe created_at?: Maybe documents?: Maybe election_event_id: Scalars["uuid"]["output"] @@ -15997,6 +16034,8 @@ export type Sequent_Backend_Results_Election_Append_Input = { export type Sequent_Backend_Results_Election_Area = { __typename?: "sequent_backend_results_election_area" area_id: Scalars["uuid"]["output"] + blank_ballots?: Maybe + blank_ballots_percent?: Maybe created_at: Scalars["timestamptz"]["output"] documents?: Maybe election_event_id: Scalars["uuid"]["output"] @@ -16023,9 +16062,17 @@ export type Sequent_Backend_Results_Election_Area_Aggregate = { /** aggregate fields of "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Aggregate_Fields = { __typename?: "sequent_backend_results_election_area_aggregate_fields" + avg?: Maybe count: Scalars["Int"]["output"] max?: Maybe min?: Maybe + stddev?: Maybe + stddev_pop?: Maybe + stddev_samp?: Maybe + sum?: Maybe + var_pop?: Maybe + var_samp?: Maybe + variance?: Maybe } /** aggregate fields of "sequent_backend.results_election_area" */ @@ -16039,12 +16086,21 @@ export type Sequent_Backend_Results_Election_Area_Append_Input = { documents?: InputMaybe } +/** aggregate avg on columns */ +export type Sequent_Backend_Results_Election_Area_Avg_Fields = { + __typename?: "sequent_backend_results_election_area_avg_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe +} + /** Boolean expression to filter rows from the table "sequent_backend.results_election_area". All fields are combined with a logical 'AND'. */ export type Sequent_Backend_Results_Election_Area_Bool_Exp = { _and?: InputMaybe> _not?: InputMaybe _or?: InputMaybe> area_id?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16079,9 +16135,17 @@ export type Sequent_Backend_Results_Election_Area_Delete_Key_Input = { documents?: InputMaybe } +/** input type for incrementing numeric columns in table "sequent_backend.results_election_area" */ +export type Sequent_Backend_Results_Election_Area_Inc_Input = { + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe +} + /** input type for inserting data into table "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Insert_Input = { area_id?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16097,6 +16161,8 @@ export type Sequent_Backend_Results_Election_Area_Insert_Input = { export type Sequent_Backend_Results_Election_Area_Max_Fields = { __typename?: "sequent_backend_results_election_area_max_fields" area_id?: Maybe + blank_ballots?: Maybe + blank_ballots_percent?: Maybe created_at?: Maybe election_event_id?: Maybe election_id?: Maybe @@ -16111,6 +16177,8 @@ export type Sequent_Backend_Results_Election_Area_Max_Fields = { export type Sequent_Backend_Results_Election_Area_Min_Fields = { __typename?: "sequent_backend_results_election_area_min_fields" area_id?: Maybe + blank_ballots?: Maybe + blank_ballots_percent?: Maybe created_at?: Maybe election_event_id?: Maybe election_id?: Maybe @@ -16140,6 +16208,8 @@ export type Sequent_Backend_Results_Election_Area_On_Conflict = { /** Ordering options when selecting data from "sequent_backend.results_election_area". */ export type Sequent_Backend_Results_Election_Area_Order_By = { area_id?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16169,6 +16239,10 @@ export enum Sequent_Backend_Results_Election_Area_Select_Column { /** column name */ AreaId = "area_id", /** column name */ + BlankBallots = "blank_ballots", + /** column name */ + BlankBallotsPercent = "blank_ballots_percent", + /** column name */ CreatedAt = "created_at", /** column name */ Documents = "documents", @@ -16191,6 +16265,8 @@ export enum Sequent_Backend_Results_Election_Area_Select_Column { /** input type for updating data in table "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Set_Input = { area_id?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16202,6 +16278,27 @@ export type Sequent_Backend_Results_Election_Area_Set_Input = { tenant_id?: InputMaybe } +/** aggregate stddev on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Fields = { + __typename?: "sequent_backend_results_election_area_stddev_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe +} + +/** aggregate stddev_pop on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Pop_Fields = { + __typename?: "sequent_backend_results_election_area_stddev_pop_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe +} + +/** aggregate stddev_samp on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Samp_Fields = { + __typename?: "sequent_backend_results_election_area_stddev_samp_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe +} + /** Streaming cursor of the table "sequent_backend_results_election_area" */ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Input = { /** Stream column input with initial value */ @@ -16213,6 +16310,8 @@ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Value_Input = { area_id?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16224,11 +16323,22 @@ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Value_Input = { tenant_id?: InputMaybe } +/** aggregate sum on columns */ +export type Sequent_Backend_Results_Election_Area_Sum_Fields = { + __typename?: "sequent_backend_results_election_area_sum_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe +} + /** update columns of table "sequent_backend.results_election_area" */ export enum Sequent_Backend_Results_Election_Area_Update_Column { /** column name */ AreaId = "area_id", /** column name */ + BlankBallots = "blank_ballots", + /** column name */ + BlankBallotsPercent = "blank_ballots_percent", + /** column name */ CreatedAt = "created_at", /** column name */ Documents = "documents", @@ -16257,6 +16367,8 @@ export type Sequent_Backend_Results_Election_Area_Updates = { _delete_elem?: InputMaybe /** delete key/value pair or string element. key/value pairs are matched based on their key value */ _delete_key?: InputMaybe + /** increments the numeric columns with given value of the filtered values */ + _inc?: InputMaybe /** prepend existing jsonb value of filtered columns with new jsonb value */ _prepend?: InputMaybe /** sets the columns of the filtered rows to the given values */ @@ -16265,9 +16377,32 @@ export type Sequent_Backend_Results_Election_Area_Updates = { where: Sequent_Backend_Results_Election_Area_Bool_Exp } +/** aggregate var_pop on columns */ +export type Sequent_Backend_Results_Election_Area_Var_Pop_Fields = { + __typename?: "sequent_backend_results_election_area_var_pop_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe +} + +/** aggregate var_samp on columns */ +export type Sequent_Backend_Results_Election_Area_Var_Samp_Fields = { + __typename?: "sequent_backend_results_election_area_var_samp_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe +} + +/** aggregate variance on columns */ +export type Sequent_Backend_Results_Election_Area_Variance_Fields = { + __typename?: "sequent_backend_results_election_area_variance_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe +} + /** aggregate avg on columns */ export type Sequent_Backend_Results_Election_Avg_Fields = { __typename?: "sequent_backend_results_election_avg_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe elegible_census?: Maybe total_voters?: Maybe total_voters_percent?: Maybe @@ -16279,6 +16414,8 @@ export type Sequent_Backend_Results_Election_Bool_Exp = { _not?: InputMaybe _or?: InputMaybe> annotations?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16323,6 +16460,8 @@ export type Sequent_Backend_Results_Election_Delete_Key_Input = { /** input type for incrementing numeric columns in table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Inc_Input = { + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe elegible_census?: InputMaybe total_voters?: InputMaybe total_voters_percent?: InputMaybe @@ -16331,6 +16470,8 @@ export type Sequent_Backend_Results_Election_Inc_Input = { /** input type for inserting data into table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Insert_Input = { annotations?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16349,6 +16490,8 @@ export type Sequent_Backend_Results_Election_Insert_Input = { /** aggregate max on columns */ export type Sequent_Backend_Results_Election_Max_Fields = { __typename?: "sequent_backend_results_election_max_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe created_at?: Maybe election_event_id?: Maybe election_id?: Maybe @@ -16365,6 +16508,8 @@ export type Sequent_Backend_Results_Election_Max_Fields = { /** aggregate min on columns */ export type Sequent_Backend_Results_Election_Min_Fields = { __typename?: "sequent_backend_results_election_min_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe created_at?: Maybe election_event_id?: Maybe election_id?: Maybe @@ -16397,6 +16542,8 @@ export type Sequent_Backend_Results_Election_On_Conflict = { /** Ordering options when selecting data from "sequent_backend.results_election". */ export type Sequent_Backend_Results_Election_Order_By = { annotations?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16432,6 +16579,10 @@ export enum Sequent_Backend_Results_Election_Select_Column { /** column name */ Annotations = "annotations", /** column name */ + BlankBallots = "blank_ballots", + /** column name */ + BlankBallotsPercent = "blank_ballots_percent", + /** column name */ CreatedAt = "created_at", /** column name */ Documents = "documents", @@ -16462,6 +16613,8 @@ export enum Sequent_Backend_Results_Election_Select_Column { /** input type for updating data in table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Set_Input = { annotations?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16480,6 +16633,8 @@ export type Sequent_Backend_Results_Election_Set_Input = { /** aggregate stddev on columns */ export type Sequent_Backend_Results_Election_Stddev_Fields = { __typename?: "sequent_backend_results_election_stddev_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe elegible_census?: Maybe total_voters?: Maybe total_voters_percent?: Maybe @@ -16488,6 +16643,8 @@ export type Sequent_Backend_Results_Election_Stddev_Fields = { /** aggregate stddev_pop on columns */ export type Sequent_Backend_Results_Election_Stddev_Pop_Fields = { __typename?: "sequent_backend_results_election_stddev_pop_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe elegible_census?: Maybe total_voters?: Maybe total_voters_percent?: Maybe @@ -16496,6 +16653,8 @@ export type Sequent_Backend_Results_Election_Stddev_Pop_Fields = { /** aggregate stddev_samp on columns */ export type Sequent_Backend_Results_Election_Stddev_Samp_Fields = { __typename?: "sequent_backend_results_election_stddev_samp_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe elegible_census?: Maybe total_voters?: Maybe total_voters_percent?: Maybe @@ -16512,6 +16671,8 @@ export type Sequent_Backend_Results_Election_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Sequent_Backend_Results_Election_Stream_Cursor_Value_Input = { annotations?: InputMaybe + blank_ballots?: InputMaybe + blank_ballots_percent?: InputMaybe created_at?: InputMaybe documents?: InputMaybe election_event_id?: InputMaybe @@ -16530,6 +16691,8 @@ export type Sequent_Backend_Results_Election_Stream_Cursor_Value_Input = { /** aggregate sum on columns */ export type Sequent_Backend_Results_Election_Sum_Fields = { __typename?: "sequent_backend_results_election_sum_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe elegible_census?: Maybe total_voters?: Maybe total_voters_percent?: Maybe @@ -16540,6 +16703,10 @@ export enum Sequent_Backend_Results_Election_Update_Column { /** column name */ Annotations = "annotations", /** column name */ + BlankBallots = "blank_ballots", + /** column name */ + BlankBallotsPercent = "blank_ballots_percent", + /** column name */ CreatedAt = "created_at", /** column name */ Documents = "documents", @@ -16589,6 +16756,8 @@ export type Sequent_Backend_Results_Election_Updates = { /** aggregate var_pop on columns */ export type Sequent_Backend_Results_Election_Var_Pop_Fields = { __typename?: "sequent_backend_results_election_var_pop_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe elegible_census?: Maybe total_voters?: Maybe total_voters_percent?: Maybe @@ -16597,6 +16766,8 @@ export type Sequent_Backend_Results_Election_Var_Pop_Fields = { /** aggregate var_samp on columns */ export type Sequent_Backend_Results_Election_Var_Samp_Fields = { __typename?: "sequent_backend_results_election_var_samp_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe elegible_census?: Maybe total_voters?: Maybe total_voters_percent?: Maybe @@ -16605,6 +16776,8 @@ export type Sequent_Backend_Results_Election_Var_Samp_Fields = { /** aggregate variance on columns */ export type Sequent_Backend_Results_Election_Variance_Fields = { __typename?: "sequent_backend_results_election_variance_fields" + blank_ballots?: Maybe + blank_ballots_percent?: Maybe elegible_census?: Maybe total_voters?: Maybe total_voters_percent?: Maybe @@ -24303,9 +24476,15 @@ export type GetBallotStylesQueryVariables = Exact<{[key: string]: never}> export type GetBallotStylesQuery = { __typename?: "query_root" + sequent_backend_ballot_publication: Array<{ + __typename?: "sequent_backend_ballot_publication" + id: any + published_at?: any | null + }> sequent_backend_ballot_style: Array<{ __typename?: "sequent_backend_ballot_style" id: any + ballot_publication_id: any election_id: any election_event_id: any status?: string | null @@ -24331,6 +24510,56 @@ export const GetBallotStylesDocument = { selectionSet: { kind: "SelectionSet", selections: [ + { + kind: "Field", + name: {kind: "Name", value: "sequent_backend_ballot_publication"}, + arguments: [ + { + kind: "Argument", + name: {kind: "Name", value: "where"}, + value: { + kind: "ObjectValue", + fields: [ + { + kind: "ObjectField", + name: {kind: "Name", value: "deleted_at"}, + value: { + kind: "ObjectValue", + fields: [ + { + kind: "ObjectField", + name: {kind: "Name", value: "_is_null"}, + value: {kind: "BooleanValue", value: true}, + }, + ], + }, + }, + { + kind: "ObjectField", + name: {kind: "Name", value: "published_at"}, + value: { + kind: "ObjectValue", + fields: [ + { + kind: "ObjectField", + name: {kind: "Name", value: "_is_null"}, + value: {kind: "BooleanValue", value: false}, + }, + ], + }, + }, + ], + }, + }, + ], + selectionSet: { + kind: "SelectionSet", + selections: [ + {kind: "Field", name: {kind: "Name", value: "id"}}, + {kind: "Field", name: {kind: "Name", value: "published_at"}}, + ], + }, + }, { kind: "Field", name: {kind: "Name", value: "sequent_backend_ballot_style"}, @@ -24363,6 +24592,10 @@ export const GetBallotStylesDocument = { kind: "SelectionSet", selections: [ {kind: "Field", name: {kind: "Name", value: "id"}}, + { + kind: "Field", + name: {kind: "Name", value: "ballot_publication_id"}, + }, {kind: "Field", name: {kind: "Name", value: "election_id"}}, {kind: "Field", name: {kind: "Name", value: "election_event_id"}}, {kind: "Field", name: {kind: "Name", value: "status"}}, diff --git a/packages/graphql.schema.json b/packages/graphql.schema.json index 8405052bdec..f08b0ff6bca 100644 --- a/packages/graphql.schema.json +++ b/packages/graphql.schema.json @@ -1723,6 +1723,18 @@ "name": "DeleteUsersOutput", "description": null, "fields": [ + { + "name": "error_msg", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ids", "description": null, @@ -1734,6 +1746,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "task_execution", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "tasks_execution_type", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -8956,6 +8980,124 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "description": null, + "fields": [ + { + "name": "annotations", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "jsonb", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_header", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "description": null, + "fields": [ + { + "name": "attributes", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttribute", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "groups", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "VoterInformationLetterOutput", @@ -15211,6 +15353,26 @@ "name": "delete_users", "description": "delete users", "args": [ + { + "name": "attributes", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "authorized_to_election_alias", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, { "name": "election_event_id", "description": null, @@ -15221,6 +15383,86 @@ }, "defaultValue": null }, + { + "name": "election_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "email", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "email_verified", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "enabled", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "has_voted", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "select_all", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, { "name": "tenant_id", "description": null, @@ -15235,23 +15477,29 @@ }, "defaultValue": null }, + { + "name": "username", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, { "name": "users_id", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } }, @@ -27372,6 +27620,16 @@ }, "defaultValue": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -27459,6 +27717,16 @@ }, "defaultValue": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -32136,6 +32404,47 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "get_user_profile_configuration", + "description": null, + "args": [ + { + "name": "election_event_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "tenant_id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "get_users", "description": null, @@ -106784,6 +107093,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -107273,6 +107606,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -107478,6 +107835,18 @@ "name": "sequent_backend_results_election_area_aggregate_fields", "description": "aggregate fields of \"sequent_backend.results_election_area\"", "fields": [ + { + "name": "avg", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "count", "description": null, @@ -107546,6 +107915,90 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "stddev", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sum", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variance", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -107574,6 +108027,41 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "description": "aggregate avg on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_bool_exp", @@ -107636,6 +108124,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -107825,6 +108333,37 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "description": "input type for incrementing numeric columns in table \"sequent_backend.results_election_area\"", + "fields": null, + "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_insert_input", @@ -107841,6 +108380,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -107953,6 +108512,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -108072,6 +108655,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -108298,6 +108905,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -108495,6 +109122,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -108568,6 +109207,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -108663,6 +109322,111 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "description": "aggregate stddev on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "description": "aggregate stddev_pop on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "description": "aggregate stddev_samp on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_stream_cursor_input", @@ -108714,6 +109478,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -108809,6 +109593,41 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "description": "aggregate sum on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "sequent_backend_results_election_area_update_column", @@ -108823,6 +109642,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -108926,6 +109757,16 @@ }, "defaultValue": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -108965,11 +109806,140 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "description": "aggregate var_pop on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "description": "aggregate var_samp on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "description": "aggregate variance on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "sequent_backend_results_election_avg_fields", "description": "aggregate avg on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -109074,6 +110044,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -109379,6 +110369,26 @@ "description": "input type for incrementing numeric columns in table \"sequent_backend.results_election\"", "fields": null, "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "elegible_census", "description": null, @@ -109430,6 +110440,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -109570,6 +110600,30 @@ "name": "sequent_backend_results_election_max_fields", "description": "aggregate max on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -109713,6 +110767,30 @@ "name": "sequent_backend_results_election_min_fields", "description": "aggregate min on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -109975,6 +111053,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -110232,6 +111330,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -110329,6 +111439,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -110469,6 +111599,30 @@ "name": "sequent_backend_results_election_stddev_fields", "description": "aggregate stddev on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -110516,6 +111670,30 @@ "name": "sequent_backend_results_election_stddev_pop_fields", "description": "aggregate stddev_pop on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -110563,6 +111741,30 @@ "name": "sequent_backend_results_election_stddev_samp_fields", "description": "aggregate stddev_samp on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -110656,6 +111858,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -110796,6 +112018,30 @@ "name": "sequent_backend_results_election_sum_fields", "description": "aggregate sum on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -110852,6 +112098,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -111033,6 +112291,30 @@ "name": "sequent_backend_results_election_var_pop_fields", "description": "aggregate var_pop on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -111080,6 +112362,30 @@ "name": "sequent_backend_results_election_var_samp_fields", "description": "aggregate var_samp on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -111127,6 +112433,30 @@ "name": "sequent_backend_results_election_variance_fields", "description": "aggregate variance on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, diff --git a/packages/results-portal/graphql.schema.json b/packages/results-portal/graphql.schema.json index 16e64bf0d76..4d140d385f1 100644 --- a/packages/results-portal/graphql.schema.json +++ b/packages/results-portal/graphql.schema.json @@ -1894,6 +1894,18 @@ "description": null, "isOneOf": null, "fields": [ + { + "name": "error_msg", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ids", "description": null, @@ -1905,6 +1917,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "task_execution", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "tasks_execution_type", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -9607,6 +9631,126 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "description": null, + "isOneOf": null, + "fields": [ + { + "name": "annotations", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "jsonb", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_header", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "description": null, + "isOneOf": null, + "fields": [ + { + "name": "attributes", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttribute", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "groups", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "VoterInformationLetterOutput", @@ -16700,6 +16844,30 @@ "name": "delete_users", "description": "delete users", "args": [ + { + "name": "attributes", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "authorized_to_election_alias", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "election_event_id", "description": null, @@ -16712,6 +16880,102 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "election_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email_verified", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "enabled", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "has_voted", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "select_all", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "tenant_id", "description": null, @@ -16728,23 +16992,31 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "username", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "users_id", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } }, @@ -30317,6 +30589,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -30418,6 +30702,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -35725,6 +36021,51 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "get_user_profile_configuration", + "description": null, + "args": [ + { + "name": "election_event_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "tenant_id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "get_users", "description": null, @@ -118131,6 +118472,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -118638,6 +119003,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -118847,6 +119236,18 @@ "description": "aggregate fields of \"sequent_backend.results_election_area\"", "isOneOf": null, "fields": [ + { + "name": "avg", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "count", "description": null, @@ -118919,6 +119320,90 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "stddev", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sum", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variance", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -118950,6 +119435,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "description": "aggregate avg on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_bool_exp", @@ -119021,6 +119542,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119238,6 +119783,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "description": "input type for incrementing numeric columns in table \"sequent_backend.results_election_area\"", + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_insert_input", @@ -119257,6 +119838,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119388,6 +119993,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119508,6 +120137,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119745,6 +120398,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119973,6 +120650,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -120049,6 +120738,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120162,6 +120875,114 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "description": "aggregate stddev on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "description": "aggregate stddev_pop on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "description": "aggregate stddev_samp on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_stream_cursor_input", @@ -120221,6 +121042,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120334,6 +121179,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "description": "aggregate sum on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "sequent_backend_results_election_area_update_column", @@ -120349,6 +121230,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -120461,6 +121354,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -120506,12 +121411,144 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "description": "aggregate var_pop on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "description": "aggregate var_samp on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "description": "aggregate variance on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "sequent_backend_results_election_avg_fields", "description": "aggregate avg on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -120625,6 +121662,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120979,6 +122040,30 @@ "isOneOf": false, "fields": null, "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -121039,6 +122124,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121206,6 +122315,30 @@ "description": "aggregate max on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121350,6 +122483,30 @@ "description": "aggregate min on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121623,6 +122780,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121923,6 +123104,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -122023,6 +123216,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -122190,6 +123407,30 @@ "description": "aggregate stddev on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122238,6 +123479,30 @@ "description": "aggregate stddev_pop on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122286,6 +123551,30 @@ "description": "aggregate stddev_samp on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122387,6 +123676,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -122554,6 +123867,30 @@ "description": "aggregate sum on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122611,6 +123948,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -122810,6 +124159,30 @@ "description": "aggregate var_pop on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122858,6 +124231,30 @@ "description": "aggregate var_samp on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122906,6 +124303,30 @@ "description": "aggregate variance on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, diff --git a/packages/results-portal/src/gql/graphql.ts b/packages/results-portal/src/gql/graphql.ts index 966cc1eb6cb..46a5c3c029e 100644 --- a/packages/results-portal/src/gql/graphql.ts +++ b/packages/results-portal/src/gql/graphql.ts @@ -238,7 +238,9 @@ export type DeleteUserOutput = { export type DeleteUsersOutput = { __typename?: 'DeleteUsersOutput'; + error_msg?: Maybe; ids?: Maybe; + task_execution?: Maybe; }; export type DocumentPasswordOutput = { @@ -1132,6 +1134,20 @@ export type UserProfileAttribute = { validations?: Maybe; }; +export type UserProfileAttributeGroup = { + __typename?: 'UserProfileAttributeGroup'; + annotations?: Maybe; + display_description?: Maybe; + display_header?: Maybe; + name?: Maybe; +}; + +export type UserProfileConfiguration = { + __typename?: 'UserProfileConfiguration'; + attributes: Array; + groups: Array; +}; + export type VoterInformationLetterOutput = { __typename?: 'VoterInformationLetterOutput'; document_id: Scalars['String']['output']; @@ -2785,9 +2801,20 @@ export type Mutation_RootDelete_User_RoleArgs = { /** mutation root */ export type Mutation_RootDelete_UsersArgs = { + attributes?: InputMaybe; + authorized_to_election_alias?: InputMaybe; election_event_id?: InputMaybe; + election_id?: InputMaybe; + email?: InputMaybe; + email_verified?: InputMaybe; + enabled?: InputMaybe; + first_name?: InputMaybe; + has_voted?: InputMaybe; + last_name?: InputMaybe; + select_all?: InputMaybe; tenant_id: Scalars['String']['input']; - users_id: Array; + username?: InputMaybe; + users_id?: InputMaybe>; }; @@ -4638,6 +4665,7 @@ export type Mutation_RootUpdate_Sequent_Backend_Results_Election_AreaArgs = { _delete_at_path?: InputMaybe; _delete_elem?: InputMaybe; _delete_key?: InputMaybe; + _inc?: InputMaybe; _prepend?: InputMaybe; _set?: InputMaybe; where: Sequent_Backend_Results_Election_Area_Bool_Exp; @@ -4650,6 +4678,7 @@ export type Mutation_RootUpdate_Sequent_Backend_Results_Election_Area_By_PkArgs _delete_at_path?: InputMaybe; _delete_elem?: InputMaybe; _delete_key?: InputMaybe; + _inc?: InputMaybe; _prepend?: InputMaybe; _set?: InputMaybe; pk_columns: Sequent_Backend_Results_Election_Area_Pk_Columns_Input; @@ -5263,6 +5292,7 @@ export type Query_Root = { get_roles: GetRolesOutput; get_top_votes_by_ip?: Maybe; get_user_profile_attributes: Array; + get_user_profile_configuration: UserProfileConfiguration; get_users: GetUsersOutput; /** List Electoral Log */ listElectoralLog?: Maybe; @@ -5601,6 +5631,12 @@ export type Query_RootGet_User_Profile_AttributesArgs = { }; +export type Query_RootGet_User_Profile_ConfigurationArgs = { + election_event_id?: InputMaybe; + tenant_id: Scalars['String']['input']; +}; + + export type Query_RootGet_UsersArgs = { body: GetUsersInput; }; @@ -16488,6 +16524,8 @@ export type Sequent_Backend_Results_Contest_Variance_Fields = { export type Sequent_Backend_Results_Election = { __typename?: 'sequent_backend_results_election'; annotations?: Maybe; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; documents?: Maybe; election_event_id: Scalars['uuid']['output']; @@ -16562,6 +16600,8 @@ export type Sequent_Backend_Results_Election_Append_Input = { export type Sequent_Backend_Results_Election_Area = { __typename?: 'sequent_backend_results_election_area'; area_id: Scalars['uuid']['output']; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at: Scalars['timestamptz']['output']; documents?: Maybe; election_event_id: Scalars['uuid']['output']; @@ -16589,9 +16629,17 @@ export type Sequent_Backend_Results_Election_Area_Aggregate = { /** aggregate fields of "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Aggregate_Fields = { __typename?: 'sequent_backend_results_election_area_aggregate_fields'; + avg?: Maybe; count: Scalars['Int']['output']; max?: Maybe; min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; @@ -16606,12 +16654,21 @@ export type Sequent_Backend_Results_Election_Area_Append_Input = { documents?: InputMaybe; }; +/** aggregate avg on columns */ +export type Sequent_Backend_Results_Election_Area_Avg_Fields = { + __typename?: 'sequent_backend_results_election_area_avg_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + /** Boolean expression to filter rows from the table "sequent_backend.results_election_area". All fields are combined with a logical 'AND'. */ export type Sequent_Backend_Results_Election_Area_Bool_Exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16646,9 +16703,17 @@ export type Sequent_Backend_Results_Election_Area_Delete_Key_Input = { documents?: InputMaybe; }; +/** input type for incrementing numeric columns in table "sequent_backend.results_election_area" */ +export type Sequent_Backend_Results_Election_Area_Inc_Input = { + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; +}; + /** input type for inserting data into table "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Insert_Input = { area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16664,6 +16729,8 @@ export type Sequent_Backend_Results_Election_Area_Insert_Input = { export type Sequent_Backend_Results_Election_Area_Max_Fields = { __typename?: 'sequent_backend_results_election_area_max_fields'; area_id?: Maybe; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; election_event_id?: Maybe; election_id?: Maybe; @@ -16678,6 +16745,8 @@ export type Sequent_Backend_Results_Election_Area_Max_Fields = { export type Sequent_Backend_Results_Election_Area_Min_Fields = { __typename?: 'sequent_backend_results_election_area_min_fields'; area_id?: Maybe; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; election_event_id?: Maybe; election_id?: Maybe; @@ -16707,6 +16776,8 @@ export type Sequent_Backend_Results_Election_Area_On_Conflict = { /** Ordering options when selecting data from "sequent_backend.results_election_area". */ export type Sequent_Backend_Results_Election_Area_Order_By = { area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16736,6 +16807,10 @@ export enum Sequent_Backend_Results_Election_Area_Select_Column { /** column name */ AreaId = 'area_id', /** column name */ + BlankBallots = 'blank_ballots', + /** column name */ + BlankBallotsPercent = 'blank_ballots_percent', + /** column name */ CreatedAt = 'created_at', /** column name */ Documents = 'documents', @@ -16758,6 +16833,8 @@ export enum Sequent_Backend_Results_Election_Area_Select_Column { /** input type for updating data in table "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Set_Input = { area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16769,6 +16846,27 @@ export type Sequent_Backend_Results_Election_Area_Set_Input = { tenant_id?: InputMaybe; }; +/** aggregate stddev on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Fields = { + __typename?: 'sequent_backend_results_election_area_stddev_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Pop_Fields = { + __typename?: 'sequent_backend_results_election_area_stddev_pop_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Samp_Fields = { + __typename?: 'sequent_backend_results_election_area_stddev_samp_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + /** Streaming cursor of the table "sequent_backend_results_election_area" */ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Input = { /** Stream column input with initial value */ @@ -16780,6 +16878,8 @@ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Value_Input = { area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16791,11 +16891,22 @@ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Value_Input = { tenant_id?: InputMaybe; }; +/** aggregate sum on columns */ +export type Sequent_Backend_Results_Election_Area_Sum_Fields = { + __typename?: 'sequent_backend_results_election_area_sum_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + /** update columns of table "sequent_backend.results_election_area" */ export enum Sequent_Backend_Results_Election_Area_Update_Column { /** column name */ AreaId = 'area_id', /** column name */ + BlankBallots = 'blank_ballots', + /** column name */ + BlankBallotsPercent = 'blank_ballots_percent', + /** column name */ CreatedAt = 'created_at', /** column name */ Documents = 'documents', @@ -16824,6 +16935,8 @@ export type Sequent_Backend_Results_Election_Area_Updates = { _delete_elem?: InputMaybe; /** delete key/value pair or string element. key/value pairs are matched based on their key value */ _delete_key?: InputMaybe; + /** increments the numeric columns with given value of the filtered values */ + _inc?: InputMaybe; /** prepend existing jsonb value of filtered columns with new jsonb value */ _prepend?: InputMaybe; /** sets the columns of the filtered rows to the given values */ @@ -16832,9 +16945,32 @@ export type Sequent_Backend_Results_Election_Area_Updates = { where: Sequent_Backend_Results_Election_Area_Bool_Exp; }; +/** aggregate var_pop on columns */ +export type Sequent_Backend_Results_Election_Area_Var_Pop_Fields = { + __typename?: 'sequent_backend_results_election_area_var_pop_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Sequent_Backend_Results_Election_Area_Var_Samp_Fields = { + __typename?: 'sequent_backend_results_election_area_var_samp_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + +/** aggregate variance on columns */ +export type Sequent_Backend_Results_Election_Area_Variance_Fields = { + __typename?: 'sequent_backend_results_election_area_variance_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + /** aggregate avg on columns */ export type Sequent_Backend_Results_Election_Avg_Fields = { __typename?: 'sequent_backend_results_election_avg_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -16846,6 +16982,8 @@ export type Sequent_Backend_Results_Election_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16890,6 +17028,8 @@ export type Sequent_Backend_Results_Election_Delete_Key_Input = { /** input type for incrementing numeric columns in table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Inc_Input = { + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; elegible_census?: InputMaybe; total_voters?: InputMaybe; total_voters_percent?: InputMaybe; @@ -16898,6 +17038,8 @@ export type Sequent_Backend_Results_Election_Inc_Input = { /** input type for inserting data into table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Insert_Input = { annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16916,6 +17058,8 @@ export type Sequent_Backend_Results_Election_Insert_Input = { /** aggregate max on columns */ export type Sequent_Backend_Results_Election_Max_Fields = { __typename?: 'sequent_backend_results_election_max_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; election_event_id?: Maybe; election_id?: Maybe; @@ -16932,6 +17076,8 @@ export type Sequent_Backend_Results_Election_Max_Fields = { /** aggregate min on columns */ export type Sequent_Backend_Results_Election_Min_Fields = { __typename?: 'sequent_backend_results_election_min_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; election_event_id?: Maybe; election_id?: Maybe; @@ -16964,6 +17110,8 @@ export type Sequent_Backend_Results_Election_On_Conflict = { /** Ordering options when selecting data from "sequent_backend.results_election". */ export type Sequent_Backend_Results_Election_Order_By = { annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16999,6 +17147,10 @@ export enum Sequent_Backend_Results_Election_Select_Column { /** column name */ Annotations = 'annotations', /** column name */ + BlankBallots = 'blank_ballots', + /** column name */ + BlankBallotsPercent = 'blank_ballots_percent', + /** column name */ CreatedAt = 'created_at', /** column name */ Documents = 'documents', @@ -17029,6 +17181,8 @@ export enum Sequent_Backend_Results_Election_Select_Column { /** input type for updating data in table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Set_Input = { annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -17047,6 +17201,8 @@ export type Sequent_Backend_Results_Election_Set_Input = { /** aggregate stddev on columns */ export type Sequent_Backend_Results_Election_Stddev_Fields = { __typename?: 'sequent_backend_results_election_stddev_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17055,6 +17211,8 @@ export type Sequent_Backend_Results_Election_Stddev_Fields = { /** aggregate stddev_pop on columns */ export type Sequent_Backend_Results_Election_Stddev_Pop_Fields = { __typename?: 'sequent_backend_results_election_stddev_pop_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17063,6 +17221,8 @@ export type Sequent_Backend_Results_Election_Stddev_Pop_Fields = { /** aggregate stddev_samp on columns */ export type Sequent_Backend_Results_Election_Stddev_Samp_Fields = { __typename?: 'sequent_backend_results_election_stddev_samp_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17079,6 +17239,8 @@ export type Sequent_Backend_Results_Election_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Sequent_Backend_Results_Election_Stream_Cursor_Value_Input = { annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -17097,6 +17259,8 @@ export type Sequent_Backend_Results_Election_Stream_Cursor_Value_Input = { /** aggregate sum on columns */ export type Sequent_Backend_Results_Election_Sum_Fields = { __typename?: 'sequent_backend_results_election_sum_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17107,6 +17271,10 @@ export enum Sequent_Backend_Results_Election_Update_Column { /** column name */ Annotations = 'annotations', /** column name */ + BlankBallots = 'blank_ballots', + /** column name */ + BlankBallotsPercent = 'blank_ballots_percent', + /** column name */ CreatedAt = 'created_at', /** column name */ Documents = 'documents', @@ -17156,6 +17324,8 @@ export type Sequent_Backend_Results_Election_Updates = { /** aggregate var_pop on columns */ export type Sequent_Backend_Results_Election_Var_Pop_Fields = { __typename?: 'sequent_backend_results_election_var_pop_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17164,6 +17334,8 @@ export type Sequent_Backend_Results_Election_Var_Pop_Fields = { /** aggregate var_samp on columns */ export type Sequent_Backend_Results_Election_Var_Samp_Fields = { __typename?: 'sequent_backend_results_election_var_samp_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17172,6 +17344,8 @@ export type Sequent_Backend_Results_Election_Var_Samp_Fields = { /** aggregate variance on columns */ export type Sequent_Backend_Results_Election_Variance_Fields = { __typename?: 'sequent_backend_results_election_variance_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; diff --git a/packages/step-cli/scripts/setup-telephone-load-test.sh b/packages/step-cli/scripts/setup-telephone-load-test.sh new file mode 100755 index 00000000000..fafd2418d8f --- /dev/null +++ b/packages/step-cli/scripts/setup-telephone-load-test.sh @@ -0,0 +1,253 @@ +#!/usr/bin/env bash +# SPDX-FileCopyrightText: 2026 Sequent Tech Inc +# +# SPDX-License-Identifier: AGPL-3.0-only + +# Stage 1 of the telephone (IVR) load test: provisions an election event for +# a tenant, bulk-creates DTMF-safe voters, runs the keys ceremony, publishes, +# and opens the TELEPHONE voting channel. Writes a summary.json + voters CSV +# that Stage 2 (driving `ivr-cli` calls) consumes. See IVR_LOAD_TEST_DESIGN.md +# at the repo root for the full design. +# +# Requires the `step-cli` binary on PATH (cd packages/step-cli && cargo build +# --release, or run inside `devenv shell` which already does this for you). + +set -euo pipefail + +usage() { + cat <<'USAGE' +Usage: setup-telephone-load-test.sh --election-event-json [options] + +Required: + --election-event-json Election event JSON to import (see + packages/headless-load-test/data/local/ + export_election_event-*.json for an example) + +Options (default to this repo's devcontainer dev tenant/Keycloak): + --tenant-id Default: $SUPER_ADMIN_TENANT_ID + --num-voters Default: 20 + --voter-pin-digits Numeric PIN length, max 8 (DTMF limit). Default: 6 + --threshold Key ceremony trustee threshold. Default: 2 + --endpoint-url Hasura GraphQL endpoint. Default: $HASURA_ENDPOINT + --keycloak-url Default: $KEYCLOAK_URL + --keycloak-admin-user Default: $KEYCLOAK_ADMIN + --keycloak-admin-password Default: $KEYCLOAK_ADMIN + --keycloak-client-id Default: api-key-client (needs "gold" acr + for publish/voting-status; the devcontainer's + $KEYCLOAK_CLI_CLIENT_ID is a lower tier and + will 403 on those two steps) + --keycloak-client-secret Default: this repo's devcontainer secret for + api-key-client + --trustee1-user Default: trustee1 + --trustee1-password Default: trustee1 + --trustee2-user Default: trustee2 + --trustee2-password Default: trustee2 + --out-dir Default: a fresh temp dir + -h, --help Show this help +USAGE +} + +TENANT_ID="${SUPER_ADMIN_TENANT_ID:-}" +ELECTION_EVENT_JSON="" +NUM_VOTERS=20 +VOTER_PIN_DIGITS=6 +THRESHOLD=2 +ENDPOINT_URL="${HASURA_ENDPOINT:-}" +KEYCLOAK_URL="${KEYCLOAK_URL:-}" +KEYCLOAK_ADMIN_USER="${KEYCLOAK_ADMIN:-}" +KEYCLOAK_ADMIN_PASSWORD="${KEYCLOAK_ADMIN:-}" +# NOT $KEYCLOAK_CLI_CLIENT_ID: that client (admin-portal in this devcontainer) +# gets Keycloak's default "silver" acr on direct-grant login, and `publish` / +# `update-event-voting-status` require "gold" (sequent-core's +# has_gold_permission checks claims.acr == "gold"). api-key-client is the one +# client configured with `default.acr.values: gold`, matching what every CLI +# tutorial in docs/docusaurus hardcodes for this same reason. +KEYCLOAK_CLIENT_ID="api-key-client" +KEYCLOAK_CLIENT_SECRET="4lzmxNgZHjfzS5BwDVlyrRUDqwvFLUvL" +TRUSTEE1_USER="trustee1" +TRUSTEE1_PASSWORD="trustee1" +TRUSTEE2_USER="trustee2" +TRUSTEE2_PASSWORD="trustee2" +OUT_DIR="" + +while [[ $# -gt 0 ]]; do + case "$1" in + --tenant-id) TENANT_ID="$2"; shift 2 ;; + --election-event-json) ELECTION_EVENT_JSON="$2"; shift 2 ;; + --num-voters) NUM_VOTERS="$2"; shift 2 ;; + --voter-pin-digits) VOTER_PIN_DIGITS="$2"; shift 2 ;; + --threshold) THRESHOLD="$2"; shift 2 ;; + --endpoint-url) ENDPOINT_URL="$2"; shift 2 ;; + --keycloak-url) KEYCLOAK_URL="$2"; shift 2 ;; + --keycloak-admin-user) KEYCLOAK_ADMIN_USER="$2"; shift 2 ;; + --keycloak-admin-password) KEYCLOAK_ADMIN_PASSWORD="$2"; shift 2 ;; + --keycloak-client-id) KEYCLOAK_CLIENT_ID="$2"; shift 2 ;; + --keycloak-client-secret) KEYCLOAK_CLIENT_SECRET="$2"; shift 2 ;; + --trustee1-user) TRUSTEE1_USER="$2"; shift 2 ;; + --trustee1-password) TRUSTEE1_PASSWORD="$2"; shift 2 ;; + --trustee2-user) TRUSTEE2_USER="$2"; shift 2 ;; + --trustee2-password) TRUSTEE2_PASSWORD="$2"; shift 2 ;; + --out-dir) OUT_DIR="$2"; shift 2 ;; + -h|--help) usage; exit 0 ;; + *) echo "Unknown argument: $1" >&2; usage; exit 1 ;; + esac +done + +[[ -n "$ELECTION_EVENT_JSON" ]] || { echo "Error: --election-event-json is required" >&2; usage; exit 1; } +[[ -f "$ELECTION_EVENT_JSON" ]] || { echo "Error: no such file: $ELECTION_EVENT_JSON" >&2; exit 1; } +[[ -n "$TENANT_ID" ]] || { echo "Error: --tenant-id is required (or set \$SUPER_ADMIN_TENANT_ID)" >&2; exit 1; } +[[ -n "$ENDPOINT_URL" ]] || { echo "Error: --endpoint-url is required (or set \$HASURA_ENDPOINT)" >&2; exit 1; } +[[ -n "$KEYCLOAK_URL" ]] || { echo "Error: --keycloak-url is required (or set \$KEYCLOAK_URL)" >&2; exit 1; } +[[ -n "$KEYCLOAK_ADMIN_USER" ]] || { echo "Error: --keycloak-admin-user is required (or set \$KEYCLOAK_ADMIN)" >&2; exit 1; } +[[ -n "$KEYCLOAK_CLIENT_ID" ]] || { echo "Error: --keycloak-client-id is required (or set \$KEYCLOAK_CLI_CLIENT_ID)" >&2; exit 1; } +[[ -n "$KEYCLOAK_CLIENT_SECRET" ]] || { echo "Error: --keycloak-client-secret is required (or set \$KEYCLOAK_CLI_CLIENT_SECRET)" >&2; exit 1; } +(( VOTER_PIN_DIGITS >= 1 && VOTER_PIN_DIGITS <= 8 )) || { echo "Error: --voter-pin-digits must be between 1 and 8 (DTMF voter auth limit)" >&2; exit 1; } +command -v step-cli >/dev/null 2>&1 || { echo "Error: step-cli not found on PATH. Build it: (cd packages/step-cli && cargo build --release)" >&2; exit 1; } + +export NO_COLOR=1 + +log() { echo "==> $*" >&2; } + +# step-cli always exits 0, even on failure (commands eprintln "Error! ..." +# and return); detect failure by scanning the captured output instead of $?. +run_step() { + local out + out="$(step-cli step "$@" 2>&1 | sed -E 's/\x1b\[[0-9;]*[a-zA-Z]//g')" + echo "$out" >&2 + if grep -q '^Error!' <<<"$out"; then + echo "==> step-cli step $* failed" >&2 + return 1 + fi + printf '%s' "$out" +} + +# The trustee containers complete the key ceremony asynchronously (polling +# the bulletin board on their own schedule, running an actual DKG protocol +# round), so `complete-key-ceremony` can legitimately 500 if called before a +# trustee has caught up to a just-started ceremony. Retry with backoff +# instead of treating the first failure as fatal. +retry_step() { + local attempts="$1" delay="$2" + shift 2 + local i=1 + while true; do + if run_step "$@" >/dev/null; then + return 0 + fi + if (( i >= attempts )); then + echo "==> step-cli step $* did not succeed after $attempts attempts" >&2 + return 1 + fi + log "Retrying in ${delay}s (attempt $((i + 1))/$attempts)..." + sleep "$delay" + i=$((i + 1)) + done +} + +# step-cli prints "Success! ... ID: " (or, inconsistently, "ID " +# with no colon) on the last line of a successful run; take the last ID-like +# token on the last such line. +extract_id() { + grep -oE 'ID:? +[A-Za-z0-9._-]+' <<<"$1" | tail -1 | awk '{print $NF}' +} + +configure_as() { + local user="$1" password="$2" + run_step config \ + --tenant-id "$TENANT_ID" \ + --endpoint-url "$ENDPOINT_URL" \ + --keycloak-url "$KEYCLOAK_URL" \ + --keycloak-user "$user" \ + --keycloak-password "$password" \ + --keycloak-client-id "$KEYCLOAK_CLIENT_ID" \ + --keycloak-client-secret "$KEYCLOAK_CLIENT_SECRET" >/dev/null +} + +if [[ -z "$OUT_DIR" ]]; then + OUT_DIR="$(mktemp -d "${TMPDIR:-/tmp}/telephone-load-test-XXXXXX")" +fi +mkdir -p "$OUT_DIR" +log "Writing outputs to $OUT_DIR" + +log "[1/7] Authenticating as admin ($KEYCLOAK_ADMIN_USER)" +configure_as "$KEYCLOAK_ADMIN_USER" "$KEYCLOAK_ADMIN_PASSWORD" + +log "[2/7] Importing election event from $ELECTION_EVENT_JSON" +out="$(run_step import-election --file-path "$ELECTION_EVENT_JSON" --is-local)" +ELECTION_EVENT_ID="$(extract_id "$out")" +[[ -n "$ELECTION_EVENT_ID" ]] || { echo "Error: could not parse election_event_id from import-election output" >&2; exit 1; } +log " election_event_id=$ELECTION_EVENT_ID" + +log "[3/7] Generating $NUM_VOTERS voters with numeric, ${VOTER_PIN_DIGITS}-digit DTMF-safe credentials" +cp "$ELECTION_EVENT_JSON" "$OUT_DIR/election-event.json" +cat >"$OUT_DIR/external_config.json" </dev/null +VOTERS_CSV="$OUT_DIR/voters_${NUM_VOTERS}.csv" +[[ -f "$VOTERS_CSV" ]] || { echo "Error: expected voters CSV at $VOTERS_CSV, not found" >&2; exit 1; } +log " voters_csv=$VOTERS_CSV" + +log "[4/7] Bulk-importing voters into the election event" +run_step import-voters --election-event-id "$ELECTION_EVENT_ID" --file-path "$VOTERS_CSV" --is-local >/dev/null + +log "[5/7] Starting the keys ceremony (threshold=$THRESHOLD)" +out="$(run_step start-key-ceremony --election-event-id "$ELECTION_EVENT_ID" --threshold "$THRESHOLD")" +KEY_CEREMONY_ID="$(extract_id "$out")" +[[ -n "$KEY_CEREMONY_ID" ]] || { echo "Error: could not parse key_ceremony_id from start-key-ceremony output" >&2; exit 1; } +log " key_ceremony_id=$KEY_CEREMONY_ID" + +log "[6/7] Completing the keys ceremony as $TRUSTEE1_USER, then $TRUSTEE2_USER" +configure_as "$TRUSTEE1_USER" "$TRUSTEE1_PASSWORD" +retry_step 30 5 complete-key-ceremony --election-event-id "$ELECTION_EVENT_ID" --key-ceremony-id "$KEY_CEREMONY_ID" +configure_as "$TRUSTEE2_USER" "$TRUSTEE2_PASSWORD" +retry_step 30 5 complete-key-ceremony --election-event-id "$ELECTION_EVENT_ID" --key-ceremony-id "$KEY_CEREMONY_ID" + +log "[7/7] Publishing and opening the TELEPHONE voting channel" +configure_as "$KEYCLOAK_ADMIN_USER" "$KEYCLOAK_ADMIN_PASSWORD" +run_step publish --election-event-id "$ELECTION_EVENT_ID" >/dev/null +run_step update-event-voting-status --election-event-id "$ELECTION_EVENT_ID" --voting-status OPEN --voting-channel TELEPHONE >/dev/null + +REALM_NAME="tenant-${TENANT_ID}-event-${ELECTION_EVENT_ID}" +cat >"$OUT_DIR/summary.json" < Result<(), Box> { + let start_time = Instant::now(); + let timeout = Duration::from_secs(300); + let polling_interval = Duration::from_secs(3); + + loop { + match crate::utils::tasks::get_task_status(task_execution_id) { + Ok(status) if status == "SUCCESS" => return Ok(()), + Ok(status) if status == "FAILED" => { + return Err("Import election event task failed".into()) + } + Ok(_) => { + if Instant::now().duration_since(start_time) >= timeout { + return Err("Timeout while waiting for import election event task to complete" + .into()); + } + sleep(polling_interval); + } + Err(e) => return Err(format!("Error checking task status: {}", e).into()), + } + } +} + pub fn import(file_path: &str, is_local: bool) -> Result> { let config = read_config()?; let client = reqwest::blocking::Client::new(); @@ -71,6 +98,14 @@ pub fn import(file_path: &str, is_local: bool) -> Result +// +// SPDX-License-Identifier: AGPL-3.0-only + +use crate::{ + types::hasura_types::*, + utils::{read_config::read_config, upload_file::GetUploadUrl}, +}; +use clap::Args; +use colored::Colorize; +use graphql_client::{GraphQLQuery, Response}; +use std::{ + thread::sleep, + time::{Duration, Instant}, +}; + +#[derive(Args)] +#[command( + about = "Bulk-import voters into an election event from a CSV/TSV file", + long_about = None +)] +pub struct ImportVoters { + /// Election event id - the election event to import the voters into + #[arg(long)] + election_event_id: String, + + /// Path of the voters file - .csv or .tsv, same column shape `generate-voters` produces + #[arg(long)] + file_path: String, + + #[arg(long, default_value_t = false)] + is_local: bool, +} + +#[derive(GraphQLQuery)] +#[graphql( + schema_path = "src/graphql/schema.json", + query_path = "src/graphql/import_users.graphql", + response_derives = "Debug,Clone,Deserialize,Serialize" +)] +pub struct ImportUsers; + +impl ImportVoters { + pub fn run(&self) { + match import_voters(&self.election_event_id, &self.file_path, self.is_local) { + Ok(()) => { + println!("{}", "Success! Voters imported successfully!".green()); + } + Err(err) => { + eprintln!("Error! Failed to import voters: {}", err) + } + } + } +} + +pub fn import_voters( + election_event_id: &str, + file_path: &str, + is_local: bool, +) -> Result<(), Box> { + let config = read_config()?; + let client = reqwest::blocking::Client::new(); + + let document_id = GetUploadUrl::upload_for_election_event( + file_path.to_string(), + is_local, + Some(election_event_id.to_string()), + )?; + + let variables = import_users::Variables { + tenant_id: config.tenant_id.clone(), + document_id, + election_event_id: Some(election_event_id.to_string()), + sha256: None, + }; + + let request_body = ImportUsers::build_query(variables); + + let response = client + .post(&config.endpoint_url) + .bearer_auth(config.auth_token) + .json(&request_body) + .send()?; + + let response_body: Response = + response.json().map_err(|e| format!("{:?}", e))?; + + let task_execution_id = match (response_body.data, response_body.errors) { + (Some(data), _) => { + let output = data.import_users.ok_or("failed starting import task")?; + output.task_execution.id + } + (None, Some(errors)) => { + let messages = errors + .into_iter() + .map(|e| e.message) + .collect::>() + .join(", "); + return Err(messages.into()); + } + _ => return Err("Unknown error: empty data and no GraphQL errors".into()), + }; + + let start_time = Instant::now(); + let timeout = Duration::from_secs(300); + let polling_interval = Duration::from_secs(3); + + loop { + match crate::utils::tasks::get_task_status(&task_execution_id) { + Ok(status) if status == "SUCCESS" => return Ok(()), + Ok(status) if status == "FAILED" => return Err("Import voters task failed".into()), + Ok(_) => { + if Instant::now().duration_since(start_time) >= timeout { + return Err("Timeout while waiting for import voters task to complete".into()); + } + sleep(polling_interval); + } + Err(e) => return Err(format!("Error checking task status: {}", e).into()), + } + } +} diff --git a/packages/step-cli/src/commands/mod.rs b/packages/step-cli/src/commands/mod.rs index 6d8421ebfb4..24b89ac3c77 100644 --- a/packages/step-cli/src/commands/mod.rs +++ b/packages/step-cli/src/commands/mod.rs @@ -23,6 +23,7 @@ pub mod generate_preview; pub mod generate_voters; pub mod hash_passwords; pub mod import_election_event; +pub mod import_voters; pub mod publish_changes; pub mod refresh_token; pub mod render_template; diff --git a/packages/step-cli/src/graphql/import_election_event.graphql b/packages/step-cli/src/graphql/import_election_event.graphql index 24e774d539b..a54186cc27b 100644 --- a/packages/step-cli/src/graphql/import_election_event.graphql +++ b/packages/step-cli/src/graphql/import_election_event.graphql @@ -7,5 +7,9 @@ mutation ImportElectionEvent($tenantId: String!, $documentId: String!, $checkOnl id message error + task_execution { + id + execution_status + } } } \ No newline at end of file diff --git a/packages/step-cli/src/graphql/import_users.graphql b/packages/step-cli/src/graphql/import_users.graphql new file mode 100644 index 00000000000..92f90e36bd9 --- /dev/null +++ b/packages/step-cli/src/graphql/import_users.graphql @@ -0,0 +1,13 @@ +mutation ImportUsers($tenantId: String!, $documentId: String!, $electionEventId: String, $sha256: String) { + import_users( + tenant_id: $tenantId + document_id: $documentId + election_event_id: $electionEventId + sha256: $sha256 + ) { + task_execution { + id + execution_status + } + } + } diff --git a/packages/step-cli/src/graphql/schema.json b/packages/step-cli/src/graphql/schema.json index 8405052bdec..f08b0ff6bca 100644 --- a/packages/step-cli/src/graphql/schema.json +++ b/packages/step-cli/src/graphql/schema.json @@ -1723,6 +1723,18 @@ "name": "DeleteUsersOutput", "description": null, "fields": [ + { + "name": "error_msg", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ids", "description": null, @@ -1734,6 +1746,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "task_execution", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "tasks_execution_type", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -8956,6 +8980,124 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "description": null, + "fields": [ + { + "name": "annotations", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "jsonb", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_header", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "description": null, + "fields": [ + { + "name": "attributes", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttribute", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "groups", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "VoterInformationLetterOutput", @@ -15211,6 +15353,26 @@ "name": "delete_users", "description": "delete users", "args": [ + { + "name": "attributes", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "authorized_to_election_alias", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, { "name": "election_event_id", "description": null, @@ -15221,6 +15383,86 @@ }, "defaultValue": null }, + { + "name": "election_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "email", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "email_verified", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "enabled", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "has_voted", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "select_all", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, { "name": "tenant_id", "description": null, @@ -15235,23 +15477,29 @@ }, "defaultValue": null }, + { + "name": "username", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null + }, { "name": "users_id", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } }, @@ -27372,6 +27620,16 @@ }, "defaultValue": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -27459,6 +27717,16 @@ }, "defaultValue": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -32136,6 +32404,47 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "get_user_profile_configuration", + "description": null, + "args": [ + { + "name": "election_event_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "tenant_id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "get_users", "description": null, @@ -106784,6 +107093,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -107273,6 +107606,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -107478,6 +107835,18 @@ "name": "sequent_backend_results_election_area_aggregate_fields", "description": "aggregate fields of \"sequent_backend.results_election_area\"", "fields": [ + { + "name": "avg", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "count", "description": null, @@ -107546,6 +107915,90 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "stddev", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sum", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variance", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -107574,6 +108027,41 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "description": "aggregate avg on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_bool_exp", @@ -107636,6 +108124,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -107825,6 +108333,37 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "description": "input type for incrementing numeric columns in table \"sequent_backend.results_election_area\"", + "fields": null, + "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_insert_input", @@ -107841,6 +108380,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -107953,6 +108512,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -108072,6 +108655,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -108298,6 +108905,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -108495,6 +109122,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -108568,6 +109207,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -108663,6 +109322,111 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "description": "aggregate stddev on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "description": "aggregate stddev_pop on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "description": "aggregate stddev_samp on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_stream_cursor_input", @@ -108714,6 +109478,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -108809,6 +109593,41 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "description": "aggregate sum on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "sequent_backend_results_election_area_update_column", @@ -108823,6 +109642,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -108926,6 +109757,16 @@ }, "defaultValue": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -108965,11 +109806,140 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "description": "aggregate var_pop on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "description": "aggregate var_samp on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "description": "aggregate variance on columns", + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "sequent_backend_results_election_avg_fields", "description": "aggregate avg on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -109074,6 +110044,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -109379,6 +110369,26 @@ "description": "input type for incrementing numeric columns in table \"sequent_backend.results_election\"", "fields": null, "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "elegible_census", "description": null, @@ -109430,6 +110440,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -109570,6 +110600,30 @@ "name": "sequent_backend_results_election_max_fields", "description": "aggregate max on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -109713,6 +110767,30 @@ "name": "sequent_backend_results_election_min_fields", "description": "aggregate min on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -109975,6 +111053,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -110232,6 +111330,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -110329,6 +111439,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -110469,6 +111599,30 @@ "name": "sequent_backend_results_election_stddev_fields", "description": "aggregate stddev on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -110516,6 +111670,30 @@ "name": "sequent_backend_results_election_stddev_pop_fields", "description": "aggregate stddev_pop on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -110563,6 +111741,30 @@ "name": "sequent_backend_results_election_stddev_samp_fields", "description": "aggregate stddev_samp on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -110656,6 +111858,26 @@ }, "defaultValue": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null + }, { "name": "created_at", "description": null, @@ -110796,6 +112018,30 @@ "name": "sequent_backend_results_election_sum_fields", "description": "aggregate sum on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -110852,6 +112098,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -111033,6 +112291,30 @@ "name": "sequent_backend_results_election_var_pop_fields", "description": "aggregate var_pop on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -111080,6 +112362,30 @@ "name": "sequent_backend_results_election_var_samp_fields", "description": "aggregate var_samp on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -111127,6 +112433,30 @@ "name": "sequent_backend_results_election_variance_fields", "description": "aggregate variance on columns", "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, diff --git a/packages/step-cli/src/main.rs b/packages/step-cli/src/main.rs index f7671bf16f8..5daf9c15642 100644 --- a/packages/step-cli/src/main.rs +++ b/packages/step-cli/src/main.rs @@ -40,6 +40,7 @@ enum StepCommands { ExportElectionEvent(commands::export_election_event::ExportElectionEventCommand), UpdateVoter(commands::update_voter::UpdateVoter), ImportElection(commands::import_election_event::ImportElectionEventFile), + ImportVoters(commands::import_voters::ImportVoters), Publish(commands::publish_changes::PublishChanges), RefreshToken(commands::refresh_token::Refresh), StartKeyCeremony(commands::start_key_ceremony::StartKeyCeremony), @@ -81,6 +82,7 @@ fn main() { StepCommands::ExportCastVotes(export_cast_votes) => export_cast_votes.run(), StepCommands::ExportElectionEvent(export_election_event) => export_election_event.run(), StepCommands::ImportElection(import) => import.run(), + StepCommands::ImportVoters(import_voters) => import_voters.run(), StepCommands::CreateVoter(create_voter) => create_voter.run(), StepCommands::UpdateVoter(update_voter) => update_voter.run(), StepCommands::Publish(publish_ballot) => publish_ballot.run(), diff --git a/packages/ui-core/rust/sequent-core-0.1.0.tgz b/packages/ui-core/rust/sequent-core-0.1.0.tgz index 80a279328c6..f7ffc5e17b9 100644 Binary files a/packages/ui-core/rust/sequent-core-0.1.0.tgz and b/packages/ui-core/rust/sequent-core-0.1.0.tgz differ diff --git a/packages/voting-portal/graphql.schema.json b/packages/voting-portal/graphql.schema.json index 16e64bf0d76..4d140d385f1 100644 --- a/packages/voting-portal/graphql.schema.json +++ b/packages/voting-portal/graphql.schema.json @@ -1894,6 +1894,18 @@ "description": null, "isOneOf": null, "fields": [ + { + "name": "error_msg", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ids", "description": null, @@ -1905,6 +1917,18 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "task_execution", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "tasks_execution_type", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -9607,6 +9631,126 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "description": null, + "isOneOf": null, + "fields": [ + { + "name": "annotations", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "jsonb", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "display_header", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "description": null, + "isOneOf": null, + "fields": [ + { + "name": "attributes", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttribute", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "groups", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileAttributeGroup", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "VoterInformationLetterOutput", @@ -16700,6 +16844,30 @@ "name": "delete_users", "description": "delete users", "args": [ + { + "name": "attributes", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "authorized_to_election_alias", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "election_event_id", "description": null, @@ -16712,6 +16880,102 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "election_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "email_verified", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "enabled", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "has_voted", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last_name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "select_all", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "tenant_id", "description": null, @@ -16728,23 +16992,31 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "username", + "description": null, + "type": { + "kind": "SCALAR", + "name": "json", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "users_id", "description": null, "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null } } }, @@ -30317,6 +30589,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -30418,6 +30702,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -35725,6 +36021,51 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "get_user_profile_configuration", + "description": null, + "args": [ + { + "name": "election_event_id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "tenant_id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserProfileConfiguration", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "get_users", "description": null, @@ -118131,6 +118472,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -118638,6 +119003,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -118847,6 +119236,18 @@ "description": "aggregate fields of \"sequent_backend.results_election_area\"", "isOneOf": null, "fields": [ + { + "name": "avg", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "count", "description": null, @@ -118919,6 +119320,90 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "stddev", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stddev_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sum", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_pop", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "var_samp", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variance", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -118950,6 +119435,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_avg_fields", + "description": "aggregate avg on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_bool_exp", @@ -119021,6 +119542,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119238,6 +119783,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "description": "input type for incrementing numeric columns in table \"sequent_backend.results_election_area\"", + "isOneOf": false, + "fields": null, + "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_insert_input", @@ -119257,6 +119838,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119388,6 +119993,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119508,6 +120137,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119745,6 +120398,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -119973,6 +120650,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -120049,6 +120738,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120162,6 +120875,114 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_fields", + "description": "aggregate stddev on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_pop_fields", + "description": "aggregate stddev_pop on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_stddev_samp_fields", + "description": "aggregate stddev_samp on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "sequent_backend_results_election_area_stream_cursor_input", @@ -120221,6 +121042,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120334,6 +121179,42 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_sum_fields", + "description": "aggregate sum on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "sequent_backend_results_election_area_update_column", @@ -120349,6 +121230,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -120461,6 +121354,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "_inc", + "description": "increments the numeric columns with given value of the filtered values", + "type": { + "kind": "INPUT_OBJECT", + "name": "sequent_backend_results_election_area_inc_input", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "_prepend", "description": "prepend existing jsonb value of filtered columns with new jsonb value", @@ -120506,12 +121411,144 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_pop_fields", + "description": "aggregate var_pop on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_var_samp_fields", + "description": "aggregate var_samp on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "sequent_backend_results_election_area_variance_fields", + "description": "aggregate variance on columns", + "isOneOf": null, + "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "sequent_backend_results_election_avg_fields", "description": "aggregate avg on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -120625,6 +121662,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "Int_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "numeric_comparison_exp", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -120979,6 +122040,30 @@ "isOneOf": false, "fields": null, "inputFields": [ + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -121039,6 +122124,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121206,6 +122315,30 @@ "description": "aggregate max on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121350,6 +122483,30 @@ "description": "aggregate min on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121623,6 +122780,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "ENUM", + "name": "order_by", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -121923,6 +123104,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -122023,6 +123216,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -122190,6 +123407,30 @@ "description": "aggregate stddev on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122238,6 +123479,30 @@ "description": "aggregate stddev_pop on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122286,6 +123551,30 @@ "description": "aggregate stddev_samp on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122387,6 +123676,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": null, @@ -122554,6 +123867,30 @@ "description": "aggregate sum on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "numeric", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122611,6 +123948,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "blank_ballots", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": "column name", + "isDeprecated": false, + "deprecationReason": null + }, { "name": "created_at", "description": "column name", @@ -122810,6 +124159,30 @@ "description": "aggregate var_pop on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122858,6 +124231,30 @@ "description": "aggregate var_samp on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, @@ -122906,6 +124303,30 @@ "description": "aggregate variance on columns", "isOneOf": null, "fields": [ + { + "name": "blank_ballots", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "blank_ballots_percent", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "elegible_census", "description": null, diff --git a/packages/voting-portal/rust/sequent-core-0.1.0.tgz b/packages/voting-portal/rust/sequent-core-0.1.0.tgz index 80a279328c6..f7ffc5e17b9 100644 Binary files a/packages/voting-portal/rust/sequent-core-0.1.0.tgz and b/packages/voting-portal/rust/sequent-core-0.1.0.tgz differ diff --git a/packages/voting-portal/src/gql/graphql.ts b/packages/voting-portal/src/gql/graphql.ts index 24c82a3c561..8922030673b 100644 --- a/packages/voting-portal/src/gql/graphql.ts +++ b/packages/voting-portal/src/gql/graphql.ts @@ -238,7 +238,9 @@ export type DeleteUserOutput = { export type DeleteUsersOutput = { __typename?: 'DeleteUsersOutput'; + error_msg?: Maybe; ids?: Maybe; + task_execution?: Maybe; }; export type DocumentPasswordOutput = { @@ -1132,6 +1134,20 @@ export type UserProfileAttribute = { validations?: Maybe; }; +export type UserProfileAttributeGroup = { + __typename?: 'UserProfileAttributeGroup'; + annotations?: Maybe; + display_description?: Maybe; + display_header?: Maybe; + name?: Maybe; +}; + +export type UserProfileConfiguration = { + __typename?: 'UserProfileConfiguration'; + attributes: Array; + groups: Array; +}; + export type VoterInformationLetterOutput = { __typename?: 'VoterInformationLetterOutput'; document_id: Scalars['String']['output']; @@ -2785,9 +2801,20 @@ export type Mutation_RootDelete_User_RoleArgs = { /** mutation root */ export type Mutation_RootDelete_UsersArgs = { + attributes?: InputMaybe; + authorized_to_election_alias?: InputMaybe; election_event_id?: InputMaybe; + election_id?: InputMaybe; + email?: InputMaybe; + email_verified?: InputMaybe; + enabled?: InputMaybe; + first_name?: InputMaybe; + has_voted?: InputMaybe; + last_name?: InputMaybe; + select_all?: InputMaybe; tenant_id: Scalars['String']['input']; - users_id: Array; + username?: InputMaybe; + users_id?: InputMaybe>; }; @@ -4638,6 +4665,7 @@ export type Mutation_RootUpdate_Sequent_Backend_Results_Election_AreaArgs = { _delete_at_path?: InputMaybe; _delete_elem?: InputMaybe; _delete_key?: InputMaybe; + _inc?: InputMaybe; _prepend?: InputMaybe; _set?: InputMaybe; where: Sequent_Backend_Results_Election_Area_Bool_Exp; @@ -4650,6 +4678,7 @@ export type Mutation_RootUpdate_Sequent_Backend_Results_Election_Area_By_PkArgs _delete_at_path?: InputMaybe; _delete_elem?: InputMaybe; _delete_key?: InputMaybe; + _inc?: InputMaybe; _prepend?: InputMaybe; _set?: InputMaybe; pk_columns: Sequent_Backend_Results_Election_Area_Pk_Columns_Input; @@ -5263,6 +5292,7 @@ export type Query_Root = { get_roles: GetRolesOutput; get_top_votes_by_ip?: Maybe; get_user_profile_attributes: Array; + get_user_profile_configuration: UserProfileConfiguration; get_users: GetUsersOutput; /** List Electoral Log */ listElectoralLog?: Maybe; @@ -5601,6 +5631,12 @@ export type Query_RootGet_User_Profile_AttributesArgs = { }; +export type Query_RootGet_User_Profile_ConfigurationArgs = { + election_event_id?: InputMaybe; + tenant_id: Scalars['String']['input']; +}; + + export type Query_RootGet_UsersArgs = { body: GetUsersInput; }; @@ -16488,6 +16524,8 @@ export type Sequent_Backend_Results_Contest_Variance_Fields = { export type Sequent_Backend_Results_Election = { __typename?: 'sequent_backend_results_election'; annotations?: Maybe; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; documents?: Maybe; election_event_id: Scalars['uuid']['output']; @@ -16562,6 +16600,8 @@ export type Sequent_Backend_Results_Election_Append_Input = { export type Sequent_Backend_Results_Election_Area = { __typename?: 'sequent_backend_results_election_area'; area_id: Scalars['uuid']['output']; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at: Scalars['timestamptz']['output']; documents?: Maybe; election_event_id: Scalars['uuid']['output']; @@ -16589,9 +16629,17 @@ export type Sequent_Backend_Results_Election_Area_Aggregate = { /** aggregate fields of "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Aggregate_Fields = { __typename?: 'sequent_backend_results_election_area_aggregate_fields'; + avg?: Maybe; count: Scalars['Int']['output']; max?: Maybe; min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; }; @@ -16606,12 +16654,21 @@ export type Sequent_Backend_Results_Election_Area_Append_Input = { documents?: InputMaybe; }; +/** aggregate avg on columns */ +export type Sequent_Backend_Results_Election_Area_Avg_Fields = { + __typename?: 'sequent_backend_results_election_area_avg_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + /** Boolean expression to filter rows from the table "sequent_backend.results_election_area". All fields are combined with a logical 'AND'. */ export type Sequent_Backend_Results_Election_Area_Bool_Exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16646,9 +16703,17 @@ export type Sequent_Backend_Results_Election_Area_Delete_Key_Input = { documents?: InputMaybe; }; +/** input type for incrementing numeric columns in table "sequent_backend.results_election_area" */ +export type Sequent_Backend_Results_Election_Area_Inc_Input = { + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; +}; + /** input type for inserting data into table "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Insert_Input = { area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16664,6 +16729,8 @@ export type Sequent_Backend_Results_Election_Area_Insert_Input = { export type Sequent_Backend_Results_Election_Area_Max_Fields = { __typename?: 'sequent_backend_results_election_area_max_fields'; area_id?: Maybe; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; election_event_id?: Maybe; election_id?: Maybe; @@ -16678,6 +16745,8 @@ export type Sequent_Backend_Results_Election_Area_Max_Fields = { export type Sequent_Backend_Results_Election_Area_Min_Fields = { __typename?: 'sequent_backend_results_election_area_min_fields'; area_id?: Maybe; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; election_event_id?: Maybe; election_id?: Maybe; @@ -16707,6 +16776,8 @@ export type Sequent_Backend_Results_Election_Area_On_Conflict = { /** Ordering options when selecting data from "sequent_backend.results_election_area". */ export type Sequent_Backend_Results_Election_Area_Order_By = { area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16736,6 +16807,10 @@ export enum Sequent_Backend_Results_Election_Area_Select_Column { /** column name */ AreaId = 'area_id', /** column name */ + BlankBallots = 'blank_ballots', + /** column name */ + BlankBallotsPercent = 'blank_ballots_percent', + /** column name */ CreatedAt = 'created_at', /** column name */ Documents = 'documents', @@ -16758,6 +16833,8 @@ export enum Sequent_Backend_Results_Election_Area_Select_Column { /** input type for updating data in table "sequent_backend.results_election_area" */ export type Sequent_Backend_Results_Election_Area_Set_Input = { area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16769,6 +16846,27 @@ export type Sequent_Backend_Results_Election_Area_Set_Input = { tenant_id?: InputMaybe; }; +/** aggregate stddev on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Fields = { + __typename?: 'sequent_backend_results_election_area_stddev_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Pop_Fields = { + __typename?: 'sequent_backend_results_election_area_stddev_pop_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Sequent_Backend_Results_Election_Area_Stddev_Samp_Fields = { + __typename?: 'sequent_backend_results_election_area_stddev_samp_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + /** Streaming cursor of the table "sequent_backend_results_election_area" */ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Input = { /** Stream column input with initial value */ @@ -16780,6 +16878,8 @@ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Value_Input = { area_id?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16791,11 +16891,22 @@ export type Sequent_Backend_Results_Election_Area_Stream_Cursor_Value_Input = { tenant_id?: InputMaybe; }; +/** aggregate sum on columns */ +export type Sequent_Backend_Results_Election_Area_Sum_Fields = { + __typename?: 'sequent_backend_results_election_area_sum_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + /** update columns of table "sequent_backend.results_election_area" */ export enum Sequent_Backend_Results_Election_Area_Update_Column { /** column name */ AreaId = 'area_id', /** column name */ + BlankBallots = 'blank_ballots', + /** column name */ + BlankBallotsPercent = 'blank_ballots_percent', + /** column name */ CreatedAt = 'created_at', /** column name */ Documents = 'documents', @@ -16824,6 +16935,8 @@ export type Sequent_Backend_Results_Election_Area_Updates = { _delete_elem?: InputMaybe; /** delete key/value pair or string element. key/value pairs are matched based on their key value */ _delete_key?: InputMaybe; + /** increments the numeric columns with given value of the filtered values */ + _inc?: InputMaybe; /** prepend existing jsonb value of filtered columns with new jsonb value */ _prepend?: InputMaybe; /** sets the columns of the filtered rows to the given values */ @@ -16832,9 +16945,32 @@ export type Sequent_Backend_Results_Election_Area_Updates = { where: Sequent_Backend_Results_Election_Area_Bool_Exp; }; +/** aggregate var_pop on columns */ +export type Sequent_Backend_Results_Election_Area_Var_Pop_Fields = { + __typename?: 'sequent_backend_results_election_area_var_pop_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Sequent_Backend_Results_Election_Area_Var_Samp_Fields = { + __typename?: 'sequent_backend_results_election_area_var_samp_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + +/** aggregate variance on columns */ +export type Sequent_Backend_Results_Election_Area_Variance_Fields = { + __typename?: 'sequent_backend_results_election_area_variance_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; +}; + /** aggregate avg on columns */ export type Sequent_Backend_Results_Election_Avg_Fields = { __typename?: 'sequent_backend_results_election_avg_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -16846,6 +16982,8 @@ export type Sequent_Backend_Results_Election_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16890,6 +17028,8 @@ export type Sequent_Backend_Results_Election_Delete_Key_Input = { /** input type for incrementing numeric columns in table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Inc_Input = { + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; elegible_census?: InputMaybe; total_voters?: InputMaybe; total_voters_percent?: InputMaybe; @@ -16898,6 +17038,8 @@ export type Sequent_Backend_Results_Election_Inc_Input = { /** input type for inserting data into table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Insert_Input = { annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16916,6 +17058,8 @@ export type Sequent_Backend_Results_Election_Insert_Input = { /** aggregate max on columns */ export type Sequent_Backend_Results_Election_Max_Fields = { __typename?: 'sequent_backend_results_election_max_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; election_event_id?: Maybe; election_id?: Maybe; @@ -16932,6 +17076,8 @@ export type Sequent_Backend_Results_Election_Max_Fields = { /** aggregate min on columns */ export type Sequent_Backend_Results_Election_Min_Fields = { __typename?: 'sequent_backend_results_election_min_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; created_at?: Maybe; election_event_id?: Maybe; election_id?: Maybe; @@ -16964,6 +17110,8 @@ export type Sequent_Backend_Results_Election_On_Conflict = { /** Ordering options when selecting data from "sequent_backend.results_election". */ export type Sequent_Backend_Results_Election_Order_By = { annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -16999,6 +17147,10 @@ export enum Sequent_Backend_Results_Election_Select_Column { /** column name */ Annotations = 'annotations', /** column name */ + BlankBallots = 'blank_ballots', + /** column name */ + BlankBallotsPercent = 'blank_ballots_percent', + /** column name */ CreatedAt = 'created_at', /** column name */ Documents = 'documents', @@ -17029,6 +17181,8 @@ export enum Sequent_Backend_Results_Election_Select_Column { /** input type for updating data in table "sequent_backend.results_election" */ export type Sequent_Backend_Results_Election_Set_Input = { annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -17047,6 +17201,8 @@ export type Sequent_Backend_Results_Election_Set_Input = { /** aggregate stddev on columns */ export type Sequent_Backend_Results_Election_Stddev_Fields = { __typename?: 'sequent_backend_results_election_stddev_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17055,6 +17211,8 @@ export type Sequent_Backend_Results_Election_Stddev_Fields = { /** aggregate stddev_pop on columns */ export type Sequent_Backend_Results_Election_Stddev_Pop_Fields = { __typename?: 'sequent_backend_results_election_stddev_pop_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17063,6 +17221,8 @@ export type Sequent_Backend_Results_Election_Stddev_Pop_Fields = { /** aggregate stddev_samp on columns */ export type Sequent_Backend_Results_Election_Stddev_Samp_Fields = { __typename?: 'sequent_backend_results_election_stddev_samp_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17079,6 +17239,8 @@ export type Sequent_Backend_Results_Election_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Sequent_Backend_Results_Election_Stream_Cursor_Value_Input = { annotations?: InputMaybe; + blank_ballots?: InputMaybe; + blank_ballots_percent?: InputMaybe; created_at?: InputMaybe; documents?: InputMaybe; election_event_id?: InputMaybe; @@ -17097,6 +17259,8 @@ export type Sequent_Backend_Results_Election_Stream_Cursor_Value_Input = { /** aggregate sum on columns */ export type Sequent_Backend_Results_Election_Sum_Fields = { __typename?: 'sequent_backend_results_election_sum_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17107,6 +17271,10 @@ export enum Sequent_Backend_Results_Election_Update_Column { /** column name */ Annotations = 'annotations', /** column name */ + BlankBallots = 'blank_ballots', + /** column name */ + BlankBallotsPercent = 'blank_ballots_percent', + /** column name */ CreatedAt = 'created_at', /** column name */ Documents = 'documents', @@ -17156,6 +17324,8 @@ export type Sequent_Backend_Results_Election_Updates = { /** aggregate var_pop on columns */ export type Sequent_Backend_Results_Election_Var_Pop_Fields = { __typename?: 'sequent_backend_results_election_var_pop_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17164,6 +17334,8 @@ export type Sequent_Backend_Results_Election_Var_Pop_Fields = { /** aggregate var_samp on columns */ export type Sequent_Backend_Results_Election_Var_Samp_Fields = { __typename?: 'sequent_backend_results_election_var_samp_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; @@ -17172,6 +17344,8 @@ export type Sequent_Backend_Results_Election_Var_Samp_Fields = { /** aggregate variance on columns */ export type Sequent_Backend_Results_Election_Variance_Fields = { __typename?: 'sequent_backend_results_election_variance_fields'; + blank_ballots?: Maybe; + blank_ballots_percent?: Maybe; elegible_census?: Maybe; total_voters?: Maybe; total_voters_percent?: Maybe; diff --git a/packages/yarn.lock b/packages/yarn.lock index 09d932971d6..8db09811ed8 100644 --- a/packages/yarn.lock +++ b/packages/yarn.lock @@ -17506,15 +17506,15 @@ sentence-case@^3.0.4: "sequent-core@file:./admin-portal/rust/sequent-core-0.1.0.tgz": version "0.1.0" - resolved "file:./admin-portal/rust/sequent-core-0.1.0.tgz#f1b9927da27e25fc6d6d490e603ac07bc640d991" + resolved "file:./admin-portal/rust/sequent-core-0.1.0.tgz#516fd93b1ec002d2df870b7c02515d887dad0800" "sequent-core@file:./ballot-verifier/rust/sequent-core-0.1.0.tgz": version "0.1.0" - resolved "file:./ballot-verifier/rust/sequent-core-0.1.0.tgz#f1b9927da27e25fc6d6d490e603ac07bc640d991" + resolved "file:./ballot-verifier/rust/sequent-core-0.1.0.tgz#516fd93b1ec002d2df870b7c02515d887dad0800" "sequent-core@file:./voting-portal/rust/sequent-core-0.1.0.tgz": version "0.1.0" - resolved "file:./voting-portal/rust/sequent-core-0.1.0.tgz#f1b9927da27e25fc6d6d490e603ac07bc640d991" + resolved "file:./voting-portal/rust/sequent-core-0.1.0.tgz#516fd93b1ec002d2df870b7c02515d887dad0800" serialize-javascript@^6.0.0, serialize-javascript@^6.0.2: version "6.0.2"