diff --git a/hub/analytics.py b/hub/analytics.py index c41740f9a..d038a0527 100644 --- a/hub/analytics.py +++ b/hub/analytics.py @@ -24,6 +24,22 @@ class AreaStat(TypedDict): gss: Optional[str] external_data: dict + def imported_data_count_located(self) -> int: + return ( + self.get_analytics_queryset().filter(postcode_data__isnull=False).count() + or 0 + ) + + def imported_data_count_unlocated(self) -> int: + return self.get_analytics_queryset().filter(postcode_data=None).count() or 0 + + def imported_data_geocoding_rate(self) -> float: + located = self.imported_data_count_located() + total = self.imported_data_count() + if total == 0: + return 0 + return (located / total) * 100 + # TODO: Rename to e.g. row_count_by_political_boundary def imported_data_count_by_area( self, diff --git a/hub/graphql/types/model_types.py b/hub/graphql/types/model_types.py index f4b45fc83..dcdd75de4 100644 --- a/hub/graphql/types/model_types.py +++ b/hub/graphql/types/model_types.py @@ -705,6 +705,9 @@ class AnalyticalAreaType(Enum): admin_district = "admin_district" admin_county = "admin_county" admin_ward = "admin_ward" + msoa = "msoa" + lsoa = "lsoa" + postcode = "postcode" european_electoral_region = "european_electoral_region" country = "country" @@ -749,7 +752,7 @@ class Analytics: def imported_data_count_by_area( self, analytical_area_type: AnalyticalAreaType, - layer_ids: Optional[List[str]], + layer_ids: Optional[List[str]] = [], ) -> List[GroupedDataCount]: data = self.imported_data_count_by_area( postcode_io_key=analytical_area_type.value, @@ -761,11 +764,35 @@ def imported_data_count_by_area( for datum in data ] + @strawberry_django.field + def imported_data_count_of_areas( + self, + analytical_area_type: AnalyticalAreaType, + layer_ids: Optional[List[str]] = [], + ) -> int: + data = self.imported_data_count_by_area( + postcode_io_key=analytical_area_type.value, + layer_ids=layer_ids, + ) + return max(len([d for d in data if d.get("count", 0) > 0]) or 0, 0) + + @strawberry_django.field + def imported_data_count_unlocated(self) -> int: + return self.imported_data_count_unlocated() + + @strawberry_django.field + def imported_data_count_located(self) -> int: + return self.imported_data_count_located() + + @strawberry_django.field + def imported_data_geocoding_rate(self) -> float: + return self.imported_data_geocoding_rate() + @strawberry_django.field def imported_data_by_area( self, analytical_area_type: AnalyticalAreaType, - layer_ids: Optional[List[str]], + layer_ids: Optional[List[str]] = [], ) -> List[GroupedData]: data = self.imported_data_by_area( postcode_io_key=analytical_area_type.value, diff --git a/nextjs/src/__generated__/gql.ts b/nextjs/src/__generated__/gql.ts index 659c89782..3e393d409 100644 --- a/nextjs/src/__generated__/gql.ts +++ b/nextjs/src/__generated__/gql.ts @@ -29,7 +29,7 @@ const documents = { "\n query GoogleSheetsOauthCredentials($redirectSuccessUrl: String!) {\n googleSheetsOauthCredentials(redirectSuccessUrl: $redirectSuccessUrl)\n }\n": types.GoogleSheetsOauthCredentialsDocument, "\n mutation CreateSource($input: CreateExternalDataSourceInput!) {\n createExternalDataSource(input: $input) {\n code\n errors {\n message\n }\n result {\n id\n name\n crmType\n dataType\n allowUpdates\n }\n }\n }\n": types.CreateSourceDocument, "\n query AutoUpdateCreationReview($ID: ID!) {\n externalDataSource(pk: $ID) {\n id\n name\n geographyColumn\n geographyColumnType\n geocodingConfig\n usesValidGeocodingConfig\n dataType\n crmType\n autoImportEnabled\n autoUpdateEnabled\n updateMapping {\n source\n sourcePath\n destinationColumn\n }\n jobs(pagination: { limit: 10 }) {\n lastEventAt\n status\n }\n automatedWebhooks\n webhookUrl\n ...DataSourceCard\n }\n }\n \n": types.AutoUpdateCreationReviewDocument, - "\n query ExternalDataSourceInspectPage($ID: ID!) {\n externalDataSource(pk: $ID) {\n id\n name\n dataType\n remoteUrl\n crmType\n connectionDetails {\n ... on AirtableSource {\n apiKey\n baseId\n tableId\n }\n ... on MailchimpSource {\n apiKey\n listId\n }\n ... on ActionNetworkSource {\n apiKey\n groupSlug\n }\n ... on TicketTailorSource {\n apiKey\n }\n }\n lastImportJob {\n id\n lastEventAt\n status\n }\n lastUpdateJob {\n id\n lastEventAt\n status\n }\n autoImportEnabled\n autoUpdateEnabled\n hasWebhooks\n allowUpdates\n automatedWebhooks\n webhookUrl\n webhookHealthcheck\n geographyColumn\n geographyColumnType\n geocodingConfig\n usesValidGeocodingConfig\n postcodeField\n firstNameField\n lastNameField\n fullNameField\n emailField\n phoneField\n addressField\n titleField\n descriptionField\n imageField\n startTimeField\n endTimeField\n publicUrlField\n socialUrlField\n canDisplayPointField\n isImportScheduled\n importProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n isUpdateScheduled\n updateProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n importedDataCount\n fieldDefinitions {\n label\n value\n description\n editable\n }\n updateMapping {\n source\n sourcePath\n destinationColumn\n }\n sharingPermissions {\n id\n }\n organisation {\n id\n name\n }\n }\n }\n": types.ExternalDataSourceInspectPageDocument, + "\n query ExternalDataSourceInspectPage($ID: ID!) {\n externalDataSource(pk: $ID) {\n id\n name\n dataType\n remoteUrl\n crmType\n connectionDetails {\n ... on AirtableSource {\n apiKey\n baseId\n tableId\n }\n ... on MailchimpSource {\n apiKey\n listId\n }\n ... on ActionNetworkSource {\n apiKey\n groupSlug\n }\n ... on TicketTailorSource {\n apiKey\n }\n }\n lastImportJob {\n id\n lastEventAt\n status\n }\n lastUpdateJob {\n id\n lastEventAt\n status\n }\n autoImportEnabled\n autoUpdateEnabled\n hasWebhooks\n allowUpdates\n automatedWebhooks\n webhookUrl\n webhookHealthcheck\n geographyColumn\n geographyColumnType\n geocodingConfig\n usesValidGeocodingConfig\n postcodeField\n firstNameField\n lastNameField\n fullNameField\n emailField\n phoneField\n addressField\n titleField\n descriptionField\n imageField\n startTimeField\n endTimeField\n publicUrlField\n socialUrlField\n canDisplayPointField\n isImportScheduled\n importProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n isUpdateScheduled\n updateProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n importedDataCount\n importedDataGeocodingRate\n regionCount: importedDataCountOfAreas(\n analyticalAreaType: european_electoral_region\n )\n constituencyCount: importedDataCountOfAreas(\n analyticalAreaType: parliamentary_constituency\n )\n ladCount: importedDataCountOfAreas(analyticalAreaType: admin_district)\n wardCount: importedDataCountOfAreas(analyticalAreaType: admin_ward)\n fieldDefinitions {\n label\n value\n description\n editable\n }\n updateMapping {\n source\n sourcePath\n destinationColumn\n }\n sharingPermissions {\n id\n }\n organisation {\n id\n name\n }\n }\n }\n": types.ExternalDataSourceInspectPageDocument, "\n mutation DeleteUpdateConfig($id: String!) {\n deleteExternalDataSource(data: { id: $id }) {\n id\n }\n }\n": types.DeleteUpdateConfigDocument, "\n query ManageSourceSharing($externalDataSourceId: ID!) {\n externalDataSource(pk: $externalDataSourceId) {\n sharingPermissions {\n id\n organisationId\n organisation {\n name\n }\n externalDataSourceId\n visibilityRecordCoordinates\n visibilityRecordDetails\n deleted\n }\n }\n }\n ": types.ManageSourceSharingDocument, "\n mutation UpdateSourceSharingObject(\n $data: SharingPermissionCUDInput!\n ) {\n updateSharingPermission(data: $data) {\n id\n organisationId\n externalDataSourceId\n visibilityRecordCoordinates\n visibilityRecordDetails\n deleted\n }\n }\n ": types.UpdateSourceSharingObjectDocument, @@ -169,7 +169,7 @@ export function gql(source: "\n query AutoUpdateCreationReview($ID: ID!) {\n /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\n query ExternalDataSourceInspectPage($ID: ID!) {\n externalDataSource(pk: $ID) {\n id\n name\n dataType\n remoteUrl\n crmType\n connectionDetails {\n ... on AirtableSource {\n apiKey\n baseId\n tableId\n }\n ... on MailchimpSource {\n apiKey\n listId\n }\n ... on ActionNetworkSource {\n apiKey\n groupSlug\n }\n ... on TicketTailorSource {\n apiKey\n }\n }\n lastImportJob {\n id\n lastEventAt\n status\n }\n lastUpdateJob {\n id\n lastEventAt\n status\n }\n autoImportEnabled\n autoUpdateEnabled\n hasWebhooks\n allowUpdates\n automatedWebhooks\n webhookUrl\n webhookHealthcheck\n geographyColumn\n geographyColumnType\n geocodingConfig\n usesValidGeocodingConfig\n postcodeField\n firstNameField\n lastNameField\n fullNameField\n emailField\n phoneField\n addressField\n titleField\n descriptionField\n imageField\n startTimeField\n endTimeField\n publicUrlField\n socialUrlField\n canDisplayPointField\n isImportScheduled\n importProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n isUpdateScheduled\n updateProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n importedDataCount\n fieldDefinitions {\n label\n value\n description\n editable\n }\n updateMapping {\n source\n sourcePath\n destinationColumn\n }\n sharingPermissions {\n id\n }\n organisation {\n id\n name\n }\n }\n }\n"): (typeof documents)["\n query ExternalDataSourceInspectPage($ID: ID!) {\n externalDataSource(pk: $ID) {\n id\n name\n dataType\n remoteUrl\n crmType\n connectionDetails {\n ... on AirtableSource {\n apiKey\n baseId\n tableId\n }\n ... on MailchimpSource {\n apiKey\n listId\n }\n ... on ActionNetworkSource {\n apiKey\n groupSlug\n }\n ... on TicketTailorSource {\n apiKey\n }\n }\n lastImportJob {\n id\n lastEventAt\n status\n }\n lastUpdateJob {\n id\n lastEventAt\n status\n }\n autoImportEnabled\n autoUpdateEnabled\n hasWebhooks\n allowUpdates\n automatedWebhooks\n webhookUrl\n webhookHealthcheck\n geographyColumn\n geographyColumnType\n geocodingConfig\n usesValidGeocodingConfig\n postcodeField\n firstNameField\n lastNameField\n fullNameField\n emailField\n phoneField\n addressField\n titleField\n descriptionField\n imageField\n startTimeField\n endTimeField\n publicUrlField\n socialUrlField\n canDisplayPointField\n isImportScheduled\n importProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n isUpdateScheduled\n updateProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n importedDataCount\n fieldDefinitions {\n label\n value\n description\n editable\n }\n updateMapping {\n source\n sourcePath\n destinationColumn\n }\n sharingPermissions {\n id\n }\n organisation {\n id\n name\n }\n }\n }\n"]; +export function gql(source: "\n query ExternalDataSourceInspectPage($ID: ID!) {\n externalDataSource(pk: $ID) {\n id\n name\n dataType\n remoteUrl\n crmType\n connectionDetails {\n ... on AirtableSource {\n apiKey\n baseId\n tableId\n }\n ... on MailchimpSource {\n apiKey\n listId\n }\n ... on ActionNetworkSource {\n apiKey\n groupSlug\n }\n ... on TicketTailorSource {\n apiKey\n }\n }\n lastImportJob {\n id\n lastEventAt\n status\n }\n lastUpdateJob {\n id\n lastEventAt\n status\n }\n autoImportEnabled\n autoUpdateEnabled\n hasWebhooks\n allowUpdates\n automatedWebhooks\n webhookUrl\n webhookHealthcheck\n geographyColumn\n geographyColumnType\n geocodingConfig\n usesValidGeocodingConfig\n postcodeField\n firstNameField\n lastNameField\n fullNameField\n emailField\n phoneField\n addressField\n titleField\n descriptionField\n imageField\n startTimeField\n endTimeField\n publicUrlField\n socialUrlField\n canDisplayPointField\n isImportScheduled\n importProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n isUpdateScheduled\n updateProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n importedDataCount\n importedDataGeocodingRate\n regionCount: importedDataCountOfAreas(\n analyticalAreaType: european_electoral_region\n )\n constituencyCount: importedDataCountOfAreas(\n analyticalAreaType: parliamentary_constituency\n )\n ladCount: importedDataCountOfAreas(analyticalAreaType: admin_district)\n wardCount: importedDataCountOfAreas(analyticalAreaType: admin_ward)\n fieldDefinitions {\n label\n value\n description\n editable\n }\n updateMapping {\n source\n sourcePath\n destinationColumn\n }\n sharingPermissions {\n id\n }\n organisation {\n id\n name\n }\n }\n }\n"): (typeof documents)["\n query ExternalDataSourceInspectPage($ID: ID!) {\n externalDataSource(pk: $ID) {\n id\n name\n dataType\n remoteUrl\n crmType\n connectionDetails {\n ... on AirtableSource {\n apiKey\n baseId\n tableId\n }\n ... on MailchimpSource {\n apiKey\n listId\n }\n ... on ActionNetworkSource {\n apiKey\n groupSlug\n }\n ... on TicketTailorSource {\n apiKey\n }\n }\n lastImportJob {\n id\n lastEventAt\n status\n }\n lastUpdateJob {\n id\n lastEventAt\n status\n }\n autoImportEnabled\n autoUpdateEnabled\n hasWebhooks\n allowUpdates\n automatedWebhooks\n webhookUrl\n webhookHealthcheck\n geographyColumn\n geographyColumnType\n geocodingConfig\n usesValidGeocodingConfig\n postcodeField\n firstNameField\n lastNameField\n fullNameField\n emailField\n phoneField\n addressField\n titleField\n descriptionField\n imageField\n startTimeField\n endTimeField\n publicUrlField\n socialUrlField\n canDisplayPointField\n isImportScheduled\n importProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n isUpdateScheduled\n updateProgress {\n id\n hasForecast\n status\n total\n succeeded\n estimatedFinishTime\n actualFinishTime\n inQueue\n numberOfJobsAheadInQueue\n sendEmail\n }\n importedDataCount\n importedDataGeocodingRate\n regionCount: importedDataCountOfAreas(\n analyticalAreaType: european_electoral_region\n )\n constituencyCount: importedDataCountOfAreas(\n analyticalAreaType: parliamentary_constituency\n )\n ladCount: importedDataCountOfAreas(analyticalAreaType: admin_district)\n wardCount: importedDataCountOfAreas(analyticalAreaType: admin_ward)\n fieldDefinitions {\n label\n value\n description\n editable\n }\n updateMapping {\n source\n sourcePath\n destinationColumn\n }\n sharingPermissions {\n id\n }\n organisation {\n id\n name\n }\n }\n }\n"]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/nextjs/src/__generated__/graphql.ts b/nextjs/src/__generated__/graphql.ts index 50960e9a4..d4e0dfdae 100644 --- a/nextjs/src/__generated__/graphql.ts +++ b/nextjs/src/__generated__/graphql.ts @@ -1,36 +1,23 @@ /* eslint-disable */ -import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core' -export type Maybe = T | null -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 -} -export type MakeEmpty< - T extends { [key: string]: unknown }, - K extends keyof T, -> = { [_ in K]?: never } -export type Incremental = - | T - | { - [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never - } +import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +export type Maybe = T | null; +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 }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string } - String: { input: string; output: string } - Boolean: { input: boolean; output: boolean } - Int: { input: number; output: number } - Float: { input: number; output: number } + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } /** Date (isoformat) */ - Date: { input: any; output: any } + Date: { input: any; output: any; } /** Date with time (isoformat) */ - DateTime: { input: any; output: any } + DateTime: { input: any; output: any; } /** * * Errors messages and codes mapped to @@ -58,335 +45,367 @@ export type Scalars = { * } * */ - ExpectedError: { input: any; output: any } + ExpectedError: { input: any; output: any; } /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf). */ - JSON: { input: any; output: any } - UUID: { input: any; output: any } + JSON: { input: any; output: any; } + UUID: { input: any; output: any; } /** Represents NULL values */ - Void: { input: any; output: any } -} + Void: { input: any; output: any; } +}; /** A model to store generated and revoked JWT tokens. */ export type ApiToken = { - __typename?: 'APIToken' - createdAt: Scalars['DateTime']['output'] - expiresAt: Scalars['DateTime']['output'] - revoked: Scalars['Boolean']['output'] - signature: Scalars['ID']['output'] - token: Scalars['String']['output'] -} + __typename?: 'APIToken'; + createdAt: Scalars['DateTime']['output']; + expiresAt: Scalars['DateTime']['output']; + revoked: Scalars['Boolean']['output']; + signature: Scalars['ID']['output']; + token: Scalars['String']['output']; +}; /** An Action Network member list. */ export type ActionNetworkSource = Analytics & { - __typename?: 'ActionNetworkSource' - addressField?: Maybe - allowUpdates: Scalars['Boolean']['output'] - apiKey: Scalars['String']['output'] - autoImportEnabled: Scalars['Boolean']['output'] - autoUpdateEnabled: Scalars['Boolean']['output'] - automatedWebhooks: Scalars['Boolean']['output'] - canDisplayPointField?: Maybe - connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource - createdAt: Scalars['DateTime']['output'] - crmType: CrmType - dataType: DataSourceType - defaultDataType?: Maybe - defaults: Scalars['JSON']['output'] - description?: Maybe - descriptionField?: Maybe - emailField?: Maybe - endTimeField?: Maybe - fieldDefinitions?: Maybe> - firstNameField?: Maybe - fullNameField?: Maybe - geocodingConfig: Scalars['JSON']['output'] - geographyColumn?: Maybe - geographyColumnType: GeographyTypes - groupSlug: Scalars['String']['output'] - hasWebhooks: Scalars['Boolean']['output'] - healthcheck: Scalars['Boolean']['output'] - id: Scalars['UUID']['output'] - imageField?: Maybe - importProgress?: Maybe - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe - introspectFields: Scalars['Boolean']['output'] - isImportScheduled: Scalars['Boolean']['output'] - isUpdateScheduled: Scalars['Boolean']['output'] - jobs: Array - lastImportJob?: Maybe - lastNameField?: Maybe - lastUpdate: Scalars['DateTime']['output'] - lastUpdateJob?: Maybe - name: Scalars['String']['output'] - oauthCredentials?: Maybe - organisation: Organisation - organisationId: Scalars['String']['output'] - orgsWithAccess: Array - phoneField?: Maybe - postcodeField?: Maybe - predefinedColumnNames: Scalars['Boolean']['output'] - publicUrlField?: Maybe - recordUrlTemplate?: Maybe - remoteName?: Maybe - remoteUrl?: Maybe - sharingPermissions: Array - socialUrlField?: Maybe - startTimeField?: Maybe - titleField?: Maybe - updateMapping?: Maybe> - updateProgress?: Maybe - usesValidGeocodingConfig: Scalars['Boolean']['output'] - webhookHealthcheck: Scalars['Boolean']['output'] - webhookUrl: Scalars['String']['output'] -} + __typename?: 'ActionNetworkSource'; + addressField?: Maybe; + allowUpdates: Scalars['Boolean']['output']; + apiKey: Scalars['String']['output']; + autoImportEnabled: Scalars['Boolean']['output']; + autoUpdateEnabled: Scalars['Boolean']['output']; + automatedWebhooks: Scalars['Boolean']['output']; + canDisplayPointField?: Maybe; + connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource; + createdAt: Scalars['DateTime']['output']; + crmType: CrmType; + dataType: DataSourceType; + defaultDataType?: Maybe; + defaults: Scalars['JSON']['output']; + description?: Maybe; + descriptionField?: Maybe; + emailField?: Maybe; + endTimeField?: Maybe; + fieldDefinitions?: Maybe>; + firstNameField?: Maybe; + fullNameField?: Maybe; + geocodingConfig: Scalars['JSON']['output']; + geographyColumn?: Maybe; + geographyColumnType: GeographyTypes; + groupSlug: Scalars['String']['output']; + hasWebhooks: Scalars['Boolean']['output']; + healthcheck: Scalars['Boolean']['output']; + id: Scalars['UUID']['output']; + imageField?: Maybe; + importProgress?: Maybe; + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; + introspectFields: Scalars['Boolean']['output']; + isImportScheduled: Scalars['Boolean']['output']; + isUpdateScheduled: Scalars['Boolean']['output']; + jobs: Array; + lastImportJob?: Maybe; + lastNameField?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + lastUpdateJob?: Maybe; + name: Scalars['String']['output']; + oauthCredentials?: Maybe; + organisation: Organisation; + organisationId: Scalars['String']['output']; + orgsWithAccess: Array; + phoneField?: Maybe; + postcodeField?: Maybe; + predefinedColumnNames: Scalars['Boolean']['output']; + publicUrlField?: Maybe; + recordUrlTemplate?: Maybe; + remoteName?: Maybe; + remoteUrl?: Maybe; + sharingPermissions: Array; + socialUrlField?: Maybe; + startTimeField?: Maybe; + titleField?: Maybe; + updateMapping?: Maybe>; + updateProgress?: Maybe; + usesValidGeocodingConfig: Scalars['Boolean']['output']; + webhookHealthcheck: Scalars['Boolean']['output']; + webhookUrl: Scalars['String']['output']; +}; + /** An Action Network member list. */ export type ActionNetworkSourceImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An Action Network member list. */ export type ActionNetworkSourceImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An Action Network member list. */ export type ActionNetworkSourceImportedDataCountByConstituencyBySourceArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** An Action Network member list. */ export type ActionNetworkSourceImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + /** An Action Network member list. */ export type ActionNetworkSourceImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** An Action Network member list. */ export type ActionNetworkSourceImportedDataCountForConstituency2024Args = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + + +/** An Action Network member list. */ +export type ActionNetworkSourceImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An Action Network member list. */ export type ActionNetworkSourceJobsArgs = { - filters?: InputMaybe - pagination?: InputMaybe -} + filters?: InputMaybe; + pagination?: InputMaybe; +}; + /** An Action Network member list. */ export type ActionNetworkSourceOrgsWithAccessArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; /** An Action Network member list. */ export type ActionNetworkSourceInput = { - addressField?: InputMaybe - apiKey: Scalars['String']['input'] - autoImportEnabled?: InputMaybe - autoUpdateEnabled?: InputMaybe - canDisplayPointField?: InputMaybe - dataType?: InputMaybe - description?: InputMaybe - descriptionField?: InputMaybe - emailField?: InputMaybe - endTimeField?: InputMaybe - firstNameField?: InputMaybe - fullNameField?: InputMaybe - geocodingConfig?: InputMaybe - geographyColumn?: InputMaybe - geographyColumnType?: InputMaybe - groupSlug: Scalars['String']['input'] - id?: InputMaybe - imageField?: InputMaybe - lastNameField?: InputMaybe - name?: InputMaybe - organisation?: InputMaybe - phoneField?: InputMaybe - postcodeField?: InputMaybe - publicUrlField?: InputMaybe - socialUrlField?: InputMaybe - startTimeField?: InputMaybe - titleField?: InputMaybe - updateMapping?: InputMaybe> -} + addressField?: InputMaybe; + apiKey: Scalars['String']['input']; + autoImportEnabled?: InputMaybe; + autoUpdateEnabled?: InputMaybe; + canDisplayPointField?: InputMaybe; + dataType?: InputMaybe; + description?: InputMaybe; + descriptionField?: InputMaybe; + emailField?: InputMaybe; + endTimeField?: InputMaybe; + firstNameField?: InputMaybe; + fullNameField?: InputMaybe; + geocodingConfig?: InputMaybe; + geographyColumn?: InputMaybe; + geographyColumnType?: InputMaybe; + groupSlug: Scalars['String']['input']; + id?: InputMaybe; + imageField?: InputMaybe; + lastNameField?: InputMaybe; + name?: InputMaybe; + organisation?: InputMaybe; + phoneField?: InputMaybe; + postcodeField?: InputMaybe; + publicUrlField?: InputMaybe; + socialUrlField?: InputMaybe; + startTimeField?: InputMaybe; + titleField?: InputMaybe; + updateMapping?: InputMaybe>; +}; /** An Airtable table. */ export type AirtableSource = Analytics & { - __typename?: 'AirtableSource' - addressField?: Maybe - allowUpdates: Scalars['Boolean']['output'] + __typename?: 'AirtableSource'; + addressField?: Maybe; + allowUpdates: Scalars['Boolean']['output']; /** Personal access token. Requires the following 4 scopes: data.records:read, data.records:write, schema.bases:read, webhook:manage */ - apiKey: Scalars['String']['output'] - autoImportEnabled: Scalars['Boolean']['output'] - autoUpdateEnabled: Scalars['Boolean']['output'] - automatedWebhooks: Scalars['Boolean']['output'] - baseId: Scalars['String']['output'] - canDisplayPointField?: Maybe - connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource - createdAt: Scalars['DateTime']['output'] - crmType: CrmType - dataType: DataSourceType - defaultDataType?: Maybe - defaults: Scalars['JSON']['output'] - description?: Maybe - descriptionField?: Maybe - emailField?: Maybe - endTimeField?: Maybe - fieldDefinitions?: Maybe> - firstNameField?: Maybe - fullNameField?: Maybe - geocodingConfig: Scalars['JSON']['output'] - geographyColumn?: Maybe - geographyColumnType: GeographyTypes - hasWebhooks: Scalars['Boolean']['output'] - healthcheck: Scalars['Boolean']['output'] - id: Scalars['UUID']['output'] - imageField?: Maybe - importProgress?: Maybe - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe - introspectFields: Scalars['Boolean']['output'] - isImportScheduled: Scalars['Boolean']['output'] - isUpdateScheduled: Scalars['Boolean']['output'] - jobs: Array - lastImportJob?: Maybe - lastNameField?: Maybe - lastUpdate: Scalars['DateTime']['output'] - lastUpdateJob?: Maybe - name: Scalars['String']['output'] - oauthCredentials?: Maybe - organisation: Organisation - organisationId: Scalars['String']['output'] - orgsWithAccess: Array - phoneField?: Maybe - postcodeField?: Maybe - predefinedColumnNames: Scalars['Boolean']['output'] - publicUrlField?: Maybe - recordUrlTemplate?: Maybe - remoteName?: Maybe - remoteUrl?: Maybe - sharingPermissions: Array - socialUrlField?: Maybe - startTimeField?: Maybe - tableId: Scalars['String']['output'] - titleField?: Maybe - updateMapping?: Maybe> - updateProgress?: Maybe - usesValidGeocodingConfig: Scalars['Boolean']['output'] - webhookHealthcheck: Scalars['Boolean']['output'] - webhookUrl: Scalars['String']['output'] -} + apiKey: Scalars['String']['output']; + autoImportEnabled: Scalars['Boolean']['output']; + autoUpdateEnabled: Scalars['Boolean']['output']; + automatedWebhooks: Scalars['Boolean']['output']; + baseId: Scalars['String']['output']; + canDisplayPointField?: Maybe; + connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource; + createdAt: Scalars['DateTime']['output']; + crmType: CrmType; + dataType: DataSourceType; + defaultDataType?: Maybe; + defaults: Scalars['JSON']['output']; + description?: Maybe; + descriptionField?: Maybe; + emailField?: Maybe; + endTimeField?: Maybe; + fieldDefinitions?: Maybe>; + firstNameField?: Maybe; + fullNameField?: Maybe; + geocodingConfig: Scalars['JSON']['output']; + geographyColumn?: Maybe; + geographyColumnType: GeographyTypes; + hasWebhooks: Scalars['Boolean']['output']; + healthcheck: Scalars['Boolean']['output']; + id: Scalars['UUID']['output']; + imageField?: Maybe; + importProgress?: Maybe; + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; + introspectFields: Scalars['Boolean']['output']; + isImportScheduled: Scalars['Boolean']['output']; + isUpdateScheduled: Scalars['Boolean']['output']; + jobs: Array; + lastImportJob?: Maybe; + lastNameField?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + lastUpdateJob?: Maybe; + name: Scalars['String']['output']; + oauthCredentials?: Maybe; + organisation: Organisation; + organisationId: Scalars['String']['output']; + orgsWithAccess: Array; + phoneField?: Maybe; + postcodeField?: Maybe; + predefinedColumnNames: Scalars['Boolean']['output']; + publicUrlField?: Maybe; + recordUrlTemplate?: Maybe; + remoteName?: Maybe; + remoteUrl?: Maybe; + sharingPermissions: Array; + socialUrlField?: Maybe; + startTimeField?: Maybe; + tableId: Scalars['String']['output']; + titleField?: Maybe; + updateMapping?: Maybe>; + updateProgress?: Maybe; + usesValidGeocodingConfig: Scalars['Boolean']['output']; + webhookHealthcheck: Scalars['Boolean']['output']; + webhookUrl: Scalars['String']['output']; +}; + /** An Airtable table. */ export type AirtableSourceImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An Airtable table. */ export type AirtableSourceImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An Airtable table. */ export type AirtableSourceImportedDataCountByConstituencyBySourceArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** An Airtable table. */ export type AirtableSourceImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + /** An Airtable table. */ export type AirtableSourceImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** An Airtable table. */ export type AirtableSourceImportedDataCountForConstituency2024Args = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + + +/** An Airtable table. */ +export type AirtableSourceImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An Airtable table. */ export type AirtableSourceJobsArgs = { - filters?: InputMaybe - pagination?: InputMaybe -} + filters?: InputMaybe; + pagination?: InputMaybe; +}; + /** An Airtable table. */ export type AirtableSourceOrgsWithAccessArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; /** An Airtable table. */ export type AirtableSourceInput = { - addressField?: InputMaybe + addressField?: InputMaybe; /** Personal access token. Requires the following 4 scopes: data.records:read, data.records:write, schema.bases:read, webhook:manage */ - apiKey: Scalars['String']['input'] - autoImportEnabled?: InputMaybe - autoUpdateEnabled?: InputMaybe - baseId: Scalars['String']['input'] - canDisplayPointField?: InputMaybe - dataType?: InputMaybe - description?: InputMaybe - descriptionField?: InputMaybe - emailField?: InputMaybe - endTimeField?: InputMaybe - firstNameField?: InputMaybe - fullNameField?: InputMaybe - geocodingConfig?: InputMaybe - geographyColumn?: InputMaybe - geographyColumnType?: InputMaybe - id?: InputMaybe - imageField?: InputMaybe - lastNameField?: InputMaybe - name?: InputMaybe - organisation?: InputMaybe - phoneField?: InputMaybe - postcodeField?: InputMaybe - publicUrlField?: InputMaybe - socialUrlField?: InputMaybe - startTimeField?: InputMaybe - tableId: Scalars['String']['input'] - titleField?: InputMaybe - updateMapping?: InputMaybe> -} - -export type AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource = - - | ActionNetworkSource - | AirtableSource - | EditableGoogleSheetsSource - | MailchimpSource - | TicketTailorSource + apiKey: Scalars['String']['input']; + autoImportEnabled?: InputMaybe; + autoUpdateEnabled?: InputMaybe; + baseId: Scalars['String']['input']; + canDisplayPointField?: InputMaybe; + dataType?: InputMaybe; + description?: InputMaybe; + descriptionField?: InputMaybe; + emailField?: InputMaybe; + endTimeField?: InputMaybe; + firstNameField?: InputMaybe; + fullNameField?: InputMaybe; + geocodingConfig?: InputMaybe; + geographyColumn?: InputMaybe; + geographyColumnType?: InputMaybe; + id?: InputMaybe; + imageField?: InputMaybe; + lastNameField?: InputMaybe; + name?: InputMaybe; + organisation?: InputMaybe; + phoneField?: InputMaybe; + postcodeField?: InputMaybe; + publicUrlField?: InputMaybe; + socialUrlField?: InputMaybe; + startTimeField?: InputMaybe; + tableId: Scalars['String']['input']; + titleField?: InputMaybe; + updateMapping?: InputMaybe>; +}; + +export type AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource = ActionNetworkSource | AirtableSource | EditableGoogleSheetsSource | MailchimpSource | TicketTailorSource; export enum AnalyticalAreaType { AdminCounty = 'admin_county', @@ -394,299 +413,327 @@ export enum AnalyticalAreaType { AdminWard = 'admin_ward', Country = 'country', EuropeanElectoralRegion = 'european_electoral_region', + Lsoa = 'lsoa', + Msoa = 'msoa', ParliamentaryConstituency = 'parliamentary_constituency', ParliamentaryConstituency_2024 = 'parliamentary_constituency_2024', + Postcode = 'postcode' } export type Analytics = { - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe -} + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; +}; + export type AnalyticsImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + export type AnalyticsImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + export type AnalyticsImportedDataCountByConstituencyBySourceArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + export type AnalyticsImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + export type AnalyticsImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + export type AnalyticsImportedDataCountForConstituency2024Args = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + + +export type AnalyticsImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; /** Area(id, mapit_id, mapit_type, mapit_generation_low, mapit_generation_high, gss, name, mapit_all_names, area_type, geometry, polygon, point) */ export type Area = { - __typename?: 'Area' - areaType: AreaType - data: Array - datum?: Maybe - fitBounds?: Maybe - genericDataForHub: Array - geometry?: Maybe - gss: Scalars['String']['output'] - id: Scalars['ID']['output'] - lastElection?: Maybe - mapitId: Scalars['String']['output'] - name: Scalars['String']['output'] - overlaps: Array - people: Array - person?: Maybe - point?: Maybe - polygon?: Maybe - samplePostcode?: Maybe -} + __typename?: 'Area'; + areaType: AreaType; + data: Array; + datum?: Maybe; + fitBounds?: Maybe; + genericDataForHub: Array; + geometry?: Maybe; + gss: Scalars['String']['output']; + id: Scalars['ID']['output']; + lastElection?: Maybe; + mapitId: Scalars['String']['output']; + name: Scalars['String']['output']; + overlaps: Array; + people: Array; + person?: Maybe; + point?: Maybe; + polygon?: Maybe; + samplePostcode?: Maybe; +}; + /** Area(id, mapit_id, mapit_type, mapit_generation_low, mapit_generation_high, gss, name, mapit_all_names, area_type, geometry, polygon, point) */ export type AreaDataArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + /** Area(id, mapit_id, mapit_type, mapit_generation_low, mapit_generation_high, gss, name, mapit_all_names, area_type, geometry, polygon, point) */ export type AreaDatumArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + /** Area(id, mapit_id, mapit_type, mapit_generation_low, mapit_generation_high, gss, name, mapit_all_names, area_type, geometry, polygon, point) */ export type AreaGenericDataForHubArgs = { - hostname: Scalars['String']['input'] -} + hostname: Scalars['String']['input']; +}; + /** Area(id, mapit_id, mapit_type, mapit_generation_low, mapit_generation_high, gss, name, mapit_all_names, area_type, geometry, polygon, point) */ export type AreaPeopleArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + /** Area(id, mapit_id, mapit_type, mapit_generation_low, mapit_generation_high, gss, name, mapit_all_names, area_type, geometry, polygon, point) */ export type AreaPersonArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + /** Area(id, mapit_id, mapit_type, mapit_generation_low, mapit_generation_high, gss, name, mapit_all_names, area_type, geometry, polygon, point) */ export type AreaPointArgs = { - withParentData?: Scalars['Boolean']['input'] -} + withParentData?: Scalars['Boolean']['input']; +}; + /** Area(id, mapit_id, mapit_type, mapit_generation_low, mapit_generation_high, gss, name, mapit_all_names, area_type, geometry, polygon, point) */ export type AreaPolygonArgs = { - withParentData?: Scalars['Boolean']['input'] -} + withParentData?: Scalars['Boolean']['input']; +}; /** AreaData(id, data_type, data, date, float, int, json, area) */ export type AreaData = CommonData & { - __typename?: 'AreaData' - area: Area - data: Scalars['String']['output'] - dataType: DataType - date?: Maybe - float?: Maybe - id: Scalars['ID']['output'] - int?: Maybe - json?: Maybe - shade?: Maybe -} + __typename?: 'AreaData'; + area: Area; + data: Scalars['String']['output']; + dataType: DataType; + date?: Maybe; + float?: Maybe; + id: Scalars['ID']['output']; + int?: Maybe; + json?: Maybe; + shade?: Maybe; +}; /** AreaType(id, name, code, area_type, description) */ export type AreaType = { - __typename?: 'AreaType' - areaType: Scalars['String']['output'] - code: Scalars['String']['output'] - dataTypes: Array - description: Scalars['String']['output'] - name: Scalars['String']['output'] -} + __typename?: 'AreaType'; + areaType: Scalars['String']['output']; + code: Scalars['String']['output']; + dataTypes: Array; + description: Scalars['String']['output']; + name: Scalars['String']['output']; +}; export type AreaTypeFilter = { - __typename?: 'AreaTypeFilter' - lihAreaType?: Maybe - mapitAreaTypes?: Maybe> -} + __typename?: 'AreaTypeFilter'; + lihAreaType?: Maybe; + mapitAreaTypes?: Maybe>; +}; export type AuthenticatedPostcodeQueryResponse = { - __typename?: 'AuthenticatedPostcodeQueryResponse' - constituency?: Maybe - constituency2024?: Maybe - customSourceData?: Maybe - electoralCommission?: Maybe - postcode: Scalars['String']['output'] - postcodesIO?: Maybe -} + __typename?: 'AuthenticatedPostcodeQueryResponse'; + constituency?: Maybe; + constituency2024?: Maybe; + customSourceData?: Maybe; + electoralCommission?: Maybe; + postcode: Scalars['String']['output']; + postcodesIO?: Maybe; +}; + export type AuthenticatedPostcodeQueryResponseCustomSourceDataArgs = { - source: Scalars['String']['input'] - sourcePath: Scalars['String']['input'] -} + source: Scalars['String']['input']; + sourcePath: Scalars['String']['input']; +}; + export type AuthenticatedPostcodeQueryResponseElectoralCommissionArgs = { - addressSlug?: InputMaybe -} + addressSlug?: InputMaybe; +}; export type AutoUpdateConfig = { - __typename?: 'AutoUpdateConfig' - destinationColumn: Scalars['String']['output'] - source: Scalars['String']['output'] - sourcePath: Scalars['String']['output'] -} + __typename?: 'AutoUpdateConfig'; + destinationColumn: Scalars['String']['output']; + source: Scalars['String']['output']; + sourcePath: Scalars['String']['output']; +}; export type BatchJobProgress = { - __typename?: 'BatchJobProgress' - actualFinishTime?: Maybe - doing?: Maybe - done?: Maybe - estimatedFinishTime?: Maybe - estimatedSecondsRemaining?: Maybe - failed?: Maybe - hasForecast: Scalars['Boolean']['output'] - id: Scalars['ID']['output'] - inQueue: Scalars['Boolean']['output'] - numberOfJobsAheadInQueue?: Maybe - remaining?: Maybe - secondsPerRecord?: Maybe - sendEmail: Scalars['Boolean']['output'] - startedAt: Scalars['DateTime']['output'] - status: ProcrastinateJobStatus - succeeded?: Maybe - total?: Maybe -} + __typename?: 'BatchJobProgress'; + actualFinishTime?: Maybe; + doing?: Maybe; + done?: Maybe; + estimatedFinishTime?: Maybe; + estimatedSecondsRemaining?: Maybe; + failed?: Maybe; + hasForecast: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; + inQueue: Scalars['Boolean']['output']; + numberOfJobsAheadInQueue?: Maybe; + remaining?: Maybe; + secondsPerRecord?: Maybe; + sendEmail: Scalars['Boolean']['output']; + startedAt: Scalars['DateTime']['output']; + status: ProcrastinateJobStatus; + succeeded?: Maybe; + total?: Maybe; +}; export type CommonData = { - data: Scalars['String']['output'] - dataType: DataType - date?: Maybe - float?: Maybe - int?: Maybe - json?: Maybe - shade?: Maybe -} + data: Scalars['String']['output']; + dataType: DataType; + date?: Maybe; + float?: Maybe; + int?: Maybe; + json?: Maybe; + shade?: Maybe; +}; export type CommonDataLoaderFilter = { - dataType_Name: Scalars['String']['input'] -} + dataType_Name: Scalars['String']['input']; +}; export type ConstituencyElectionResult = { - __typename?: 'ConstituencyElectionResult' - date: Scalars['String']['output'] - results: Array - stats: ConstituencyElectionStats -} + __typename?: 'ConstituencyElectionResult'; + date: Scalars['String']['output']; + results: Array; + stats: ConstituencyElectionStats; +}; export type ConstituencyElectionStats = { - __typename?: 'ConstituencyElectionStats' - constituencyName: Scalars['String']['output'] - constituencyType: Scalars['String']['output'] - countryName: Scalars['String']['output'] - countyName: Scalars['String']['output'] - date: Scalars['String']['output'] - declarationTime: Scalars['String']['output'] - electorate: Scalars['Int']['output'] - firstParty: Scalars['String']['output'] - firstPartyResult: PartyResult - invalidVotes: Scalars['Int']['output'] - majority: Scalars['Int']['output'] - memberFirstName: Scalars['String']['output'] - memberGender: Scalars['String']['output'] - memberSurname: Scalars['String']['output'] - onsRegionId: Scalars['String']['output'] - regionName: Scalars['String']['output'] - result: Scalars['String']['output'] - secondParty: Scalars['String']['output'] - secondPartyResult: PartyResult - validVotes: Scalars['Int']['output'] -} + __typename?: 'ConstituencyElectionStats'; + constituencyName: Scalars['String']['output']; + constituencyType: Scalars['String']['output']; + countryName: Scalars['String']['output']; + countyName: Scalars['String']['output']; + date: Scalars['String']['output']; + declarationTime: Scalars['String']['output']; + electorate: Scalars['Int']['output']; + firstParty: Scalars['String']['output']; + firstPartyResult: PartyResult; + invalidVotes: Scalars['Int']['output']; + majority: Scalars['Int']['output']; + memberFirstName: Scalars['String']['output']; + memberGender: Scalars['String']['output']; + memberSurname: Scalars['String']['output']; + onsRegionId: Scalars['String']['output']; + regionName: Scalars['String']['output']; + result: Scalars['String']['output']; + secondParty: Scalars['String']['output']; + secondPartyResult: PartyResult; + validVotes: Scalars['Int']['output']; +}; export type CreateExternalDataSourceInput = { - actionnetwork?: InputMaybe - airtable?: InputMaybe - editablegooglesheets?: InputMaybe - mailchimp?: InputMaybe - tickettailor?: InputMaybe -} + actionnetwork?: InputMaybe; + airtable?: InputMaybe; + editablegooglesheets?: InputMaybe; + mailchimp?: InputMaybe; + tickettailor?: InputMaybe; +}; export type CreateExternalDataSourceOutput = { - __typename?: 'CreateExternalDataSourceOutput' - code: Scalars['Int']['output'] - errors: Array - result?: Maybe -} + __typename?: 'CreateExternalDataSourceOutput'; + code: Scalars['Int']['output']; + errors: Array; + result?: Maybe; +}; -export type CreateMapReportPayload = MapReport | OperationInfo +export type CreateMapReportPayload = MapReport | OperationInfo; export type CreateOrganisationInput = { - description?: InputMaybe - name: Scalars['String']['input'] - slug?: InputMaybe -} + description?: InputMaybe; + name: Scalars['String']['input']; + slug?: InputMaybe; +}; export enum CrmType { Actionnetwork = 'actionnetwork', Airtable = 'airtable', Editablegooglesheets = 'editablegooglesheets', Mailchimp = 'mailchimp', - Tickettailor = 'tickettailor', + Tickettailor = 'tickettailor' } /** DataSet(id, name, description, label, data_type, last_update, source_label, source, source_type, data_url, release_date, is_upload, is_range, featured, order, category, subcategory, table, comparators, options, default_value, is_filterable, is_shadable, is_public, fill_blanks, exclude_countries, unit_type, unit_distribution, external_data_source) */ export type DataSet = { - __typename?: 'DataSet' - areasAvailable: Array - category?: Maybe - dataType: DataType - dataUrl?: Maybe - defaultValue?: Maybe - description?: Maybe - externalDataSource: ExternalDataSource - featured: Scalars['Boolean']['output'] - fillBlanks: Scalars['Boolean']['output'] - id: Scalars['ID']['output'] - isFilterable: Scalars['Boolean']['output'] - isPublic: Scalars['Boolean']['output'] - isRange: Scalars['Boolean']['output'] - isShadable: Scalars['Boolean']['output'] - isUpload: Scalars['Boolean']['output'] - label?: Maybe - lastUpdate: Scalars['DateTime']['output'] - name: Scalars['String']['output'] - options: Array - order?: Maybe - releaseDate?: Maybe - source: Scalars['String']['output'] - sourceLabel?: Maybe - sourceType?: Maybe - subcategory?: Maybe - table?: Maybe - unitDistribution?: Maybe - unitType?: Maybe -} + __typename?: 'DataSet'; + areasAvailable: Array; + category?: Maybe; + dataType: DataType; + dataUrl?: Maybe; + defaultValue?: Maybe; + description?: Maybe; + externalDataSource: ExternalDataSource; + featured: Scalars['Boolean']['output']; + fillBlanks: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; + isFilterable: Scalars['Boolean']['output']; + isPublic: Scalars['Boolean']['output']; + isRange: Scalars['Boolean']['output']; + isShadable: Scalars['Boolean']['output']; + isUpload: Scalars['Boolean']['output']; + label?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + name: Scalars['String']['output']; + options: Array; + order?: Maybe; + releaseDate?: Maybe; + source: Scalars['String']['output']; + sourceLabel?: Maybe; + sourceType?: Maybe; + subcategory?: Maybe; + table?: Maybe; + unitDistribution?: Maybe; + unitType?: Maybe; +}; export type DataSetOption = { - __typename?: 'DataSetOption' - shader: Scalars['String']['output'] - title: Scalars['String']['output'] -} + __typename?: 'DataSetOption'; + shader: Scalars['String']['output']; + title: Scalars['String']['output']; +}; export enum DataSourceType { AreaStats = 'AREA_STATS', @@ -695,312 +742,329 @@ export enum DataSourceType { Location = 'LOCATION', Member = 'MEMBER', Other = 'OTHER', - Story = 'STORY', + Story = 'STORY' } /** DataType(id, data_set, name, data_type, last_update, average, maximum, minimum, label, description, order, area_type, auto_converted, auto_converted_text) */ export type DataType = { - __typename?: 'DataType' - areaType?: Maybe + __typename?: 'DataType'; + areaType?: Maybe; /** True if this has been auto converted from an area with overlapping geometry */ - autoConverted: Scalars['Boolean']['output'] - autoConvertedText?: Maybe - average?: Maybe - dataSet: DataSet - dataType: Scalars['String']['output'] - description?: Maybe - id: Scalars['ID']['output'] - label?: Maybe - lastUpdate: Scalars['DateTime']['output'] - maximum?: Maybe - minimum?: Maybe - name: Scalars['String']['output'] - order?: Maybe -} + autoConverted: Scalars['Boolean']['output']; + autoConvertedText?: Maybe; + average?: Maybe; + dataSet: DataSet; + dataType: Scalars['String']['output']; + description?: Maybe; + id: Scalars['ID']['output']; + label?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + maximum?: Maybe; + minimum?: Maybe; + name: Scalars['String']['output']; + order?: Maybe; +}; export type DatetimeFilterLookup = { - contains?: InputMaybe - endsWith?: InputMaybe - exact?: InputMaybe - gt?: InputMaybe - gte?: InputMaybe - iContains?: InputMaybe - iEndsWith?: InputMaybe - iExact?: InputMaybe - iRegex?: InputMaybe - iStartsWith?: InputMaybe - inList?: InputMaybe> - isNull?: InputMaybe - lt?: InputMaybe - lte?: InputMaybe - range?: InputMaybe> - regex?: InputMaybe - startsWith?: InputMaybe -} + contains?: InputMaybe; + endsWith?: InputMaybe; + exact?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + iContains?: InputMaybe; + iEndsWith?: InputMaybe; + iExact?: InputMaybe; + iRegex?: InputMaybe; + iStartsWith?: InputMaybe; + inList?: InputMaybe>; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + range?: InputMaybe>; + regex?: InputMaybe; + startsWith?: InputMaybe; +}; export type DjangoImageType = { - __typename?: 'DjangoImageType' - height: Scalars['Int']['output'] - name: Scalars['String']['output'] - path: Scalars['String']['output'] - size: Scalars['Int']['output'] - url: Scalars['String']['output'] - width: Scalars['Int']['output'] -} + __typename?: 'DjangoImageType'; + height: Scalars['Int']['output']; + name: Scalars['String']['output']; + path: Scalars['String']['output']; + size: Scalars['Int']['output']; + url: Scalars['String']['output']; + width: Scalars['Int']['output']; +}; export type DjangoModelFilterInput = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; export type DjangoModelType = { - __typename?: 'DjangoModelType' - pk: Scalars['ID']['output'] -} + __typename?: 'DjangoModelType'; + pk: Scalars['ID']['output']; +}; /** An editable Google Sheet */ export type EditableGoogleSheetsSource = Analytics & { - __typename?: 'EditableGoogleSheetsSource' - addressField?: Maybe - allowUpdates: Scalars['Boolean']['output'] - autoImportEnabled: Scalars['Boolean']['output'] - autoUpdateEnabled: Scalars['Boolean']['output'] - automatedWebhooks: Scalars['Boolean']['output'] - canDisplayPointField?: Maybe - connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource - createdAt: Scalars['DateTime']['output'] - crmType: CrmType - dataType: DataSourceType - defaultDataType?: Maybe - defaults: Scalars['JSON']['output'] - description?: Maybe - descriptionField?: Maybe - emailField?: Maybe - endTimeField?: Maybe - fieldDefinitions?: Maybe> - firstNameField?: Maybe - fullNameField?: Maybe - geocodingConfig: Scalars['JSON']['output'] - geographyColumn?: Maybe - geographyColumnType: GeographyTypes - hasWebhooks: Scalars['Boolean']['output'] - healthcheck: Scalars['Boolean']['output'] - id: Scalars['UUID']['output'] - imageField?: Maybe - importProgress?: Maybe - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe - introspectFields: Scalars['Boolean']['output'] - isImportScheduled: Scalars['Boolean']['output'] - isUpdateScheduled: Scalars['Boolean']['output'] - jobs: Array - lastImportJob?: Maybe - lastNameField?: Maybe - lastUpdate: Scalars['DateTime']['output'] - lastUpdateJob?: Maybe - name: Scalars['String']['output'] - oauthCredentials?: Maybe - organisation: Organisation - organisationId: Scalars['String']['output'] - orgsWithAccess: Array - phoneField?: Maybe - postcodeField?: Maybe - predefinedColumnNames: Scalars['Boolean']['output'] - publicUrlField?: Maybe - recordUrlTemplate?: Maybe - remoteName?: Maybe - remoteUrl?: Maybe - sharingPermissions: Array - sheetName: Scalars['String']['output'] - socialUrlField?: Maybe - spreadsheetId: Scalars['String']['output'] - startTimeField?: Maybe - titleField?: Maybe - updateMapping?: Maybe> - updateProgress?: Maybe - usesValidGeocodingConfig: Scalars['Boolean']['output'] - webhookHealthcheck: Scalars['Boolean']['output'] - webhookUrl: Scalars['String']['output'] -} + __typename?: 'EditableGoogleSheetsSource'; + addressField?: Maybe; + allowUpdates: Scalars['Boolean']['output']; + autoImportEnabled: Scalars['Boolean']['output']; + autoUpdateEnabled: Scalars['Boolean']['output']; + automatedWebhooks: Scalars['Boolean']['output']; + canDisplayPointField?: Maybe; + connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource; + createdAt: Scalars['DateTime']['output']; + crmType: CrmType; + dataType: DataSourceType; + defaultDataType?: Maybe; + defaults: Scalars['JSON']['output']; + description?: Maybe; + descriptionField?: Maybe; + emailField?: Maybe; + endTimeField?: Maybe; + fieldDefinitions?: Maybe>; + firstNameField?: Maybe; + fullNameField?: Maybe; + geocodingConfig: Scalars['JSON']['output']; + geographyColumn?: Maybe; + geographyColumnType: GeographyTypes; + hasWebhooks: Scalars['Boolean']['output']; + healthcheck: Scalars['Boolean']['output']; + id: Scalars['UUID']['output']; + imageField?: Maybe; + importProgress?: Maybe; + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; + introspectFields: Scalars['Boolean']['output']; + isImportScheduled: Scalars['Boolean']['output']; + isUpdateScheduled: Scalars['Boolean']['output']; + jobs: Array; + lastImportJob?: Maybe; + lastNameField?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + lastUpdateJob?: Maybe; + name: Scalars['String']['output']; + oauthCredentials?: Maybe; + organisation: Organisation; + organisationId: Scalars['String']['output']; + orgsWithAccess: Array; + phoneField?: Maybe; + postcodeField?: Maybe; + predefinedColumnNames: Scalars['Boolean']['output']; + publicUrlField?: Maybe; + recordUrlTemplate?: Maybe; + remoteName?: Maybe; + remoteUrl?: Maybe; + sharingPermissions: Array; + sheetName: Scalars['String']['output']; + socialUrlField?: Maybe; + spreadsheetId: Scalars['String']['output']; + startTimeField?: Maybe; + titleField?: Maybe; + updateMapping?: Maybe>; + updateProgress?: Maybe; + usesValidGeocodingConfig: Scalars['Boolean']['output']; + webhookHealthcheck: Scalars['Boolean']['output']; + webhookUrl: Scalars['String']['output']; +}; + /** An editable Google Sheet */ export type EditableGoogleSheetsSourceImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An editable Google Sheet */ export type EditableGoogleSheetsSourceImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An editable Google Sheet */ -export type EditableGoogleSheetsSourceImportedDataCountByConstituencyBySourceArgs = - { - gss: Scalars['String']['input'] - } +export type EditableGoogleSheetsSourceImportedDataCountByConstituencyBySourceArgs = { + gss: Scalars['String']['input']; +}; + /** An editable Google Sheet */ export type EditableGoogleSheetsSourceImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + /** An editable Google Sheet */ export type EditableGoogleSheetsSourceImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** An editable Google Sheet */ -export type EditableGoogleSheetsSourceImportedDataCountForConstituency2024Args = - { - gss: Scalars['String']['input'] - } +export type EditableGoogleSheetsSourceImportedDataCountForConstituency2024Args = { + gss: Scalars['String']['input']; +}; + + +/** An editable Google Sheet */ +export type EditableGoogleSheetsSourceImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** An editable Google Sheet */ export type EditableGoogleSheetsSourceJobsArgs = { - filters?: InputMaybe - pagination?: InputMaybe -} + filters?: InputMaybe; + pagination?: InputMaybe; +}; + /** An editable Google Sheet */ export type EditableGoogleSheetsSourceOrgsWithAccessArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; /** An editable Google Sheet */ export type EditableGoogleSheetsSourceInput = { - addressField?: InputMaybe - autoImportEnabled?: InputMaybe - autoUpdateEnabled?: InputMaybe - canDisplayPointField?: InputMaybe - dataType?: InputMaybe - description?: InputMaybe - descriptionField?: InputMaybe - emailField?: InputMaybe - endTimeField?: InputMaybe - firstNameField?: InputMaybe - fullNameField?: InputMaybe - geocodingConfig?: InputMaybe - geographyColumn?: InputMaybe - geographyColumnType?: InputMaybe - id?: InputMaybe - idField?: InputMaybe - imageField?: InputMaybe - lastNameField?: InputMaybe - name?: InputMaybe - oauthCredentials?: InputMaybe - organisation?: InputMaybe - phoneField?: InputMaybe - postcodeField?: InputMaybe - publicUrlField?: InputMaybe - sheetName: Scalars['String']['input'] - socialUrlField?: InputMaybe - spreadsheetId: Scalars['String']['input'] - startTimeField?: InputMaybe - titleField?: InputMaybe - updateMapping?: InputMaybe> -} + addressField?: InputMaybe; + autoImportEnabled?: InputMaybe; + autoUpdateEnabled?: InputMaybe; + canDisplayPointField?: InputMaybe; + dataType?: InputMaybe; + description?: InputMaybe; + descriptionField?: InputMaybe; + emailField?: InputMaybe; + endTimeField?: InputMaybe; + firstNameField?: InputMaybe; + fullNameField?: InputMaybe; + geocodingConfig?: InputMaybe; + geographyColumn?: InputMaybe; + geographyColumnType?: InputMaybe; + id?: InputMaybe; + idField?: InputMaybe; + imageField?: InputMaybe; + lastNameField?: InputMaybe; + name?: InputMaybe; + oauthCredentials?: InputMaybe; + organisation?: InputMaybe; + phoneField?: InputMaybe; + postcodeField?: InputMaybe; + publicUrlField?: InputMaybe; + sheetName: Scalars['String']['input']; + socialUrlField?: InputMaybe; + spreadsheetId: Scalars['String']['input']; + startTimeField?: InputMaybe; + titleField?: InputMaybe; + updateMapping?: InputMaybe>; +}; export type ElectionDate = { - __typename?: 'ElectionDate' - advanceVotingStation?: Maybe - ballots: Array - date: Scalars['DateTime']['output'] - pollingStation: PollingStation -} + __typename?: 'ElectionDate'; + advanceVotingStation?: Maybe; + ballots: Array; + date: Scalars['DateTime']['output']; + pollingStation: PollingStation; +}; export type ElectoralCommissionBallot = { - __typename?: 'ElectoralCommissionBallot' - ballotPaperId: Scalars['String']['output'] - ballotTitle: Scalars['String']['output'] - cancellationReason?: Maybe - cancelled: Scalars['Boolean']['output'] - candidates: Array - candidatesVerified: Scalars['Boolean']['output'] - electedRole: Scalars['String']['output'] - electionId: Scalars['String']['output'] - electionName: Scalars['String']['output'] - metadata?: Maybe - pollOpenDate: Scalars['DateTime']['output'] - postName: Scalars['String']['output'] - replacedBy?: Maybe - replaces?: Maybe - requiresVoterId: Scalars['String']['output'] - seatsContested: Scalars['Int']['output'] - votingSystem: ElectoralCommissionVotingSystem -} + __typename?: 'ElectoralCommissionBallot'; + ballotPaperId: Scalars['String']['output']; + ballotTitle: Scalars['String']['output']; + cancellationReason?: Maybe; + cancelled: Scalars['Boolean']['output']; + candidates: Array; + candidatesVerified: Scalars['Boolean']['output']; + electedRole: Scalars['String']['output']; + electionId: Scalars['String']['output']; + electionName: Scalars['String']['output']; + metadata?: Maybe; + pollOpenDate: Scalars['DateTime']['output']; + postName: Scalars['String']['output']; + replacedBy?: Maybe; + replaces?: Maybe; + requiresVoterId: Scalars['String']['output']; + seatsContested: Scalars['Int']['output']; + votingSystem: ElectoralCommissionVotingSystem; +}; export type ElectoralCommissionCandidate = { - __typename?: 'ElectoralCommissionCandidate' - party: ElectoralCommissionParty - person: ElectoralCommissionPerson -} + __typename?: 'ElectoralCommissionCandidate'; + party: ElectoralCommissionParty; + person: ElectoralCommissionPerson; +}; export type ElectoralCommissionParty = { - __typename?: 'ElectoralCommissionParty' - partyId: Scalars['String']['output'] - partyName: Scalars['String']['output'] -} + __typename?: 'ElectoralCommissionParty'; + partyId: Scalars['String']['output']; + partyName: Scalars['String']['output']; +}; export type ElectoralCommissionPerson = { - __typename?: 'ElectoralCommissionPerson' - name: Scalars['String']['output'] - ynrId: Scalars['Int']['output'] -} + __typename?: 'ElectoralCommissionPerson'; + name: Scalars['String']['output']; + ynrId: Scalars['Int']['output']; +}; export type ElectoralCommissionPostcodeLookup = { - __typename?: 'ElectoralCommissionPostcodeLookup' - addressPicker: Scalars['Boolean']['output'] - addresses: Scalars['JSON']['output'] - dates: Array - electoralServices: ElectoralServices - postcodeLocation: ElectoralCommissionStation - registration: ElectoralServices -} + __typename?: 'ElectoralCommissionPostcodeLookup'; + addressPicker: Scalars['Boolean']['output']; + addresses: Scalars['JSON']['output']; + dates: Array; + electoralServices: ElectoralServices; + postcodeLocation: ElectoralCommissionStation; + registration: ElectoralServices; +}; export type ElectoralCommissionStation = { - __typename?: 'ElectoralCommissionStation' - geometry: PointGeometry - id?: Maybe - properties?: Maybe - type: Scalars['String']['output'] -} + __typename?: 'ElectoralCommissionStation'; + geometry: PointGeometry; + id?: Maybe; + properties?: Maybe; + type: Scalars['String']['output']; +}; export type ElectoralCommissionStationProperties = { - __typename?: 'ElectoralCommissionStationProperties' - address: Scalars['String']['output'] - postcode: Scalars['String']['output'] -} + __typename?: 'ElectoralCommissionStationProperties'; + address: Scalars['String']['output']; + postcode: Scalars['String']['output']; +}; export type ElectoralCommissionVotingSystem = { - __typename?: 'ElectoralCommissionVotingSystem' - name: Scalars['String']['output'] - slug: Scalars['String']['output'] - usesPartyLists: Scalars['Boolean']['output'] -} + __typename?: 'ElectoralCommissionVotingSystem'; + name: Scalars['String']['output']; + slug: Scalars['String']['output']; + usesPartyLists: Scalars['Boolean']['output']; +}; export type ElectoralServices = { - __typename?: 'ElectoralServices' - address: Scalars['String']['output'] - councilId: Scalars['String']['output'] - email: Scalars['String']['output'] - identifiers: Array - name: Scalars['String']['output'] - nation: Scalars['String']['output'] - phone: Scalars['String']['output'] - postcode: Scalars['String']['output'] - website: Scalars['String']['output'] -} + __typename?: 'ElectoralServices'; + address: Scalars['String']['output']; + councilId: Scalars['String']['output']; + email: Scalars['String']['output']; + identifiers: Array; + name: Scalars['String']['output']; + nation: Scalars['String']['output']; + phone: Scalars['String']['output']; + postcode: Scalars['String']['output']; + website: Scalars['String']['output']; +}; /** * A third-party data source that can be read and optionally written back to. @@ -1008,75 +1072,80 @@ export type ElectoralServices = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSource = Analytics & { - __typename?: 'ExternalDataSource' - addressField?: Maybe - allowUpdates: Scalars['Boolean']['output'] - autoImportEnabled: Scalars['Boolean']['output'] - autoUpdateEnabled: Scalars['Boolean']['output'] - automatedWebhooks: Scalars['Boolean']['output'] - canDisplayPointField?: Maybe - connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource - createdAt: Scalars['DateTime']['output'] - crmType: CrmType - dataType: DataSourceType - defaultDataType?: Maybe - defaults: Scalars['JSON']['output'] - description?: Maybe - descriptionField?: Maybe - emailField?: Maybe - endTimeField?: Maybe - fieldDefinitions?: Maybe> - firstNameField?: Maybe - fullNameField?: Maybe - geocodingConfig: Scalars['JSON']['output'] - geographyColumn?: Maybe - geographyColumnType: GeographyTypes - hasWebhooks: Scalars['Boolean']['output'] - healthcheck: Scalars['Boolean']['output'] - id: Scalars['UUID']['output'] - imageField?: Maybe - importProgress?: Maybe - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe - introspectFields: Scalars['Boolean']['output'] - isImportScheduled: Scalars['Boolean']['output'] - isUpdateScheduled: Scalars['Boolean']['output'] - jobs: Array - lastImportJob?: Maybe - lastNameField?: Maybe - lastUpdate: Scalars['DateTime']['output'] - lastUpdateJob?: Maybe - name: Scalars['String']['output'] - oauthCredentials?: Maybe - organisation: Organisation - organisationId: Scalars['String']['output'] - orgsWithAccess: Array - phoneField?: Maybe - postcodeField?: Maybe - predefinedColumnNames: Scalars['Boolean']['output'] - publicUrlField?: Maybe - recordUrlTemplate?: Maybe - remoteName?: Maybe - remoteUrl?: Maybe - sharingPermissions: Array - socialUrlField?: Maybe - startTimeField?: Maybe - titleField?: Maybe - updateMapping?: Maybe> - updateProgress?: Maybe - usesValidGeocodingConfig: Scalars['Boolean']['output'] - webhookHealthcheck: Scalars['Boolean']['output'] - webhookUrl: Scalars['String']['output'] -} + __typename?: 'ExternalDataSource'; + addressField?: Maybe; + allowUpdates: Scalars['Boolean']['output']; + autoImportEnabled: Scalars['Boolean']['output']; + autoUpdateEnabled: Scalars['Boolean']['output']; + automatedWebhooks: Scalars['Boolean']['output']; + canDisplayPointField?: Maybe; + connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource; + createdAt: Scalars['DateTime']['output']; + crmType: CrmType; + dataType: DataSourceType; + defaultDataType?: Maybe; + defaults: Scalars['JSON']['output']; + description?: Maybe; + descriptionField?: Maybe; + emailField?: Maybe; + endTimeField?: Maybe; + fieldDefinitions?: Maybe>; + firstNameField?: Maybe; + fullNameField?: Maybe; + geocodingConfig: Scalars['JSON']['output']; + geographyColumn?: Maybe; + geographyColumnType: GeographyTypes; + hasWebhooks: Scalars['Boolean']['output']; + healthcheck: Scalars['Boolean']['output']; + id: Scalars['UUID']['output']; + imageField?: Maybe; + importProgress?: Maybe; + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; + introspectFields: Scalars['Boolean']['output']; + isImportScheduled: Scalars['Boolean']['output']; + isUpdateScheduled: Scalars['Boolean']['output']; + jobs: Array; + lastImportJob?: Maybe; + lastNameField?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + lastUpdateJob?: Maybe; + name: Scalars['String']['output']; + oauthCredentials?: Maybe; + organisation: Organisation; + organisationId: Scalars['String']['output']; + orgsWithAccess: Array; + phoneField?: Maybe; + postcodeField?: Maybe; + predefinedColumnNames: Scalars['Boolean']['output']; + publicUrlField?: Maybe; + recordUrlTemplate?: Maybe; + remoteName?: Maybe; + remoteUrl?: Maybe; + sharingPermissions: Array; + socialUrlField?: Maybe; + startTimeField?: Maybe; + titleField?: Maybe; + updateMapping?: Maybe>; + updateProgress?: Maybe; + usesValidGeocodingConfig: Scalars['Boolean']['output']; + webhookHealthcheck: Scalars['Boolean']['output']; + webhookUrl: Scalars['String']['output']; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -1084,9 +1153,10 @@ export type ExternalDataSource = Analytics & { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -1094,9 +1164,10 @@ export type ExternalDataSourceImportedDataByAreaArgs = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -1104,8 +1175,9 @@ export type ExternalDataSourceImportedDataCountByAreaArgs = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceImportedDataCountByConstituencyBySourceArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -1113,9 +1185,10 @@ export type ExternalDataSourceImportedDataCountByConstituencyBySourceArgs = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -1123,8 +1196,9 @@ export type ExternalDataSourceImportedDataCountForAreaArgs = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -1132,8 +1206,20 @@ export type ExternalDataSourceImportedDataCountForConstituencyArgs = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceImportedDataCountForConstituency2024Args = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + + +/** + * A third-party data source that can be read and optionally written back to. + * E.g. Google Sheet or an Action Network table. + * This class is to be subclassed by specific data source types. + */ +export type ExternalDataSourceImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -1141,9 +1227,10 @@ export type ExternalDataSourceImportedDataCountForConstituency2024Args = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceJobsArgs = { - filters?: InputMaybe - pagination?: InputMaybe -} + filters?: InputMaybe; + pagination?: InputMaybe; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -1151,14 +1238,14 @@ export type ExternalDataSourceJobsArgs = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceOrgsWithAccessArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; export type ExternalDataSourceAction = { - __typename?: 'ExternalDataSourceAction' - externalDataSource: ExternalDataSource - id: Scalars['ID']['output'] -} + __typename?: 'ExternalDataSourceAction'; + externalDataSource: ExternalDataSource; + id: Scalars['ID']['output']; +}; /** * A third-party data source that can be read and optionally written back to. @@ -1166,12 +1253,12 @@ export type ExternalDataSourceAction = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceFilter = { - AND?: InputMaybe - NOT?: InputMaybe - OR?: InputMaybe - dataType?: InputMaybe - geographyColumnType?: InputMaybe -} + AND?: InputMaybe; + NOT?: InputMaybe; + OR?: InputMaybe; + dataType?: InputMaybe; + geographyColumnType?: InputMaybe; +}; /** * A third-party data source that can be read and optionally written back to. @@ -1179,91 +1266,92 @@ export type ExternalDataSourceFilter = { * This class is to be subclassed by specific data source types. */ export type ExternalDataSourceInput = { - addressField?: InputMaybe - autoImportEnabled?: InputMaybe - autoUpdateEnabled?: InputMaybe - canDisplayPointField?: InputMaybe - dataType?: InputMaybe - description?: InputMaybe - descriptionField?: InputMaybe - emailField?: InputMaybe - endTimeField?: InputMaybe - firstNameField?: InputMaybe - fullNameField?: InputMaybe - geocodingConfig?: InputMaybe - geographyColumn?: InputMaybe - geographyColumnType?: InputMaybe - id?: InputMaybe - imageField?: InputMaybe - lastNameField?: InputMaybe - name?: InputMaybe - organisation?: InputMaybe - phoneField?: InputMaybe - postcodeField?: InputMaybe - publicUrlField?: InputMaybe - socialUrlField?: InputMaybe - startTimeField?: InputMaybe - titleField?: InputMaybe - updateMapping?: InputMaybe> -} + addressField?: InputMaybe; + autoImportEnabled?: InputMaybe; + autoUpdateEnabled?: InputMaybe; + canDisplayPointField?: InputMaybe; + dataType?: InputMaybe; + description?: InputMaybe; + descriptionField?: InputMaybe; + emailField?: InputMaybe; + endTimeField?: InputMaybe; + firstNameField?: InputMaybe; + fullNameField?: InputMaybe; + geocodingConfig?: InputMaybe; + geographyColumn?: InputMaybe; + geographyColumnType?: InputMaybe; + id?: InputMaybe; + imageField?: InputMaybe; + lastNameField?: InputMaybe; + name?: InputMaybe; + organisation?: InputMaybe; + phoneField?: InputMaybe; + postcodeField?: InputMaybe; + publicUrlField?: InputMaybe; + socialUrlField?: InputMaybe; + startTimeField?: InputMaybe; + titleField?: InputMaybe; + updateMapping?: InputMaybe>; +}; export type Feature = { - id?: Maybe - type: GeoJsonTypes -} + id?: Maybe; + type: GeoJsonTypes; +}; export type FieldDefinition = { - __typename?: 'FieldDefinition' - description?: Maybe - editable: Scalars['Boolean']['output'] - externalId?: Maybe - label?: Maybe - value: Scalars['String']['output'] -} + __typename?: 'FieldDefinition'; + description?: Maybe; + editable: Scalars['Boolean']['output']; + externalId?: Maybe; + label?: Maybe; + value: Scalars['String']['output']; +}; /** GenericData(id, data_type, data, date, float, int, json, created_at, last_update, point, polygon, postcode_data, postcode, first_name, last_name, full_name, email, phone, start_time, end_time, public_url, social_url, geocode_data, geocoder, address, title, description, image, can_display_point) */ export type GenericData = CommonData & { - __typename?: 'GenericData' - address?: Maybe - area?: Maybe - areas?: Maybe - data: Scalars['String']['output'] - dataType: DataType - date?: Maybe - description?: Maybe - email?: Maybe - endTime?: Maybe - firstName?: Maybe - float?: Maybe - fullName?: Maybe - id: Scalars['ID']['output'] - image?: Maybe - int?: Maybe - json?: Maybe - lastName?: Maybe - lastUpdate: Scalars['DateTime']['output'] - name?: Maybe - phone?: Maybe - postcode?: Maybe - postcodeData?: Maybe - publicUrl?: Maybe - remoteUrl: Scalars['String']['output'] - shade?: Maybe - startTime?: Maybe - title?: Maybe -} + __typename?: 'GenericData'; + address?: Maybe; + area?: Maybe; + areas?: Maybe; + data: Scalars['String']['output']; + dataType: DataType; + date?: Maybe; + description?: Maybe; + email?: Maybe; + endTime?: Maybe; + firstName?: Maybe; + float?: Maybe; + fullName?: Maybe; + id: Scalars['ID']['output']; + image?: Maybe; + int?: Maybe; + json?: Maybe; + lastName?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + name?: Maybe; + phone?: Maybe; + postcode?: Maybe; + postcodeData?: Maybe; + publicUrl?: Maybe; + remoteUrl: Scalars['String']['output']; + shade?: Maybe; + startTime?: Maybe; + title?: Maybe; +}; + /** GenericData(id, data_type, data, date, float, int, json, created_at, last_update, point, polygon, postcode_data, postcode, first_name, last_name, full_name, email, phone, start_time, end_time, public_url, social_url, geocode_data, geocoder, address, title, description, image, can_display_point) */ export type GenericDataAreaArgs = { - areaType: Scalars['String']['input'] -} + areaType: Scalars['String']['input']; +}; export enum GeoJsonTypes { Feature = 'Feature', FeatureCollection = 'FeatureCollection', MultiPolygon = 'MultiPolygon', Point = 'Point', - Polygon = 'Polygon', + Polygon = 'Polygon' } /** @@ -1279,515 +1367,556 @@ export enum GeographyTypes { ParliamentaryConstituency = 'PARLIAMENTARY_CONSTITUENCY', ParliamentaryConstituency_2024 = 'PARLIAMENTARY_CONSTITUENCY_2024', Postcode = 'POSTCODE', - Ward = 'WARD', + Ward = 'WARD' } /** GenericData(id, data_type, data, date, float, int, json, created_at, last_update, point, polygon, postcode_data, postcode, first_name, last_name, full_name, email, phone, start_time, end_time, public_url, social_url, geocode_data, geocoder, address, title, description, image, can_display_point) */ export type GroupedData = { - __typename?: 'GroupedData' - areaData?: Maybe - areaType?: Maybe - areaTypeFilter?: Maybe - gss?: Maybe - gssArea?: Maybe - importedData?: Maybe - label?: Maybe -} + __typename?: 'GroupedData'; + areaData?: Maybe; + areaType?: Maybe; + areaTypeFilter?: Maybe; + gss?: Maybe; + gssArea?: Maybe; + importedData?: Maybe; + label?: Maybe; +}; export type GroupedDataCount = { - __typename?: 'GroupedDataCount' - areaData?: Maybe - areaTypeFilter?: Maybe - count: Scalars['Int']['output'] - gss?: Maybe - gssArea?: Maybe - label?: Maybe -} + __typename?: 'GroupedDataCount'; + areaData?: Maybe; + areaTypeFilter?: Maybe; + count: Scalars['Int']['output']; + gss?: Maybe; + gssArea?: Maybe; + label?: Maybe; +}; export type GroupedDataCountWithBreakdown = { - __typename?: 'GroupedDataCountWithBreakdown' - areaData?: Maybe - areaTypeFilter?: Maybe - count: Scalars['Int']['output'] - gss?: Maybe - gssArea?: Maybe - label?: Maybe - sources: Array -} + __typename?: 'GroupedDataCountWithBreakdown'; + areaData?: Maybe; + areaTypeFilter?: Maybe; + count: Scalars['Int']['output']; + gss?: Maybe; + gssArea?: Maybe; + label?: Maybe; + sources: Array; +}; /** * An microsite that incorporates datasets and content pages, * backed by a custom URL. */ export type HubHomepage = { - __typename?: 'HubHomepage' - ancestors: Array - children: Array - customCss?: Maybe - descendants: Array - faviconUrl?: Maybe + __typename?: 'HubHomepage'; + ancestors: Array; + children: Array; + customCss?: Maybe; + descendants: Array; + faviconUrl?: Maybe; /** Return the full URL (including protocol / domain) to this page, or None if it is not routable */ - fullUrl?: Maybe - googleAnalyticsTagId?: Maybe - hostname: Scalars['String']['output'] - hub: HubHomepage - id: Scalars['ID']['output'] - layers: Array - liveUrl?: Maybe - liveUrlWithoutProtocol: Scalars['String']['output'] - modelName: Scalars['String']['output'] - navLinks: Array - organisation: Organisation - parent?: Maybe - path: Scalars['String']['output'] - primaryColour?: Maybe - puckJsonContent: Scalars['JSON']['output'] + fullUrl?: Maybe; + googleAnalyticsTagId?: Maybe; + hostname: Scalars['String']['output']; + hub: HubHomepage; + id: Scalars['ID']['output']; + layers: Array; + liveUrl?: Maybe; + liveUrlWithoutProtocol: Scalars['String']['output']; + modelName: Scalars['String']['output']; + navLinks: Array; + organisation: Organisation; + parent?: Maybe; + path: Scalars['String']['output']; + primaryColour?: Maybe; + puckJsonContent: Scalars['JSON']['output']; /** The descriptive text displayed underneath a headline in search engine results. */ - searchDescription?: Maybe - secondaryColour?: Maybe - seoImageUrl?: Maybe + searchDescription?: Maybe; + secondaryColour?: Maybe; + seoImageUrl?: Maybe; /** The name of the page displayed on search engine results as the clickable headline. */ - seoTitle: Scalars['String']['output'] + seoTitle: Scalars['String']['output']; /** The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/ */ - slug: Scalars['String']['output'] + slug: Scalars['String']['output']; /** The page title as you'd like it to be seen by the public */ - title: Scalars['String']['output'] -} + title: Scalars['String']['output']; +}; + /** * An microsite that incorporates datasets and content pages, * backed by a custom URL. */ export type HubHomepageAncestorsArgs = { - inclusive?: Scalars['Boolean']['input'] -} + inclusive?: Scalars['Boolean']['input']; +}; + /** * An microsite that incorporates datasets and content pages, * backed by a custom URL. */ export type HubHomepageDescendantsArgs = { - inclusive?: Scalars['Boolean']['input'] -} + inclusive?: Scalars['Boolean']['input']; +}; export type HubNavLink = { - __typename?: 'HubNavLink' - label: Scalars['String']['output'] - link: Scalars['String']['output'] -} + __typename?: 'HubNavLink'; + label: Scalars['String']['output']; + link: Scalars['String']['output']; +}; /** Page(id, path, depth, numchild, translation_key, locale, latest_revision, live, has_unpublished_changes, first_published_at, last_published_at, live_revision, go_live_at, expire_at, expired, locked, locked_at, locked_by, title, draft_title, slug, content_type, url_path, owner, seo_title, show_in_menus, search_description, latest_revision_created_at, alias_of) */ export type HubPage = { - __typename?: 'HubPage' - ancestors: Array - children: Array - descendants: Array + __typename?: 'HubPage'; + ancestors: Array; + children: Array; + descendants: Array; /** Return the full URL (including protocol / domain) to this page, or None if it is not routable */ - fullUrl?: Maybe - hostname: Scalars['String']['output'] - hub: HubHomepage - id: Scalars['ID']['output'] - liveUrl?: Maybe - liveUrlWithoutProtocol: Scalars['String']['output'] - modelName: Scalars['String']['output'] - parent?: Maybe - path: Scalars['String']['output'] - puckJsonContent: Scalars['JSON']['output'] + fullUrl?: Maybe; + hostname: Scalars['String']['output']; + hub: HubHomepage; + id: Scalars['ID']['output']; + liveUrl?: Maybe; + liveUrlWithoutProtocol: Scalars['String']['output']; + modelName: Scalars['String']['output']; + parent?: Maybe; + path: Scalars['String']['output']; + puckJsonContent: Scalars['JSON']['output']; /** The descriptive text displayed underneath a headline in search engine results. */ - searchDescription?: Maybe + searchDescription?: Maybe; /** The name of the page displayed on search engine results as the clickable headline. */ - seoTitle: Scalars['String']['output'] + seoTitle: Scalars['String']['output']; /** The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/ */ - slug: Scalars['String']['output'] + slug: Scalars['String']['output']; /** The page title as you'd like it to be seen by the public */ - title: Scalars['String']['output'] -} + title: Scalars['String']['output']; +}; + /** Page(id, path, depth, numchild, translation_key, locale, latest_revision, live, has_unpublished_changes, first_published_at, last_published_at, live_revision, go_live_at, expire_at, expired, locked, locked_at, locked_by, title, draft_title, slug, content_type, url_path, owner, seo_title, show_in_menus, search_description, latest_revision_created_at, alias_of) */ export type HubPageAncestorsArgs = { - inclusive?: Scalars['Boolean']['input'] -} + inclusive?: Scalars['Boolean']['input']; +}; + /** Page(id, path, depth, numchild, translation_key, locale, latest_revision, live, has_unpublished_changes, first_published_at, last_published_at, live_revision, go_live_at, expire_at, expired, locked, locked_at, locked_by, title, draft_title, slug, content_type, url_path, owner, seo_title, show_in_menus, search_description, latest_revision_created_at, alias_of) */ export type HubPageDescendantsArgs = { - inclusive?: Scalars['Boolean']['input'] -} + inclusive?: Scalars['Boolean']['input']; +}; /** Page(id, path, depth, numchild, translation_key, locale, latest_revision, live, has_unpublished_changes, first_published_at, last_published_at, live_revision, go_live_at, expire_at, expired, locked, locked_at, locked_by, title, draft_title, slug, content_type, url_path, owner, seo_title, show_in_menus, search_description, latest_revision_created_at, alias_of) */ export type HubPageInput = { - puckJsonContent?: InputMaybe + puckJsonContent?: InputMaybe; /** The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/ */ - slug?: InputMaybe + slug?: InputMaybe; /** The page title as you'd like it to be seen by the public */ - title?: InputMaybe -} + title?: InputMaybe; +}; export type IdFilterLookup = { - contains?: InputMaybe - endsWith?: InputMaybe - exact?: InputMaybe - gt?: InputMaybe - gte?: InputMaybe - iContains?: InputMaybe - iEndsWith?: InputMaybe - iExact?: InputMaybe - iRegex?: InputMaybe - iStartsWith?: InputMaybe - inList?: InputMaybe> - isNull?: InputMaybe - lt?: InputMaybe - lte?: InputMaybe - range?: InputMaybe> - regex?: InputMaybe - startsWith?: InputMaybe -} + contains?: InputMaybe; + endsWith?: InputMaybe; + exact?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + iContains?: InputMaybe; + iEndsWith?: InputMaybe; + iExact?: InputMaybe; + iRegex?: InputMaybe; + iStartsWith?: InputMaybe; + inList?: InputMaybe>; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + range?: InputMaybe>; + regex?: InputMaybe; + startsWith?: InputMaybe; +}; export type IdObject = { - id: Scalars['String']['input'] -} + id: Scalars['String']['input']; +}; export type IntFilterLookup = { - contains?: InputMaybe - endsWith?: InputMaybe - exact?: InputMaybe - gt?: InputMaybe - gte?: InputMaybe - iContains?: InputMaybe - iEndsWith?: InputMaybe - iExact?: InputMaybe - iRegex?: InputMaybe - iStartsWith?: InputMaybe - inList?: InputMaybe> - isNull?: InputMaybe - lt?: InputMaybe - lte?: InputMaybe - range?: InputMaybe> - regex?: InputMaybe - startsWith?: InputMaybe -} + contains?: InputMaybe; + endsWith?: InputMaybe; + exact?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + iContains?: InputMaybe; + iEndsWith?: InputMaybe; + iExact?: InputMaybe; + iRegex?: InputMaybe; + iStartsWith?: InputMaybe; + inList?: InputMaybe>; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + range?: InputMaybe>; + regex?: InputMaybe; + startsWith?: InputMaybe; +}; /** A Mailchimp list. */ export type MailChimpSourceInput = { - addressField?: InputMaybe + addressField?: InputMaybe; /** Mailchimp API key. */ - apiKey: Scalars['String']['input'] - autoImportEnabled?: InputMaybe - autoUpdateEnabled?: InputMaybe - canDisplayPointField?: InputMaybe - dataType?: InputMaybe - description?: InputMaybe - descriptionField?: InputMaybe - emailField?: InputMaybe - endTimeField?: InputMaybe - firstNameField?: InputMaybe - fullNameField?: InputMaybe - geocodingConfig?: InputMaybe - geographyColumn?: InputMaybe - geographyColumnType?: InputMaybe - id?: InputMaybe - imageField?: InputMaybe - lastNameField?: InputMaybe + apiKey: Scalars['String']['input']; + autoImportEnabled?: InputMaybe; + autoUpdateEnabled?: InputMaybe; + canDisplayPointField?: InputMaybe; + dataType?: InputMaybe; + description?: InputMaybe; + descriptionField?: InputMaybe; + emailField?: InputMaybe; + endTimeField?: InputMaybe; + firstNameField?: InputMaybe; + fullNameField?: InputMaybe; + geocodingConfig?: InputMaybe; + geographyColumn?: InputMaybe; + geographyColumnType?: InputMaybe; + id?: InputMaybe; + imageField?: InputMaybe; + lastNameField?: InputMaybe; /** The unique identifier for the Mailchimp list. */ - listId: Scalars['String']['input'] - name?: InputMaybe - organisation?: InputMaybe - phoneField?: InputMaybe - postcodeField?: InputMaybe - publicUrlField?: InputMaybe - socialUrlField?: InputMaybe - startTimeField?: InputMaybe - titleField?: InputMaybe - updateMapping?: InputMaybe> -} + listId: Scalars['String']['input']; + name?: InputMaybe; + organisation?: InputMaybe; + phoneField?: InputMaybe; + postcodeField?: InputMaybe; + publicUrlField?: InputMaybe; + socialUrlField?: InputMaybe; + startTimeField?: InputMaybe; + titleField?: InputMaybe; + updateMapping?: InputMaybe>; +}; /** A Mailchimp list. */ export type MailchimpSource = Analytics & { - __typename?: 'MailchimpSource' - addressField?: Maybe - allowUpdates: Scalars['Boolean']['output'] + __typename?: 'MailchimpSource'; + addressField?: Maybe; + allowUpdates: Scalars['Boolean']['output']; /** Mailchimp API key. */ - apiKey: Scalars['String']['output'] - autoImportEnabled: Scalars['Boolean']['output'] - autoUpdateEnabled: Scalars['Boolean']['output'] - automatedWebhooks: Scalars['Boolean']['output'] - canDisplayPointField?: Maybe - connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource - createdAt: Scalars['DateTime']['output'] - crmType: CrmType - dataType: DataSourceType - defaultDataType?: Maybe - defaults: Scalars['JSON']['output'] - description?: Maybe - descriptionField?: Maybe - emailField?: Maybe - endTimeField?: Maybe - fieldDefinitions?: Maybe> - firstNameField?: Maybe - fullNameField?: Maybe - geocodingConfig: Scalars['JSON']['output'] - geographyColumn?: Maybe - geographyColumnType: GeographyTypes - hasWebhooks: Scalars['Boolean']['output'] - healthcheck: Scalars['Boolean']['output'] - id: Scalars['UUID']['output'] - imageField?: Maybe - importProgress?: Maybe - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe - introspectFields: Scalars['Boolean']['output'] - isImportScheduled: Scalars['Boolean']['output'] - isUpdateScheduled: Scalars['Boolean']['output'] - jobs: Array - lastImportJob?: Maybe - lastNameField?: Maybe - lastUpdate: Scalars['DateTime']['output'] - lastUpdateJob?: Maybe + apiKey: Scalars['String']['output']; + autoImportEnabled: Scalars['Boolean']['output']; + autoUpdateEnabled: Scalars['Boolean']['output']; + automatedWebhooks: Scalars['Boolean']['output']; + canDisplayPointField?: Maybe; + connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource; + createdAt: Scalars['DateTime']['output']; + crmType: CrmType; + dataType: DataSourceType; + defaultDataType?: Maybe; + defaults: Scalars['JSON']['output']; + description?: Maybe; + descriptionField?: Maybe; + emailField?: Maybe; + endTimeField?: Maybe; + fieldDefinitions?: Maybe>; + firstNameField?: Maybe; + fullNameField?: Maybe; + geocodingConfig: Scalars['JSON']['output']; + geographyColumn?: Maybe; + geographyColumnType: GeographyTypes; + hasWebhooks: Scalars['Boolean']['output']; + healthcheck: Scalars['Boolean']['output']; + id: Scalars['UUID']['output']; + imageField?: Maybe; + importProgress?: Maybe; + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; + introspectFields: Scalars['Boolean']['output']; + isImportScheduled: Scalars['Boolean']['output']; + isUpdateScheduled: Scalars['Boolean']['output']; + jobs: Array; + lastImportJob?: Maybe; + lastNameField?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + lastUpdateJob?: Maybe; /** The unique identifier for the Mailchimp list. */ - listId: Scalars['String']['output'] - name: Scalars['String']['output'] - oauthCredentials?: Maybe - organisation: Organisation - organisationId: Scalars['String']['output'] - orgsWithAccess: Array - phoneField?: Maybe - postcodeField?: Maybe - predefinedColumnNames: Scalars['Boolean']['output'] - publicUrlField?: Maybe - recordUrlTemplate?: Maybe - remoteName?: Maybe - remoteUrl?: Maybe - sharingPermissions: Array - socialUrlField?: Maybe - startTimeField?: Maybe - titleField?: Maybe - updateMapping?: Maybe> - updateProgress?: Maybe - usesValidGeocodingConfig: Scalars['Boolean']['output'] - webhookHealthcheck: Scalars['Boolean']['output'] - webhookUrl: Scalars['String']['output'] -} + listId: Scalars['String']['output']; + name: Scalars['String']['output']; + oauthCredentials?: Maybe; + organisation: Organisation; + organisationId: Scalars['String']['output']; + orgsWithAccess: Array; + phoneField?: Maybe; + postcodeField?: Maybe; + predefinedColumnNames: Scalars['Boolean']['output']; + publicUrlField?: Maybe; + recordUrlTemplate?: Maybe; + remoteName?: Maybe; + remoteUrl?: Maybe; + sharingPermissions: Array; + socialUrlField?: Maybe; + startTimeField?: Maybe; + titleField?: Maybe; + updateMapping?: Maybe>; + updateProgress?: Maybe; + usesValidGeocodingConfig: Scalars['Boolean']['output']; + webhookHealthcheck: Scalars['Boolean']['output']; + webhookUrl: Scalars['String']['output']; +}; + /** A Mailchimp list. */ export type MailchimpSourceImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** A Mailchimp list. */ export type MailchimpSourceImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** A Mailchimp list. */ export type MailchimpSourceImportedDataCountByConstituencyBySourceArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** A Mailchimp list. */ export type MailchimpSourceImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + /** A Mailchimp list. */ export type MailchimpSourceImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** A Mailchimp list. */ export type MailchimpSourceImportedDataCountForConstituency2024Args = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + + +/** A Mailchimp list. */ +export type MailchimpSourceImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** A Mailchimp list. */ export type MailchimpSourceJobsArgs = { - filters?: InputMaybe - pagination?: InputMaybe -} + filters?: InputMaybe; + pagination?: InputMaybe; +}; + /** A Mailchimp list. */ export type MailchimpSourceOrgsWithAccessArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; export type MapLayer = { - __typename?: 'MapLayer' - customMarkerText?: Maybe - iconImage?: Maybe - id: Scalars['String']['output'] - isSharedSource: Scalars['Boolean']['output'] - mapboxLayout?: Maybe - mapboxPaint?: Maybe - name: Scalars['String']['output'] - sharingPermission?: Maybe - source: SharedDataSource - type: Scalars['String']['output'] - visible?: Maybe -} + __typename?: 'MapLayer'; + customMarkerText?: Maybe; + iconImage?: Maybe; + id: Scalars['String']['output']; + isSharedSource: Scalars['Boolean']['output']; + mapboxLayout?: Maybe; + mapboxPaint?: Maybe; + name: Scalars['String']['output']; + sharingPermission?: Maybe; + source: SharedDataSource; + type: Scalars['String']['output']; + visible?: Maybe; +}; export type MapLayerInput = { - customMarkerText?: InputMaybe - id: Scalars['String']['input'] - name: Scalars['String']['input'] - source: Scalars['String']['input'] - visible?: InputMaybe -} + customMarkerText?: InputMaybe; + id: Scalars['String']['input']; + name: Scalars['String']['input']; + source: Scalars['String']['input']; + visible?: InputMaybe; +}; /** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ export type MapReport = Analytics & { - __typename?: 'MapReport' - createdAt: Scalars['DateTime']['output'] - description?: Maybe - displayOptions: Scalars['JSON']['output'] - id: Scalars['UUID']['output'] - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe - lastUpdate: Scalars['DateTime']['output'] - layers: Array - name: Scalars['String']['output'] - organisation: Organisation - organisationId: Scalars['String']['output'] - slug: Scalars['String']['output'] -} + __typename?: 'MapReport'; + createdAt: Scalars['DateTime']['output']; + description?: Maybe; + displayOptions: Scalars['JSON']['output']; + id: Scalars['UUID']['output']; + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; + lastUpdate: Scalars['DateTime']['output']; + layers: Array; + name: Scalars['String']['output']; + organisation: Organisation; + organisationId: Scalars['String']['output']; + slug: Scalars['String']['output']; +}; + /** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ export type MapReportImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ export type MapReportImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ export type MapReportImportedDataCountByConstituencyBySourceArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ export type MapReportImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + /** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ export type MapReportImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ export type MapReportImportedDataCountForConstituency2024Args = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + + +/** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ +export type MapReportImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; /** MapReport(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public, report_ptr, layers, display_options) */ export type MapReportInput = { - createdAt?: InputMaybe - description?: InputMaybe - displayOptions?: InputMaybe - id?: InputMaybe - lastUpdate?: InputMaybe - layers?: InputMaybe> - name?: InputMaybe - organisation?: InputMaybe - slug?: InputMaybe -} + createdAt?: InputMaybe; + description?: InputMaybe; + displayOptions?: InputMaybe; + id?: InputMaybe; + lastUpdate?: InputMaybe; + layers?: InputMaybe>; + name?: InputMaybe; + organisation?: InputMaybe; + slug?: InputMaybe; +}; export type MapReportMemberFeature = Feature & { - __typename?: 'MapReportMemberFeature' - electoralCommission?: Maybe - geometry: PointGeometry - id?: Maybe - properties?: Maybe - type: GeoJsonTypes -} + __typename?: 'MapReportMemberFeature'; + electoralCommission?: Maybe; + geometry: PointGeometry; + id?: Maybe; + properties?: Maybe; + type: GeoJsonTypes; +}; + export type MapReportMemberFeatureElectoralCommissionArgs = { - addressSlug?: InputMaybe -} + addressSlug?: InputMaybe; +}; export type MappingSource = { - __typename?: 'MappingSource' - author?: Maybe - builtin: Scalars['Boolean']['output'] - description?: Maybe - descriptionUrl?: Maybe - externalDataSource?: Maybe - name: Scalars['String']['output'] - slug: Scalars['String']['output'] - sourcePaths: Array -} + __typename?: 'MappingSource'; + author?: Maybe; + builtin: Scalars['Boolean']['output']; + description?: Maybe; + descriptionUrl?: Maybe; + externalDataSource?: Maybe; + name: Scalars['String']['output']; + slug: Scalars['String']['output']; + sourcePaths: Array; +}; export type MappingSourcePath = { - __typename?: 'MappingSourcePath' - description?: Maybe - label?: Maybe - value: Scalars['String']['output'] -} + __typename?: 'MappingSourcePath'; + description?: Maybe; + label?: Maybe; + value: Scalars['String']['output']; +}; /** Membership(id, user, organisation, role) */ export type Membership = { - __typename?: 'Membership' - id: Scalars['ID']['output'] - organisation: Organisation - organisationId: Scalars['String']['output'] - role: Scalars['String']['output'] - user: User - userId: Scalars['String']['output'] -} + __typename?: 'Membership'; + id: Scalars['ID']['output']; + organisation: Organisation; + organisationId: Scalars['String']['output']; + role: Scalars['String']['output']; + user: User; + userId: Scalars['String']['output']; +}; export type MultiPolygonFeature = Feature & { - __typename?: 'MultiPolygonFeature' - geometry: MultiPolygonGeometry - id?: Maybe - properties: Scalars['JSON']['output'] - type: GeoJsonTypes -} + __typename?: 'MultiPolygonFeature'; + geometry: MultiPolygonGeometry; + id?: Maybe; + properties: Scalars['JSON']['output']; + type: GeoJsonTypes; +}; export type MultiPolygonGeometry = { - __typename?: 'MultiPolygonGeometry' - coordinates: Scalars['JSON']['output'] - type: GeoJsonTypes -} + __typename?: 'MultiPolygonGeometry'; + coordinates: Scalars['JSON']['output']; + type: GeoJsonTypes; +}; export type Mutation = { - __typename?: 'Mutation' - addMember: Scalars['Boolean']['output'] - createApiToken: ApiToken - createChildPage: HubPage - createExternalDataSource: CreateExternalDataSourceOutput - createMapReport: CreateMapReportPayload - createOrganisation: Membership - createSharingPermission: SharingPermission - deleteExternalDataSource: ExternalDataSource - deleteMapReport: MapReport - deletePage: Scalars['Boolean']['output'] - deleteSharingPermission: SharingPermission - disableWebhook: ExternalDataSource - enableWebhook: ExternalDataSource - importAll: ExternalDataSourceAction + __typename?: 'Mutation'; + addMember: Scalars['Boolean']['output']; + createApiToken: ApiToken; + createChildPage: HubPage; + createExternalDataSource: CreateExternalDataSourceOutput; + createMapReport: CreateMapReportPayload; + createOrganisation: Membership; + createSharingPermission: SharingPermission; + deleteExternalDataSource: ExternalDataSource; + deleteMapReport: MapReport; + deletePage: Scalars['Boolean']['output']; + deleteSharingPermission: SharingPermission; + disableWebhook: ExternalDataSource; + enableWebhook: ExternalDataSource; + importAll: ExternalDataSourceAction; /** * Change user password without old password. * @@ -1799,8 +1928,8 @@ export type Mutation = { * Also, if user has not been verified yet, verify it. * */ - performPasswordReset: MutationNormalOutput - refreshWebhooks: ExternalDataSource + performPasswordReset: MutationNormalOutput; + refreshWebhooks: ExternalDataSource; /** * Send password reset email. * @@ -1810,7 +1939,7 @@ export type Mutation = { * is returned. * */ - requestPasswordReset: MutationNormalOutput + requestPasswordReset: MutationNormalOutput; /** * Sends activation email. * @@ -1821,8 +1950,8 @@ export type Mutation = { * is returned. * */ - resendActivationEmail: MutationNormalOutput - revokeApiToken: ApiToken + resendActivationEmail: MutationNormalOutput; + revokeApiToken: ApiToken; /** * Obtain JSON web token for given user. * @@ -1836,14 +1965,14 @@ export type Mutation = { * `unarchiving=True` on OutputBase. * */ - tokenAuth: ObtainJsonWebTokenType - triggerUpdate: ExternalDataSourceAction - updateExternalDataSource: ExternalDataSource - updateMapReport: MapReport - updateOrganisation: Organisation - updatePage: HubPage - updateSharingPermission: SharingPermission - updateSharingPermissions: Array + tokenAuth: ObtainJsonWebTokenType; + triggerUpdate: ExternalDataSourceAction; + updateExternalDataSource: ExternalDataSource; + updateMapReport: MapReport; + updateOrganisation: Organisation; + updatePage: HubPage; + updateSharingPermission: SharingPermission; + updateSharingPermissions: Array; /** * Verify user account. * @@ -1852,144 +1981,172 @@ export type Mutation = { * true. * */ - verifyAccount: MutationNormalOutput -} + verifyAccount: MutationNormalOutput; +}; + export type MutationAddMemberArgs = { - customFields: Scalars['JSON']['input'] - email: Scalars['String']['input'] - externalDataSourceId: Scalars['String']['input'] - postcode: Scalars['String']['input'] - tags: Array -} + customFields: Scalars['JSON']['input']; + email: Scalars['String']['input']; + externalDataSourceId: Scalars['String']['input']; + postcode: Scalars['String']['input']; + tags: Array; +}; + export type MutationCreateApiTokenArgs = { - expiryDays?: Scalars['Int']['input'] -} + expiryDays?: Scalars['Int']['input']; +}; + export type MutationCreateChildPageArgs = { - parentId: Scalars['String']['input'] - title: Scalars['String']['input'] -} + parentId: Scalars['String']['input']; + title: Scalars['String']['input']; +}; + export type MutationCreateExternalDataSourceArgs = { - input: CreateExternalDataSourceInput -} + input: CreateExternalDataSourceInput; +}; + export type MutationCreateMapReportArgs = { - data: MapReportInput -} + data: MapReportInput; +}; + export type MutationCreateOrganisationArgs = { - input: CreateOrganisationInput -} + input: CreateOrganisationInput; +}; + export type MutationCreateSharingPermissionArgs = { - data: SharingPermissionCudInput -} + data: SharingPermissionCudInput; +}; + export type MutationDeleteExternalDataSourceArgs = { - data: IdObject -} + data: IdObject; +}; + export type MutationDeleteMapReportArgs = { - data: IdObject -} + data: IdObject; +}; + export type MutationDeletePageArgs = { - pageId: Scalars['String']['input'] -} + pageId: Scalars['String']['input']; +}; + export type MutationDeleteSharingPermissionArgs = { - data: IdObject -} + data: IdObject; +}; + export type MutationDisableWebhookArgs = { - externalDataSourceId: Scalars['String']['input'] - webhookType: WebhookType -} + externalDataSourceId: Scalars['String']['input']; + webhookType: WebhookType; +}; + export type MutationEnableWebhookArgs = { - externalDataSourceId: Scalars['String']['input'] - webhookType: WebhookType -} + externalDataSourceId: Scalars['String']['input']; + webhookType: WebhookType; +}; + export type MutationImportAllArgs = { - externalDataSourceId: Scalars['String']['input'] -} + externalDataSourceId: Scalars['String']['input']; +}; + export type MutationPerformPasswordResetArgs = { - newPassword1: Scalars['String']['input'] - newPassword2: Scalars['String']['input'] - token: Scalars['String']['input'] -} + newPassword1: Scalars['String']['input']; + newPassword2: Scalars['String']['input']; + token: Scalars['String']['input']; +}; + export type MutationRefreshWebhooksArgs = { - externalDataSourceId: Scalars['String']['input'] -} + externalDataSourceId: Scalars['String']['input']; +}; + export type MutationRequestPasswordResetArgs = { - email: Scalars['String']['input'] -} + email: Scalars['String']['input']; +}; + export type MutationResendActivationEmailArgs = { - email: Scalars['String']['input'] -} + email: Scalars['String']['input']; +}; + export type MutationRevokeApiTokenArgs = { - signature: Scalars['ID']['input'] -} + signature: Scalars['ID']['input']; +}; + export type MutationTokenAuthArgs = { - password: Scalars['String']['input'] - username: Scalars['String']['input'] -} + password: Scalars['String']['input']; + username: Scalars['String']['input']; +}; + export type MutationTriggerUpdateArgs = { - externalDataSourceId: Scalars['String']['input'] -} + externalDataSourceId: Scalars['String']['input']; +}; + export type MutationUpdateExternalDataSourceArgs = { - input: ExternalDataSourceInput -} + input: ExternalDataSourceInput; +}; + export type MutationUpdateMapReportArgs = { - data: MapReportInput -} + data: MapReportInput; +}; + export type MutationUpdateOrganisationArgs = { - data: OrganisationInputPartial -} + data: OrganisationInputPartial; +}; + export type MutationUpdatePageArgs = { - input: HubPageInput - pageId: Scalars['String']['input'] -} + input: HubPageInput; + pageId: Scalars['String']['input']; +}; + export type MutationUpdateSharingPermissionArgs = { - data: SharingPermissionCudInput -} + data: SharingPermissionCudInput; +}; + export type MutationUpdateSharingPermissionsArgs = { - fromOrgId: Scalars['String']['input'] - permissions: Array -} + fromOrgId: Scalars['String']['input']; + permissions: Array; +}; + export type MutationVerifyAccountArgs = { - token: Scalars['String']['input'] -} + token: Scalars['String']['input']; +}; export type MutationError = { - __typename?: 'MutationError' - code: Scalars['Int']['output'] - message: Scalars['String']['output'] -} + __typename?: 'MutationError'; + code: Scalars['Int']['output']; + message: Scalars['String']['output']; +}; export type MutationNormalOutput = { - __typename?: 'MutationNormalOutput' - errors?: Maybe - success: Scalars['Boolean']['output'] -} + __typename?: 'MutationNormalOutput'; + errors?: Maybe; + success: Scalars['Boolean']['output']; +}; /** * @@ -1998,421 +2155,452 @@ export type MutationNormalOutput = { * */ export type ObtainJsonWebTokenType = OutputInterface & { - __typename?: 'ObtainJSONWebTokenType' - errors?: Maybe - refreshToken?: Maybe - success: Scalars['Boolean']['output'] - token?: Maybe - user?: Maybe -} + __typename?: 'ObtainJSONWebTokenType'; + errors?: Maybe; + refreshToken?: Maybe; + success: Scalars['Boolean']['output']; + token?: Maybe; + user?: Maybe; +}; export type OffsetPaginationInput = { - limit?: Scalars['Int']['input'] - offset?: Scalars['Int']['input'] -} + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; export type OneToManyInput = { - set?: InputMaybe -} + set?: InputMaybe; +}; export type OperationInfo = { - __typename?: 'OperationInfo' + __typename?: 'OperationInfo'; /** List of messages returned by the operation. */ - messages: Array -} + messages: Array; +}; export type OperationMessage = { - __typename?: 'OperationMessage' + __typename?: 'OperationMessage'; /** The error code, or `null` if no error code was set. */ - code?: Maybe + code?: Maybe; /** The field that caused the error, or `null` if it isn't associated with any particular field. */ - field?: Maybe + field?: Maybe; /** The kind of this message. */ - kind: OperationMessageKind + kind: OperationMessageKind; /** The error message. */ - message: Scalars['String']['output'] -} + message: Scalars['String']['output']; +}; export enum OperationMessageKind { Error = 'ERROR', Info = 'INFO', Permission = 'PERMISSION', Validation = 'VALIDATION', - Warning = 'WARNING', + Warning = 'WARNING' } /** Organisation(id, created_at, last_update, slug, name, description, website, logo) */ export type Organisation = { - __typename?: 'Organisation' - externalDataSources: Array - id: Scalars['ID']['output'] - members: Array - name: Scalars['String']['output'] - sharingPermissionsFromOtherOrgs: Array - slug: Scalars['String']['output'] -} + __typename?: 'Organisation'; + externalDataSources: Array; + id: Scalars['ID']['output']; + members: Array; + name: Scalars['String']['output']; + sharingPermissionsFromOtherOrgs: Array; + slug: Scalars['String']['output']; +}; + /** Organisation(id, created_at, last_update, slug, name, description, website, logo) */ export type OrganisationExternalDataSourcesArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; /** Organisation(id, created_at, last_update, slug, name, description, website, logo) */ export type OrganisationFilters = { - AND?: InputMaybe - NOT?: InputMaybe - OR?: InputMaybe - id?: InputMaybe - slug?: InputMaybe -} + AND?: InputMaybe; + NOT?: InputMaybe; + OR?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; +}; /** Organisation(id, created_at, last_update, slug, name, description, website, logo) */ export type OrganisationInputPartial = { - description?: InputMaybe - id?: InputMaybe - name: Scalars['String']['input'] - slug?: InputMaybe -} + description?: InputMaybe; + id?: InputMaybe; + name: Scalars['String']['input']; + slug?: InputMaybe; +}; export type OutputInterface = { - errors?: Maybe - success: Scalars['Boolean']['output'] -} + errors?: Maybe; + success: Scalars['Boolean']['output']; +}; export type PartyResult = { - __typename?: 'PartyResult' - party: Scalars['String']['output'] - shade: Scalars['String']['output'] - votes: Scalars['Int']['output'] -} + __typename?: 'PartyResult'; + party: Scalars['String']['output']; + shade: Scalars['String']['output']; + votes: Scalars['Int']['output']; +}; /** Person(id, person_type, external_id, id_type, name, area, photo, start_date, end_date) */ export type Person = { - __typename?: 'Person' - area: Area - endDate?: Maybe - externalId: Scalars['String']['output'] - id: Scalars['ID']['output'] - idType: Scalars['String']['output'] - name: Scalars['String']['output'] - personData: Array - personDatum?: Maybe - personType: Scalars['String']['output'] - photo?: Maybe - startDate?: Maybe -} + __typename?: 'Person'; + area: Area; + endDate?: Maybe; + externalId: Scalars['String']['output']; + id: Scalars['ID']['output']; + idType: Scalars['String']['output']; + name: Scalars['String']['output']; + personData: Array; + personDatum?: Maybe; + personType: Scalars['String']['output']; + photo?: Maybe; + startDate?: Maybe; +}; + /** Person(id, person_type, external_id, id_type, name, area, photo, start_date, end_date) */ export type PersonPersonDataArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + /** Person(id, person_type, external_id, id_type, name, area, photo, start_date, end_date) */ export type PersonPersonDatumArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; /** PersonData(id, data_type, data, date, float, int, json, person) */ export type PersonData = CommonData & { - __typename?: 'PersonData' - data: Scalars['String']['output'] - dataType: DataType - date?: Maybe - float?: Maybe - id: Scalars['ID']['output'] - int?: Maybe - json?: Maybe - person: Person - shade?: Maybe -} + __typename?: 'PersonData'; + data: Scalars['String']['output']; + dataType: DataType; + date?: Maybe; + float?: Maybe; + id: Scalars['ID']['output']; + int?: Maybe; + json?: Maybe; + person: Person; + shade?: Maybe; +}; /** Person(id, person_type, external_id, id_type, name, area, photo, start_date, end_date) */ export type PersonFilter = { - personType: Scalars['String']['input'] -} + personType: Scalars['String']['input']; +}; export type PointFeature = Feature & { - __typename?: 'PointFeature' - geometry: PointGeometry - id?: Maybe - properties: Scalars['JSON']['output'] - type: GeoJsonTypes -} + __typename?: 'PointFeature'; + geometry: PointGeometry; + id?: Maybe; + properties: Scalars['JSON']['output']; + type: GeoJsonTypes; +}; export type PointGeometry = { - __typename?: 'PointGeometry' - coordinates: Array - type: GeoJsonTypes -} + __typename?: 'PointGeometry'; + coordinates: Array; + type: GeoJsonTypes; +}; export type PollingStation = { - __typename?: 'PollingStation' - customFinder?: Maybe - pollingStationKnown: Scalars['Boolean']['output'] - reportProblemUrl: Scalars['String']['output'] - station?: Maybe -} + __typename?: 'PollingStation'; + customFinder?: Maybe; + pollingStationKnown: Scalars['Boolean']['output']; + reportProblemUrl: Scalars['String']['output']; + station?: Maybe; +}; export type PostcodesIoCodes = { - __typename?: 'PostcodesIOCodes' - adminCounty: Scalars['String']['output'] - adminDistrict: Scalars['String']['output'] - adminWard: Scalars['String']['output'] - ccg: Scalars['String']['output'] - ccgId: Scalars['String']['output'] - ced: Scalars['String']['output'] - lau2: Scalars['String']['output'] - lsoa: Scalars['String']['output'] - msoa: Scalars['String']['output'] - nuts: Scalars['String']['output'] - parish?: Maybe - parliamentaryConstituency: Scalars['String']['output'] - parliamentaryConstituency2024: Scalars['String']['output'] - pfa: Scalars['String']['output'] -} + __typename?: 'PostcodesIOCodes'; + adminCounty: Scalars['String']['output']; + adminDistrict: Scalars['String']['output']; + adminWard: Scalars['String']['output']; + ccg: Scalars['String']['output']; + ccgId: Scalars['String']['output']; + ced: Scalars['String']['output']; + lau2: Scalars['String']['output']; + lsoa: Scalars['String']['output']; + msoa: Scalars['String']['output']; + nuts: Scalars['String']['output']; + parish?: Maybe; + parliamentaryConstituency: Scalars['String']['output']; + parliamentaryConstituency2024: Scalars['String']['output']; + pfa: Scalars['String']['output']; +}; export type PostcodesIoResult = { - __typename?: 'PostcodesIOResult' - adminCounty?: Maybe - adminDistrict: Scalars['String']['output'] - adminWard: Scalars['String']['output'] - ccg: Scalars['String']['output'] - ced?: Maybe - codes: PostcodesIoCodes - country: Scalars['String']['output'] - dateOfIntroduction: Scalars['Int']['output'] - eastings: Scalars['Int']['output'] - europeanElectoralRegion: Scalars['String']['output'] - feature: PointFeature - incode: Scalars['String']['output'] - latitude: Scalars['Float']['output'] - longitude: Scalars['Float']['output'] - lsoa: Scalars['String']['output'] - msoa: Scalars['String']['output'] - nhsHa: Scalars['String']['output'] - northings: Scalars['Int']['output'] - nuts: Scalars['String']['output'] - outcode: Scalars['String']['output'] - parish: Scalars['String']['output'] - parliamentaryConstituency: Scalars['String']['output'] - parliamentaryConstituency2024: Scalars['String']['output'] - pfa: Scalars['String']['output'] - postcode: Scalars['String']['output'] - primaryCareTrust: Scalars['String']['output'] - quality: Scalars['Int']['output'] - region: Scalars['String']['output'] -} + __typename?: 'PostcodesIOResult'; + adminCounty?: Maybe; + adminDistrict: Scalars['String']['output']; + adminWard: Scalars['String']['output']; + ccg: Scalars['String']['output']; + ced?: Maybe; + codes: PostcodesIoCodes; + country: Scalars['String']['output']; + dateOfIntroduction: Scalars['Int']['output']; + eastings: Scalars['Int']['output']; + europeanElectoralRegion: Scalars['String']['output']; + feature: PointFeature; + incode: Scalars['String']['output']; + latitude: Scalars['Float']['output']; + longitude: Scalars['Float']['output']; + lsoa: Scalars['String']['output']; + msoa: Scalars['String']['output']; + nhsHa: Scalars['String']['output']; + northings: Scalars['Int']['output']; + nuts: Scalars['String']['output']; + outcode: Scalars['String']['output']; + parish: Scalars['String']['output']; + parliamentaryConstituency: Scalars['String']['output']; + parliamentaryConstituency2024: Scalars['String']['output']; + pfa: Scalars['String']['output']; + postcode: Scalars['String']['output']; + primaryCareTrust: Scalars['String']['output']; + quality: Scalars['Int']['output']; + region: Scalars['String']['output']; +}; export enum ProcrastinateJobStatus { Doing = 'doing', Failed = 'failed', Succeeded = 'succeeded', - Todo = 'todo', + Todo = 'todo' } /** Organisation(id, created_at, last_update, slug, name, description, website, logo) */ export type PublicOrganisation = { - __typename?: 'PublicOrganisation' - id: Scalars['ID']['output'] - name: Scalars['String']['output'] - slug: Scalars['String']['output'] -} + __typename?: 'PublicOrganisation'; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + slug: Scalars['String']['output']; +}; export type Query = { - __typename?: 'Query' - airtableSource: AirtableSource - airtableSources: Array - allOrganisations: Array - area?: Maybe - dataSet?: Maybe - enrichPostcode: AuthenticatedPostcodeQueryResponse - enrichPostcodes: Array - externalDataSource: ExternalDataSource - externalDataSources: Array - genericDataByExternalDataSource: Array - googleSheetsOauthCredentials: Scalars['String']['output'] - googleSheetsOauthUrl: Scalars['String']['output'] - hubByHostname?: Maybe - hubHomepage: HubHomepage - hubHomepages: Array - hubPage: HubPage - hubPageByPath?: Maybe - importedDataGeojsonPoint?: Maybe - job: QueueJob - jobs: Array - listApiTokens: Array - mailchimpSource: MailchimpSource - mailchimpSources: Array - mapReport: MapReport - mapReports: Array - mappingSources: Array - me: UserType - memberships: Array - myOrganisations: Array - postcodeSearch: UnauthenticatedPostcodeQueryResponse - publicMapReport: MapReport + __typename?: 'Query'; + airtableSource: AirtableSource; + airtableSources: Array; + allOrganisations: Array; + area?: Maybe; + dataSet?: Maybe; + enrichPostcode: AuthenticatedPostcodeQueryResponse; + enrichPostcodes: Array; + externalDataSource: ExternalDataSource; + externalDataSources: Array; + genericDataByExternalDataSource: Array; + googleSheetsOauthCredentials: Scalars['String']['output']; + googleSheetsOauthUrl: Scalars['String']['output']; + hubByHostname?: Maybe; + hubHomepage: HubHomepage; + hubHomepages: Array; + hubPage: HubPage; + hubPageByPath?: Maybe; + importedDataGeojsonPoint?: Maybe; + job: QueueJob; + jobs: Array; + listApiTokens: Array; + mailchimpSource: MailchimpSource; + mailchimpSources: Array; + mapReport: MapReport; + mapReports: Array; + mappingSources: Array; + me: UserType; + memberships: Array; + myOrganisations: Array; + postcodeSearch: UnauthenticatedPostcodeQueryResponse; + publicMapReport: MapReport; /** Returns the current user if he is not anonymous. */ - publicUser?: Maybe - reports: Array - sharedDataSource: SharedDataSource - sharedDataSources: Array - testDataSource: ExternalDataSource -} + publicUser?: Maybe; + reports: Array; + sharedDataSource: SharedDataSource; + sharedDataSources: Array; + testDataSource: ExternalDataSource; +}; + export type QueryAirtableSourceArgs = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; + export type QueryAllOrganisationsArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + export type QueryAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + export type QueryDataSetArgs = { - name: Scalars['String']['input'] -} + name: Scalars['String']['input']; +}; + export type QueryEnrichPostcodeArgs = { - postcode: Scalars['String']['input'] -} + postcode: Scalars['String']['input']; +}; + export type QueryEnrichPostcodesArgs = { - postcodes: Array -} + postcodes: Array; +}; + export type QueryExternalDataSourceArgs = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; + export type QueryExternalDataSourcesArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + export type QueryGenericDataByExternalDataSourceArgs = { - externalDataSourceId: Scalars['String']['input'] -} + externalDataSourceId: Scalars['String']['input']; +}; + export type QueryGoogleSheetsOauthCredentialsArgs = { - redirectSuccessUrl: Scalars['String']['input'] -} + redirectSuccessUrl: Scalars['String']['input']; +}; + export type QueryGoogleSheetsOauthUrlArgs = { - redirectUrl: Scalars['String']['input'] -} + redirectUrl: Scalars['String']['input']; +}; + export type QueryHubByHostnameArgs = { - hostname: Scalars['String']['input'] -} + hostname: Scalars['String']['input']; +}; + export type QueryHubHomepageArgs = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; + export type QueryHubPageArgs = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; + export type QueryHubPageByPathArgs = { - hostname: Scalars['String']['input'] - path?: InputMaybe -} + hostname: Scalars['String']['input']; + path?: InputMaybe; +}; + export type QueryImportedDataGeojsonPointArgs = { - genericDataId: Scalars['String']['input'] -} + genericDataId: Scalars['String']['input']; +}; + export type QueryJobArgs = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; + export type QueryJobsArgs = { - filters?: InputMaybe - pagination?: InputMaybe -} + filters?: InputMaybe; + pagination?: InputMaybe; +}; + export type QueryMailchimpSourceArgs = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; + export type QueryMapReportArgs = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; + export type QueryMappingSourcesArgs = { - organisationPk: Scalars['String']['input'] -} + organisationPk: Scalars['String']['input']; +}; + export type QueryMyOrganisationsArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + export type QueryPostcodeSearchArgs = { - postcode: Scalars['String']['input'] -} + postcode: Scalars['String']['input']; +}; + export type QueryPublicMapReportArgs = { - orgSlug: Scalars['String']['input'] - reportSlug: Scalars['String']['input'] -} + orgSlug: Scalars['String']['input']; + reportSlug: Scalars['String']['input']; +}; + export type QueryReportsArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + export type QuerySharedDataSourceArgs = { - pk: Scalars['ID']['input'] -} + pk: Scalars['ID']['input']; +}; + export type QuerySharedDataSourcesArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; + export type QueryTestDataSourceArgs = { - input: CreateExternalDataSourceInput -} + input: CreateExternalDataSourceInput; +}; /** ProcrastinateEvent(id, job, type, at) */ export type QueueEvent = { - __typename?: 'QueueEvent' - at?: Maybe - id: Scalars['ID']['output'] - job: QueueJob - type: Scalars['String']['output'] -} + __typename?: 'QueueEvent'; + at?: Maybe; + id: Scalars['ID']['output']; + job: QueueJob; + type: Scalars['String']['output']; +}; /** ProcrastinateJob(id, queue_name, task_name, priority, lock, args, status, scheduled_at, attempts, queueing_lock) */ export type QueueFilter = { - AND?: InputMaybe - NOT?: InputMaybe - OR?: InputMaybe - attempts?: InputMaybe - externalDataSourceId?: InputMaybe - id?: InputMaybe - queueName?: InputMaybe - scheduledAt?: InputMaybe - status: ProcrastinateJobStatus - taskName?: InputMaybe -} + AND?: InputMaybe; + NOT?: InputMaybe; + OR?: InputMaybe; + attempts?: InputMaybe; + externalDataSourceId?: InputMaybe; + id?: InputMaybe; + queueName?: InputMaybe; + scheduledAt?: InputMaybe; + status: ProcrastinateJobStatus; + taskName?: InputMaybe; +}; /** ProcrastinateJob(id, queue_name, task_name, priority, lock, args, status, scheduled_at, attempts, queueing_lock) */ export type QueueJob = { - __typename?: 'QueueJob' - args: Scalars['JSON']['output'] - attempts: Scalars['Int']['output'] - events: Array - id: Scalars['ID']['output'] - lastEventAt: Scalars['DateTime']['output'] - lock?: Maybe - queueName: Scalars['String']['output'] - queueingLock?: Maybe - scheduledAt?: Maybe - status: ProcrastinateJobStatus - taskName: Scalars['String']['output'] -} + __typename?: 'QueueJob'; + args: Scalars['JSON']['output']; + attempts: Scalars['Int']['output']; + events: Array; + id: Scalars['ID']['output']; + lastEventAt: Scalars['DateTime']['output']; + lock?: Maybe; + queueName: Scalars['String']['output']; + queueingLock?: Maybe; + scheduledAt?: Maybe; + status: ProcrastinateJobStatus; + taskName: Scalars['String']['output']; +}; /** * @@ -2423,37 +2611,37 @@ export type QueueJob = { * */ export type RefreshTokenType = { - __typename?: 'RefreshTokenType' - created: Scalars['DateTime']['output'] - expiresAt: Scalars['DateTime']['output'] - isExpired: Scalars['Boolean']['output'] - revoked?: Maybe + __typename?: 'RefreshTokenType'; + created: Scalars['DateTime']['output']; + expiresAt: Scalars['DateTime']['output']; + isExpired: Scalars['Boolean']['output']; + revoked?: Maybe; /** randomly generated token that is attached to a FK user. */ - token: Scalars['String']['output'] -} + token: Scalars['String']['output']; +}; /** Report(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public) */ export type Report = { - __typename?: 'Report' - createdAt: Scalars['DateTime']['output'] - description?: Maybe - id: Scalars['UUID']['output'] - lastUpdate: Scalars['DateTime']['output'] - name: Scalars['String']['output'] - organisation: Organisation - organisationId: Scalars['String']['output'] - slug: Scalars['String']['output'] -} + __typename?: 'Report'; + createdAt: Scalars['DateTime']['output']; + description?: Maybe; + id: Scalars['UUID']['output']; + lastUpdate: Scalars['DateTime']['output']; + name: Scalars['String']['output']; + organisation: Organisation; + organisationId: Scalars['String']['output']; + slug: Scalars['String']['output']; +}; /** Report(polymorphic_ctype, id, organisation, name, slug, description, created_at, last_update, public) */ export type ReportFilter = { - AND?: InputMaybe - NOT?: InputMaybe - OR?: InputMaybe - createdAt?: InputMaybe - lastUpdate?: InputMaybe - organisation?: InputMaybe -} + AND?: InputMaybe; + NOT?: InputMaybe; + OR?: InputMaybe; + createdAt?: InputMaybe; + lastUpdate?: InputMaybe; + organisation?: InputMaybe; +}; /** * A third-party data source that can be read and optionally written back to. @@ -2461,59 +2649,64 @@ export type ReportFilter = { * This class is to be subclassed by specific data source types. */ export type SharedDataSource = Analytics & { - __typename?: 'SharedDataSource' - addressField?: Maybe - allowUpdates: Scalars['Boolean']['output'] - automatedWebhooks: Scalars['Boolean']['output'] - canDisplayPointField?: Maybe - createdAt: Scalars['DateTime']['output'] - crmType: CrmType - dataType: DataSourceType - defaultDataType?: Maybe - defaults: Scalars['JSON']['output'] - description?: Maybe - descriptionField?: Maybe - emailField?: Maybe - endTimeField?: Maybe - firstNameField?: Maybe - fullNameField?: Maybe - geocodingConfig: Scalars['JSON']['output'] - geographyColumn?: Maybe - geographyColumnType: GeographyTypes - hasWebhooks: Scalars['Boolean']['output'] - id: Scalars['UUID']['output'] - imageField?: Maybe - importProgress?: Maybe - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe - introspectFields: Scalars['Boolean']['output'] - isImportScheduled: Scalars['Boolean']['output'] - isUpdateScheduled: Scalars['Boolean']['output'] - lastNameField?: Maybe - lastUpdate: Scalars['DateTime']['output'] - name: Scalars['String']['output'] - organisation: PublicOrganisation - organisationId: Scalars['String']['output'] - phoneField?: Maybe - postcodeField?: Maybe - predefinedColumnNames: Scalars['Boolean']['output'] - publicUrlField?: Maybe - recordUrlTemplate?: Maybe - socialUrlField?: Maybe - startTimeField?: Maybe - titleField?: Maybe - updateProgress?: Maybe - usesValidGeocodingConfig: Scalars['Boolean']['output'] -} + __typename?: 'SharedDataSource'; + addressField?: Maybe; + allowUpdates: Scalars['Boolean']['output']; + automatedWebhooks: Scalars['Boolean']['output']; + canDisplayPointField?: Maybe; + createdAt: Scalars['DateTime']['output']; + crmType: CrmType; + dataType: DataSourceType; + defaultDataType?: Maybe; + defaults: Scalars['JSON']['output']; + description?: Maybe; + descriptionField?: Maybe; + emailField?: Maybe; + endTimeField?: Maybe; + firstNameField?: Maybe; + fullNameField?: Maybe; + geocodingConfig: Scalars['JSON']['output']; + geographyColumn?: Maybe; + geographyColumnType: GeographyTypes; + hasWebhooks: Scalars['Boolean']['output']; + id: Scalars['UUID']['output']; + imageField?: Maybe; + importProgress?: Maybe; + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; + introspectFields: Scalars['Boolean']['output']; + isImportScheduled: Scalars['Boolean']['output']; + isUpdateScheduled: Scalars['Boolean']['output']; + lastNameField?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + name: Scalars['String']['output']; + organisation: PublicOrganisation; + organisationId: Scalars['String']['output']; + phoneField?: Maybe; + postcodeField?: Maybe; + predefinedColumnNames: Scalars['Boolean']['output']; + publicUrlField?: Maybe; + recordUrlTemplate?: Maybe; + socialUrlField?: Maybe; + startTimeField?: Maybe; + titleField?: Maybe; + updateProgress?: Maybe; + usesValidGeocodingConfig: Scalars['Boolean']['output']; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -2521,9 +2714,10 @@ export type SharedDataSource = Analytics & { * This class is to be subclassed by specific data source types. */ export type SharedDataSourceImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -2531,9 +2725,10 @@ export type SharedDataSourceImportedDataByAreaArgs = { * This class is to be subclassed by specific data source types. */ export type SharedDataSourceImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -2541,8 +2736,9 @@ export type SharedDataSourceImportedDataCountByAreaArgs = { * This class is to be subclassed by specific data source types. */ export type SharedDataSourceImportedDataCountByConstituencyBySourceArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -2550,9 +2746,10 @@ export type SharedDataSourceImportedDataCountByConstituencyBySourceArgs = { * This class is to be subclassed by specific data source types. */ export type SharedDataSourceImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -2560,8 +2757,9 @@ export type SharedDataSourceImportedDataCountForAreaArgs = { * This class is to be subclassed by specific data source types. */ export type SharedDataSourceImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** * A third-party data source that can be read and optionally written back to. @@ -2569,209 +2767,239 @@ export type SharedDataSourceImportedDataCountForConstituencyArgs = { * This class is to be subclassed by specific data source types. */ export type SharedDataSourceImportedDataCountForConstituency2024Args = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + + +/** + * A third-party data source that can be read and optionally written back to. + * E.g. Google Sheet or an Action Network table. + * This class is to be subclassed by specific data source types. + */ +export type SharedDataSourceImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; /** SharingPermission(id, created_at, last_update, external_data_source, organisation, visibility_record_coordinates, visibility_record_details) */ export type SharingPermission = { - __typename?: 'SharingPermission' - createdAt: Scalars['DateTime']['output'] - deleted: Scalars['Boolean']['output'] - externalDataSource: SharedDataSource - externalDataSourceId: Scalars['String']['output'] - id: Scalars['UUID']['output'] - lastUpdate: Scalars['DateTime']['output'] - organisation: PublicOrganisation - organisationId: Scalars['String']['output'] - visibilityRecordCoordinates?: Maybe - visibilityRecordDetails?: Maybe -} + __typename?: 'SharingPermission'; + createdAt: Scalars['DateTime']['output']; + deleted: Scalars['Boolean']['output']; + externalDataSource: SharedDataSource; + externalDataSourceId: Scalars['String']['output']; + id: Scalars['UUID']['output']; + lastUpdate: Scalars['DateTime']['output']; + organisation: PublicOrganisation; + organisationId: Scalars['String']['output']; + visibilityRecordCoordinates?: Maybe; + visibilityRecordDetails?: Maybe; +}; /** SharingPermission(id, created_at, last_update, external_data_source, organisation, visibility_record_coordinates, visibility_record_details) */ export type SharingPermissionCudInput = { - externalDataSourceId?: InputMaybe - id?: InputMaybe - organisationId?: InputMaybe - visibilityRecordCoordinates?: InputMaybe - visibilityRecordDetails?: InputMaybe -} + externalDataSourceId?: InputMaybe; + id?: InputMaybe; + organisationId?: InputMaybe; + visibilityRecordCoordinates?: InputMaybe; + visibilityRecordDetails?: InputMaybe; +}; export type SharingPermissionInput = { - deleted?: InputMaybe - externalDataSourceId: Scalars['ID']['input'] - id?: InputMaybe - organisationId: Scalars['ID']['input'] - visibilityRecordCoordinates?: InputMaybe - visibilityRecordDetails?: InputMaybe -} + deleted?: InputMaybe; + externalDataSourceId: Scalars['ID']['input']; + id?: InputMaybe; + organisationId: Scalars['ID']['input']; + visibilityRecordCoordinates?: InputMaybe; + visibilityRecordDetails?: InputMaybe; +}; export type StrFilterLookup = { - contains?: InputMaybe - endsWith?: InputMaybe - exact?: InputMaybe - gt?: InputMaybe - gte?: InputMaybe - iContains?: InputMaybe - iEndsWith?: InputMaybe - iExact?: InputMaybe - iRegex?: InputMaybe - iStartsWith?: InputMaybe - inList?: InputMaybe> - isNull?: InputMaybe - lt?: InputMaybe - lte?: InputMaybe - range?: InputMaybe> - regex?: InputMaybe - startsWith?: InputMaybe -} + contains?: InputMaybe; + endsWith?: InputMaybe; + exact?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + iContains?: InputMaybe; + iEndsWith?: InputMaybe; + iExact?: InputMaybe; + iRegex?: InputMaybe; + iStartsWith?: InputMaybe; + inList?: InputMaybe>; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + range?: InputMaybe>; + regex?: InputMaybe; + startsWith?: InputMaybe; +}; /** Ticket Tailor box office */ export type TicketTailorSource = Analytics & { - __typename?: 'TicketTailorSource' - addressField?: Maybe - allowUpdates: Scalars['Boolean']['output'] - apiKey: Scalars['String']['output'] - autoImportEnabled: Scalars['Boolean']['output'] - autoUpdateEnabled: Scalars['Boolean']['output'] - automatedWebhooks: Scalars['Boolean']['output'] - canDisplayPointField?: Maybe - connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource - createdAt: Scalars['DateTime']['output'] - crmType: CrmType - dataType: DataSourceType - defaultDataType?: Maybe - defaults: Scalars['JSON']['output'] - description?: Maybe - descriptionField?: Maybe - emailField?: Maybe - endTimeField?: Maybe - fieldDefinitions?: Maybe> - firstNameField?: Maybe - fullNameField?: Maybe - geocodingConfig: Scalars['JSON']['output'] - geographyColumn?: Maybe - geographyColumnType: GeographyTypes - hasWebhooks: Scalars['Boolean']['output'] - healthcheck: Scalars['Boolean']['output'] - id: Scalars['UUID']['output'] - imageField?: Maybe - importProgress?: Maybe - importedDataByArea: Array - importedDataCount: Scalars['Int']['output'] - importedDataCountByArea: Array - importedDataCountByConstituency: Array - importedDataCountByConstituency2024: Array - importedDataCountByConstituencyBySource: Array - importedDataCountByCouncil: Array - importedDataCountByWard: Array - importedDataCountForArea?: Maybe - importedDataCountForConstituency?: Maybe - importedDataCountForConstituency2024?: Maybe - introspectFields: Scalars['Boolean']['output'] - isImportScheduled: Scalars['Boolean']['output'] - isUpdateScheduled: Scalars['Boolean']['output'] - jobs: Array - lastImportJob?: Maybe - lastNameField?: Maybe - lastUpdate: Scalars['DateTime']['output'] - lastUpdateJob?: Maybe - name: Scalars['String']['output'] - oauthCredentials?: Maybe - organisation: Organisation - organisationId: Scalars['String']['output'] - orgsWithAccess: Array - phoneField?: Maybe - postcodeField?: Maybe - predefinedColumnNames: Scalars['Boolean']['output'] - publicUrlField?: Maybe - recordUrlTemplate?: Maybe - remoteName?: Maybe - remoteUrl?: Maybe - sharingPermissions: Array - socialUrlField?: Maybe - startTimeField?: Maybe - titleField?: Maybe - updateMapping?: Maybe> - updateProgress?: Maybe - usesValidGeocodingConfig: Scalars['Boolean']['output'] - webhookHealthcheck: Scalars['Boolean']['output'] - webhookUrl: Scalars['String']['output'] -} + __typename?: 'TicketTailorSource'; + addressField?: Maybe; + allowUpdates: Scalars['Boolean']['output']; + apiKey: Scalars['String']['output']; + autoImportEnabled: Scalars['Boolean']['output']; + autoUpdateEnabled: Scalars['Boolean']['output']; + automatedWebhooks: Scalars['Boolean']['output']; + canDisplayPointField?: Maybe; + connectionDetails: AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource; + createdAt: Scalars['DateTime']['output']; + crmType: CrmType; + dataType: DataSourceType; + defaultDataType?: Maybe; + defaults: Scalars['JSON']['output']; + description?: Maybe; + descriptionField?: Maybe; + emailField?: Maybe; + endTimeField?: Maybe; + fieldDefinitions?: Maybe>; + firstNameField?: Maybe; + fullNameField?: Maybe; + geocodingConfig: Scalars['JSON']['output']; + geographyColumn?: Maybe; + geographyColumnType: GeographyTypes; + hasWebhooks: Scalars['Boolean']['output']; + healthcheck: Scalars['Boolean']['output']; + id: Scalars['UUID']['output']; + imageField?: Maybe; + importProgress?: Maybe; + importedDataByArea: Array; + importedDataCount: Scalars['Int']['output']; + importedDataCountByArea: Array; + importedDataCountByConstituency: Array; + importedDataCountByConstituency2024: Array; + importedDataCountByConstituencyBySource: Array; + importedDataCountByCouncil: Array; + importedDataCountByWard: Array; + importedDataCountForArea?: Maybe; + importedDataCountForConstituency?: Maybe; + importedDataCountForConstituency2024?: Maybe; + importedDataCountLocated: Scalars['Int']['output']; + importedDataCountOfAreas: Scalars['Int']['output']; + importedDataCountUnlocated: Scalars['Int']['output']; + importedDataGeocodingRate: Scalars['Float']['output']; + introspectFields: Scalars['Boolean']['output']; + isImportScheduled: Scalars['Boolean']['output']; + isUpdateScheduled: Scalars['Boolean']['output']; + jobs: Array; + lastImportJob?: Maybe; + lastNameField?: Maybe; + lastUpdate: Scalars['DateTime']['output']; + lastUpdateJob?: Maybe; + name: Scalars['String']['output']; + oauthCredentials?: Maybe; + organisation: Organisation; + organisationId: Scalars['String']['output']; + orgsWithAccess: Array; + phoneField?: Maybe; + postcodeField?: Maybe; + predefinedColumnNames: Scalars['Boolean']['output']; + publicUrlField?: Maybe; + recordUrlTemplate?: Maybe; + remoteName?: Maybe; + remoteUrl?: Maybe; + sharingPermissions: Array; + socialUrlField?: Maybe; + startTimeField?: Maybe; + titleField?: Maybe; + updateMapping?: Maybe>; + updateProgress?: Maybe; + usesValidGeocodingConfig: Scalars['Boolean']['output']; + webhookHealthcheck: Scalars['Boolean']['output']; + webhookUrl: Scalars['String']['output']; +}; + /** Ticket Tailor box office */ export type TicketTailorSourceImportedDataByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** Ticket Tailor box office */ export type TicketTailorSourceImportedDataCountByAreaArgs = { - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe> -} + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** Ticket Tailor box office */ export type TicketTailorSourceImportedDataCountByConstituencyBySourceArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** Ticket Tailor box office */ export type TicketTailorSourceImportedDataCountForAreaArgs = { - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; +}; + /** Ticket Tailor box office */ export type TicketTailorSourceImportedDataCountForConstituencyArgs = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + /** Ticket Tailor box office */ export type TicketTailorSourceImportedDataCountForConstituency2024Args = { - gss: Scalars['String']['input'] -} + gss: Scalars['String']['input']; +}; + + +/** Ticket Tailor box office */ +export type TicketTailorSourceImportedDataCountOfAreasArgs = { + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe>; +}; + /** Ticket Tailor box office */ export type TicketTailorSourceJobsArgs = { - filters?: InputMaybe - pagination?: InputMaybe -} + filters?: InputMaybe; + pagination?: InputMaybe; +}; + /** Ticket Tailor box office */ export type TicketTailorSourceOrgsWithAccessArgs = { - filters?: InputMaybe -} + filters?: InputMaybe; +}; /** Ticket Tailor box office */ export type TicketTailorSourceInput = { - addressField?: InputMaybe - apiKey: Scalars['String']['input'] - autoImportEnabled?: InputMaybe - autoUpdateEnabled?: InputMaybe - canDisplayPointField?: InputMaybe - dataType?: InputMaybe - description?: InputMaybe - descriptionField?: InputMaybe - emailField?: InputMaybe - endTimeField?: InputMaybe - firstNameField?: InputMaybe - fullNameField?: InputMaybe - geocodingConfig?: InputMaybe - geographyColumn?: InputMaybe - geographyColumnType?: InputMaybe - id?: InputMaybe - imageField?: InputMaybe - lastNameField?: InputMaybe - name?: InputMaybe - organisation?: InputMaybe - phoneField?: InputMaybe - postcodeField?: InputMaybe - publicUrlField?: InputMaybe - socialUrlField?: InputMaybe - startTimeField?: InputMaybe - titleField?: InputMaybe - updateMapping?: InputMaybe> -} + addressField?: InputMaybe; + apiKey: Scalars['String']['input']; + autoImportEnabled?: InputMaybe; + autoUpdateEnabled?: InputMaybe; + canDisplayPointField?: InputMaybe; + dataType?: InputMaybe; + description?: InputMaybe; + descriptionField?: InputMaybe; + emailField?: InputMaybe; + endTimeField?: InputMaybe; + firstNameField?: InputMaybe; + fullNameField?: InputMaybe; + geocodingConfig?: InputMaybe; + geographyColumn?: InputMaybe; + geographyColumnType?: InputMaybe; + id?: InputMaybe; + imageField?: InputMaybe; + lastNameField?: InputMaybe; + name?: InputMaybe; + organisation?: InputMaybe; + phoneField?: InputMaybe; + postcodeField?: InputMaybe; + publicUrlField?: InputMaybe; + socialUrlField?: InputMaybe; + startTimeField?: InputMaybe; + titleField?: InputMaybe; + updateMapping?: InputMaybe>; +}; /** * @@ -2779,13 +3007,13 @@ export type TicketTailorSourceInput = { * */ export type TokenPayloadType = { - __typename?: 'TokenPayloadType' + __typename?: 'TokenPayloadType'; /** when the token will be expired */ - exp: Scalars['DateTime']['output'] + exp: Scalars['DateTime']['output']; /** when the token was created */ - origIat: Scalars['DateTime']['output'] - username: Scalars['String']['output'] -} + origIat: Scalars['DateTime']['output']; + username: Scalars['String']['output']; +}; /** * @@ -2793,30 +3021,31 @@ export type TokenPayloadType = { * */ export type TokenType = { - __typename?: 'TokenType' - payload: TokenPayloadType + __typename?: 'TokenType'; + payload: TokenPayloadType; /** The encoded payload, namely a token. */ - token: Scalars['String']['output'] -} + token: Scalars['String']['output']; +}; export type UnauthenticatedPostcodeQueryResponse = { - __typename?: 'UnauthenticatedPostcodeQueryResponse' - constituency?: Maybe - constituency2024?: Maybe - electoralCommission?: Maybe - postcode: Scalars['String']['output'] - postcodesIO?: Maybe -} + __typename?: 'UnauthenticatedPostcodeQueryResponse'; + constituency?: Maybe; + constituency2024?: Maybe; + electoralCommission?: Maybe; + postcode: Scalars['String']['output']; + postcodesIO?: Maybe; +}; + export type UnauthenticatedPostcodeQueryResponseElectoralCommissionArgs = { - addressSlug?: InputMaybe -} + addressSlug?: InputMaybe; +}; export type UpdateMappingItemInput = { - destinationColumn: Scalars['String']['input'] - source: Scalars['String']['input'] - sourcePath: Scalars['String']['input'] -} + destinationColumn: Scalars['String']['input']; + source: Scalars['String']['input']; + sourcePath: Scalars['String']['input']; +}; /** * Users within the Django authentication system are represented by this @@ -2825,25 +3054,25 @@ export type UpdateMappingItemInput = { * Username and password are required. Other fields are optional. */ export type User = { - __typename?: 'User' - email: Scalars['String']['output'] - userProperties: UserProperties -} + __typename?: 'User'; + email: Scalars['String']['output']; + userProperties: UserProperties; +}; /** UserProperties(id, user, organisation_name, full_name, email_confirmed, account_confirmed, last_seen, agreed_terms) */ export type UserProperties = { - __typename?: 'UserProperties' - fullName?: Maybe - user: User - userId: Scalars['String']['output'] -} + __typename?: 'UserProperties'; + fullName?: Maybe; + user: User; + userId: Scalars['String']['output']; +}; /** A helper model that handles user account stuff. */ export type UserStatusType = { - __typename?: 'UserStatusType' - archived: Scalars['Boolean']['output'] - verified: Scalars['Boolean']['output'] -} + __typename?: 'UserStatusType'; + archived: Scalars['Boolean']['output']; + verified: Scalars['Boolean']['output']; +}; /** * Users within the Django authentication system are represented by this @@ -2852,10286 +3081,661 @@ export type UserStatusType = { * Username and password are required. Other fields are optional. */ export type UserType = { - __typename?: 'UserType' - archived: Scalars['Boolean']['output'] - dateJoined: Scalars['DateTime']['output'] - email: Scalars['String']['output'] - firstName?: Maybe - id: Scalars['ID']['output'] + __typename?: 'UserType'; + archived: Scalars['Boolean']['output']; + dateJoined: Scalars['DateTime']['output']; + email: Scalars['String']['output']; + firstName?: Maybe; + id: Scalars['ID']['output']; /** Designates whether this user should be treated as active. Unselect this instead of deleting accounts. */ - isActive: Scalars['Boolean']['output'] + isActive: Scalars['Boolean']['output']; /** Designates whether the user can log into this admin site. */ - isStaff: Scalars['Boolean']['output'] + isStaff: Scalars['Boolean']['output']; /** Designates that this user has all permissions without explicitly assigning them. */ - isSuperuser: Scalars['Boolean']['output'] - lastLogin?: Maybe - lastName?: Maybe - logentrySet: Array - status: UserStatusType + isSuperuser: Scalars['Boolean']['output']; + lastLogin?: Maybe; + lastName?: Maybe; + logentrySet: Array; + status: UserStatusType; /** Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. */ - username: Scalars['String']['output'] - verified: Scalars['Boolean']['output'] -} + username: Scalars['String']['output']; + verified: Scalars['Boolean']['output']; +}; export enum WebhookType { Import = 'Import', - Update = 'Update', + Update = 'Update' } -export type DeveloperApiContextQueryVariables = Exact<{ [key: string]: never }> - -export type DeveloperApiContextQuery = { - __typename?: 'Query' - listApiTokens: Array<{ - __typename?: 'APIToken' - token: string - signature: string - revoked: boolean - createdAt: any - expiresAt: any - }> -} +export type DeveloperApiContextQueryVariables = Exact<{ [key: string]: never; }>; -export type CreateTokenMutationVariables = Exact<{ [key: string]: never }> - -export type CreateTokenMutation = { - __typename?: 'Mutation' - createApiToken: { - __typename?: 'APIToken' - token: string - signature: string - revoked: boolean - createdAt: any - expiresAt: any - } -} + +export type DeveloperApiContextQuery = { __typename?: 'Query', listApiTokens: Array<{ __typename?: 'APIToken', token: string, signature: string, revoked: boolean, createdAt: any, expiresAt: any }> }; + +export type CreateTokenMutationVariables = Exact<{ [key: string]: never; }>; + + +export type CreateTokenMutation = { __typename?: 'Mutation', createApiToken: { __typename?: 'APIToken', token: string, signature: string, revoked: boolean, createdAt: any, expiresAt: any } }; export type RevokeTokenMutationVariables = Exact<{ - signature: Scalars['ID']['input'] -}> - -export type RevokeTokenMutation = { - __typename?: 'Mutation' - revokeApiToken: { - __typename?: 'APIToken' - signature: string - revoked: boolean - } -} + signature: Scalars['ID']['input']; +}>; + + +export type RevokeTokenMutation = { __typename?: 'Mutation', revokeApiToken: { __typename?: 'APIToken', signature: string, revoked: boolean } }; export type VerifyMutationVariables = Exact<{ - token: Scalars['String']['input'] -}> - -export type VerifyMutation = { - __typename?: 'Mutation' - verifyAccount: { - __typename?: 'MutationNormalOutput' - errors?: any | null - success: boolean - } -} + token: Scalars['String']['input']; +}>; -export type ExampleQueryVariables = Exact<{ [key: string]: never }> -export type ExampleQuery = { - __typename?: 'Query' - myOrganisations: Array<{ - __typename?: 'Organisation' - id: string - name: string - }> -} +export type VerifyMutation = { __typename?: 'Mutation', verifyAccount: { __typename?: 'MutationNormalOutput', errors?: any | null, success: boolean } }; + +export type ExampleQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ExampleQuery = { __typename?: 'Query', myOrganisations: Array<{ __typename?: 'Organisation', id: string, name: string }> }; export type LoginMutationVariables = Exact<{ - username: Scalars['String']['input'] - password: Scalars['String']['input'] -}> - -export type LoginMutation = { - __typename?: 'Mutation' - tokenAuth: { - __typename?: 'ObtainJSONWebTokenType' - errors?: any | null - success: boolean - token?: { - __typename?: 'TokenType' - token: string - payload: { __typename?: 'TokenPayloadType'; exp: any } - } | null - } -} + username: Scalars['String']['input']; + password: Scalars['String']['input']; +}>; + + +export type LoginMutation = { __typename?: 'Mutation', tokenAuth: { __typename?: 'ObtainJSONWebTokenType', errors?: any | null, success: boolean, token?: { __typename?: 'TokenType', token: string, payload: { __typename?: 'TokenPayloadType', exp: any } } | null } }; export type PerformPasswordResetMutationVariables = Exact<{ - token: Scalars['String']['input'] - password1: Scalars['String']['input'] - password2: Scalars['String']['input'] -}> - -export type PerformPasswordResetMutation = { - __typename?: 'Mutation' - performPasswordReset: { - __typename?: 'MutationNormalOutput' - errors?: any | null - success: boolean - } -} + token: Scalars['String']['input']; + password1: Scalars['String']['input']; + password2: Scalars['String']['input']; +}>; + + +export type PerformPasswordResetMutation = { __typename?: 'Mutation', performPasswordReset: { __typename?: 'MutationNormalOutput', errors?: any | null, success: boolean } }; export type ResetPasswordMutationVariables = Exact<{ - email: Scalars['String']['input'] -}> - -export type ResetPasswordMutation = { - __typename?: 'Mutation' - requestPasswordReset: { - __typename?: 'MutationNormalOutput' - errors?: any | null - success: boolean - } -} + email: Scalars['String']['input']; +}>; + + +export type ResetPasswordMutation = { __typename?: 'Mutation', requestPasswordReset: { __typename?: 'MutationNormalOutput', errors?: any | null, success: boolean } }; export type ListOrganisationsQueryVariables = Exact<{ - currentOrganisationId: Scalars['ID']['input'] -}> - -export type ListOrganisationsQuery = { - __typename?: 'Query' - myOrganisations: Array<{ - __typename?: 'Organisation' - id: string - externalDataSources: Array<{ - __typename?: 'ExternalDataSource' - id: any - name: string - dataType: DataSourceType - crmType: CrmType - autoImportEnabled: boolean - autoUpdateEnabled: boolean - connectionDetails: - | { __typename?: 'ActionNetworkSource' } - | { __typename?: 'AirtableSource'; baseId: string; tableId: string } - | { __typename?: 'EditableGoogleSheetsSource' } - | { __typename?: 'MailchimpSource'; apiKey: string; listId: string } - | { __typename?: 'TicketTailorSource' } - jobs: Array<{ - __typename?: 'QueueJob' - lastEventAt: any - status: ProcrastinateJobStatus - }> - updateMapping?: Array<{ - __typename?: 'AutoUpdateConfig' - source: string - sourcePath: string - destinationColumn: string - }> | null - sharingPermissions: Array<{ - __typename?: 'SharingPermission' - id: any - organisation: { - __typename?: 'PublicOrganisation' - id: string - name: string - } - }> - }> - sharingPermissionsFromOtherOrgs: Array<{ - __typename?: 'SharingPermission' - id: any - externalDataSource: { - __typename?: 'SharedDataSource' - id: any - name: string - dataType: DataSourceType - crmType: CrmType - organisation: { __typename?: 'PublicOrganisation'; name: string } - } - }> - }> -} + currentOrganisationId: Scalars['ID']['input']; +}>; + + +export type ListOrganisationsQuery = { __typename?: 'Query', myOrganisations: Array<{ __typename?: 'Organisation', id: string, externalDataSources: Array<{ __typename?: 'ExternalDataSource', id: any, name: string, dataType: DataSourceType, crmType: CrmType, autoImportEnabled: boolean, autoUpdateEnabled: boolean, connectionDetails: { __typename?: 'ActionNetworkSource' } | { __typename?: 'AirtableSource', baseId: string, tableId: string } | { __typename?: 'EditableGoogleSheetsSource' } | { __typename?: 'MailchimpSource', apiKey: string, listId: string } | { __typename?: 'TicketTailorSource' }, jobs: Array<{ __typename?: 'QueueJob', lastEventAt: any, status: ProcrastinateJobStatus }>, updateMapping?: Array<{ __typename?: 'AutoUpdateConfig', source: string, sourcePath: string, destinationColumn: string }> | null, sharingPermissions: Array<{ __typename?: 'SharingPermission', id: any, organisation: { __typename?: 'PublicOrganisation', id: string, name: string } }> }>, sharingPermissionsFromOtherOrgs: Array<{ __typename?: 'SharingPermission', id: any, externalDataSource: { __typename?: 'SharedDataSource', id: any, name: string, dataType: DataSourceType, crmType: CrmType, organisation: { __typename?: 'PublicOrganisation', name: string } } }> }> }; export type GetSourceMappingQueryVariables = Exact<{ - ID: Scalars['ID']['input'] -}> - -export type GetSourceMappingQuery = { - __typename?: 'Query' - externalDataSource: { - __typename?: 'ExternalDataSource' - id: any - autoImportEnabled: boolean - autoUpdateEnabled: boolean - allowUpdates: boolean - hasWebhooks: boolean - crmType: CrmType - geographyColumn?: string | null - geographyColumnType: GeographyTypes - geocodingConfig: any - usesValidGeocodingConfig: boolean - postcodeField?: string | null - firstNameField?: string | null - lastNameField?: string | null - emailField?: string | null - phoneField?: string | null - addressField?: string | null - canDisplayPointField?: string | null - updateMapping?: Array<{ - __typename?: 'AutoUpdateConfig' - destinationColumn: string - source: string - sourcePath: string - }> | null - fieldDefinitions?: Array<{ - __typename?: 'FieldDefinition' - label?: string | null - value: string - description?: string | null - editable: boolean - }> | null - } -} + ID: Scalars['ID']['input']; +}>; + + +export type GetSourceMappingQuery = { __typename?: 'Query', externalDataSource: { __typename?: 'ExternalDataSource', id: any, autoImportEnabled: boolean, autoUpdateEnabled: boolean, allowUpdates: boolean, hasWebhooks: boolean, crmType: CrmType, geographyColumn?: string | null, geographyColumnType: GeographyTypes, geocodingConfig: any, usesValidGeocodingConfig: boolean, postcodeField?: string | null, firstNameField?: string | null, lastNameField?: string | null, emailField?: string | null, phoneField?: string | null, addressField?: string | null, canDisplayPointField?: string | null, updateMapping?: Array<{ __typename?: 'AutoUpdateConfig', destinationColumn: string, source: string, sourcePath: string }> | null, fieldDefinitions?: Array<{ __typename?: 'FieldDefinition', label?: string | null, value: string, description?: string | null, editable: boolean }> | null } }; export type TestDataSourceQueryVariables = Exact<{ - input: CreateExternalDataSourceInput -}> - -export type TestDataSourceQuery = { - __typename?: 'Query' - testDataSource: { - __typename: 'ExternalDataSource' - crmType: CrmType - geographyColumn?: string | null - geographyColumnType: GeographyTypes - geocodingConfig: any - usesValidGeocodingConfig: boolean - healthcheck: boolean - predefinedColumnNames: boolean - defaultDataType?: string | null - remoteName?: string | null - allowUpdates: boolean - defaults: any - oauthCredentials?: string | null - fieldDefinitions?: Array<{ - __typename?: 'FieldDefinition' - label?: string | null - value: string - description?: string | null - editable: boolean - }> | null - } -} + input: CreateExternalDataSourceInput; +}>; + + +export type TestDataSourceQuery = { __typename?: 'Query', testDataSource: { __typename: 'ExternalDataSource', crmType: CrmType, geographyColumn?: string | null, geographyColumnType: GeographyTypes, geocodingConfig: any, usesValidGeocodingConfig: boolean, healthcheck: boolean, predefinedColumnNames: boolean, defaultDataType?: string | null, remoteName?: string | null, allowUpdates: boolean, defaults: any, oauthCredentials?: string | null, fieldDefinitions?: Array<{ __typename?: 'FieldDefinition', label?: string | null, value: string, description?: string | null, editable: boolean }> | null } }; export type GoogleSheetsOauthUrlQueryVariables = Exact<{ - redirectUrl: Scalars['String']['input'] -}> + redirectUrl: Scalars['String']['input']; +}>; -export type GoogleSheetsOauthUrlQuery = { - __typename?: 'Query' - googleSheetsOauthUrl: string -} + +export type GoogleSheetsOauthUrlQuery = { __typename?: 'Query', googleSheetsOauthUrl: string }; export type GoogleSheetsOauthCredentialsQueryVariables = Exact<{ - redirectSuccessUrl: Scalars['String']['input'] -}> + redirectSuccessUrl: Scalars['String']['input']; +}>; -export type GoogleSheetsOauthCredentialsQuery = { - __typename?: 'Query' - googleSheetsOauthCredentials: string -} + +export type GoogleSheetsOauthCredentialsQuery = { __typename?: 'Query', googleSheetsOauthCredentials: string }; export type CreateSourceMutationVariables = Exact<{ - input: CreateExternalDataSourceInput -}> - -export type CreateSourceMutation = { - __typename?: 'Mutation' - createExternalDataSource: { - __typename?: 'CreateExternalDataSourceOutput' - code: number - errors: Array<{ __typename?: 'MutationError'; message: string }> - result?: { - __typename?: 'ExternalDataSource' - id: any - name: string - crmType: CrmType - dataType: DataSourceType - allowUpdates: boolean - } | null - } -} + input: CreateExternalDataSourceInput; +}>; + + +export type CreateSourceMutation = { __typename?: 'Mutation', createExternalDataSource: { __typename?: 'CreateExternalDataSourceOutput', code: number, errors: Array<{ __typename?: 'MutationError', message: string }>, result?: { __typename?: 'ExternalDataSource', id: any, name: string, crmType: CrmType, dataType: DataSourceType, allowUpdates: boolean } | null } }; export type AutoUpdateCreationReviewQueryVariables = Exact<{ - ID: Scalars['ID']['input'] -}> - -export type AutoUpdateCreationReviewQuery = { - __typename?: 'Query' - externalDataSource: { - __typename?: 'ExternalDataSource' - id: any - name: string - geographyColumn?: string | null - geographyColumnType: GeographyTypes - geocodingConfig: any - usesValidGeocodingConfig: boolean - dataType: DataSourceType - crmType: CrmType - autoImportEnabled: boolean - autoUpdateEnabled: boolean - automatedWebhooks: boolean - webhookUrl: string - updateMapping?: Array<{ - __typename?: 'AutoUpdateConfig' - source: string - sourcePath: string - destinationColumn: string - }> | null - jobs: Array<{ - __typename?: 'QueueJob' - lastEventAt: any - status: ProcrastinateJobStatus - }> - sharingPermissions: Array<{ - __typename?: 'SharingPermission' - id: any - organisation: { - __typename?: 'PublicOrganisation' - id: string - name: string - } - }> - } -} + ID: Scalars['ID']['input']; +}>; + + +export type AutoUpdateCreationReviewQuery = { __typename?: 'Query', externalDataSource: { __typename?: 'ExternalDataSource', id: any, name: string, geographyColumn?: string | null, geographyColumnType: GeographyTypes, geocodingConfig: any, usesValidGeocodingConfig: boolean, dataType: DataSourceType, crmType: CrmType, autoImportEnabled: boolean, autoUpdateEnabled: boolean, automatedWebhooks: boolean, webhookUrl: string, updateMapping?: Array<{ __typename?: 'AutoUpdateConfig', source: string, sourcePath: string, destinationColumn: string }> | null, jobs: Array<{ __typename?: 'QueueJob', lastEventAt: any, status: ProcrastinateJobStatus }>, sharingPermissions: Array<{ __typename?: 'SharingPermission', id: any, organisation: { __typename?: 'PublicOrganisation', id: string, name: string } }> } }; export type ExternalDataSourceInspectPageQueryVariables = Exact<{ - ID: Scalars['ID']['input'] -}> - -export type ExternalDataSourceInspectPageQuery = { - __typename?: 'Query' - externalDataSource: { - __typename?: 'ExternalDataSource' - id: any - name: string - dataType: DataSourceType - remoteUrl?: string | null - crmType: CrmType - autoImportEnabled: boolean - autoUpdateEnabled: boolean - hasWebhooks: boolean - allowUpdates: boolean - automatedWebhooks: boolean - webhookUrl: string - webhookHealthcheck: boolean - geographyColumn?: string | null - geographyColumnType: GeographyTypes - geocodingConfig: any - usesValidGeocodingConfig: boolean - postcodeField?: string | null - firstNameField?: string | null - lastNameField?: string | null - fullNameField?: string | null - emailField?: string | null - phoneField?: string | null - addressField?: string | null - titleField?: string | null - descriptionField?: string | null - imageField?: string | null - startTimeField?: string | null - endTimeField?: string | null - publicUrlField?: string | null - socialUrlField?: string | null - canDisplayPointField?: string | null - isImportScheduled: boolean - isUpdateScheduled: boolean - importedDataCount: number - connectionDetails: - | { - __typename?: 'ActionNetworkSource' - apiKey: string - groupSlug: string - } - | { - __typename?: 'AirtableSource' - apiKey: string - baseId: string - tableId: string - } - | { __typename?: 'EditableGoogleSheetsSource' } - | { __typename?: 'MailchimpSource'; apiKey: string; listId: string } - | { __typename?: 'TicketTailorSource'; apiKey: string } - lastImportJob?: { - __typename?: 'QueueJob' - id: string - lastEventAt: any - status: ProcrastinateJobStatus - } | null - lastUpdateJob?: { - __typename?: 'QueueJob' - id: string - lastEventAt: any - status: ProcrastinateJobStatus - } | null - importProgress?: { - __typename?: 'BatchJobProgress' - id: string - hasForecast: boolean - status: ProcrastinateJobStatus - total?: number | null - succeeded?: number | null - estimatedFinishTime?: any | null - actualFinishTime?: any | null - inQueue: boolean - numberOfJobsAheadInQueue?: number | null - sendEmail: boolean - } | null - updateProgress?: { - __typename?: 'BatchJobProgress' - id: string - hasForecast: boolean - status: ProcrastinateJobStatus - total?: number | null - succeeded?: number | null - estimatedFinishTime?: any | null - actualFinishTime?: any | null - inQueue: boolean - numberOfJobsAheadInQueue?: number | null - sendEmail: boolean - } | null - fieldDefinitions?: Array<{ - __typename?: 'FieldDefinition' - label?: string | null - value: string - description?: string | null - editable: boolean - }> | null - updateMapping?: Array<{ - __typename?: 'AutoUpdateConfig' - source: string - sourcePath: string - destinationColumn: string - }> | null - sharingPermissions: Array<{ __typename?: 'SharingPermission'; id: any }> - organisation: { __typename?: 'Organisation'; id: string; name: string } - } -} + ID: Scalars['ID']['input']; +}>; + + +export type ExternalDataSourceInspectPageQuery = { __typename?: 'Query', externalDataSource: { __typename?: 'ExternalDataSource', id: any, name: string, dataType: DataSourceType, remoteUrl?: string | null, crmType: CrmType, autoImportEnabled: boolean, autoUpdateEnabled: boolean, hasWebhooks: boolean, allowUpdates: boolean, automatedWebhooks: boolean, webhookUrl: string, webhookHealthcheck: boolean, geographyColumn?: string | null, geographyColumnType: GeographyTypes, geocodingConfig: any, usesValidGeocodingConfig: boolean, postcodeField?: string | null, firstNameField?: string | null, lastNameField?: string | null, fullNameField?: string | null, emailField?: string | null, phoneField?: string | null, addressField?: string | null, titleField?: string | null, descriptionField?: string | null, imageField?: string | null, startTimeField?: string | null, endTimeField?: string | null, publicUrlField?: string | null, socialUrlField?: string | null, canDisplayPointField?: string | null, isImportScheduled: boolean, isUpdateScheduled: boolean, importedDataCount: number, importedDataGeocodingRate: number, regionCount: number, constituencyCount: number, ladCount: number, wardCount: number, connectionDetails: { __typename?: 'ActionNetworkSource', apiKey: string, groupSlug: string } | { __typename?: 'AirtableSource', apiKey: string, baseId: string, tableId: string } | { __typename?: 'EditableGoogleSheetsSource' } | { __typename?: 'MailchimpSource', apiKey: string, listId: string } | { __typename?: 'TicketTailorSource', apiKey: string }, lastImportJob?: { __typename?: 'QueueJob', id: string, lastEventAt: any, status: ProcrastinateJobStatus } | null, lastUpdateJob?: { __typename?: 'QueueJob', id: string, lastEventAt: any, status: ProcrastinateJobStatus } | null, importProgress?: { __typename?: 'BatchJobProgress', id: string, hasForecast: boolean, status: ProcrastinateJobStatus, total?: number | null, succeeded?: number | null, estimatedFinishTime?: any | null, actualFinishTime?: any | null, inQueue: boolean, numberOfJobsAheadInQueue?: number | null, sendEmail: boolean } | null, updateProgress?: { __typename?: 'BatchJobProgress', id: string, hasForecast: boolean, status: ProcrastinateJobStatus, total?: number | null, succeeded?: number | null, estimatedFinishTime?: any | null, actualFinishTime?: any | null, inQueue: boolean, numberOfJobsAheadInQueue?: number | null, sendEmail: boolean } | null, fieldDefinitions?: Array<{ __typename?: 'FieldDefinition', label?: string | null, value: string, description?: string | null, editable: boolean }> | null, updateMapping?: Array<{ __typename?: 'AutoUpdateConfig', source: string, sourcePath: string, destinationColumn: string }> | null, sharingPermissions: Array<{ __typename?: 'SharingPermission', id: any }>, organisation: { __typename?: 'Organisation', id: string, name: string } } }; export type DeleteUpdateConfigMutationVariables = Exact<{ - id: Scalars['String']['input'] -}> + id: Scalars['String']['input']; +}>; -export type DeleteUpdateConfigMutation = { - __typename?: 'Mutation' - deleteExternalDataSource: { __typename?: 'ExternalDataSource'; id: any } -} + +export type DeleteUpdateConfigMutation = { __typename?: 'Mutation', deleteExternalDataSource: { __typename?: 'ExternalDataSource', id: any } }; export type ManageSourceSharingQueryVariables = Exact<{ - externalDataSourceId: Scalars['ID']['input'] -}> - -export type ManageSourceSharingQuery = { - __typename?: 'Query' - externalDataSource: { - __typename?: 'ExternalDataSource' - sharingPermissions: Array<{ - __typename?: 'SharingPermission' - id: any - organisationId: string - externalDataSourceId: string - visibilityRecordCoordinates?: boolean | null - visibilityRecordDetails?: boolean | null - deleted: boolean - organisation: { __typename?: 'PublicOrganisation'; name: string } - }> - } -} + externalDataSourceId: Scalars['ID']['input']; +}>; + + +export type ManageSourceSharingQuery = { __typename?: 'Query', externalDataSource: { __typename?: 'ExternalDataSource', sharingPermissions: Array<{ __typename?: 'SharingPermission', id: any, organisationId: string, externalDataSourceId: string, visibilityRecordCoordinates?: boolean | null, visibilityRecordDetails?: boolean | null, deleted: boolean, organisation: { __typename?: 'PublicOrganisation', name: string } }> } }; export type UpdateSourceSharingObjectMutationVariables = Exact<{ - data: SharingPermissionCudInput -}> - -export type UpdateSourceSharingObjectMutation = { - __typename?: 'Mutation' - updateSharingPermission: { - __typename?: 'SharingPermission' - id: any - organisationId: string - externalDataSourceId: string - visibilityRecordCoordinates?: boolean | null - visibilityRecordDetails?: boolean | null - deleted: boolean - } -} + data: SharingPermissionCudInput; +}>; + + +export type UpdateSourceSharingObjectMutation = { __typename?: 'Mutation', updateSharingPermission: { __typename?: 'SharingPermission', id: any, organisationId: string, externalDataSourceId: string, visibilityRecordCoordinates?: boolean | null, visibilityRecordDetails?: boolean | null, deleted: boolean } }; export type DeleteSourceSharingObjectMutationVariables = Exact<{ - pk: Scalars['String']['input'] -}> + pk: Scalars['String']['input']; +}>; -export type DeleteSourceSharingObjectMutation = { - __typename?: 'Mutation' - deleteSharingPermission: { __typename?: 'SharingPermission'; id: any } -} + +export type DeleteSourceSharingObjectMutation = { __typename?: 'Mutation', deleteSharingPermission: { __typename?: 'SharingPermission', id: any } }; export type ImportDataMutationVariables = Exact<{ - id: Scalars['String']['input'] -}> - -export type ImportDataMutation = { - __typename?: 'Mutation' - importAll: { - __typename?: 'ExternalDataSourceAction' - id: string - externalDataSource: { - __typename?: 'ExternalDataSource' - importedDataCount: number - importProgress?: { - __typename?: 'BatchJobProgress' - status: ProcrastinateJobStatus - hasForecast: boolean - id: string - total?: number | null - succeeded?: number | null - failed?: number | null - estimatedFinishTime?: any | null - inQueue: boolean - } | null - } - } -} + id: Scalars['String']['input']; +}>; + + +export type ImportDataMutation = { __typename?: 'Mutation', importAll: { __typename?: 'ExternalDataSourceAction', id: string, externalDataSource: { __typename?: 'ExternalDataSource', importedDataCount: number, importProgress?: { __typename?: 'BatchJobProgress', status: ProcrastinateJobStatus, hasForecast: boolean, id: string, total?: number | null, succeeded?: number | null, failed?: number | null, estimatedFinishTime?: any | null, inQueue: boolean } | null } } }; export type ExternalDataSourceNameQueryVariables = Exact<{ - externalDataSourceId: Scalars['ID']['input'] -}> - -export type ExternalDataSourceNameQuery = { - __typename?: 'Query' - externalDataSource: { - __typename?: 'ExternalDataSource' - name: string - crmType: CrmType - dataType: DataSourceType - remoteUrl?: string | null - } -} + externalDataSourceId: Scalars['ID']['input']; +}>; + + +export type ExternalDataSourceNameQuery = { __typename?: 'Query', externalDataSource: { __typename?: 'ExternalDataSource', name: string, crmType: CrmType, dataType: DataSourceType, remoteUrl?: string | null } }; export type ShareDataSourcesMutationVariables = Exact<{ - fromOrgId: Scalars['String']['input'] - permissions: Array | SharingPermissionInput -}> - -export type ShareDataSourcesMutation = { - __typename?: 'Mutation' - updateSharingPermissions: Array<{ - __typename?: 'ExternalDataSource' - id: any - sharingPermissions: Array<{ - __typename?: 'SharingPermission' - id: any - organisationId: string - externalDataSourceId: string - visibilityRecordCoordinates?: boolean | null - visibilityRecordDetails?: boolean | null - deleted: boolean - }> - }> -} + fromOrgId: Scalars['String']['input']; + permissions: Array | SharingPermissionInput; +}>; -export type YourSourcesForSharingQueryVariables = Exact<{ - [key: string]: never -}> - -export type YourSourcesForSharingQuery = { - __typename?: 'Query' - myOrganisations: Array<{ - __typename?: 'Organisation' - id: string - name: string - externalDataSources: Array<{ - __typename?: 'ExternalDataSource' - id: any - name: string - crmType: CrmType - importedDataCount: number - dataType: DataSourceType - organisationId: string - fieldDefinitions?: Array<{ - __typename?: 'FieldDefinition' - label?: string | null - editable: boolean - }> | null - sharingPermissions: Array<{ - __typename?: 'SharingPermission' - id: any - organisationId: string - externalDataSourceId: string - visibilityRecordCoordinates?: boolean | null - visibilityRecordDetails?: boolean | null - deleted: boolean - }> - }> - }> -} + +export type ShareDataSourcesMutation = { __typename?: 'Mutation', updateSharingPermissions: Array<{ __typename?: 'ExternalDataSource', id: any, sharingPermissions: Array<{ __typename?: 'SharingPermission', id: any, organisationId: string, externalDataSourceId: string, visibilityRecordCoordinates?: boolean | null, visibilityRecordDetails?: boolean | null, deleted: boolean }> }> }; + +export type YourSourcesForSharingQueryVariables = Exact<{ [key: string]: never; }>; + + +export type YourSourcesForSharingQuery = { __typename?: 'Query', myOrganisations: Array<{ __typename?: 'Organisation', id: string, name: string, externalDataSources: Array<{ __typename?: 'ExternalDataSource', id: any, name: string, crmType: CrmType, importedDataCount: number, dataType: DataSourceType, organisationId: string, fieldDefinitions?: Array<{ __typename?: 'FieldDefinition', label?: string | null, editable: boolean }> | null, sharingPermissions: Array<{ __typename?: 'SharingPermission', id: any, organisationId: string, externalDataSourceId: string, visibilityRecordCoordinates?: boolean | null, visibilityRecordDetails?: boolean | null, deleted: boolean }> }> }> }; export type ShareWithOrgPageQueryVariables = Exact<{ - orgSlug: Scalars['String']['input'] -}> - -export type ShareWithOrgPageQuery = { - __typename?: 'Query' - allOrganisations: Array<{ - __typename?: 'PublicOrganisation' - id: string - name: string - }> -} + orgSlug: Scalars['String']['input']; +}>; + + +export type ShareWithOrgPageQuery = { __typename?: 'Query', allOrganisations: Array<{ __typename?: 'PublicOrganisation', id: string, name: string }> }; export type CreateMapReportMutationVariables = Exact<{ - data: MapReportInput -}> - -export type CreateMapReportMutation = { - __typename?: 'Mutation' - createMapReport: - | { __typename?: 'MapReport'; id: any } - | { - __typename?: 'OperationInfo' - messages: Array<{ __typename?: 'OperationMessage'; message: string }> - } -} + data: MapReportInput; +}>; + + +export type CreateMapReportMutation = { __typename?: 'Mutation', createMapReport: { __typename?: 'MapReport', id: any } | { __typename?: 'OperationInfo', messages: Array<{ __typename?: 'OperationMessage', message: string }> } }; export type ListReportsQueryVariables = Exact<{ - currentOrganisationId: Scalars['ID']['input'] -}> - -export type ListReportsQuery = { - __typename?: 'Query' - reports: Array<{ - __typename?: 'Report' - id: any - name: string - lastUpdate: any - }> -} + currentOrganisationId: Scalars['ID']['input']; +}>; -export type ListExternalDataSourcesQueryVariables = Exact<{ - [key: string]: never -}> - -export type ListExternalDataSourcesQuery = { - __typename?: 'Query' - myOrganisations: Array<{ - __typename?: 'Organisation' - id: string - externalDataSources: Array<{ __typename?: 'ExternalDataSource'; id: any }> - }> -} + +export type ListReportsQuery = { __typename?: 'Query', reports: Array<{ __typename?: 'Report', id: any, name: string, lastUpdate: any }> }; + +export type ListExternalDataSourcesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ListExternalDataSourcesQuery = { __typename?: 'Query', myOrganisations: Array<{ __typename?: 'Organisation', id: string, externalDataSources: Array<{ __typename?: 'ExternalDataSource', id: any }> }> }; export type GetPublicMapReportQueryVariables = Exact<{ - orgSlug: Scalars['String']['input'] - reportSlug: Scalars['String']['input'] -}> + orgSlug: Scalars['String']['input']; + reportSlug: Scalars['String']['input']; +}>; -export type GetPublicMapReportQuery = { - __typename?: 'Query' - publicMapReport: { __typename?: 'MapReport'; id: any; name: string } -} + +export type GetPublicMapReportQuery = { __typename?: 'Query', publicMapReport: { __typename?: 'MapReport', id: any, name: string } }; export type GetPublicMapReportForLayoutQueryVariables = Exact<{ - orgSlug: Scalars['String']['input'] - reportSlug: Scalars['String']['input'] -}> - -export type GetPublicMapReportForLayoutQuery = { - __typename?: 'Query' - publicMapReport: { - __typename?: 'MapReport' - id: any - name: string - displayOptions: any - organisation: { - __typename?: 'Organisation' - id: string - slug: string - name: string - } - layers: Array<{ __typename?: 'MapLayer'; id: string; name: string }> - } -} + orgSlug: Scalars['String']['input']; + reportSlug: Scalars['String']['input']; +}>; -export type GetEditableHubsQueryVariables = Exact<{ [key: string]: never }> -export type GetEditableHubsQuery = { - __typename?: 'Query' - hubHomepages: Array<{ __typename?: 'HubHomepage'; id: string }> -} +export type GetPublicMapReportForLayoutQuery = { __typename?: 'Query', publicMapReport: { __typename?: 'MapReport', id: any, name: string, displayOptions: any, organisation: { __typename?: 'Organisation', id: string, slug: string, name: string }, layers: Array<{ __typename?: 'MapLayer', id: string, name: string }> } }; + +export type GetEditableHubsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetEditableHubsQuery = { __typename?: 'Query', hubHomepages: Array<{ __typename?: 'HubHomepage', id: string }> }; export type VerifyPageQueryVariables = Exact<{ - pageId: Scalars['ID']['input'] -}> - -export type VerifyPageQuery = { - __typename?: 'Query' - hubHomepages: Array<{ __typename?: 'HubHomepage'; id: string }> - hubPage: { - __typename?: 'HubPage' - id: string - hub: { __typename?: 'HubHomepage'; id: string } - } -} + pageId: Scalars['ID']['input']; +}>; + + +export type VerifyPageQuery = { __typename?: 'Query', hubHomepages: Array<{ __typename?: 'HubHomepage', id: string }>, hubPage: { __typename?: 'HubPage', id: string, hub: { __typename?: 'HubHomepage', id: string } } }; export type HostAnalyticsQueryVariables = Exact<{ - hostname: Scalars['String']['input'] -}> - -export type HostAnalyticsQuery = { - __typename?: 'Query' - hubByHostname?: { - __typename?: 'HubHomepage' - googleAnalyticsTagId?: string | null - primaryColour?: string | null - secondaryColour?: string | null - customCss?: string | null - } | null -} + hostname: Scalars['String']['input']; +}>; + + +export type HostAnalyticsQuery = { __typename?: 'Query', hubByHostname?: { __typename?: 'HubHomepage', googleAnalyticsTagId?: string | null, primaryColour?: string | null, secondaryColour?: string | null, customCss?: string | null } | null }; export type GetHubMapDataQueryVariables = Exact<{ - hostname: Scalars['String']['input'] -}> - -export type GetHubMapDataQuery = { - __typename?: 'Query' - hubByHostname?: { - __typename?: 'HubHomepage' - id: string - organisation: { - __typename?: 'Organisation' - id: string - slug: string - name: string - } - layers: Array<{ - __typename?: 'MapLayer' - id: string - name: string - type: string - visible?: boolean | null - iconImage?: string | null - mapboxPaint?: any | null - mapboxLayout?: any | null - source: { __typename?: 'SharedDataSource'; id: any } - }> - navLinks: Array<{ __typename?: 'HubNavLink'; label: string; link: string }> - } | null -} + hostname: Scalars['String']['input']; +}>; -export type EventFragmentFragment = { - __typename?: 'GenericData' - id: string - title?: string | null - address?: string | null - postcode?: string | null - startTime?: any | null - publicUrl?: string | null - description?: string | null - dataType: { - __typename?: 'DataType' - id: string - dataSet: { - __typename?: 'DataSet' - externalDataSource: { - __typename?: 'ExternalDataSource' - dataType: DataSourceType - } - } - } -} -export type ConstituencyViewFragmentFragment = { - __typename?: 'Area' - id: string - gss: string - name: string - fitBounds?: any | null - samplePostcode?: { __typename?: 'PostcodesIOResult'; postcode: string } | null - mp?: { - __typename?: 'Person' - id: string - name: string - photo?: { __typename?: 'DjangoImageType'; url: string } | null - party?: { - __typename?: 'PersonData' - shade?: string | null - name: string - } | null - email?: { __typename?: 'PersonData'; data: string } | null - } | null - ppcs: Array<{ - __typename?: 'Person' - id: string - name: string - photo?: { __typename?: 'DjangoImageType'; url: string } | null - party?: { - __typename?: 'PersonData' - shade?: string | null - name: string - } | null - email?: { __typename?: 'PersonData'; data: string } | null - }> -} +export type GetHubMapDataQuery = { __typename?: 'Query', hubByHostname?: { __typename?: 'HubHomepage', id: string, organisation: { __typename?: 'Organisation', id: string, slug: string, name: string }, layers: Array<{ __typename?: 'MapLayer', id: string, name: string, type: string, visible?: boolean | null, iconImage?: string | null, mapboxPaint?: any | null, mapboxLayout?: any | null, source: { __typename?: 'SharedDataSource', id: any } }>, navLinks: Array<{ __typename?: 'HubNavLink', label: string, link: string }> } | null }; + +export type EventFragmentFragment = { __typename?: 'GenericData', id: string, title?: string | null, address?: string | null, postcode?: string | null, startTime?: any | null, publicUrl?: string | null, description?: string | null, dataType: { __typename?: 'DataType', id: string, dataSet: { __typename?: 'DataSet', externalDataSource: { __typename?: 'ExternalDataSource', dataType: DataSourceType } } } }; + +export type ConstituencyViewFragmentFragment = { __typename?: 'Area', id: string, gss: string, name: string, fitBounds?: any | null, samplePostcode?: { __typename?: 'PostcodesIOResult', postcode: string } | null, mp?: { __typename?: 'Person', id: string, name: string, photo?: { __typename?: 'DjangoImageType', url: string } | null, party?: { __typename?: 'PersonData', shade?: string | null, name: string } | null, email?: { __typename?: 'PersonData', data: string } | null } | null, ppcs: Array<{ __typename?: 'Person', id: string, name: string, photo?: { __typename?: 'DjangoImageType', url: string } | null, party?: { __typename?: 'PersonData', shade?: string | null, name: string } | null, email?: { __typename?: 'PersonData', data: string } | null }> }; export type GetLocalDataQueryVariables = Exact<{ - postcode: Scalars['String']['input'] - hostname: Scalars['String']['input'] -}> - -export type GetLocalDataQuery = { - __typename?: 'Query' - postcodeSearch: { - __typename?: 'UnauthenticatedPostcodeQueryResponse' - postcode: string - constituency?: { - __typename?: 'Area' - id: string - gss: string - name: string - fitBounds?: any | null - genericDataForHub: Array<{ - __typename?: 'GenericData' - id: string - title?: string | null - address?: string | null - postcode?: string | null - startTime?: any | null - publicUrl?: string | null - description?: string | null - dataType: { - __typename?: 'DataType' - id: string - dataSet: { - __typename?: 'DataSet' - externalDataSource: { - __typename?: 'ExternalDataSource' - dataType: DataSourceType - } - } - } - }> - samplePostcode?: { - __typename?: 'PostcodesIOResult' - postcode: string - } | null - mp?: { - __typename?: 'Person' - id: string - name: string - photo?: { __typename?: 'DjangoImageType'; url: string } | null - party?: { - __typename?: 'PersonData' - shade?: string | null - name: string - } | null - email?: { __typename?: 'PersonData'; data: string } | null - } | null - ppcs: Array<{ - __typename?: 'Person' - id: string - name: string - photo?: { __typename?: 'DjangoImageType'; url: string } | null - party?: { - __typename?: 'PersonData' - shade?: string | null - name: string - } | null - email?: { __typename?: 'PersonData'; data: string } | null - }> - } | null - } -} + postcode: Scalars['String']['input']; + hostname: Scalars['String']['input']; +}>; + + +export type GetLocalDataQuery = { __typename?: 'Query', postcodeSearch: { __typename?: 'UnauthenticatedPostcodeQueryResponse', postcode: string, constituency?: { __typename?: 'Area', id: string, gss: string, name: string, fitBounds?: any | null, genericDataForHub: Array<{ __typename?: 'GenericData', id: string, title?: string | null, address?: string | null, postcode?: string | null, startTime?: any | null, publicUrl?: string | null, description?: string | null, dataType: { __typename?: 'DataType', id: string, dataSet: { __typename?: 'DataSet', externalDataSource: { __typename?: 'ExternalDataSource', dataType: DataSourceType } } } }>, samplePostcode?: { __typename?: 'PostcodesIOResult', postcode: string } | null, mp?: { __typename?: 'Person', id: string, name: string, photo?: { __typename?: 'DjangoImageType', url: string } | null, party?: { __typename?: 'PersonData', shade?: string | null, name: string } | null, email?: { __typename?: 'PersonData', data: string } | null } | null, ppcs: Array<{ __typename?: 'Person', id: string, name: string, photo?: { __typename?: 'DjangoImageType', url: string } | null, party?: { __typename?: 'PersonData', shade?: string | null, name: string } | null, email?: { __typename?: 'PersonData', data: string } | null }> } | null } }; export type GetEventDataQueryVariables = Exact<{ - eventId: Scalars['String']['input'] - hostname: Scalars['String']['input'] -}> - -export type GetEventDataQuery = { - __typename?: 'Query' - importedDataGeojsonPoint?: { - __typename?: 'MapReportMemberFeature' - properties?: { - __typename?: 'GenericData' - id: string - title?: string | null - address?: string | null - postcode?: string | null - startTime?: any | null - publicUrl?: string | null - description?: string | null - constituency?: { - __typename?: 'Area' - id: string - gss: string - name: string - fitBounds?: any | null - genericDataForHub: Array<{ - __typename?: 'GenericData' - id: string - title?: string | null - address?: string | null - postcode?: string | null - startTime?: any | null - publicUrl?: string | null - description?: string | null - dataType: { - __typename?: 'DataType' - id: string - dataSet: { - __typename?: 'DataSet' - externalDataSource: { - __typename?: 'ExternalDataSource' - dataType: DataSourceType - } - } - } - }> - samplePostcode?: { - __typename?: 'PostcodesIOResult' - postcode: string - } | null - mp?: { - __typename?: 'Person' - id: string - name: string - photo?: { __typename?: 'DjangoImageType'; url: string } | null - party?: { - __typename?: 'PersonData' - shade?: string | null - name: string - } | null - email?: { __typename?: 'PersonData'; data: string } | null - } | null - ppcs: Array<{ - __typename?: 'Person' - id: string - name: string - photo?: { __typename?: 'DjangoImageType'; url: string } | null - party?: { - __typename?: 'PersonData' - shade?: string | null - name: string - } | null - email?: { __typename?: 'PersonData'; data: string } | null - }> - } | null - dataType: { - __typename?: 'DataType' - id: string - dataSet: { - __typename?: 'DataSet' - externalDataSource: { - __typename?: 'ExternalDataSource' - dataType: DataSourceType - } - } - } - } | null - } | null -} + eventId: Scalars['String']['input']; + hostname: Scalars['String']['input']; +}>; + + +export type GetEventDataQuery = { __typename?: 'Query', importedDataGeojsonPoint?: { __typename?: 'MapReportMemberFeature', properties?: { __typename?: 'GenericData', id: string, title?: string | null, address?: string | null, postcode?: string | null, startTime?: any | null, publicUrl?: string | null, description?: string | null, constituency?: { __typename?: 'Area', id: string, gss: string, name: string, fitBounds?: any | null, genericDataForHub: Array<{ __typename?: 'GenericData', id: string, title?: string | null, address?: string | null, postcode?: string | null, startTime?: any | null, publicUrl?: string | null, description?: string | null, dataType: { __typename?: 'DataType', id: string, dataSet: { __typename?: 'DataSet', externalDataSource: { __typename?: 'ExternalDataSource', dataType: DataSourceType } } } }>, samplePostcode?: { __typename?: 'PostcodesIOResult', postcode: string } | null, mp?: { __typename?: 'Person', id: string, name: string, photo?: { __typename?: 'DjangoImageType', url: string } | null, party?: { __typename?: 'PersonData', shade?: string | null, name: string } | null, email?: { __typename?: 'PersonData', data: string } | null } | null, ppcs: Array<{ __typename?: 'Person', id: string, name: string, photo?: { __typename?: 'DjangoImageType', url: string } | null, party?: { __typename?: 'PersonData', shade?: string | null, name: string } | null, email?: { __typename?: 'PersonData', data: string } | null }> } | null, dataType: { __typename?: 'DataType', id: string, dataSet: { __typename?: 'DataSet', externalDataSource: { __typename?: 'ExternalDataSource', dataType: DataSourceType } } } } | null } | null }; export type GetPageQueryVariables = Exact<{ - hostname: Scalars['String']['input'] - path?: InputMaybe -}> - -export type GetPageQuery = { - __typename?: 'Query' - hubPageByPath?: { - __typename?: 'HubPage' - id: string - title: string - path: string - puckJsonContent: any - seoTitle: string - searchDescription?: string | null - hub: { - __typename?: 'HubHomepage' - faviconUrl?: string | null - seoTitle: string - seoImageUrl?: string | null - searchDescription?: string | null - primaryColour?: string | null - secondaryColour?: string | null - customCss?: string | null - navLinks: Array<{ - __typename?: 'HubNavLink' - link: string - label: string - }> - } - } | null -} + hostname: Scalars['String']['input']; + path?: InputMaybe; +}>; + + +export type GetPageQuery = { __typename?: 'Query', hubPageByPath?: { __typename?: 'HubPage', id: string, title: string, path: string, puckJsonContent: any, seoTitle: string, searchDescription?: string | null, hub: { __typename?: 'HubHomepage', faviconUrl?: string | null, seoTitle: string, seoImageUrl?: string | null, searchDescription?: string | null, primaryColour?: string | null, secondaryColour?: string | null, customCss?: string | null, navLinks: Array<{ __typename?: 'HubNavLink', link: string, label: string }> } } | null }; export type GetMemberListQueryVariables = Exact<{ - currentOrganisationId: Scalars['ID']['input'] -}> - -export type GetMemberListQuery = { - __typename?: 'Query' - myOrganisations: Array<{ - __typename?: 'Organisation' - externalDataSources: Array<{ - __typename?: 'ExternalDataSource' - id: any - name: string - importedDataCount: number - crmType: CrmType - dataType: DataSourceType - }> - sharingPermissionsFromOtherOrgs: Array<{ - __typename?: 'SharingPermission' - externalDataSource: { - __typename?: 'SharedDataSource' - id: any - name: string - importedDataCount: number - crmType: CrmType - dataType: DataSourceType - organisation: { __typename?: 'PublicOrganisation'; name: string } - } - }> - }> -} + currentOrganisationId: Scalars['ID']['input']; +}>; + + +export type GetMemberListQuery = { __typename?: 'Query', myOrganisations: Array<{ __typename?: 'Organisation', externalDataSources: Array<{ __typename?: 'ExternalDataSource', id: any, name: string, importedDataCount: number, crmType: CrmType, dataType: DataSourceType }>, sharingPermissionsFromOtherOrgs: Array<{ __typename?: 'SharingPermission', externalDataSource: { __typename?: 'SharedDataSource', id: any, name: string, importedDataCount: number, crmType: CrmType, dataType: DataSourceType, organisation: { __typename?: 'PublicOrganisation', name: string } } }> }> }; export type ConstituencyStatsOverviewQueryVariables = Exact<{ - reportID: Scalars['ID']['input'] - analyticalAreaType: AnalyticalAreaType - layerIds: Array | Scalars['String']['input'] -}> - -export type ConstituencyStatsOverviewQuery = { - __typename?: 'Query' - mapReport: { - __typename?: 'MapReport' - id: any - importedDataCountByConstituency: Array<{ - __typename?: 'GroupedDataCount' - label?: string | null - gss?: string | null - count: number - gssArea?: { - __typename?: 'Area' - id: string - name: string - fitBounds?: any | null - mp?: { - __typename?: 'Person' - id: string - name: string - photo?: { __typename?: 'DjangoImageType'; url: string } | null - party?: { __typename?: 'PersonData'; name: string } | null - } | null - lastElection?: { - __typename?: 'ConstituencyElectionResult' - stats: { - __typename?: 'ConstituencyElectionStats' - date: string - majority: number - electorate: number - firstPartyResult: { - __typename?: 'PartyResult' - party: string - shade: string - votes: number - } - secondPartyResult: { - __typename?: 'PartyResult' - party: string - shade: string - votes: number - } - } - } | null - } | null - }> - } -} + reportID: Scalars['ID']['input']; + analyticalAreaType: AnalyticalAreaType; + layerIds: Array | Scalars['String']['input']; +}>; + + +export type ConstituencyStatsOverviewQuery = { __typename?: 'Query', mapReport: { __typename?: 'MapReport', id: any, importedDataCountByConstituency: Array<{ __typename?: 'GroupedDataCount', label?: string | null, gss?: string | null, count: number, gssArea?: { __typename?: 'Area', id: string, name: string, fitBounds?: any | null, mp?: { __typename?: 'Person', id: string, name: string, photo?: { __typename?: 'DjangoImageType', url: string } | null, party?: { __typename?: 'PersonData', name: string } | null } | null, lastElection?: { __typename?: 'ConstituencyElectionResult', stats: { __typename?: 'ConstituencyElectionStats', date: string, majority: number, electorate: number, firstPartyResult: { __typename?: 'PartyResult', party: string, shade: string, votes: number }, secondPartyResult: { __typename?: 'PartyResult', party: string, shade: string, votes: number } } } | null } | null }> } }; export type GetConstituencyDataQueryVariables = Exact<{ - analyticalAreaType: AnalyticalAreaType - gss: Scalars['String']['input'] - reportID: Scalars['ID']['input'] -}> - -export type GetConstituencyDataQuery = { - __typename?: 'Query' - constituency?: { - __typename?: 'Area' - id: string - name: string - mp?: { - __typename?: 'Person' - id: string - name: string - photo?: { __typename?: 'DjangoImageType'; url: string } | null - party?: { - __typename?: 'PersonData' - shade?: string | null - name: string - } | null - } | null - lastElection?: { - __typename?: 'ConstituencyElectionResult' - stats: { - __typename?: 'ConstituencyElectionStats' - date: string - electorate: number - validVotes: number - majority: number - firstPartyResult: { - __typename?: 'PartyResult' - party: string - shade: string - votes: number - } - secondPartyResult: { - __typename?: 'PartyResult' - party: string - shade: string - votes: number - } - } - } | null - } | null - mapReport: { - __typename?: 'MapReport' - id: any - importedDataCountForConstituency?: { - __typename?: 'GroupedDataCount' - gss?: string | null - count: number - } | null - layers: Array<{ - __typename?: 'MapLayer' - id: string - name: string - source: { - __typename?: 'SharedDataSource' - id: any - importedDataCountForConstituency?: { - __typename?: 'GroupedDataCount' - gss?: string | null - count: number - } | null - } - }> - } -} + analyticalAreaType: AnalyticalAreaType; + gss: Scalars['String']['input']; + reportID: Scalars['ID']['input']; +}>; + + +export type GetConstituencyDataQuery = { __typename?: 'Query', constituency?: { __typename?: 'Area', id: string, name: string, mp?: { __typename?: 'Person', id: string, name: string, photo?: { __typename?: 'DjangoImageType', url: string } | null, party?: { __typename?: 'PersonData', shade?: string | null, name: string } | null } | null, lastElection?: { __typename?: 'ConstituencyElectionResult', stats: { __typename?: 'ConstituencyElectionStats', date: string, electorate: number, validVotes: number, majority: number, firstPartyResult: { __typename?: 'PartyResult', party: string, shade: string, votes: number }, secondPartyResult: { __typename?: 'PartyResult', party: string, shade: string, votes: number } } } | null } | null, mapReport: { __typename?: 'MapReport', id: any, importedDataCountForConstituency?: { __typename?: 'GroupedDataCount', gss?: string | null, count: number } | null, layers: Array<{ __typename?: 'MapLayer', id: string, name: string, source: { __typename?: 'SharedDataSource', id: any, importedDataCountForConstituency?: { __typename?: 'GroupedDataCount', gss?: string | null, count: number } | null } }> } }; export type MapReportWardStatsQueryVariables = Exact<{ - reportID: Scalars['ID']['input'] -}> - -export type MapReportWardStatsQuery = { - __typename?: 'Query' - mapReport: { - __typename?: 'MapReport' - id: any - importedDataCountByWard: Array<{ - __typename?: 'GroupedDataCount' - label?: string | null - gss?: string | null - count: number - gssArea?: { - __typename?: 'Area' - point?: { - __typename?: 'PointFeature' - id?: string | null - type: GeoJsonTypes - geometry: { - __typename?: 'PointGeometry' - type: GeoJsonTypes - coordinates: Array - } - } | null - } | null - }> - } -} + reportID: Scalars['ID']['input']; +}>; + + +export type MapReportWardStatsQuery = { __typename?: 'Query', mapReport: { __typename?: 'MapReport', id: any, importedDataCountByWard: Array<{ __typename?: 'GroupedDataCount', label?: string | null, gss?: string | null, count: number, gssArea?: { __typename?: 'Area', point?: { __typename?: 'PointFeature', id?: string | null, type: GeoJsonTypes, geometry: { __typename?: 'PointGeometry', type: GeoJsonTypes, coordinates: Array } } | null } | null }> } }; export type MapReportLayerGeoJsonPointQueryVariables = Exact<{ - genericDataId: Scalars['String']['input'] -}> - -export type MapReportLayerGeoJsonPointQuery = { - __typename?: 'Query' - importedDataGeojsonPoint?: { - __typename?: 'MapReportMemberFeature' - id?: string | null - type: GeoJsonTypes - geometry: { - __typename?: 'PointGeometry' - type: GeoJsonTypes - coordinates: Array - } - properties?: { - __typename?: 'GenericData' - id: string - lastUpdate: any - name?: string | null - phone?: string | null - email?: string | null - address?: string | null - json?: any | null - remoteUrl: string - postcodeData?: { - __typename?: 'PostcodesIOResult' - postcode: string - } | null - dataType: { - __typename?: 'DataType' - dataSet: { - __typename?: 'DataSet' - externalDataSource: { - __typename?: 'ExternalDataSource' - name: string - } - } - } - } | null - } | null -} + genericDataId: Scalars['String']['input']; +}>; + + +export type MapReportLayerGeoJsonPointQuery = { __typename?: 'Query', importedDataGeojsonPoint?: { __typename?: 'MapReportMemberFeature', id?: string | null, type: GeoJsonTypes, geometry: { __typename?: 'PointGeometry', type: GeoJsonTypes, coordinates: Array }, properties?: { __typename?: 'GenericData', id: string, lastUpdate: any, name?: string | null, phone?: string | null, email?: string | null, address?: string | null, json?: any | null, remoteUrl: string, postcodeData?: { __typename?: 'PostcodesIOResult', postcode: string } | null, dataType: { __typename?: 'DataType', dataSet: { __typename?: 'DataSet', externalDataSource: { __typename?: 'ExternalDataSource', name: string } } } } | null } | null }; export type MapReportLayerAnalyticsQueryVariables = Exact<{ - reportID: Scalars['ID']['input'] -}> - -export type MapReportLayerAnalyticsQuery = { - __typename?: 'Query' - mapReport: { - __typename?: 'MapReport' - id: any - layers: Array<{ - __typename?: 'MapLayer' - id: string - name: string - source: { - __typename?: 'SharedDataSource' - id: any - dataType: DataSourceType - organisation: { __typename?: 'PublicOrganisation'; name: string } - } - }> - } -} + reportID: Scalars['ID']['input']; +}>; + + +export type MapReportLayerAnalyticsQuery = { __typename?: 'Query', mapReport: { __typename?: 'MapReport', id: any, layers: Array<{ __typename?: 'MapLayer', id: string, name: string, source: { __typename?: 'SharedDataSource', id: any, dataType: DataSourceType, organisation: { __typename?: 'PublicOrganisation', name: string } } }> } }; export type MapReportCountByAreaQueryVariables = Exact<{ - reportID: Scalars['ID']['input'] - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe< - Array | Scalars['String']['input'] - > -}> - -export type MapReportCountByAreaQuery = { - __typename?: 'Query' - mapReport: { - __typename?: 'MapReport' - id: any - importedDataCountByArea: Array<{ - __typename?: 'GroupedDataCount' - label?: string | null - gss?: string | null - count: number - gssArea?: { - __typename?: 'Area' - point?: { - __typename?: 'PointFeature' - id?: string | null - type: GeoJsonTypes - geometry: { - __typename?: 'PointGeometry' - type: GeoJsonTypes - coordinates: Array - } - } | null - } | null - }> - } -} + reportID: Scalars['ID']['input']; + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe | Scalars['String']['input']>; +}>; + + +export type MapReportCountByAreaQuery = { __typename?: 'Query', mapReport: { __typename?: 'MapReport', id: any, importedDataCountByArea: Array<{ __typename?: 'GroupedDataCount', label?: string | null, gss?: string | null, count: number, gssArea?: { __typename?: 'Area', point?: { __typename?: 'PointFeature', id?: string | null, type: GeoJsonTypes, geometry: { __typename?: 'PointGeometry', type: GeoJsonTypes, coordinates: Array } } | null } | null }> } }; export type MapReportStatsByAreaQueryVariables = Exact<{ - reportID: Scalars['ID']['input'] - analyticalAreaType: AnalyticalAreaType - layerIds?: InputMaybe< - Array | Scalars['String']['input'] - > -}> - -export type MapReportStatsByAreaQuery = { - __typename?: 'Query' - mapReport: { - __typename?: 'MapReport' - id: any - importedDataByArea: Array<{ - __typename?: 'GroupedData' - label?: string | null - gss?: string | null - importedData?: any | null - gssArea?: { - __typename?: 'Area' - point?: { - __typename?: 'PointFeature' - id?: string | null - type: GeoJsonTypes - geometry: { - __typename?: 'PointGeometry' - type: GeoJsonTypes - coordinates: Array - } - } | null - } | null - }> - } -} + reportID: Scalars['ID']['input']; + analyticalAreaType: AnalyticalAreaType; + layerIds?: InputMaybe | Scalars['String']['input']>; +}>; + + +export type MapReportStatsByAreaQuery = { __typename?: 'Query', mapReport: { __typename?: 'MapReport', id: any, importedDataByArea: Array<{ __typename?: 'GroupedData', label?: string | null, gss?: string | null, importedData?: any | null, gssArea?: { __typename?: 'Area', point?: { __typename?: 'PointFeature', id?: string | null, type: GeoJsonTypes, geometry: { __typename?: 'PointGeometry', type: GeoJsonTypes, coordinates: Array } } | null } | null }> } }; export type GetMapReportQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type GetMapReportQuery = { - __typename?: 'Query' - mapReport: { - __typename?: 'MapReport' - id: any - name: string - slug: string - displayOptions: any - organisation: { - __typename?: 'Organisation' - id: string - slug: string - name: string - } - layers: Array<{ - __typename?: 'MapLayer' - id: string - name: string - sharingPermission?: { - __typename?: 'SharingPermission' - visibilityRecordDetails?: boolean | null - visibilityRecordCoordinates?: boolean | null - organisation: { __typename?: 'PublicOrganisation'; name: string } - } | null - source: { - __typename?: 'SharedDataSource' - id: any - name: string - isImportScheduled: boolean - importedDataCount: number - crmType: CrmType - dataType: DataSourceType - organisation: { __typename?: 'PublicOrganisation'; name: string } - } - }> - } -} + id: Scalars['ID']['input']; +}>; + + +export type GetMapReportQuery = { __typename?: 'Query', mapReport: { __typename?: 'MapReport', id: any, name: string, slug: string, displayOptions: any, organisation: { __typename?: 'Organisation', id: string, slug: string, name: string }, layers: Array<{ __typename?: 'MapLayer', id: string, name: string, sharingPermission?: { __typename?: 'SharingPermission', visibilityRecordDetails?: boolean | null, visibilityRecordCoordinates?: boolean | null, organisation: { __typename?: 'PublicOrganisation', name: string } } | null, source: { __typename?: 'SharedDataSource', id: any, name: string, isImportScheduled: boolean, importedDataCount: number, crmType: CrmType, dataType: DataSourceType, organisation: { __typename?: 'PublicOrganisation', name: string } } }> } }; export type UpdateMapReportMutationVariables = Exact<{ - input: MapReportInput -}> - -export type UpdateMapReportMutation = { - __typename?: 'Mutation' - updateMapReport: { - __typename?: 'MapReport' - id: any - name: string - displayOptions: any - layers: Array<{ - __typename?: 'MapLayer' - id: string - name: string - source: { __typename?: 'SharedDataSource'; id: any; name: string } - }> - } -} + input: MapReportInput; +}>; + + +export type UpdateMapReportMutation = { __typename?: 'Mutation', updateMapReport: { __typename?: 'MapReport', id: any, name: string, displayOptions: any, layers: Array<{ __typename?: 'MapLayer', id: string, name: string, source: { __typename?: 'SharedDataSource', id: any, name: string } }> } }; export type DeleteMapReportMutationVariables = Exact<{ - id: IdObject -}> + id: IdObject; +}>; -export type DeleteMapReportMutation = { - __typename?: 'Mutation' - deleteMapReport: { __typename?: 'MapReport'; id: any } -} + +export type DeleteMapReportMutation = { __typename?: 'Mutation', deleteMapReport: { __typename?: 'MapReport', id: any } }; export type GetMapReportNameQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> + id: Scalars['ID']['input']; +}>; -export type GetMapReportNameQuery = { - __typename?: 'Query' - mapReport: { __typename?: 'MapReport'; id: any; name: string } -} + +export type GetMapReportNameQuery = { __typename?: 'Query', mapReport: { __typename?: 'MapReport', id: any, name: string } }; export type WebhookRefreshMutationVariables = Exact<{ - ID: Scalars['String']['input'] -}> - -export type WebhookRefreshMutation = { - __typename?: 'Mutation' - refreshWebhooks: { - __typename?: 'ExternalDataSource' - id: any - hasWebhooks: boolean - automatedWebhooks: boolean - webhookHealthcheck: boolean - } -} + ID: Scalars['String']['input']; +}>; -export type DataSourceCardFragment = { - __typename?: 'ExternalDataSource' - id: any - name: string - dataType: DataSourceType - crmType: CrmType - automatedWebhooks: boolean - autoImportEnabled: boolean - autoUpdateEnabled: boolean - updateMapping?: Array<{ - __typename?: 'AutoUpdateConfig' - source: string - sourcePath: string - destinationColumn: string - }> | null - jobs: Array<{ - __typename?: 'QueueJob' - lastEventAt: any - status: ProcrastinateJobStatus - }> - sharingPermissions: Array<{ - __typename?: 'SharingPermission' - id: any - organisation: { - __typename?: 'PublicOrganisation' - id: string - name: string - } - }> -} + +export type WebhookRefreshMutation = { __typename?: 'Mutation', refreshWebhooks: { __typename?: 'ExternalDataSource', id: any, hasWebhooks: boolean, automatedWebhooks: boolean, webhookHealthcheck: boolean } }; + +export type DataSourceCardFragment = { __typename?: 'ExternalDataSource', id: any, name: string, dataType: DataSourceType, crmType: CrmType, automatedWebhooks: boolean, autoImportEnabled: boolean, autoUpdateEnabled: boolean, updateMapping?: Array<{ __typename?: 'AutoUpdateConfig', source: string, sourcePath: string, destinationColumn: string }> | null, jobs: Array<{ __typename?: 'QueueJob', lastEventAt: any, status: ProcrastinateJobStatus }>, sharingPermissions: Array<{ __typename?: 'SharingPermission', id: any, organisation: { __typename?: 'PublicOrganisation', id: string, name: string } }> }; export type ExternalDataSourceExternalDataSourceCardQueryVariables = Exact<{ - ID: Scalars['ID']['input'] -}> - -export type ExternalDataSourceExternalDataSourceCardQuery = { - __typename?: 'Query' - externalDataSource: { - __typename?: 'ExternalDataSource' - id: any - name: string - dataType: DataSourceType - crmType: CrmType - automatedWebhooks: boolean - autoImportEnabled: boolean - autoUpdateEnabled: boolean - updateMapping?: Array<{ - __typename?: 'AutoUpdateConfig' - source: string - sourcePath: string - destinationColumn: string - }> | null - jobs: Array<{ - __typename?: 'QueueJob' - lastEventAt: any - status: ProcrastinateJobStatus - }> - sharingPermissions: Array<{ - __typename?: 'SharingPermission' - id: any - organisation: { - __typename?: 'PublicOrganisation' - id: string - name: string - } - }> - } -} + ID: Scalars['ID']['input']; +}>; + + +export type ExternalDataSourceExternalDataSourceCardQuery = { __typename?: 'Query', externalDataSource: { __typename?: 'ExternalDataSource', id: any, name: string, dataType: DataSourceType, crmType: CrmType, automatedWebhooks: boolean, autoImportEnabled: boolean, autoUpdateEnabled: boolean, updateMapping?: Array<{ __typename?: 'AutoUpdateConfig', source: string, sourcePath: string, destinationColumn: string }> | null, jobs: Array<{ __typename?: 'QueueJob', lastEventAt: any, status: ProcrastinateJobStatus }>, sharingPermissions: Array<{ __typename?: 'SharingPermission', id: any, organisation: { __typename?: 'PublicOrganisation', id: string, name: string } }> } }; export type EnableWebhookMutationVariables = Exact<{ - ID: Scalars['String']['input'] - webhookType: WebhookType -}> - -export type EnableWebhookMutation = { - __typename?: 'Mutation' - enableWebhook: { - __typename?: 'ExternalDataSource' - id: any - autoImportEnabled: boolean - autoUpdateEnabled: boolean - hasWebhooks: boolean - automatedWebhooks: boolean - webhookHealthcheck: boolean - name: string - } -} + ID: Scalars['String']['input']; + webhookType: WebhookType; +}>; + + +export type EnableWebhookMutation = { __typename?: 'Mutation', enableWebhook: { __typename?: 'ExternalDataSource', id: any, autoImportEnabled: boolean, autoUpdateEnabled: boolean, hasWebhooks: boolean, automatedWebhooks: boolean, webhookHealthcheck: boolean, name: string } }; export type DisableWebhookMutationVariables = Exact<{ - ID: Scalars['String']['input'] - webhookType: WebhookType -}> - -export type DisableWebhookMutation = { - __typename?: 'Mutation' - disableWebhook: { - __typename?: 'ExternalDataSource' - id: any - autoImportEnabled: boolean - autoUpdateEnabled: boolean - hasWebhooks: boolean - automatedWebhooks: boolean - webhookHealthcheck: boolean - name: string - } -} + ID: Scalars['String']['input']; + webhookType: WebhookType; +}>; + + +export type DisableWebhookMutation = { __typename?: 'Mutation', disableWebhook: { __typename?: 'ExternalDataSource', id: any, autoImportEnabled: boolean, autoUpdateEnabled: boolean, hasWebhooks: boolean, automatedWebhooks: boolean, webhookHealthcheck: boolean, name: string } }; export type TriggerFullUpdateMutationVariables = Exact<{ - externalDataSourceId: Scalars['String']['input'] -}> - -export type TriggerFullUpdateMutation = { - __typename?: 'Mutation' - triggerUpdate: { - __typename?: 'ExternalDataSourceAction' - id: string - externalDataSource: { - __typename?: 'ExternalDataSource' - id: any - name: string - crmType: CrmType - jobs: Array<{ - __typename?: 'QueueJob' - status: ProcrastinateJobStatus - id: string - taskName: string - args: any - lastEventAt: any - }> - } - } -} + externalDataSourceId: Scalars['String']['input']; +}>; -export type GetOrganisationsQueryVariables = Exact<{ [key: string]: never }> -export type GetOrganisationsQuery = { - __typename?: 'Query' - myOrganisations: Array<{ - __typename?: 'Organisation' - id: string - name: string - }> -} +export type TriggerFullUpdateMutation = { __typename?: 'Mutation', triggerUpdate: { __typename?: 'ExternalDataSourceAction', id: string, externalDataSource: { __typename?: 'ExternalDataSource', id: any, name: string, crmType: CrmType, jobs: Array<{ __typename?: 'QueueJob', status: ProcrastinateJobStatus, id: string, taskName: string, args: any, lastEventAt: any }> } } }; + +export type GetOrganisationsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetOrganisationsQuery = { __typename?: 'Query', myOrganisations: Array<{ __typename?: 'Organisation', id: string, name: string }> }; export type EnrichmentLayersQueryVariables = Exact<{ - organisationPk: Scalars['String']['input'] -}> - -export type EnrichmentLayersQuery = { - __typename?: 'Query' - mappingSources: Array<{ - __typename?: 'MappingSource' - slug: string - name: string - author?: string | null - description?: string | null - descriptionUrl?: string | null - builtin: boolean - sourcePaths: Array<{ - __typename?: 'MappingSourcePath' - label?: string | null - value: string - description?: string | null - }> - externalDataSource?: { - __typename?: 'SharedDataSource' - id: any - name: string - dataType: DataSourceType - crmType: CrmType - organisation: { - __typename?: 'PublicOrganisation' - id: string - name: string - } - } | null - }> -} + organisationPk: Scalars['String']['input']; +}>; -export type MyOrgsQueryVariables = Exact<{ [key: string]: never }> -export type MyOrgsQuery = { - __typename?: 'Query' - myOrganisations: Array<{ - __typename?: 'Organisation' - id: string - name: string - slug: string - }> -} +export type EnrichmentLayersQuery = { __typename?: 'Query', mappingSources: Array<{ __typename?: 'MappingSource', slug: string, name: string, author?: string | null, description?: string | null, descriptionUrl?: string | null, builtin: boolean, sourcePaths: Array<{ __typename?: 'MappingSourcePath', label?: string | null, value: string, description?: string | null }>, externalDataSource?: { __typename?: 'SharedDataSource', id: any, name: string, dataType: DataSourceType, crmType: CrmType, organisation: { __typename?: 'PublicOrganisation', id: string, name: string } } | null }> }; -export type UserDataQueryVariables = Exact<{ [key: string]: never }> +export type MyOrgsQueryVariables = Exact<{ [key: string]: never; }>; -export type UserDataQuery = { - __typename?: 'Query' - me: { __typename?: 'UserType'; id: string; email: string; username: string } - publicUser?: { - __typename?: 'UserType' - firstName?: string | null - lastName?: string | null - } | null -} + +export type MyOrgsQuery = { __typename?: 'Query', myOrganisations: Array<{ __typename?: 'Organisation', id: string, name: string, slug: string }> }; + +export type UserDataQueryVariables = Exact<{ [key: string]: never; }>; + + +export type UserDataQuery = { __typename?: 'Query', me: { __typename?: 'UserType', id: string, email: string, username: string }, publicUser?: { __typename?: 'UserType', firstName?: string | null, lastName?: string | null } | null }; export type PublishPageMutationVariables = Exact<{ - pageId: Scalars['String']['input'] - input: HubPageInput -}> - -export type PublishPageMutation = { - __typename?: 'Mutation' - updatePage: { - __typename?: 'HubPage' - id: string - title: string - slug: string - puckJsonContent: any - } -} + pageId: Scalars['String']['input']; + input: HubPageInput; +}>; + + +export type PublishPageMutation = { __typename?: 'Mutation', updatePage: { __typename?: 'HubPage', id: string, title: string, slug: string, puckJsonContent: any } }; export type CreateChildPageMutationVariables = Exact<{ - parentId: Scalars['String']['input'] - title: Scalars['String']['input'] -}> + parentId: Scalars['String']['input']; + title: Scalars['String']['input']; +}>; -export type CreateChildPageMutation = { - __typename?: 'Mutation' - createChildPage: { __typename?: 'HubPage'; id: string } -} + +export type CreateChildPageMutation = { __typename?: 'Mutation', createChildPage: { __typename?: 'HubPage', id: string } }; export type DeletePageMutationVariables = Exact<{ - pageId: Scalars['String']['input'] -}> + pageId: Scalars['String']['input']; +}>; -export type DeletePageMutation = { - __typename?: 'Mutation' - deletePage: boolean -} + +export type DeletePageMutation = { __typename?: 'Mutation', deletePage: boolean }; export type GetHubPagesQueryVariables = Exact<{ - hubId: Scalars['ID']['input'] -}> - -export type GetHubPagesQuery = { - __typename?: 'Query' - hubHomepage: { - __typename?: 'HubHomepage' - hostname: string - descendants: Array<{ - __typename?: 'HubPage' - id: string - title: string - path: string - slug: string - modelName: string - ancestors: Array<{ - __typename?: 'HubPage' - id: string - title: string - path: string - slug: string - modelName: string - }> - }> - } -} + hubId: Scalars['ID']['input']; +}>; + + +export type GetHubPagesQuery = { __typename?: 'Query', hubHomepage: { __typename?: 'HubHomepage', hostname: string, descendants: Array<{ __typename?: 'HubPage', id: string, title: string, path: string, slug: string, modelName: string, ancestors: Array<{ __typename?: 'HubPage', id: string, title: string, path: string, slug: string, modelName: string }> }> } }; export type GetPageEditorDataQueryVariables = Exact<{ - pageId: Scalars['ID']['input'] -}> - -export type GetPageEditorDataQuery = { - __typename?: 'Query' - hubPage: { - __typename?: 'HubPage' - id: string - title: string - path: string - slug: string - puckJsonContent: any - modelName: string - liveUrl?: string | null - ancestors: Array<{ - __typename?: 'HubPage' - id: string - title: string - path: string - slug: string - modelName: string - }> - } -} + pageId: Scalars['ID']['input']; +}>; + + +export type GetPageEditorDataQuery = { __typename?: 'Query', hubPage: { __typename?: 'HubPage', id: string, title: string, path: string, slug: string, puckJsonContent: any, modelName: string, liveUrl?: string | null, ancestors: Array<{ __typename?: 'HubPage', id: string, title: string, path: string, slug: string, modelName: string }> } }; export type GetHubContextQueryVariables = Exact<{ - hostname: Scalars['String']['input'] -}> - -export type GetHubContextQuery = { - __typename?: 'Query' - hubByHostname?: { - __typename?: 'HubHomepage' - id: string - customCss?: string | null - primaryColour?: string | null - secondaryColour?: string | null - } | null -} + hostname: Scalars['String']['input']; +}>; -export type GetEventSourcesQueryVariables = Exact<{ [key: string]: never }> - -export type GetEventSourcesQuery = { - __typename?: 'Query' - externalDataSources: Array<{ - __typename?: 'ExternalDataSource' - name: string - id: any - eventCount: number - fieldDefinitions?: Array<{ - __typename?: 'FieldDefinition' - label?: string | null - value: string - }> | null - }> -} + +export type GetHubContextQuery = { __typename?: 'Query', hubByHostname?: { __typename?: 'HubHomepage', id: string, customCss?: string | null, primaryColour?: string | null, secondaryColour?: string | null } | null }; + +export type GetEventSourcesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetEventSourcesQuery = { __typename?: 'Query', externalDataSources: Array<{ __typename?: 'ExternalDataSource', name: string, id: any, eventCount: number, fieldDefinitions?: Array<{ __typename?: 'FieldDefinition', label?: string | null, value: string }> | null }> }; export type GetEventListQueryVariables = Exact<{ - sourceId: Scalars['String']['input'] -}> - -export type GetEventListQuery = { - __typename?: 'Query' - genericDataByExternalDataSource: Array<{ - __typename?: 'GenericData' - id: string - title?: string | null - description?: string | null - startTime?: any | null - endTime?: any | null - publicUrl?: string | null - json?: any | null - }> -} + sourceId: Scalars['String']['input']; +}>; -export type GetHubHomepageJsonQueryVariables = Exact<{ - hostname: Scalars['String']['input'] -}> -export type GetHubHomepageJsonQuery = { - __typename?: 'Query' - hubPageByPath?: { __typename?: 'HubPage'; puckJsonContent: any } | null -} +export type GetEventListQuery = { __typename?: 'Query', genericDataByExternalDataSource: Array<{ __typename?: 'GenericData', id: string, title?: string | null, description?: string | null, startTime?: any | null, endTime?: any | null, publicUrl?: string | null, json?: any | null }> }; -export type HubListDataSourcesQueryVariables = Exact<{ - currentOrganisationId: Scalars['ID']['input'] -}> - -export type HubListDataSourcesQuery = { - __typename?: 'Query' - myOrganisations: Array<{ - __typename?: 'Organisation' - id: string - externalDataSources: Array<{ - __typename?: 'ExternalDataSource' - id: any - name: string - dataType: DataSourceType - }> - }> -} +export type GetHubHomepageJsonQueryVariables = Exact<{ + hostname: Scalars['String']['input']; +}>; -export type AddMemberMutationVariables = Exact<{ - externalDataSourceId: Scalars['String']['input'] - email: Scalars['String']['input'] - postcode: Scalars['String']['input'] - customFields: Scalars['JSON']['input'] - tags: Array | Scalars['String']['input'] -}> -export type AddMemberMutation = { __typename?: 'Mutation'; addMember: boolean } +export type GetHubHomepageJsonQuery = { __typename?: 'Query', hubPageByPath?: { __typename?: 'HubPage', puckJsonContent: any } | null }; -export type UpdateExternalDataSourceMutationVariables = Exact<{ - input: ExternalDataSourceInput -}> - -export type UpdateExternalDataSourceMutation = { - __typename?: 'Mutation' - updateExternalDataSource: { - __typename?: 'ExternalDataSource' - id: any - name: string - geographyColumn?: string | null - geographyColumnType: GeographyTypes - geocodingConfig: any - usesValidGeocodingConfig: boolean - postcodeField?: string | null - firstNameField?: string | null - lastNameField?: string | null - emailField?: string | null - phoneField?: string | null - addressField?: string | null - canDisplayPointField?: string | null - autoImportEnabled: boolean - autoUpdateEnabled: boolean - updateMapping?: Array<{ - __typename?: 'AutoUpdateConfig' - source: string - sourcePath: string - destinationColumn: string - }> | null - } -} +export type HubListDataSourcesQueryVariables = Exact<{ + currentOrganisationId: Scalars['ID']['input']; +}>; -export type MapReportLayersSummaryFragment = { - __typename?: 'MapReport' - layers: Array<{ - __typename?: 'MapLayer' - id: string - name: string - sharingPermission?: { - __typename?: 'SharingPermission' - visibilityRecordDetails?: boolean | null - visibilityRecordCoordinates?: boolean | null - organisation: { __typename?: 'PublicOrganisation'; name: string } - } | null - source: { - __typename?: 'SharedDataSource' - id: any - name: string - isImportScheduled: boolean - importedDataCount: number - crmType: CrmType - dataType: DataSourceType - organisation: { __typename?: 'PublicOrganisation'; name: string } - } - }> -} -export type MapReportPageFragment = { - __typename?: 'MapReport' - id: any - name: string - layers: Array<{ - __typename?: 'MapLayer' - id: string - name: string - sharingPermission?: { - __typename?: 'SharingPermission' - visibilityRecordDetails?: boolean | null - visibilityRecordCoordinates?: boolean | null - organisation: { __typename?: 'PublicOrganisation'; name: string } - } | null - source: { - __typename?: 'SharedDataSource' - id: any - name: string - isImportScheduled: boolean - importedDataCount: number - crmType: CrmType - dataType: DataSourceType - organisation: { __typename?: 'PublicOrganisation'; name: string } - } - }> -} +export type HubListDataSourcesQuery = { __typename?: 'Query', myOrganisations: Array<{ __typename?: 'Organisation', id: string, externalDataSources: Array<{ __typename?: 'ExternalDataSource', id: any, name: string, dataType: DataSourceType }> }> }; -export type PublicUserQueryVariables = Exact<{ [key: string]: never }> +export type AddMemberMutationVariables = Exact<{ + externalDataSourceId: Scalars['String']['input']; + email: Scalars['String']['input']; + postcode: Scalars['String']['input']; + customFields: Scalars['JSON']['input']; + tags: Array | Scalars['String']['input']; +}>; -export type PublicUserQuery = { - __typename?: 'Query' - publicUser?: { - __typename?: 'UserType' - id: string - username: string - email: string - } | null -} -export const EventFragmentFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'EventFragment' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'GenericData' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'address' } }, - { kind: 'Field', name: { kind: 'Name', value: 'postcode' } }, - { kind: 'Field', name: { kind: 'Name', value: 'startTime' } }, - { kind: 'Field', name: { kind: 'Name', value: 'publicUrl' } }, - { kind: 'Field', name: { kind: 'Name', value: 'description' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataSet' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const ConstituencyViewFragmentFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ConstituencyViewFragment' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'Area' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'gss' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'fitBounds' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'samplePostcode' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'postcode' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'mp' }, - name: { kind: 'Name', value: 'person' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'personType' }, - value: { kind: 'StringValue', value: 'MP', block: false }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'photo' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'party' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'party', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'name' }, - name: { kind: 'Name', value: 'data' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shade' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'email' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'email', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'ppcs' }, - name: { kind: 'Name', value: 'people' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'personType' }, - value: { - kind: 'StringValue', - value: 'PPC', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'photo' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'party' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'party', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'name' }, - name: { kind: 'Name', value: 'data' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shade' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'email' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'email', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const DataSourceCardFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'DataSourceCard' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ExternalDataSource' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'dataType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'crmType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'automatedWebhooks' } }, - { kind: 'Field', name: { kind: 'Name', value: 'autoImportEnabled' } }, - { kind: 'Field', name: { kind: 'Name', value: 'autoUpdateEnabled' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapping' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'source' } }, - { kind: 'Field', name: { kind: 'Name', value: 'sourcePath' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'destinationColumn' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'jobs' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pagination' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'limit' }, - value: { kind: 'IntValue', value: '10' }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'lastEventAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'status' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermissions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const MapReportLayersSummaryFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MapReportLayersSummary' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MapReport' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'layers' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermission' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordDetails', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordCoordinates', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'isImportScheduled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const MapReportPageFragmentDoc = { - kind: 'Document', - definitions: [ - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MapReportPage' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MapReport' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MapReportLayersSummary' }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MapReportLayersSummary' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MapReport' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'layers' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermission' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordDetails', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordCoordinates', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'isImportScheduled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const DeveloperApiContextDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'DeveloperAPIContext' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'listApiTokens' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'token' } }, - { kind: 'Field', name: { kind: 'Name', value: 'signature' } }, - { kind: 'Field', name: { kind: 'Name', value: 'revoked' } }, - { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'expiresAt' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - DeveloperApiContextQuery, - DeveloperApiContextQueryVariables -> -export const CreateTokenDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'CreateToken' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'createApiToken' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'token' } }, - { kind: 'Field', name: { kind: 'Name', value: 'signature' } }, - { kind: 'Field', name: { kind: 'Name', value: 'revoked' } }, - { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'expiresAt' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const RevokeTokenDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'RevokeToken' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'signature' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'revokeApiToken' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'signature' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'signature' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'signature' } }, - { kind: 'Field', name: { kind: 'Name', value: 'revoked' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const VerifyDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'Verify' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'token' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'verifyAccount' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'token' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'token' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errors' } }, - { kind: 'Field', name: { kind: 'Name', value: 'success' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const ExampleDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'Example' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'myOrganisations' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const LoginDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'Login' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'username' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'password' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'tokenAuth' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'username' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'username' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'password' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'password' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errors' } }, - { kind: 'Field', name: { kind: 'Name', value: 'success' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'token' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'token' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'payload' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'exp' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const PerformPasswordResetDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'PerformPasswordReset' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'token' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'password1' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'password2' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'performPasswordReset' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'token' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'token' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'newPassword1' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'password1' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'newPassword2' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'password2' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errors' } }, - { kind: 'Field', name: { kind: 'Name', value: 'success' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - PerformPasswordResetMutation, - PerformPasswordResetMutationVariables -> -export const ResetPasswordDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'ResetPassword' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'email' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'requestPasswordReset' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'email' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'email' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'errors' } }, - { kind: 'Field', name: { kind: 'Name', value: 'success' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ResetPasswordMutation, - ResetPasswordMutationVariables -> -export const ListOrganisationsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ListOrganisations' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'currentOrganisationId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'myOrganisations' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'currentOrganisationId' }, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSources' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'connectionDetails' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'AirtableSource' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'baseId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'tableId' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { - kind: 'Name', - value: 'MailchimpSource', - }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'apiKey' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'listId' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoImportEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoUpdateEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'jobs' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pagination' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'limit' }, - value: { kind: 'IntValue', value: '10' }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'lastEventAt' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'status' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapping' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sourcePath' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'destinationColumn', - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermissions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'sharingPermissionsFromOtherOrgs', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ListOrganisationsQuery, - ListOrganisationsQueryVariables -> -export const GetSourceMappingDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetSourceMapping' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'ID' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'ID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoImportEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoUpdateEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'allowUpdates' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'hasWebhooks' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapping' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'destinationColumn' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sourcePath' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fieldDefinitions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'value' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'editable' }, - }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'crmType' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumn' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumnType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geocodingConfig' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'usesValidGeocodingConfig' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'postcodeField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'firstNameField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastNameField' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'emailField' } }, - { kind: 'Field', name: { kind: 'Name', value: 'phoneField' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'addressField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'canDisplayPointField' }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetSourceMappingQuery, - GetSourceMappingQueryVariables -> -export const TestDataSourceDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'TestDataSource' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'CreateExternalDataSourceInput' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'testDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'input' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: '__typename' } }, - { kind: 'Field', name: { kind: 'Name', value: 'crmType' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fieldDefinitions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'value' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'editable' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumn' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumnType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geocodingConfig' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'usesValidGeocodingConfig' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'healthcheck' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'predefinedColumnNames' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'defaultDataType' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'remoteName' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'allowUpdates' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'defaults' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'oauthCredentials' }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GoogleSheetsOauthUrlDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GoogleSheetsOauthUrl' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'redirectUrl' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'googleSheetsOauthUrl' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'redirectUrl' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'redirectUrl' }, - }, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GoogleSheetsOauthUrlQuery, - GoogleSheetsOauthUrlQueryVariables -> -export const GoogleSheetsOauthCredentialsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GoogleSheetsOauthCredentials' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'redirectSuccessUrl' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'googleSheetsOauthCredentials' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'redirectSuccessUrl' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'redirectSuccessUrl' }, - }, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GoogleSheetsOauthCredentialsQuery, - GoogleSheetsOauthCredentialsQueryVariables -> -export const CreateSourceDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'CreateSource' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'CreateExternalDataSourceInput' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'createExternalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'input' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'code' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'errors' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'message' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'result' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'allowUpdates' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - CreateSourceMutation, - CreateSourceMutationVariables -> -export const AutoUpdateCreationReviewDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'AutoUpdateCreationReview' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'ID' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'ID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumn' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumnType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geocodingConfig' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'usesValidGeocodingConfig' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'dataType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'crmType' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoImportEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoUpdateEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapping' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sourcePath' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'destinationColumn' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'jobs' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pagination' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'limit' }, - value: { kind: 'IntValue', value: '10' }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'lastEventAt' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'status' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'automatedWebhooks' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'webhookUrl' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'DataSourceCard' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'DataSourceCard' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ExternalDataSource' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'dataType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'crmType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'automatedWebhooks' } }, - { kind: 'Field', name: { kind: 'Name', value: 'autoImportEnabled' } }, - { kind: 'Field', name: { kind: 'Name', value: 'autoUpdateEnabled' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapping' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'source' } }, - { kind: 'Field', name: { kind: 'Name', value: 'sourcePath' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'destinationColumn' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'jobs' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pagination' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'limit' }, - value: { kind: 'IntValue', value: '10' }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'lastEventAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'status' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermissions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - AutoUpdateCreationReviewQuery, - AutoUpdateCreationReviewQueryVariables -> -export const ExternalDataSourceInspectPageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ExternalDataSourceInspectPage' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'ID' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'ID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'dataType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'remoteUrl' } }, - { kind: 'Field', name: { kind: 'Name', value: 'crmType' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'connectionDetails' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'AirtableSource' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'apiKey' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'baseId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'tableId' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MailchimpSource' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'apiKey' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'listId' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ActionNetworkSource' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'apiKey' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'groupSlug' }, - }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'TicketTailorSource' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'apiKey' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastImportJob' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastEventAt' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'status' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastUpdateJob' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastEventAt' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'status' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoImportEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoUpdateEnabled' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'hasWebhooks' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'allowUpdates' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'automatedWebhooks' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'webhookUrl' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'webhookHealthcheck' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumn' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumnType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geocodingConfig' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'usesValidGeocodingConfig' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'postcodeField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'firstNameField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastNameField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fullNameField' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'emailField' } }, - { kind: 'Field', name: { kind: 'Name', value: 'phoneField' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'addressField' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'titleField' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'descriptionField' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'imageField' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'startTimeField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'endTimeField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'publicUrlField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'socialUrlField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'canDisplayPointField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'isImportScheduled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importProgress' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'hasForecast' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'status' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'total' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'succeeded' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'estimatedFinishTime' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'actualFinishTime' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'inQueue' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'numberOfJobsAheadInQueue', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sendEmail' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'isUpdateScheduled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateProgress' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'hasForecast' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'status' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'total' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'succeeded' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'estimatedFinishTime' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'actualFinishTime' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'inQueue' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'numberOfJobsAheadInQueue', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sendEmail' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fieldDefinitions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'value' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'editable' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapping' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sourcePath' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'destinationColumn' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermissions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ExternalDataSourceInspectPageQuery, - ExternalDataSourceInspectPageQueryVariables -> -export const DeleteUpdateConfigDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'DeleteUpdateConfig' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'deleteExternalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'data' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' }, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - DeleteUpdateConfigMutation, - DeleteUpdateConfigMutationVariables -> -export const ManageSourceSharingDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ManageSourceSharing' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermissions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisationId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordCoordinates', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordDetails', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'deleted' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ManageSourceSharingQuery, - ManageSourceSharingQueryVariables -> -export const UpdateSourceSharingObjectDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'UpdateSourceSharingObject' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'data' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'SharingPermissionCUDInput' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'updateSharingPermission' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'data' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'data' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisationId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'visibilityRecordCoordinates' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'visibilityRecordDetails' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'deleted' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - UpdateSourceSharingObjectMutation, - UpdateSourceSharingObjectMutationVariables -> -export const DeleteSourceSharingObjectDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'DeleteSourceSharingObject' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'pk' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'deleteSharingPermission' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'data' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'pk' }, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - DeleteSourceSharingObjectMutation, - DeleteSourceSharingObjectMutationVariables -> -export const ImportDataDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'ImportData' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'importAll' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'externalDataSourceId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importProgress' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'status' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'hasForecast' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'total' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'succeeded' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'failed' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'estimatedFinishTime', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'inQueue' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const ExternalDataSourceNameDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ExternalDataSourceName' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'crmType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'dataType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'remoteUrl' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ExternalDataSourceNameQuery, - ExternalDataSourceNameQueryVariables -> -export const ShareDataSourcesDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'ShareDataSources' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'fromOrgId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'permissions' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'SharingPermissionInput' }, - }, - }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'updateSharingPermissions' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'fromOrgId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'fromOrgId' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'permissions' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'permissions' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermissions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisationId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordCoordinates', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordDetails', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'deleted' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ShareDataSourcesMutation, - ShareDataSourcesMutationVariables -> -export const YourSourcesForSharingDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'YourSourcesForSharing' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'myOrganisations' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSources' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fieldDefinitions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'editable' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisationId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermissions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisationId' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'externalDataSourceId', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordCoordinates', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordDetails', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'deleted' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - YourSourcesForSharingQuery, - YourSourcesForSharingQueryVariables -> -export const ShareWithOrgPageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ShareWithOrgPage' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orgSlug' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'allOrganisations' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'slug' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orgSlug' }, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ShareWithOrgPageQuery, - ShareWithOrgPageQueryVariables -> -export const CreateMapReportDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'CreateMapReport' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'data' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MapReportInput' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'createMapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'data' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'data' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MapReport' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - { - kind: 'InlineFragment', - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'OperationInfo' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'messages' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'message' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - CreateMapReportMutation, - CreateMapReportMutationVariables -> -export const ListReportsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ListReports' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'currentOrganisationId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'reports' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'organisation' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'currentOrganisationId', - }, - }, - }, - ], - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'lastUpdate' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const ListExternalDataSourcesDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ListExternalDataSources' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'myOrganisations' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSources' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ListExternalDataSourcesQuery, - ListExternalDataSourcesQueryVariables -> -export const GetPublicMapReportDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetPublicMapReport' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orgSlug' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportSlug' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'publicMapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orgSlug' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orgSlug' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'reportSlug' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportSlug' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetPublicMapReportQuery, - GetPublicMapReportQueryVariables -> -export const GetPublicMapReportForLayoutDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetPublicMapReportForLayout' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'orgSlug' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportSlug' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'publicMapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'orgSlug' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'orgSlug' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'reportSlug' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportSlug' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'displayOptions' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'layers' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetPublicMapReportForLayoutQuery, - GetPublicMapReportForLayoutQueryVariables -> -export const GetEditableHubsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetEditableHubs' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubHomepages' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetEditableHubsQuery, - GetEditableHubsQueryVariables -> -export const VerifyPageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'VerifyPage' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'pageId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubHomepages' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'hubPage' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'pageId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'hub' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const HostAnalyticsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'HostAnalytics' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubByHostname' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'hostname' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'googleAnalyticsTagId' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'primaryColour' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'secondaryColour' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'customCss' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetHubMapDataDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetHubMapData' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubByHostname' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'hostname' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'layers' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'visible' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'iconImage' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'mapboxPaint' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'mapboxLayout' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'navLinks' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'link' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetLocalDataDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetLocalData' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'postcode' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'postcodeSearch' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'postcode' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'postcode' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'postcode' } }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'constituency' }, - name: { kind: 'Name', value: 'constituency2024' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'ConstituencyViewFragment', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'genericDataForHub' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'hostname' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'EventFragment' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ConstituencyViewFragment' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'Area' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'gss' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'fitBounds' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'samplePostcode' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'postcode' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'mp' }, - name: { kind: 'Name', value: 'person' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'personType' }, - value: { kind: 'StringValue', value: 'MP', block: false }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'photo' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'party' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'party', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'name' }, - name: { kind: 'Name', value: 'data' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shade' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'email' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'email', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'ppcs' }, - name: { kind: 'Name', value: 'people' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'personType' }, - value: { - kind: 'StringValue', - value: 'PPC', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'photo' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'party' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'party', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'name' }, - name: { kind: 'Name', value: 'data' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shade' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'email' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'email', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'EventFragment' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'GenericData' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'address' } }, - { kind: 'Field', name: { kind: 'Name', value: 'postcode' } }, - { kind: 'Field', name: { kind: 'Name', value: 'startTime' } }, - { kind: 'Field', name: { kind: 'Name', value: 'publicUrl' } }, - { kind: 'Field', name: { kind: 'Name', value: 'description' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataSet' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetEventDataDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetEventData' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'eventId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataGeojsonPoint' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'genericDataId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'eventId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'properties' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'EventFragment' }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'constituency' }, - name: { kind: 'Name', value: 'area' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'areaType' }, - value: { - kind: 'StringValue', - value: 'WMC23', - block: false, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'ConstituencyViewFragment', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'genericDataForHub', - }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'hostname' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { - kind: 'Name', - value: 'EventFragment', - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'EventFragment' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'GenericData' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'address' } }, - { kind: 'Field', name: { kind: 'Name', value: 'postcode' } }, - { kind: 'Field', name: { kind: 'Name', value: 'startTime' } }, - { kind: 'Field', name: { kind: 'Name', value: 'publicUrl' } }, - { kind: 'Field', name: { kind: 'Name', value: 'description' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataSet' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'ConstituencyViewFragment' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'Area' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'gss' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'fitBounds' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'samplePostcode' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'postcode' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'mp' }, - name: { kind: 'Name', value: 'person' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'personType' }, - value: { kind: 'StringValue', value: 'MP', block: false }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'photo' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'party' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'party', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'name' }, - name: { kind: 'Name', value: 'data' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shade' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'email' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'email', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'ppcs' }, - name: { kind: 'Name', value: 'people' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'personType' }, - value: { - kind: 'StringValue', - value: 'PPC', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'photo' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'url' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'party' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'party', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'name' }, - name: { kind: 'Name', value: 'data' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'shade' } }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'email' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType_Name' }, - value: { - kind: 'StringValue', - value: 'email', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'data' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetPageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetPage' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'path' } }, - type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubPageByPath' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'hostname' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'path' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'path' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'path' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'puckJsonContent' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'seoTitle' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'searchDescription' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'hub' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'faviconUrl' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'seoTitle' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'seoImageUrl' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'searchDescription' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'primaryColour' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'secondaryColour' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'customCss' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'navLinks' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'link' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'label' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetMemberListDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetMemberList' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'currentOrganisationId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'myOrganisations' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'currentOrganisationId' }, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSources' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'sharingPermissionsFromOtherOrgs', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'importedDataCount', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const ConstituencyStatsOverviewDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ConstituencyStatsOverview' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'AnalyticalAreaType' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'layerIds' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'mapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - alias: { - kind: 'Name', - value: 'importedDataCountByConstituency', - }, - name: { kind: 'Name', value: 'importedDataCountByArea' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'analyticalAreaType' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'layerIds' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'layerIds' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'gss' } }, - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'gssArea' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fitBounds' }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'mp' }, - name: { kind: 'Name', value: 'person' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'personType', - }, - value: { - kind: 'StringValue', - value: 'MP', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'photo' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'url' }, - }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'party' }, - name: { - kind: 'Name', - value: 'personDatum', - }, - arguments: [ - { - kind: 'Argument', - name: { - kind: 'Name', - value: 'filters', - }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'dataType_Name', - }, - value: { - kind: 'StringValue', - value: 'party', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { - kind: 'Name', - value: 'name', - }, - name: { kind: 'Name', value: 'data' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastElection' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'stats' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'date' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'majority', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'electorate', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'firstPartyResult', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'party', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'shade', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'votes', - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'secondPartyResult', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'party', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'shade', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'votes', - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ConstituencyStatsOverviewQuery, - ConstituencyStatsOverviewQueryVariables -> -export const GetConstituencyDataDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetConstituencyData' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'AnalyticalAreaType' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'gss' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'constituency' }, - name: { kind: 'Name', value: 'area' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'gss' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'gss' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'analyticalAreaType' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'mp' }, - name: { kind: 'Name', value: 'person' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'personType' }, - value: { - kind: 'StringValue', - value: 'MP', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'photo' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'url' }, - }, - ], - }, - }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'party' }, - name: { kind: 'Name', value: 'personDatum' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { - kind: 'Name', - value: 'dataType_Name', - }, - value: { - kind: 'StringValue', - value: 'party', - block: false, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - alias: { kind: 'Name', value: 'name' }, - name: { kind: 'Name', value: 'data' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shade' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastElection' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'stats' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'date' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'electorate' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'validVotes' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'majority' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'firstPartyResult' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'party' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shade' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'votes' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'secondPartyResult', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'party' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'shade' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'votes' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'mapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - alias: { - kind: 'Name', - value: 'importedDataCountForConstituency', - }, - name: { kind: 'Name', value: 'importedDataCountForArea' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'analyticalAreaType' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'gss' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'gss' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'gss' } }, - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'layers' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - alias: { - kind: 'Name', - value: 'importedDataCountForConstituency', - }, - name: { - kind: 'Name', - value: 'importedDataCountForArea', - }, - arguments: [ - { - kind: 'Argument', - name: { - kind: 'Name', - value: 'analyticalAreaType', - }, - value: { - kind: 'Variable', - name: { - kind: 'Name', - value: 'analyticalAreaType', - }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'gss' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'gss' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'gss' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'count' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetConstituencyDataQuery, - GetConstituencyDataQueryVariables -> -export const MapReportWardStatsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'MapReportWardStats' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'mapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataCountByWard' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'gss' } }, - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'gssArea' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'point' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geometry' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'coordinates', - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - MapReportWardStatsQuery, - MapReportWardStatsQueryVariables -> -export const MapReportLayerGeoJsonPointDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'MapReportLayerGeoJSONPoint' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'genericDataId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataGeojsonPoint' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'genericDataId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'genericDataId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geometry' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'type' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'coordinates' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'properties' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastUpdate' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'phone' } }, - { kind: 'Field', name: { kind: 'Name', value: 'email' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'postcodeData' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'postcode' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'address' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'json' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'remoteUrl' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'dataSet' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'externalDataSource', - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - MapReportLayerGeoJsonPointQuery, - MapReportLayerGeoJsonPointQueryVariables -> -export const MapReportLayerAnalyticsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'MapReportLayerAnalytics' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'mapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'layers' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - MapReportLayerAnalyticsQuery, - MapReportLayerAnalyticsQueryVariables -> -export const MapReportCountByAreaDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'MapReportCountByArea' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'AnalyticalAreaType' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'layerIds' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'mapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'importedDataCountByArea' }, - name: { kind: 'Name', value: 'importedDataCountByArea' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'analyticalAreaType' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'layerIds' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'layerIds' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'gss' } }, - { kind: 'Field', name: { kind: 'Name', value: 'count' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'gssArea' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'point' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geometry' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'coordinates', - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - MapReportCountByAreaQuery, - MapReportCountByAreaQueryVariables -> -export const MapReportStatsByAreaDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'MapReportStatsByArea' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'AnalyticalAreaType' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'layerIds' }, - }, - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'mapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'reportID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataByArea' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'analyticalAreaType' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'analyticalAreaType' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'layerIds' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'layerIds' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'gss' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedData' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'gssArea' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'point' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geometry' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'type' }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'coordinates', - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - MapReportStatsByAreaQuery, - MapReportStatsByAreaQueryVariables -> -export const GetMapReportDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetMapReport' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'mapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'displayOptions' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MapReportPage' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MapReportLayersSummary' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MapReport' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'layers' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermission' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordDetails', - }, - }, - { - kind: 'Field', - name: { - kind: 'Name', - value: 'visibilityRecordCoordinates', - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'isImportScheduled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'importedDataCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'MapReportPage' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MapReport' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'MapReportLayersSummary' }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const UpdateMapReportDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'UpdateMapReport' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'MapReportInput' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'data' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'displayOptions' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'layers' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - UpdateMapReportMutation, - UpdateMapReportMutationVariables -> -export const DeleteMapReportDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'DeleteMapReport' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'IDObject' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'deleteMapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'data' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - DeleteMapReportMutation, - DeleteMapReportMutationVariables -> -export const GetMapReportNameDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetMapReportName' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'mapReport' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'id' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetMapReportNameQuery, - GetMapReportNameQueryVariables -> -export const WebhookRefreshDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'WebhookRefresh' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'ID' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'refreshWebhooks' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'externalDataSourceId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'ID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'hasWebhooks' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'automatedWebhooks' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'webhookHealthcheck' }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - WebhookRefreshMutation, - WebhookRefreshMutationVariables -> -export const ExternalDataSourceExternalDataSourceCardDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'ExternalDataSourceExternalDataSourceCard' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'ID' } }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'ID' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'FragmentSpread', - name: { kind: 'Name', value: 'DataSourceCard' }, - }, - ], - }, - }, - ], - }, - }, - { - kind: 'FragmentDefinition', - name: { kind: 'Name', value: 'DataSourceCard' }, - typeCondition: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ExternalDataSource' }, - }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'dataType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'crmType' } }, - { kind: 'Field', name: { kind: 'Name', value: 'automatedWebhooks' } }, - { kind: 'Field', name: { kind: 'Name', value: 'autoImportEnabled' } }, - { kind: 'Field', name: { kind: 'Name', value: 'autoUpdateEnabled' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapping' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'source' } }, - { kind: 'Field', name: { kind: 'Name', value: 'sourcePath' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'destinationColumn' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'jobs' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pagination' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'limit' }, - value: { kind: 'IntValue', value: '10' }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'lastEventAt' } }, - { kind: 'Field', name: { kind: 'Name', value: 'status' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sharingPermissions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - ExternalDataSourceExternalDataSourceCardQuery, - ExternalDataSourceExternalDataSourceCardQueryVariables -> -export const EnableWebhookDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'EnableWebhook' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'ID' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'webhookType' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'WebhookType' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'enableWebhook' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'externalDataSourceId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'ID' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'webhookType' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'webhookType' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoImportEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoUpdateEnabled' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'hasWebhooks' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'automatedWebhooks' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'webhookHealthcheck' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - EnableWebhookMutation, - EnableWebhookMutationVariables -> -export const DisableWebhookDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'DisableWebhook' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'ID' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'webhookType' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'WebhookType' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'disableWebhook' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'externalDataSourceId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'ID' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'webhookType' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'webhookType' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoImportEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoUpdateEnabled' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'hasWebhooks' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'automatedWebhooks' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'webhookHealthcheck' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - DisableWebhookMutation, - DisableWebhookMutationVariables -> -export const TriggerFullUpdateDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'TriggerFullUpdate' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'triggerUpdate' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'externalDataSourceId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'jobs' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pagination' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'limit' }, - value: { kind: 'IntValue', value: '10' }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'status' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'taskName' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'args' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastEventAt' }, - }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - TriggerFullUpdateMutation, - TriggerFullUpdateMutationVariables -> -export const GetOrganisationsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetOrganisations' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'myOrganisations' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetOrganisationsQuery, - GetOrganisationsQueryVariables -> -export const EnrichmentLayersDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'EnrichmentLayers' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'organisationPk' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'mappingSources' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'organisationPk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'organisationPk' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'author' } }, - { kind: 'Field', name: { kind: 'Name', value: 'description' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'descriptionUrl' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sourcePaths' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'value' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'description' }, - }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSource' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'crmType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'organisation' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'name' }, - }, - ], - }, - }, - ], - }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'builtin' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - EnrichmentLayersQuery, - EnrichmentLayersQueryVariables -> -export const MyOrgsDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'MyOrgs' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'myOrganisations' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const UserDataDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'UserData' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'me' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'email' } }, - { kind: 'Field', name: { kind: 'Name', value: 'username' } }, - ], - }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'publicUser' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'firstName' } }, - { kind: 'Field', name: { kind: 'Name', value: 'lastName' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const PublishPageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'PublishPage' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'pageId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'HubPageInput' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'updatePage' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pageId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'pageId' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'input' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'puckJsonContent' }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const CreateChildPageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'CreateChildPage' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'parentId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'title' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'createChildPage' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'parentId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'parentId' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'title' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'title' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - CreateChildPageMutation, - CreateChildPageMutationVariables -> -export const DeletePageDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'DeletePage' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'pageId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'deletePage' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pageId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'pageId' }, - }, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetHubPagesDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetHubPages' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'hubId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubHomepage' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hubId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'hostname' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'descendants' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'inclusive' }, - value: { kind: 'BooleanValue', value: true }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'path' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'modelName' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'ancestors' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'inclusive' }, - value: { kind: 'BooleanValue', value: true }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'id' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'title' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'path' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'slug' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'modelName' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetPageEditorDataDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetPageEditorData' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'pageId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubPage' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'pk' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'pageId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'path' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'puckJsonContent' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'modelName' } }, - { kind: 'Field', name: { kind: 'Name', value: 'liveUrl' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'ancestors' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'inclusive' }, - value: { kind: 'BooleanValue', value: true }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'path' } }, - { kind: 'Field', name: { kind: 'Name', value: 'slug' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'modelName' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetPageEditorDataQuery, - GetPageEditorDataQueryVariables -> -export const GetHubContextDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetHubContext' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubByHostname' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'hostname' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'customCss' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'primaryColour' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'secondaryColour' }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetEventSourcesDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetEventSources' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSources' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'dataType' }, - value: { kind: 'EnumValue', value: 'EVENT' }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - alias: { kind: 'Name', value: 'eventCount' }, - name: { kind: 'Name', value: 'importedDataCount' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'fieldDefinitions' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'label' } }, - { kind: 'Field', name: { kind: 'Name', value: 'value' } }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetEventSourcesQuery, - GetEventSourcesQueryVariables -> -export const GetEventListDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetEventList' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'sourceId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'genericDataByExternalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'externalDataSourceId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'sourceId' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'title' } }, - { kind: 'Field', name: { kind: 'Name', value: 'description' } }, - { kind: 'Field', name: { kind: 'Name', value: 'startTime' } }, - { kind: 'Field', name: { kind: 'Name', value: 'endTime' } }, - { kind: 'Field', name: { kind: 'Name', value: 'publicUrl' } }, - { kind: 'Field', name: { kind: 'Name', value: 'json' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const GetHubHomepageJsonDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'GetHubHomepageJson' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'hubPageByPath' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'hostname' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'hostname' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'puckJsonContent' }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - GetHubHomepageJsonQuery, - GetHubHomepageJsonQueryVariables -> -export const HubListDataSourcesDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'HubListDataSources' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'currentOrganisationId' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'myOrganisations' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'filters' }, - value: { - kind: 'ObjectValue', - fields: [ - { - kind: 'ObjectField', - name: { kind: 'Name', value: 'id' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'currentOrganisationId' }, - }, - }, - ], - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'externalDataSources' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'dataType' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - HubListDataSourcesQuery, - HubListDataSourcesQueryVariables -> -export const AddMemberDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'AddMember' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'email' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'postcode' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'customFields' }, - }, - type: { - kind: 'NonNullType', - type: { kind: 'NamedType', name: { kind: 'Name', value: 'JSON' } }, - }, - }, - { - kind: 'VariableDefinition', - variable: { kind: 'Variable', name: { kind: 'Name', value: 'tags' } }, - type: { - kind: 'NonNullType', - type: { - kind: 'ListType', - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'String' }, - }, - }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'addMember' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'externalDataSourceId' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'externalDataSourceId' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'email' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'email' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'postcode' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'postcode' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'customFields' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'customFields' }, - }, - }, - { - kind: 'Argument', - name: { kind: 'Name', value: 'tags' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'tags' }, - }, - }, - ], - }, - ], - }, - }, - ], -} as unknown as DocumentNode -export const UpdateExternalDataSourceDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'mutation', - name: { kind: 'Name', value: 'UpdateExternalDataSource' }, - variableDefinitions: [ - { - kind: 'VariableDefinition', - variable: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - type: { - kind: 'NonNullType', - type: { - kind: 'NamedType', - name: { kind: 'Name', value: 'ExternalDataSourceInput' }, - }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'updateExternalDataSource' }, - arguments: [ - { - kind: 'Argument', - name: { kind: 'Name', value: 'input' }, - value: { - kind: 'Variable', - name: { kind: 'Name', value: 'input' }, - }, - }, - ], - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'name' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumn' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geographyColumnType' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'geocodingConfig' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'usesValidGeocodingConfig' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'postcodeField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'firstNameField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'lastNameField' }, - }, - { kind: 'Field', name: { kind: 'Name', value: 'emailField' } }, - { kind: 'Field', name: { kind: 'Name', value: 'phoneField' } }, - { - kind: 'Field', - name: { kind: 'Name', value: 'addressField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'canDisplayPointField' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoImportEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'autoUpdateEnabled' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'updateMapping' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'source' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'sourcePath' }, - }, - { - kind: 'Field', - name: { kind: 'Name', value: 'destinationColumn' }, - }, - ], - }, - }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode< - UpdateExternalDataSourceMutation, - UpdateExternalDataSourceMutationVariables -> -export const PublicUserDocument = { - kind: 'Document', - definitions: [ - { - kind: 'OperationDefinition', - operation: 'query', - name: { kind: 'Name', value: 'PublicUser' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { - kind: 'Field', - name: { kind: 'Name', value: 'publicUser' }, - selectionSet: { - kind: 'SelectionSet', - selections: [ - { kind: 'Field', name: { kind: 'Name', value: 'id' } }, - { kind: 'Field', name: { kind: 'Name', value: 'username' } }, - { kind: 'Field', name: { kind: 'Name', value: 'email' } }, - ], - }, - }, - ], - }, - }, - ], -} as unknown as DocumentNode - -export interface PossibleTypesResultData { - possibleTypes: { - [key: string]: string[] - } -} -const result: PossibleTypesResultData = { - possibleTypes: { - AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource: - [ - 'ActionNetworkSource', - 'AirtableSource', - 'EditableGoogleSheetsSource', - 'MailchimpSource', - 'TicketTailorSource', - ], - Analytics: [ - 'ActionNetworkSource', - 'AirtableSource', - 'EditableGoogleSheetsSource', - 'ExternalDataSource', - 'MailchimpSource', - 'MapReport', - 'SharedDataSource', - 'TicketTailorSource', +export type AddMemberMutation = { __typename?: 'Mutation', addMember: boolean }; + +export type UpdateExternalDataSourceMutationVariables = Exact<{ + input: ExternalDataSourceInput; +}>; + + +export type UpdateExternalDataSourceMutation = { __typename?: 'Mutation', updateExternalDataSource: { __typename?: 'ExternalDataSource', id: any, name: string, geographyColumn?: string | null, geographyColumnType: GeographyTypes, geocodingConfig: any, usesValidGeocodingConfig: boolean, postcodeField?: string | null, firstNameField?: string | null, lastNameField?: string | null, emailField?: string | null, phoneField?: string | null, addressField?: string | null, canDisplayPointField?: string | null, autoImportEnabled: boolean, autoUpdateEnabled: boolean, updateMapping?: Array<{ __typename?: 'AutoUpdateConfig', source: string, sourcePath: string, destinationColumn: string }> | null } }; + +export type MapReportLayersSummaryFragment = { __typename?: 'MapReport', layers: Array<{ __typename?: 'MapLayer', id: string, name: string, sharingPermission?: { __typename?: 'SharingPermission', visibilityRecordDetails?: boolean | null, visibilityRecordCoordinates?: boolean | null, organisation: { __typename?: 'PublicOrganisation', name: string } } | null, source: { __typename?: 'SharedDataSource', id: any, name: string, isImportScheduled: boolean, importedDataCount: number, crmType: CrmType, dataType: DataSourceType, organisation: { __typename?: 'PublicOrganisation', name: string } } }> }; + +export type MapReportPageFragment = { __typename?: 'MapReport', id: any, name: string, layers: Array<{ __typename?: 'MapLayer', id: string, name: string, sharingPermission?: { __typename?: 'SharingPermission', visibilityRecordDetails?: boolean | null, visibilityRecordCoordinates?: boolean | null, organisation: { __typename?: 'PublicOrganisation', name: string } } | null, source: { __typename?: 'SharedDataSource', id: any, name: string, isImportScheduled: boolean, importedDataCount: number, crmType: CrmType, dataType: DataSourceType, organisation: { __typename?: 'PublicOrganisation', name: string } } }> }; + +export type PublicUserQueryVariables = Exact<{ [key: string]: never; }>; + + +export type PublicUserQuery = { __typename?: 'Query', publicUser?: { __typename?: 'UserType', id: string, username: string, email: string } | null }; + +export const EventFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GenericData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"publicUrl"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSet"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataType"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const ConstituencyViewFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConstituencyViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Area"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fitBounds"}},{"kind":"Field","name":{"kind":"Name","value":"samplePostcode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"postcode"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"mp"},"name":{"kind":"Name","value":"person"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"personType"},"value":{"kind":"StringValue","value":"MP","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"party"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"party","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"name"},"name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"email"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"email","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"ppcs"},"name":{"kind":"Name","value":"people"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"personType"},"value":{"kind":"StringValue","value":"PPC","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"party"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"party","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"name"},"name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"email"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"email","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}}]}}]}}]}}]} as unknown as DocumentNode; +export const DataSourceCardFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DataSourceCard"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ExternalDataSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"automatedWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"updateMapping"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePath"}},{"kind":"Field","name":{"kind":"Name","value":"destinationColumn"}}]}},{"kind":"Field","name":{"kind":"Name","value":"jobs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"lastEventAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; +export const MapReportLayersSummaryFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MapReportLayersSummary"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MapReport"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordDetails"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordCoordinates"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"source"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isImportScheduled"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const MapReportPageFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MapReportPage"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MapReport"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"MapReportLayersSummary"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MapReportLayersSummary"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MapReport"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordDetails"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordCoordinates"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"source"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isImportScheduled"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const DeveloperApiContextDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DeveloperAPIContext"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"listApiTokens"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"signature"}},{"kind":"Field","name":{"kind":"Name","value":"revoked"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]} as unknown as DocumentNode; +export const CreateTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createApiToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"signature"}},{"kind":"Field","name":{"kind":"Name","value":"revoked"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]}}]} as unknown as DocumentNode; +export const RevokeTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RevokeToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"signature"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"revokeApiToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"signature"},"value":{"kind":"Variable","name":{"kind":"Name","value":"signature"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"signature"}},{"kind":"Field","name":{"kind":"Name","value":"revoked"}}]}}]}}]} as unknown as DocumentNode; +export const VerifyDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Verify"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"verifyAccount"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"}},{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode; +export const ExampleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Example"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myOrganisations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const LoginDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"Login"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"username"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"password"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tokenAuth"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"username"},"value":{"kind":"Variable","name":{"kind":"Name","value":"username"}}},{"kind":"Argument","name":{"kind":"Name","value":"password"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"}},{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"token"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"exp"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const PerformPasswordResetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"PerformPasswordReset"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"password1"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"password2"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"performPasswordReset"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}},{"kind":"Argument","name":{"kind":"Name","value":"newPassword1"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password1"}}},{"kind":"Argument","name":{"kind":"Name","value":"newPassword2"},"value":{"kind":"Variable","name":{"kind":"Name","value":"password2"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"}},{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode; +export const ResetPasswordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetPassword"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"requestPasswordReset"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"}},{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode; +export const ListOrganisationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListOrganisations"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"currentOrganisationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myOrganisations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentOrganisationId"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"connectionDetails"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AirtableSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"baseId"}},{"kind":"Field","name":{"kind":"Name","value":"tableId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MailchimpSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"apiKey"}},{"kind":"Field","name":{"kind":"Name","value":"listId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"jobs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"lastEventAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updateMapping"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePath"}},{"kind":"Field","name":{"kind":"Name","value":"destinationColumn"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissionsFromOtherOrgs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetSourceMappingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetSourceMapping"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"allowUpdates"}},{"kind":"Field","name":{"kind":"Name","value":"hasWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"updateMapping"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"destinationColumn"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePath"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldDefinitions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"editable"}}]}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumn"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumnType"}},{"kind":"Field","name":{"kind":"Name","value":"geocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"usesValidGeocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"postcodeField"}},{"kind":"Field","name":{"kind":"Name","value":"firstNameField"}},{"kind":"Field","name":{"kind":"Name","value":"lastNameField"}},{"kind":"Field","name":{"kind":"Name","value":"emailField"}},{"kind":"Field","name":{"kind":"Name","value":"phoneField"}},{"kind":"Field","name":{"kind":"Name","value":"addressField"}},{"kind":"Field","name":{"kind":"Name","value":"canDisplayPointField"}}]}}]}}]} as unknown as DocumentNode; +export const TestDataSourceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"TestDataSource"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateExternalDataSourceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"testDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDefinitions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"editable"}}]}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumn"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumnType"}},{"kind":"Field","name":{"kind":"Name","value":"geocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"usesValidGeocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"healthcheck"}},{"kind":"Field","name":{"kind":"Name","value":"predefinedColumnNames"}},{"kind":"Field","name":{"kind":"Name","value":"defaultDataType"}},{"kind":"Field","name":{"kind":"Name","value":"remoteName"}},{"kind":"Field","name":{"kind":"Name","value":"allowUpdates"}},{"kind":"Field","name":{"kind":"Name","value":"defaults"}},{"kind":"Field","name":{"kind":"Name","value":"oauthCredentials"}}]}}]}}]} as unknown as DocumentNode; +export const GoogleSheetsOauthUrlDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GoogleSheetsOauthUrl"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"redirectUrl"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"googleSheetsOauthUrl"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"redirectUrl"},"value":{"kind":"Variable","name":{"kind":"Name","value":"redirectUrl"}}}]}]}}]} as unknown as DocumentNode; +export const GoogleSheetsOauthCredentialsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GoogleSheetsOauthCredentials"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"redirectSuccessUrl"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"googleSheetsOauthCredentials"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"redirectSuccessUrl"},"value":{"kind":"Variable","name":{"kind":"Name","value":"redirectSuccessUrl"}}}]}]}}]} as unknown as DocumentNode; +export const CreateSourceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateSource"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateExternalDataSourceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createExternalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"errors"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"Field","name":{"kind":"Name","value":"result"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"allowUpdates"}}]}}]}}]}}]} as unknown as DocumentNode; +export const AutoUpdateCreationReviewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AutoUpdateCreationReview"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumn"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumnType"}},{"kind":"Field","name":{"kind":"Name","value":"geocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"usesValidGeocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"updateMapping"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePath"}},{"kind":"Field","name":{"kind":"Name","value":"destinationColumn"}}]}},{"kind":"Field","name":{"kind":"Name","value":"jobs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"lastEventAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"automatedWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"webhookUrl"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"DataSourceCard"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DataSourceCard"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ExternalDataSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"automatedWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"updateMapping"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePath"}},{"kind":"Field","name":{"kind":"Name","value":"destinationColumn"}}]}},{"kind":"Field","name":{"kind":"Name","value":"jobs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"lastEventAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; +export const ExternalDataSourceInspectPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ExternalDataSourceInspectPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"remoteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"connectionDetails"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AirtableSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"apiKey"}},{"kind":"Field","name":{"kind":"Name","value":"baseId"}},{"kind":"Field","name":{"kind":"Name","value":"tableId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MailchimpSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"apiKey"}},{"kind":"Field","name":{"kind":"Name","value":"listId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ActionNetworkSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"apiKey"}},{"kind":"Field","name":{"kind":"Name","value":"groupSlug"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TicketTailorSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"apiKey"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"lastImportJob"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdateJob"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"hasWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"allowUpdates"}},{"kind":"Field","name":{"kind":"Name","value":"automatedWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"webhookUrl"}},{"kind":"Field","name":{"kind":"Name","value":"webhookHealthcheck"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumn"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumnType"}},{"kind":"Field","name":{"kind":"Name","value":"geocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"usesValidGeocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"postcodeField"}},{"kind":"Field","name":{"kind":"Name","value":"firstNameField"}},{"kind":"Field","name":{"kind":"Name","value":"lastNameField"}},{"kind":"Field","name":{"kind":"Name","value":"fullNameField"}},{"kind":"Field","name":{"kind":"Name","value":"emailField"}},{"kind":"Field","name":{"kind":"Name","value":"phoneField"}},{"kind":"Field","name":{"kind":"Name","value":"addressField"}},{"kind":"Field","name":{"kind":"Name","value":"titleField"}},{"kind":"Field","name":{"kind":"Name","value":"descriptionField"}},{"kind":"Field","name":{"kind":"Name","value":"imageField"}},{"kind":"Field","name":{"kind":"Name","value":"startTimeField"}},{"kind":"Field","name":{"kind":"Name","value":"endTimeField"}},{"kind":"Field","name":{"kind":"Name","value":"publicUrlField"}},{"kind":"Field","name":{"kind":"Name","value":"socialUrlField"}},{"kind":"Field","name":{"kind":"Name","value":"canDisplayPointField"}},{"kind":"Field","name":{"kind":"Name","value":"isImportScheduled"}},{"kind":"Field","name":{"kind":"Name","value":"importProgress"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasForecast"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"total"}},{"kind":"Field","name":{"kind":"Name","value":"succeeded"}},{"kind":"Field","name":{"kind":"Name","value":"estimatedFinishTime"}},{"kind":"Field","name":{"kind":"Name","value":"actualFinishTime"}},{"kind":"Field","name":{"kind":"Name","value":"inQueue"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfJobsAheadInQueue"}},{"kind":"Field","name":{"kind":"Name","value":"sendEmail"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isUpdateScheduled"}},{"kind":"Field","name":{"kind":"Name","value":"updateProgress"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasForecast"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"total"}},{"kind":"Field","name":{"kind":"Name","value":"succeeded"}},{"kind":"Field","name":{"kind":"Name","value":"estimatedFinishTime"}},{"kind":"Field","name":{"kind":"Name","value":"actualFinishTime"}},{"kind":"Field","name":{"kind":"Name","value":"inQueue"}},{"kind":"Field","name":{"kind":"Name","value":"numberOfJobsAheadInQueue"}},{"kind":"Field","name":{"kind":"Name","value":"sendEmail"}}]}},{"kind":"Field","name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataGeocodingRate"}},{"kind":"Field","alias":{"kind":"Name","value":"regionCount"},"name":{"kind":"Name","value":"importedDataCountOfAreas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"EnumValue","value":"european_electoral_region"}}]},{"kind":"Field","alias":{"kind":"Name","value":"constituencyCount"},"name":{"kind":"Name","value":"importedDataCountOfAreas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"EnumValue","value":"parliamentary_constituency"}}]},{"kind":"Field","alias":{"kind":"Name","value":"ladCount"},"name":{"kind":"Name","value":"importedDataCountOfAreas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"EnumValue","value":"admin_district"}}]},{"kind":"Field","alias":{"kind":"Name","value":"wardCount"},"name":{"kind":"Name","value":"importedDataCountOfAreas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"EnumValue","value":"admin_ward"}}]},{"kind":"Field","name":{"kind":"Name","value":"fieldDefinitions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"editable"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updateMapping"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePath"}},{"kind":"Field","name":{"kind":"Name","value":"destinationColumn"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; +export const DeleteUpdateConfigDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUpdateConfig"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteExternalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const ManageSourceSharingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ManageSourceSharing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"externalDataSourceId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"externalDataSourceId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sharingPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisationId"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordCoordinates"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordDetails"}},{"kind":"Field","name":{"kind":"Name","value":"deleted"}}]}}]}}]}}]} as unknown as DocumentNode; +export const UpdateSourceSharingObjectDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateSourceSharingObject"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SharingPermissionCUDInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateSharingPermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisationId"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordCoordinates"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordDetails"}},{"kind":"Field","name":{"kind":"Name","value":"deleted"}}]}}]}}]} as unknown as DocumentNode; +export const DeleteSourceSharingObjectDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteSourceSharingObject"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pk"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteSharingPermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pk"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const ImportDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ImportData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"importAll"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"externalDataSourceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"importProgress"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"hasForecast"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"total"}},{"kind":"Field","name":{"kind":"Name","value":"succeeded"}},{"kind":"Field","name":{"kind":"Name","value":"failed"}},{"kind":"Field","name":{"kind":"Name","value":"estimatedFinishTime"}},{"kind":"Field","name":{"kind":"Name","value":"inQueue"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const ExternalDataSourceNameDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ExternalDataSourceName"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"externalDataSourceId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"externalDataSourceId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"remoteUrl"}}]}}]}}]} as unknown as DocumentNode; +export const ShareDataSourcesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ShareDataSources"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromOrgId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"permissions"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SharingPermissionInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateSharingPermissions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fromOrgId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromOrgId"}}},{"kind":"Argument","name":{"kind":"Name","value":"permissions"},"value":{"kind":"Variable","name":{"kind":"Name","value":"permissions"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisationId"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordCoordinates"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordDetails"}},{"kind":"Field","name":{"kind":"Name","value":"deleted"}}]}}]}}]}}]} as unknown as DocumentNode; +export const YourSourcesForSharingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"YourSourcesForSharing"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myOrganisations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDefinitions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"editable"}}]}},{"kind":"Field","name":{"kind":"Name","value":"organisationId"}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisationId"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordCoordinates"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordDetails"}},{"kind":"Field","name":{"kind":"Name","value":"deleted"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const ShareWithOrgPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ShareWithOrgPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orgSlug"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allOrganisations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"slug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orgSlug"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const CreateMapReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateMapReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MapReportInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createMapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MapReport"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"OperationInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const ListReportsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListReports"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"currentOrganisationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"reports"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"organisation"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentOrganisationId"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdate"}}]}}]}}]} as unknown as DocumentNode; +export const ListExternalDataSourcesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ListExternalDataSources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myOrganisations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetPublicMapReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPublicMapReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orgSlug"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportSlug"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publicMapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orgSlug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orgSlug"}}},{"kind":"Argument","name":{"kind":"Name","value":"reportSlug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportSlug"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const GetPublicMapReportForLayoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPublicMapReportForLayout"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orgSlug"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportSlug"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publicMapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"orgSlug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orgSlug"}}},{"kind":"Argument","name":{"kind":"Name","value":"reportSlug"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportSlug"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"displayOptions"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"layers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetEditableHubsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetEditableHubs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubHomepages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const VerifyPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"VerifyPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubHomepages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hubPage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pageId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hub"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; +export const HostAnalyticsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"HostAnalytics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubByHostname"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"hostname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"googleAnalyticsTagId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryColour"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryColour"}},{"kind":"Field","name":{"kind":"Name","value":"customCss"}}]}}]}}]} as unknown as DocumentNode; +export const GetHubMapDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHubMapData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubByHostname"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"hostname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"layers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"visible"}},{"kind":"Field","name":{"kind":"Name","value":"iconImage"}},{"kind":"Field","name":{"kind":"Name","value":"source"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mapboxPaint"}},{"kind":"Field","name":{"kind":"Name","value":"mapboxLayout"}}]}},{"kind":"Field","name":{"kind":"Name","value":"navLinks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"link"}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetLocalDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetLocalData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"postcode"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"postcodeSearch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"postcode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"postcode"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","alias":{"kind":"Name","value":"constituency"},"name":{"kind":"Name","value":"constituency2024"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConstituencyViewFragment"}},{"kind":"Field","name":{"kind":"Name","value":"genericDataForHub"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"hostname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFragment"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConstituencyViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Area"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fitBounds"}},{"kind":"Field","name":{"kind":"Name","value":"samplePostcode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"postcode"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"mp"},"name":{"kind":"Name","value":"person"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"personType"},"value":{"kind":"StringValue","value":"MP","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"party"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"party","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"name"},"name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"email"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"email","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"ppcs"},"name":{"kind":"Name","value":"people"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"personType"},"value":{"kind":"StringValue","value":"PPC","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"party"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"party","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"name"},"name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"email"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"email","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GenericData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"publicUrl"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSet"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataType"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetEventDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetEventData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"importedDataGeojsonPoint"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"genericDataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"eventId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFragment"}},{"kind":"Field","alias":{"kind":"Name","value":"constituency"},"name":{"kind":"Name","value":"area"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"areaType"},"value":{"kind":"StringValue","value":"WMC23","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConstituencyViewFragment"}},{"kind":"Field","name":{"kind":"Name","value":"genericDataForHub"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"hostname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EventFragment"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EventFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GenericData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"publicUrl"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSet"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataType"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConstituencyViewFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Area"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fitBounds"}},{"kind":"Field","name":{"kind":"Name","value":"samplePostcode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"postcode"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"mp"},"name":{"kind":"Name","value":"person"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"personType"},"value":{"kind":"StringValue","value":"MP","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"party"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"party","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"name"},"name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"email"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"email","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}}]}}]}},{"kind":"Field","alias":{"kind":"Name","value":"ppcs"},"name":{"kind":"Name","value":"people"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"personType"},"value":{"kind":"StringValue","value":"PPC","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"party"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"party","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"name"},"name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"email"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"email","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"path"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubPageByPath"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"hostname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}}},{"kind":"Argument","name":{"kind":"Name","value":"path"},"value":{"kind":"Variable","name":{"kind":"Name","value":"path"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"puckJsonContent"}},{"kind":"Field","name":{"kind":"Name","value":"seoTitle"}},{"kind":"Field","name":{"kind":"Name","value":"searchDescription"}},{"kind":"Field","name":{"kind":"Name","value":"hub"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"faviconUrl"}},{"kind":"Field","name":{"kind":"Name","value":"seoTitle"}},{"kind":"Field","name":{"kind":"Name","value":"seoImageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"searchDescription"}},{"kind":"Field","name":{"kind":"Name","value":"primaryColour"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryColour"}},{"kind":"Field","name":{"kind":"Name","value":"customCss"}},{"kind":"Field","name":{"kind":"Name","value":"navLinks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"link"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetMemberListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMemberList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"currentOrganisationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myOrganisations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentOrganisationId"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissionsFromOtherOrgs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const ConstituencyStatsOverviewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ConstituencyStatsOverview"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnalyticalAreaType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"layerIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"importedDataCountByConstituency"},"name":{"kind":"Name","value":"importedDataCountByArea"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}}},{"kind":"Argument","name":{"kind":"Name","value":"layerIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"layerIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"gssArea"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fitBounds"}},{"kind":"Field","alias":{"kind":"Name","value":"mp"},"name":{"kind":"Name","value":"person"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"personType"},"value":{"kind":"StringValue","value":"MP","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"party"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"party","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"name"},"name":{"kind":"Name","value":"data"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"lastElection"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stats"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"majority"}},{"kind":"Field","name":{"kind":"Name","value":"electorate"}},{"kind":"Field","name":{"kind":"Name","value":"firstPartyResult"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"party"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}},{"kind":"Field","name":{"kind":"Name","value":"votes"}}]}},{"kind":"Field","name":{"kind":"Name","value":"secondPartyResult"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"party"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}},{"kind":"Field","name":{"kind":"Name","value":"votes"}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetConstituencyDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetConstituencyData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnalyticalAreaType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"gss"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"constituency"},"name":{"kind":"Name","value":"area"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"gss"},"value":{"kind":"Variable","name":{"kind":"Name","value":"gss"}}},{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","alias":{"kind":"Name","value":"mp"},"name":{"kind":"Name","value":"person"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"personType"},"value":{"kind":"StringValue","value":"MP","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"party"},"name":{"kind":"Name","value":"personDatum"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType_Name"},"value":{"kind":"StringValue","value":"party","block":false}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"name"},"name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"lastElection"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stats"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"electorate"}},{"kind":"Field","name":{"kind":"Name","value":"validVotes"}},{"kind":"Field","name":{"kind":"Name","value":"majority"}},{"kind":"Field","name":{"kind":"Name","value":"firstPartyResult"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"party"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}},{"kind":"Field","name":{"kind":"Name","value":"votes"}}]}},{"kind":"Field","name":{"kind":"Name","value":"secondPartyResult"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"party"}},{"kind":"Field","name":{"kind":"Name","value":"shade"}},{"kind":"Field","name":{"kind":"Name","value":"votes"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"mapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"importedDataCountForConstituency"},"name":{"kind":"Name","value":"importedDataCountForArea"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}}},{"kind":"Argument","name":{"kind":"Name","value":"gss"},"value":{"kind":"Variable","name":{"kind":"Name","value":"gss"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}},{"kind":"Field","name":{"kind":"Name","value":"layers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"source"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"importedDataCountForConstituency"},"name":{"kind":"Name","value":"importedDataCountForArea"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}}},{"kind":"Argument","name":{"kind":"Name","value":"gss"},"value":{"kind":"Variable","name":{"kind":"Name","value":"gss"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const MapReportWardStatsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MapReportWardStats"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataCountByWard"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"gssArea"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"point"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"geometry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"coordinates"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const MapReportLayerGeoJsonPointDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MapReportLayerGeoJSONPoint"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"genericDataId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"importedDataGeojsonPoint"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"genericDataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"genericDataId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"geometry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"coordinates"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"lastUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"postcodeData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"postcode"}}]}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"json"}},{"kind":"Field","name":{"kind":"Name","value":"remoteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dataSet"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const MapReportLayerAnalyticsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MapReportLayerAnalytics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"layers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"source"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const MapReportCountByAreaDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MapReportCountByArea"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnalyticalAreaType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"layerIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"importedDataCountByArea"},"name":{"kind":"Name","value":"importedDataCountByArea"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}}},{"kind":"Argument","name":{"kind":"Name","value":"layerIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"layerIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"gssArea"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"point"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"geometry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"coordinates"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const MapReportStatsByAreaDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MapReportStatsByArea"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AnalyticalAreaType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"layerIds"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataByArea"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"analyticalAreaType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"analyticalAreaType"}}},{"kind":"Argument","name":{"kind":"Name","value":"layerIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"layerIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"gss"}},{"kind":"Field","name":{"kind":"Name","value":"importedData"}},{"kind":"Field","name":{"kind":"Name","value":"gssArea"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"point"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"geometry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"coordinates"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetMapReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMapReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"displayOptions"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"MapReportPage"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MapReportLayersSummary"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MapReport"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordDetails"}},{"kind":"Field","name":{"kind":"Name","value":"visibilityRecordCoordinates"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"source"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isImportScheduled"}},{"kind":"Field","name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MapReportPage"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MapReport"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"MapReportLayersSummary"}}]}}]} as unknown as DocumentNode; +export const UpdateMapReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateMapReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MapReportInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateMapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"displayOptions"}},{"kind":"Field","name":{"kind":"Name","value":"layers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"source"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const DeleteMapReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteMapReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"IDObject"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteMapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const GetMapReportNameDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetMapReportName"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mapReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const WebhookRefreshDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"WebhookRefresh"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"refreshWebhooks"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"externalDataSourceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hasWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"automatedWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"webhookHealthcheck"}}]}}]}}]} as unknown as DocumentNode; +export const ExternalDataSourceExternalDataSourceCardDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ExternalDataSourceExternalDataSourceCard"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"DataSourceCard"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DataSourceCard"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ExternalDataSource"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"automatedWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"updateMapping"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePath"}},{"kind":"Field","name":{"kind":"Name","value":"destinationColumn"}}]}},{"kind":"Field","name":{"kind":"Name","value":"jobs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"lastEventAt"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sharingPermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode; +export const EnableWebhookDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"EnableWebhook"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"webhookType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"WebhookType"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"enableWebhook"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"externalDataSourceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ID"}}},{"kind":"Argument","name":{"kind":"Name","value":"webhookType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"webhookType"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"hasWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"automatedWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"webhookHealthcheck"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const DisableWebhookDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DisableWebhook"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"webhookType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"WebhookType"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"disableWebhook"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"externalDataSourceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ID"}}},{"kind":"Argument","name":{"kind":"Name","value":"webhookType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"webhookType"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"hasWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"automatedWebhooks"}},{"kind":"Field","name":{"kind":"Name","value":"webhookHealthcheck"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const TriggerFullUpdateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"TriggerFullUpdate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"externalDataSourceId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"triggerUpdate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"externalDataSourceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"externalDataSourceId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taskName"}},{"kind":"Field","name":{"kind":"Name","value":"args"}},{"kind":"Field","name":{"kind":"Name","value":"lastEventAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetOrganisationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetOrganisations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myOrganisations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; +export const EnrichmentLayersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EnrichmentLayers"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"organisationPk"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mappingSources"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"organisationPk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"organisationPk"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"author"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"descriptionUrl"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePaths"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSource"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"crmType"}},{"kind":"Field","name":{"kind":"Name","value":"organisation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"builtin"}}]}}]}}]} as unknown as DocumentNode; +export const MyOrgsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyOrgs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myOrganisations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]} as unknown as DocumentNode; +export const UserDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"me"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"publicUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"firstName"}},{"kind":"Field","name":{"kind":"Name","value":"lastName"}}]}}]}}]} as unknown as DocumentNode; +export const PublishPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"PublishPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"HubPageInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updatePage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pageId"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"puckJsonContent"}}]}}]}}]} as unknown as DocumentNode; +export const CreateChildPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateChildPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"parentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"title"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createChildPage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"parentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"parentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"title"},"value":{"kind":"Variable","name":{"kind":"Name","value":"title"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; +export const DeletePageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeletePage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deletePage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pageId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pageId"}}}]}]}}]} as unknown as DocumentNode; +export const GetHubPagesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHubPages"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hubId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubHomepage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hubId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hostname"}},{"kind":"Field","name":{"kind":"Name","value":"descendants"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inclusive"},"value":{"kind":"BooleanValue","value":true}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"modelName"}},{"kind":"Field","name":{"kind":"Name","value":"ancestors"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inclusive"},"value":{"kind":"BooleanValue","value":true}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"modelName"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetPageEditorDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPageEditorData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pageId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubPage"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pk"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pageId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"puckJsonContent"}},{"kind":"Field","name":{"kind":"Name","value":"modelName"}},{"kind":"Field","name":{"kind":"Name","value":"liveUrl"}},{"kind":"Field","name":{"kind":"Name","value":"ancestors"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inclusive"},"value":{"kind":"BooleanValue","value":true}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"modelName"}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetHubContextDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHubContext"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubByHostname"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"hostname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"customCss"}},{"kind":"Field","name":{"kind":"Name","value":"primaryColour"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryColour"}}]}}]}}]} as unknown as DocumentNode; +export const GetEventSourcesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetEventSources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"externalDataSources"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"dataType"},"value":{"kind":"EnumValue","value":"EVENT"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"eventCount"},"name":{"kind":"Name","value":"importedDataCount"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDefinitions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]} as unknown as DocumentNode; +export const GetEventListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetEventList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sourceId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"genericDataByExternalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"externalDataSourceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sourceId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"publicUrl"}},{"kind":"Field","name":{"kind":"Name","value":"json"}}]}}]}}]} as unknown as DocumentNode; +export const GetHubHomepageJsonDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetHubHomepageJson"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hubPageByPath"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"hostname"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostname"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"puckJsonContent"}}]}}]}}]} as unknown as DocumentNode; +export const HubListDataSourcesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"HubListDataSources"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"currentOrganisationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myOrganisations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"currentOrganisationId"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"externalDataSources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}}]}}]}}]}}]} as unknown as DocumentNode; +export const AddMemberDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddMember"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"externalDataSourceId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"email"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"postcode"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"customFields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"JSON"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tags"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addMember"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"externalDataSourceId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"externalDataSourceId"}}},{"kind":"Argument","name":{"kind":"Name","value":"email"},"value":{"kind":"Variable","name":{"kind":"Name","value":"email"}}},{"kind":"Argument","name":{"kind":"Name","value":"postcode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"postcode"}}},{"kind":"Argument","name":{"kind":"Name","value":"customFields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"customFields"}}},{"kind":"Argument","name":{"kind":"Name","value":"tags"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tags"}}}]}]}}]} as unknown as DocumentNode; +export const UpdateExternalDataSourceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateExternalDataSource"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ExternalDataSourceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateExternalDataSource"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumn"}},{"kind":"Field","name":{"kind":"Name","value":"geographyColumnType"}},{"kind":"Field","name":{"kind":"Name","value":"geocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"usesValidGeocodingConfig"}},{"kind":"Field","name":{"kind":"Name","value":"postcodeField"}},{"kind":"Field","name":{"kind":"Name","value":"firstNameField"}},{"kind":"Field","name":{"kind":"Name","value":"lastNameField"}},{"kind":"Field","name":{"kind":"Name","value":"emailField"}},{"kind":"Field","name":{"kind":"Name","value":"phoneField"}},{"kind":"Field","name":{"kind":"Name","value":"addressField"}},{"kind":"Field","name":{"kind":"Name","value":"canDisplayPointField"}},{"kind":"Field","name":{"kind":"Name","value":"autoImportEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"autoUpdateEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"updateMapping"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"sourcePath"}},{"kind":"Field","name":{"kind":"Name","value":"destinationColumn"}}]}}]}}]}}]} as unknown as DocumentNode; +export const PublicUserDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PublicUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publicUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}}]}}]} as unknown as DocumentNode; + + export interface PossibleTypesResultData { + possibleTypes: { + [key: string]: string[] + } + } + const result: PossibleTypesResultData = { + "possibleTypes": { + "AirtableSourceMailchimpSourceActionNetworkSourceEditableGoogleSheetsSourceTicketTailorSource": [ + "ActionNetworkSource", + "AirtableSource", + "EditableGoogleSheetsSource", + "MailchimpSource", + "TicketTailorSource" ], - CommonData: ['AreaData', 'GenericData', 'PersonData'], - CreateMapReportPayload: ['MapReport', 'OperationInfo'], - Feature: ['MapReportMemberFeature', 'MultiPolygonFeature', 'PointFeature'], - OutputInterface: ['ObtainJSONWebTokenType'], - }, -} -export default result + "Analytics": [ + "ActionNetworkSource", + "AirtableSource", + "EditableGoogleSheetsSource", + "ExternalDataSource", + "MailchimpSource", + "MapReport", + "SharedDataSource", + "TicketTailorSource" + ], + "CommonData": [ + "AreaData", + "GenericData", + "PersonData" + ], + "CreateMapReportPayload": [ + "MapReport", + "OperationInfo" + ], + "Feature": [ + "MapReportMemberFeature", + "MultiPolygonFeature", + "PointFeature" + ], + "OutputInterface": [ + "ObtainJSONWebTokenType" + ] + } +}; + export default result; + \ No newline at end of file diff --git a/nextjs/src/__generated__/index.ts b/nextjs/src/__generated__/index.ts index 83a238245..af7839936 100644 --- a/nextjs/src/__generated__/index.ts +++ b/nextjs/src/__generated__/index.ts @@ -1 +1 @@ -export * from './gql' +export * from "./gql"; \ No newline at end of file diff --git a/nextjs/src/app/(logged-in)/data-sources/inspect/[externalDataSourceId]/InspectExternalDataSource.tsx b/nextjs/src/app/(logged-in)/data-sources/inspect/[externalDataSourceId]/InspectExternalDataSource.tsx index cb00458a6..62d3a5676 100644 --- a/nextjs/src/app/(logged-in)/data-sources/inspect/[externalDataSourceId]/InspectExternalDataSource.tsx +++ b/nextjs/src/app/(logged-in)/data-sources/inspect/[externalDataSourceId]/InspectExternalDataSource.tsx @@ -43,6 +43,7 @@ import { contentEditableMutation } from '@/lib/html' import { formatCrmNames } from '@/lib/utils' import { FetchResult, gql, useApolloClient, useQuery } from '@apollo/client' import { format } from 'd3-format' +import { interpolateRdYlGn } from 'd3-scale-chromatic' import { formatRelative } from 'date-fns' import parse from 'html-react-parser' import { AlertCircle, ExternalLink } from 'lucide-react' @@ -143,6 +144,15 @@ const GET_UPDATE_CONFIG = gql` sendEmail } importedDataCount + importedDataGeocodingRate + regionCount: importedDataCountOfAreas( + analyticalAreaType: european_electoral_region + ) + constituencyCount: importedDataCountOfAreas( + analyticalAreaType: parliamentary_constituency + ) + ladCount: importedDataCountOfAreas(analyticalAreaType: admin_district) + wardCount: importedDataCountOfAreas(analyticalAreaType: admin_ward) fieldDefinitions { label value @@ -251,6 +261,7 @@ export default function InspectExternalDataSource({ } ) } + return (
@@ -303,6 +314,24 @@ export default function InspectExternalDataSource({
{format(',')(source.importedDataCount || 0)}
+
+ Located in {pluralize('region', source.regionCount, true)},{' '} + {pluralize('constituency', source.constituencyCount, true)},{' '} + {pluralize('local authority', source.ladCount, true)}, and{' '} + {pluralize('ward', source.wardCount, true)}.{' '} + {/* Un-geolocated count: */} + + Geocoding success rate of{' '} + {(source.importedDataGeocodingRate || 0).toFixed(0)}% + +

Import data from this {formatCrmNames(source.crmType)} into Mapped for use in reports