diff --git a/app/graphql/mutations/create_app_user_content.rb b/app/graphql/mutations/create_app_user_content.rb index 336062b3..25c57272 100644 --- a/app/graphql/mutations/create_app_user_content.rb +++ b/app/graphql/mutations/create_app_user_content.rb @@ -6,7 +6,7 @@ class CreateAppUserContent < BaseMutation argument :data_type, String, required: false argument :content, String, required: false - type Types::AppUserContentType + type Types::QueryTypes::AppUserContentType def resolve(**params) return spam_message if spam? diff --git a/app/graphql/mutations/create_event_record.rb b/app/graphql/mutations/create_event_record.rb index d16d0750..b217e24b 100644 --- a/app/graphql/mutations/create_event_record.rb +++ b/app/graphql/mutations/create_event_record.rb @@ -7,52 +7,52 @@ class CreateEventRecord < BaseMutation argument :description, String, required: false argument :external_id, String, required: false argument :title, String, required: false - argument :dates, [Types::DateInput], required: false, + argument :dates, [Types::InputTypes::DateInput], required: false, as: :dates_attributes, prepare: ->(dates, _ctx) { dates.map(&:to_h) } argument :repeat, Boolean, required: false - argument :repeat_duration, Types::RepeatDurationInput, required: false, + argument :repeat_duration, Types::InputTypes::RepeatDurationInput, required: false, as: :repeat_duration_attributes, prepare: lambda { |repeat_duration, _ctx| repeat_duration.to_h } argument :category_name, String, required: false - argument :categories, [Types::CategoryInput], required: false, + argument :categories, [Types::InputTypes::CategoryInput], required: false, as: :category_names, prepare: lambda { |category, _ctx| category.map(&:to_h) } argument :region_name, String, required: false - argument :region, Types::RegionInput, required: false - argument :addresses, [Types::AddressInput], required: false, + argument :region, Types::InputTypes::RegionInput, required: false + argument :addresses, [Types::InputTypes::AddressInput], required: false, as: :addresses_attributes, prepare: lambda { |addresses, _ctx| addresses.map(&:to_h) } - argument :location, Types::LocationInput, required: false, + argument :location, Types::InputTypes::LocationInput, required: false, as: :location_attributes, prepare: ->(location, _ctx) { location.to_h } - argument :contacts, [Types::ContactInput], required: false, as: :contacts_attributes, + argument :contacts, [Types::InputTypes::ContactInput], required: false, as: :contacts_attributes, prepare: ->(contacts, _ctx) { contacts.map(&:to_h) } - argument :urls, [Types::WebUrlInput], required: false, as: :urls_attributes, + argument :urls, [Types::InputTypes::WebUrlInput], required: false, as: :urls_attributes, prepare: ->(urls, _ctx) { urls.map(&:to_h) } - argument :media_contents, [Types::MediaContentInput], required: false, + argument :media_contents, [Types::InputTypes::MediaContentInput], required: false, as: :media_contents_attributes, prepare: lambda { |media_contents, _ctx| media_contents.map(&:to_h) } - argument :organizer, Types::OperatingCompanyInput, required: false, + argument :organizer, Types::InputTypes::OperatingCompanyInput, required: false, as: :organizer_attributes, prepare: lambda { |organizer, _ctx| organizer.to_h } - argument :price_informations, [Types::PriceInput], required: false, + argument :price_informations, [Types::InputTypes::PriceInput], required: false, as: :price_informations_attributes, prepare: lambda { |price_informations, _ctx| price_informations.map(&:to_h) } argument :accessibility_information, - Types::AccessibilityInformationInput, + Types::InputTypes::AccessibilityInformationInput, required: false, as: :accessibility_information_attributes, prepare: lambda { |accessibility_information, _ctx| @@ -60,9 +60,9 @@ class CreateEventRecord < BaseMutation } argument :tags, [String], as: :tag_list, required: false - field :event, Types::EventRecordType, null: true + field :event, Types::QueryTypes::EventRecordType, null: true - type Types::EventRecordType + type Types::QueryTypes::EventRecordType def resolve(**params) ResourceService.new(data_provider: context[:current_user].try(:data_provider)) diff --git a/app/graphql/mutations/create_generic_item.rb b/app/graphql/mutations/create_generic_item.rb new file mode 100644 index 00000000..3ac8909c --- /dev/null +++ b/app/graphql/mutations/create_generic_item.rb @@ -0,0 +1,93 @@ +# frozen_string_literal: true + +module Mutations + class CreateGenericItem < BaseMutation + argument :force_create, Boolean, required: false + argument :push_notification, Boolean, required: false + argument :author, String, required: false + argument :title, String, required: false + argument :generic_type, String, required: false + argument :external_id, String, required: false + argument :publication_date, String, required: false + argument :published_at, String, required: false + argument :category_name, String, required: false + argument :payload, GraphQL::Types::JSON, required: false + argument :contacts, [Types::InputTypes::ContactInput], + required: false, as: :contacts_attributes, + prepare: ->(contacts, _ctx) { contacts.map(&:to_h) } + argument :generic_items, [Types::InputTypes::GenericItemInput], required: false, + as: :generic_items_attributes, + prepare: lambda { |generic_items, _ctx| + generic_items.map(&:to_h) + } + argument :companies, [Types::InputTypes::OperatingCompanyInput], required: false, + as: :companies_attributes, + prepare: lambda { |companies, _ctx| + companies.map(&:to_h) + } + argument :categories, [Types::InputTypes::CategoryInput], required: false, + as: :category_names, + prepare: lambda { |category, _ctx| + category.map(&:to_h) + } + argument :web_urls, [Types::InputTypes::WebUrlInput], required: false, + as: :web_urls_attributes, + prepare: ->(source_url, _ctx) { source_url.map(&:to_h) } + argument :addresses, [Types::InputTypes::AddressInput], required: false, + as: :address_attributes, + prepare: lambda { |address, _ctx| + address.to_h + } + argument :content_blocks, [Types::InputTypes::ContentBlockInput], required: false, + as: :content_blocks_attributes, + prepare: lambda { |content_blocks, _ctx| + content_blocks.map(&:to_h) + } + argument :opening_hours, [Types::InputTypes::OpeningHourInput], required: false, + as: :opening_hours_attributes, + prepare: lambda { |opening_hours, _ctx| + opening_hours.map(&:to_h) + } + argument :price_informations, [Types::InputTypes::PriceInput], required: false, + as: :price_informations_attributes, + prepare: lambda { |price_informations, _ctx| + price_informations.map(&:to_h) + } + argument :media_contents, [Types::InputTypes::MediaContentInput], required: false, + as: :media_contents_attributes, + prepare: lambda { |media_contents, _ctx| + media_contents.map(&:to_h) + } + argument :locations, [Types::InputTypes::LocationInput], required: false, + as: :locations_attributes, + prepare: ->(location, _ctx) { location.map(&:to_h) } + argument :dates, [Types::InputTypes::DateInput], required: false, + as: :dates_attributes, + prepare: ->(dates, _ctx) { dates.map(&:to_h) } + argument :accessibility_informations, [Types::InputTypes::AccessibilityInformationInput], + required: false, as: :accessibility_informations_attributes, + prepare: lambda { |accessibility_informations, _ctx| + accessibility_informations.map(&:to_h) + } + + type Types::QueryTypes::GenericItemType + + def resolve(**params) + create_generic_item_node(params, nil) + end + + def create_generic_item_node(params, parent_id) + nested_params = params.delete(:generic_items_attributes) + parent = ResourceService.new(data_provider: context[:current_user].try(:data_provider)) + .create(GenericItem, params.merge(parent_id: parent_id)) + + return parent if nested_params.blank? + + nested_params.each do |nested_param| + create_generic_item_node(nested_param, parent.id) + end + + parent + end + end +end diff --git a/app/graphql/mutations/create_news_item.rb b/app/graphql/mutations/create_news_item.rb index 721bbbb0..137c1b2d 100644 --- a/app/graphql/mutations/create_news_item.rb +++ b/app/graphql/mutations/create_news_item.rb @@ -14,28 +14,28 @@ class CreateNewsItem < BaseMutation argument :published_at, String, required: false argument :show_publish_date, Boolean, required: false argument :category_name, String, required: false - argument :categories, [Types::CategoryInput], required: false, + argument :categories, [Types::InputTypes::CategoryInput], required: false, as: :category_names, prepare: lambda { |category, _ctx| category.map(&:to_h) } - argument :source_url, Types::WebUrlInput, required: false, + argument :source_url, Types::InputTypes::WebUrlInput, required: false, as: :source_url_attributes, prepare: ->(source_url, _ctx) { source_url.to_h } - argument :address, Types::AddressInput, required: false, + argument :address, Types::InputTypes::AddressInput, required: false, as: :address_attributes, prepare: lambda { |address, _ctx| address.to_h } - argument :content_blocks, [Types::ContentBlockInput], required: false, + argument :content_blocks, [Types::InputTypes::ContentBlockInput], required: false, as: :content_blocks_attributes, prepare: lambda { |content_blocks, _ctx| content_blocks.map(&:to_h) } - field :news_item, Types::NewsItemType, null: true + field :news_item, Types::QueryTypes::NewsItemType, null: true - type Types::NewsItemType + type Types::QueryTypes::NewsItemType def resolve(**params) ResourceService.new(data_provider: context[:current_user].try(:data_provider)) diff --git a/app/graphql/mutations/create_point_of_interest.rb b/app/graphql/mutations/create_point_of_interest.rb index 4267a9b1..f006890e 100644 --- a/app/graphql/mutations/create_point_of_interest.rb +++ b/app/graphql/mutations/create_point_of_interest.rb @@ -8,52 +8,52 @@ class CreatePointOfInterest < BaseMutation argument :mobile_description, String, required: false argument :active, Boolean, required: false argument :category_name, String, required: false - argument :categories, [Types::CategoryInput], required: false, + argument :categories, [Types::InputTypes::CategoryInput], required: false, as: :category_names, prepare: lambda { |category, _ctx| category.map(&:to_h) } - argument :addresses, [Types::AddressInput], required: false, + argument :addresses, [Types::InputTypes::AddressInput], required: false, as: :addresses_attributes, prepare: lambda { |addresses, _ctx| addresses.map(&:to_h) } - argument :contact, Types::ContactInput, + argument :contact, Types::InputTypes::ContactInput, required: false, as: :contact_attributes, prepare: ->(contact, _ctx) { contact.to_h } - argument :price_informations, [Types::PriceInput], + argument :price_informations, [Types::InputTypes::PriceInput], required: false, as: :price_informations_attributes, prepare: ->(price_informations, _ctx) { price_informations.map(&:to_h) } - argument :opening_hours, [Types::OpeningHourInput], required: false, + argument :opening_hours, [Types::InputTypes::OpeningHourInput], required: false, as: :opening_hours_attributes, prepare: lambda { |opening_hours, _ctx| opening_hours.map(&:to_h) } - argument :operating_company, Types::OperatingCompanyInput, required: false, + argument :operating_company, Types::InputTypes::OperatingCompanyInput, required: false, as: :operating_company_attributes, prepare: lambda { |operating_company, _ctx| operating_company.to_h } - argument :web_urls, [Types::WebUrlInput], required: false, as: :web_urls_attributes, + argument :web_urls, [Types::InputTypes::WebUrlInput], required: false, as: :web_urls_attributes, prepare: ->(web_urls, _ctx) { web_urls.map(&:to_h) } - argument :media_contents, [Types::MediaContentInput], required: false, + argument :media_contents, [Types::InputTypes::MediaContentInput], required: false, as: :media_contents_attributes, prepare: lambda { |media_contents, _ctx| media_contents.map(&:to_h) } - argument :location, Types::LocationInput, required: false, + argument :location, Types::InputTypes::LocationInput, required: false, as: :location_attributes, prepare: ->(location, _ctx) { location.to_h } - argument :certificates, [Types::CertificateInput], required: false, + argument :certificates, [Types::InputTypes::CertificateInput], required: false, as: :certificates_attributes, prepare: lambda { |certificates, _ctx| certificates.map(&:to_h) } argument :accessibility_information, - Types::AccessibilityInformationInput, + Types::InputTypes::AccessibilityInformationInput, required: false, as: :accessibility_information_attributes, prepare: lambda { |accessibility_information, _ctx| @@ -63,14 +63,14 @@ class CreatePointOfInterest < BaseMutation argument :tags, [String], as: :tag_list, required: false argument :lunches, - [Types::LunchInput], + [Types::InputTypes::LunchInput], required: false, as: :lunches_attributes, prepare: ->(lunches, _ctx) { lunches.map(&:to_h) } - field :point_of_interest, Types::PointOfInterestType, null: false + field :point_of_interest, Types::QueryTypes::PointOfInterestType, null: false - type Types::PointOfInterestType + type Types::QueryTypes::PointOfInterestType def resolve(**params) ResourceService.new(data_provider: context[:current_user].try(:data_provider)) diff --git a/app/graphql/mutations/create_tour.rb b/app/graphql/mutations/create_tour.rb index be3db57b..3f2a7447 100644 --- a/app/graphql/mutations/create_tour.rb +++ b/app/graphql/mutations/create_tour.rb @@ -8,41 +8,41 @@ class CreateTour < BaseMutation argument :mobile_description, String, required: false argument :active, Boolean, required: false argument :category_name, String, required: false - argument :categories, [Types::CategoryInput], required: false, + argument :categories, [Types::InputTypes::CategoryInput], required: false, as: :category_names, prepare: lambda { |category, _ctx| category.map(&:to_h) } - argument :addresses, [Types::AddressInput], required: false, + argument :addresses, [Types::InputTypes::AddressInput], required: false, as: :addresses_attributes, prepare: lambda { |addresses, _ctx| addresses.map(&:to_h) } - argument :contact, Types::ContactInput, required: false, as: :contact_attributes, + argument :contact, Types::InputTypes::ContactInput, required: false, as: :contact_attributes, prepare: ->(contact, _ctx) { contact.to_h } - argument :operating_company, Types::OperatingCompanyInput, required: false, + argument :operating_company, Types::InputTypes::OperatingCompanyInput, required: false, as: :operating_company_attributes, prepare: lambda { |operating_company, _ctx| operating_company.to_h } - argument :web_urls, [Types::WebUrlInput], required: false, as: :web_urls_attributes, + argument :web_urls, [Types::InputTypes::WebUrlInput], required: false, as: :web_urls_attributes, prepare: ->(web_urls, _ctx) { web_urls.map(&:to_h) } - argument :media_contents, [Types::MediaContentInput], required: false, + argument :media_contents, [Types::InputTypes::MediaContentInput], required: false, as: :media_contents_attributes, prepare: lambda { |media_contents, _ctx| media_contents.map(&:to_h) } - argument :location, Types::LocationInput, required: false, + argument :location, Types::InputTypes::LocationInput, required: false, as: :location_attributes, prepare: ->(location, _ctx) { location.to_h } - argument :certificates, [Types::CertificateInput], required: false, + argument :certificates, [Types::InputTypes::CertificateInput], required: false, as: :certificates_attributes, prepare: lambda { |certificates, _ctx| certificates.map(&:to_h) } argument :accessibility_information, - Types::AccessibilityInformationInput, + Types::InputTypes::AccessibilityInformationInput, required: false, as: :accessibility_information_attributes, prepare: lambda { |accessibility_information, _ctx| @@ -50,16 +50,16 @@ class CreateTour < BaseMutation } argument :length_km, Integer, required: true argument :means_of_transportation, String, required: false - argument :geometry_tour_data, [Types::GeoLocationInput], required: false, + argument :geometry_tour_data, [Types::InputTypes::GeoLocationInput], required: false, as: :geometry_tour_data_attributes, prepare: lambda { |geometry_tour_data, _ctx| geometry_tour_data.map(&:to_h) } argument :tags, [String], as: :tag_list, required: false - field :tour, Types::TourType, null: false + field :tour, Types::QueryTypes::TourType, null: false - type Types::TourType + type Types::QueryTypes::TourType def resolve(**params) ResourceService.new(data_provider: context[:current_user].try(:data_provider)) diff --git a/app/graphql/mutations/destroy_record.rb b/app/graphql/mutations/destroy_record.rb index 54547df1..3c0a689d 100644 --- a/app/graphql/mutations/destroy_record.rb +++ b/app/graphql/mutations/destroy_record.rb @@ -8,7 +8,7 @@ class DestroyRecord < BaseMutation type Types::DestroyType - RECORD_WHITELIST = ["EventRecord", "NewsItem", "PointOfInterest", "Tour"].freeze + RECORD_WHITELIST = ["EventRecord", "NewsItem", "PointOfInterest", "Tour", "GenericItem"].freeze def resolve(id: nil, record_type:, external_id: nil) return error_status unless RECORD_WHITELIST.include?(record_type) diff --git a/app/graphql/resolvers/event_records_search.rb b/app/graphql/resolvers/event_records_search.rb index 1b18eff9..f123400b 100644 --- a/app/graphql/resolvers/event_records_search.rb +++ b/app/graphql/resolvers/event_records_search.rb @@ -8,19 +8,19 @@ class Resolvers::EventRecordsSearch scope { EventRecord.upcoming(context[:current_user]) } - type types[Types::EventRecordType] + type types[Types::QueryTypes::EventRecordType] class EventRecordsOrder < ::Types::BaseEnum value "createdAt_ASC" value "createdAt_DESC" - value "updatedAt_ASC" - value "updatedAt_DESC" - value "title_ASC" - value "title_DESC" value "id_ASC" value "id_DESC" - value "listDate_DESC" value "listDate_ASC" + value "listDate_DESC" + value "title_ASC" + value "title_DESC" + value "updatedAt_ASC" + value "updatedAt_DESC" end option :dateRange, type: types[types.String], with: :apply_date_range @@ -132,7 +132,7 @@ def fetch_results # NOTE: Don't run QueryResolver during tests return super unless context.present? - GraphQL::QueryResolver.run(EventRecord, context, Types::EventRecordType) do + GraphQL::QueryResolver.run(EventRecord, context, Types::QueryTypes::EventRecordType) do super end end diff --git a/app/graphql/resolvers/generic_item_search.rb b/app/graphql/resolvers/generic_item_search.rb new file mode 100644 index 00000000..41f7fcb5 --- /dev/null +++ b/app/graphql/resolvers/generic_item_search.rb @@ -0,0 +1,122 @@ +# frozen_string_literal: true + +require "search_object/plugin/graphql" +require "graphql/query_resolver" + +class Resolvers::GenericItemSearch + include SearchObject.module(:graphql) + + scope { GenericItem.filtered_for_current_user(context[:current_user]) } + + type types[Types::QueryTypes::GenericItemType] + + class GenericItemOrder < ::Types::BaseEnum + value "createdAt_ASC" + value "createdAt_DESC" + value "id_ASC" + value "id_DESC" + value "publicationDate_ASC" + value "publicationDate_DESC" + value "publishedAt_ASC" + value "publishedAt_DESC" + value "updatedAt_ASC" + value "updatedAt_DESC" + end + + option :categoryId, type: types.ID, with: :apply_category_id + option :dataProvider, type: types.String, with: :apply_data_provider + option :dataProviderId, type: types.ID, with: :apply_data_provider_id + option :externalId, type: types.ID, with: :apply_external_id + option :genericType, type: types.String, with: :apply_generic_type + option :ids, type: types[types.ID], with: :apply_ids + option :limit, type: types.Int, with: :apply_limit + option :order, type: GenericItemOrder, default: "createdAt_DESC" + option :skip, type: types.Int, with: :apply_skip + + def apply_limit(scope, value) + scope.limit(value) + end + + def apply_skip(scope, value) + scope.offset(value) + end + + def apply_ids(scope, value) + scope.where(id: value) + end + + def apply_order(scope, value) + scope.order(value) + end + + def apply_order_with_publication_date_desc(scope) + scope.order("publication_date DESC") + end + + def apply_order_with_publication_date_asc(scope) + scope.order("publication_date ASC") + end + + def apply_order_with_published_at_desc(scope) + scope.order("published_at DESC") + end + + def apply_order_with_published_at_asc(scope) + scope.order("published_at ASC") + end + + def apply_order_with_created_at_desc(scope) + scope.order("created_at DESC") + end + + def apply_order_with_created_at_asc(scope) + scope.order("created_at ASC") + end + + def apply_order_with_updated_at_desc(scope) + scope.order("updated_at DESC") + end + + def apply_order_with_updated_at_asc(scope) + scope.order("updated_at ASC") + end + + def apply_order_with_id_desc(scope) + scope.order("id DESC") + end + + def apply_order_with_id_asc(scope) + scope.order("id ASC") + end + + def apply_data_provider(scope, value) + scope.joins(:data_provider).where(data_providers: { name: value }) + end + + def apply_data_provider_id(scope, value) + scope.joins(:data_provider).where(data_providers: { id: value }) + end + + def apply_category_id(scope, value) + scope.with_category(value) + end + + def apply_generic_type(scope, value) + scope.where(generic_type: value) + end + + def apply_external_id(scope, value) + scope.where(external_id: value) + end + + # https://github.com/nettofarah/graphql-query-resolver + + def fetch_results + # NOTE: Don't run QueryResolver during tests + return super unless context.present? + + GraphQL::QueryResolver.run(GenericItem, context, Types::QueryTypes::GenericItemType) do + super + end + end +end diff --git a/app/graphql/resolvers/lunches_search.rb b/app/graphql/resolvers/lunches_search.rb index ed0c1929..c207831f 100644 --- a/app/graphql/resolvers/lunches_search.rb +++ b/app/graphql/resolvers/lunches_search.rb @@ -8,15 +8,15 @@ class Resolvers::LunchesSearch scope { Lunch.upcoming } - type types[Types::LunchType] + type types[Types::QueryTypes::LunchType] class LunchesOrder < ::Types::BaseEnum value "createdAt_ASC" value "createdAt_DESC" - value "updatedAt_ASC" - value "updatedAt_DESC" value "id_ASC" value "id_DESC" + value "updatedAt_ASC" + value "updatedAt_DESC" end option :dateRange, type: types[types.String], with: :apply_date_range @@ -89,7 +89,7 @@ def fetch_results # NOTE: Don't run QueryResolver during tests return super unless context.present? - GraphQL::QueryResolver.run(Lunch, context, Types::LunchType) do + GraphQL::QueryResolver.run(Lunch, context, Types::QueryTypes::LunchType) do super end end diff --git a/app/graphql/resolvers/news_items_search.rb b/app/graphql/resolvers/news_items_search.rb index bc8bcccc..54a86d1b 100644 --- a/app/graphql/resolvers/news_items_search.rb +++ b/app/graphql/resolvers/news_items_search.rb @@ -8,17 +8,17 @@ class Resolvers::NewsItemsSearch scope { NewsItem.filtered_for_current_user(context[:current_user]) } - type types[Types::NewsItemType] + type types[Types::QueryTypes::NewsItemType] class NewsItemsOrder < ::Types::BaseEnum value "createdAt_ASC" value "createdAt_DESC" - value "updatedAt_ASC" - value "updatedAt_DESC" - value "publishedAt_ASC" - value "publishedAt_DESC" value "id_ASC" value "id_DESC" + value "publishedAt_ASC" + value "publishedAt_DESC" + value "updatedAt_ASC" + value "updatedAt_DESC" end option :limit, type: types.Int, with: :apply_limit @@ -95,7 +95,7 @@ def fetch_results # NOTE: Don't run QueryResolver during tests return super unless context.present? - GraphQL::QueryResolver.run(NewsItem, context, Types::NewsItemType) do + GraphQL::QueryResolver.run(NewsItem, context, Types::QueryTypes::NewsItemType) do super end end diff --git a/app/graphql/resolvers/points_of_interest_search.rb b/app/graphql/resolvers/points_of_interest_search.rb index 069fd4ad..e9259a5d 100644 --- a/app/graphql/resolvers/points_of_interest_search.rb +++ b/app/graphql/resolvers/points_of_interest_search.rb @@ -8,18 +8,18 @@ class Resolvers::PointsOfInterestSearch scope { PointOfInterest.filtered_for_current_user(context[:current_user]) } - type types[Types::PointOfInterestType] + type types[Types::QueryTypes::PointOfInterestType] class PointsOfInterestOrder < ::Types::BaseEnum value "createdAt_ASC" value "createdAt_DESC" - value "updatedAt_ASC" - value "updatedAt_DESC" - value "name_ASC" - value "name_DESC" value "id_ASC" value "id_DESC" + value "name_ASC" + value "name_DESC" value "RAND" + value "updatedAt_ASC" + value "updatedAt_DESC" end option :limit, type: types.Int, with: :apply_limit @@ -100,7 +100,7 @@ def fetch_results # NOTE: Don't run QueryResolver during tests return super unless context.present? - GraphQL::QueryResolver.run(PointOfInterest, context, Types::PointOfInterestType) do + GraphQL::QueryResolver.run(PointOfInterest, context, Types::QueryTypes::PointOfInterestType) do super end end diff --git a/app/graphql/resolvers/tours_search.rb b/app/graphql/resolvers/tours_search.rb index d73f6ecc..e22cf569 100644 --- a/app/graphql/resolvers/tours_search.rb +++ b/app/graphql/resolvers/tours_search.rb @@ -8,18 +8,18 @@ class Resolvers::ToursSearch scope { Tour.filtered_for_current_user(context[:current_user]) } - type types[Types::TourType] + type types[Types::QueryTypes::TourType] class ToursOrder < ::Types::BaseEnum value "createdAt_ASC" value "createdAt_DESC" - value "updatedAt_ASC" - value "updatedAt_DESC" - value "name_ASC" - value "name_DESC" value "id_ASC" value "id_DESC" + value "name_ASC" + value "name_DESC" value "RAND" + value "updatedAt_ASC" + value "updatedAt_DESC" end option :limit, type: types.Int, with: :apply_limit @@ -100,7 +100,7 @@ def fetch_results # NOTE: Don't run QueryResolver during tests return super unless context.present? - GraphQL::QueryResolver.run(Tour, context, Types::TourType) do + GraphQL::QueryResolver.run(Tour, context, Types::QueryTypes::TourType) do super end end diff --git a/app/graphql/resolvers/weather_search.rb b/app/graphql/resolvers/weather_search.rb index f728372e..88230ff3 100644 --- a/app/graphql/resolvers/weather_search.rb +++ b/app/graphql/resolvers/weather_search.rb @@ -8,15 +8,15 @@ class Resolvers::WeatherSearch scope { OpenWeatherMap.all } - type types[Types::OpenWeatherMapType] + type types[Types::QueryTypes::OpenWeatherMapType] class OpenWeatherMapsOrder < ::Types::BaseEnum value "createdAt_ASC" value "createdAt_DESC" - value "updatedAt_ASC" - value "updatedAt_DESC" value "id_ASC" value "id_DESC" + value "updatedAt_ASC" + value "updatedAt_DESC" end option :limit, type: types.Int, with: :apply_limit @@ -70,7 +70,7 @@ def fetch_results # NOTE: Don't run QueryResolver during tests return super unless context.present? - GraphQL::QueryResolver.run(OpenWeatherMap, context, Types::OpenWeatherMapType) do + GraphQL::QueryResolver.run(OpenWeatherMap, context, Types::QueryTypes::OpenWeatherMapType) do super end end diff --git a/app/graphql/types/category_type.rb b/app/graphql/types/category_type.rb deleted file mode 100644 index 4a30db98..00000000 --- a/app/graphql/types/category_type.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -module Types - class CategoryType < Types::BaseObject - field :id, ID, null: true - field :name, String, null: true - field :points_of_interest_count, Integer, null: true - field :tours_count, Integer, null: true - field :news_items_count, Integer, null: true - field :event_records_count, Integer, null: true - field :upcoming_event_records_count, Integer, null: true - field :event_records, [EventRecordType], null: true - field :upcoming_event_records, [EventRecordType], null: true - field :points_of_interest, [PointOfInterestType], null: true - field :tours, [TourType], null: true - field :news_items, [NewsItemType], null: true - end -end diff --git a/app/graphql/types/data_provider_type.rb b/app/graphql/types/data_provider_type.rb deleted file mode 100644 index 1d76c9b7..00000000 --- a/app/graphql/types/data_provider_type.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Types - class DataProviderType < Types::BaseObject - field :id, ID, null: true - field :name, String, null: true - field :data_type, String, null: true - field :logo, WebUrlType, null: true - field :description, String, null: true - field :address, AddressType, null: true - field :contact, ContactType, null: true - end -end diff --git a/app/graphql/types/event_record_type.rb b/app/graphql/types/event_record_type.rb deleted file mode 100644 index 27780bc6..00000000 --- a/app/graphql/types/event_record_type.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -module Types - class EventRecordType < Types::BaseObject - field :id, ID, null: true - field :visible, Boolean, null: true - field :settings, SettingType, null: true - field :external_id, String, null: true - field :parent_id, Integer, null: true - field :description, String, null: true - field :title, String, null: true - field :dates, [DateType], null: true - field :list_date, String, null: true - field :repeat, Boolean, null: true - field :repeat_duration, RepeatDurationType, null: true - field :category, CategoryType, null: true - field :categories, [CategoryType], null: true - field :addresses, [AddressType], null: true - field :location, LocationType, null: true - field :region_id, String, null: true - field :region, RegionType, null: true - field :data_provider, DataProviderType, null: true - field :contacts, [ContactType], null: true - field :urls, [WebUrlType], null: true - field :media_contents, [MediaContentType], null: true - field :organizer, OperatingCompanyType, null: true - field :price_informations, [PriceType], null: true - field :accessibility_information, AccessibilityInformationType, null: true - field :tag_list, [String], null: true - field :updated_at, String, null: true - field :created_at, String, null: true - end -end diff --git a/app/graphql/types/accessibility_information_input.rb b/app/graphql/types/input_types/accessibility_information_input.rb similarity index 68% rename from app/graphql/types/accessibility_information_input.rb rename to app/graphql/types/input_types/accessibility_information_input.rb index 0c6d0a9a..d9ae5d29 100644 --- a/app/graphql/types/accessibility_information_input.rb +++ b/app/graphql/types/input_types/accessibility_information_input.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true module Types - class AccessibilityInformationInput < BaseInputObject + class InputTypes::AccessibilityInformationInput < BaseInputObject argument :description, String, required: false argument :types, String, required: false - argument :urls, [Types::WebUrlInput], required: false, + argument :urls, [Types::InputTypes::WebUrlInput], required: false, as: :urls_attributes, prepare: ->(urls, _ctx) { urls.map(&:to_h) } end diff --git a/app/graphql/types/address_input.rb b/app/graphql/types/input_types/address_input.rb similarity index 82% rename from app/graphql/types/address_input.rb rename to app/graphql/types/input_types/address_input.rb index 5748952e..be199a99 100644 --- a/app/graphql/types/address_input.rb +++ b/app/graphql/types/input_types/address_input.rb @@ -1,14 +1,14 @@ # frozen_string_literal: true module Types - class AddressInput < BaseInputObject + class InputTypes::AddressInput < BaseInputObject argument :id, Integer, required: false argument :addition, String, required: false argument :street, String, required: false argument :zip, String, required: false argument :city, String, required: false argument :kind, String, required: false - argument :geo_location, Types::GeoLocationInput, required: false, + argument :geo_location, Types::InputTypes::GeoLocationInput, required: false, as: :geo_location_attributes, prepare: lambda { |geo_location, _ctx| geo_location.to_h diff --git a/app/graphql/types/category_input.rb b/app/graphql/types/input_types/category_input.rb similarity index 65% rename from app/graphql/types/category_input.rb rename to app/graphql/types/input_types/category_input.rb index 132fa59b..c7ddf25f 100644 --- a/app/graphql/types/category_input.rb +++ b/app/graphql/types/input_types/category_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class CategoryInput < BaseInputObject + class InputTypes::CategoryInput < BaseInputObject argument :name, String, required: false end end diff --git a/app/graphql/types/certificate_input.rb b/app/graphql/types/input_types/certificate_input.rb similarity index 64% rename from app/graphql/types/certificate_input.rb rename to app/graphql/types/input_types/certificate_input.rb index ae5852ab..a764e47d 100644 --- a/app/graphql/types/certificate_input.rb +++ b/app/graphql/types/input_types/certificate_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class CertificateInput < BaseInputObject + class InputTypes::CertificateInput < BaseInputObject argument :name, String, required: false end end diff --git a/app/graphql/types/contact_input.rb b/app/graphql/types/input_types/contact_input.rb similarity index 78% rename from app/graphql/types/contact_input.rb rename to app/graphql/types/input_types/contact_input.rb index 84fece9f..d6e9f311 100644 --- a/app/graphql/types/contact_input.rb +++ b/app/graphql/types/input_types/contact_input.rb @@ -1,12 +1,12 @@ # frozen_string_literal: true module Types - class ContactInput < BaseInputObject + class InputTypes::ContactInput < BaseInputObject argument :first_name, String, required: false argument :last_name, String, required: false argument :phone, String, required: false argument :fax, String, required: false - argument :web_urls, [Types::WebUrlInput], required: false, + argument :web_urls, [Types::InputTypes::WebUrlInput], required: false, as: :web_urls_attributes, prepare: ->(web_urls, _ctx) { web_urls.map(&:to_h) } argument :email, String, required: false diff --git a/app/graphql/types/content_block_input.rb b/app/graphql/types/input_types/content_block_input.rb similarity index 78% rename from app/graphql/types/content_block_input.rb rename to app/graphql/types/input_types/content_block_input.rb index 66c7e207..c6414e77 100644 --- a/app/graphql/types/content_block_input.rb +++ b/app/graphql/types/input_types/content_block_input.rb @@ -1,11 +1,11 @@ # frozen_string_literal: true module Types - class ContentBlockInput < BaseInputObject + class InputTypes::ContentBlockInput < BaseInputObject argument :title, String, required: false argument :intro, String, required: false argument :body, String, required: false - argument :media_contents, [Types::MediaContentInput], required: false, + argument :media_contents, [Types::InputTypes::MediaContentInput], required: false, as: :media_contents_attributes, prepare: lambda { |media_contents, _ctx| media_contents.map(&:to_h) diff --git a/app/graphql/types/data_provider_input.rb b/app/graphql/types/input_types/data_provider_input.rb similarity index 70% rename from app/graphql/types/data_provider_input.rb rename to app/graphql/types/input_types/data_provider_input.rb index 6ee397ae..5b572eb9 100644 --- a/app/graphql/types/data_provider_input.rb +++ b/app/graphql/types/input_types/data_provider_input.rb @@ -1,16 +1,16 @@ # frozen_string_literal: true module Types - class DataProviderInput < BaseInputObject + class InputTypes::DataProviderInput < BaseInputObject argument :name, String, required: true argument :data_type, String, required: false - argument :address, Types::AddressInput, required: false, + argument :address, Types::InputTypes::AddressInput, required: false, as: :address_attributes, prepare: ->(address, _ctx) { address.to_h } - argument :contact, Types::ContactInput, required: false, + argument :contact, Types::InputTypes::ContactInput, required: false, as: :contact_attributes, prepare: ->(contact, _ctx) { contact.to_h } - argument :logo, Types::WebUrlInput, required: false, + argument :logo, Types::InputTypes::WebUrlInput, required: false, as: :logo_attributes, prepare: ->(logo, _ctx) { logo.to_h } argument :description, String, required: false diff --git a/app/graphql/types/date_input.rb b/app/graphql/types/input_types/date_input.rb similarity index 89% rename from app/graphql/types/date_input.rb rename to app/graphql/types/input_types/date_input.rb index 0acc3dd7..d71d3030 100644 --- a/app/graphql/types/date_input.rb +++ b/app/graphql/types/input_types/date_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class DateInput < BaseInputObject + class InputTypes::DateInput < BaseInputObject argument :weekday, String, required: false argument :date_start, String, required: false argument :date_end, String, required: false diff --git a/app/graphql/types/input_types/generic_item_input.rb b/app/graphql/types/input_types/generic_item_input.rb new file mode 100644 index 00000000..3c44201f --- /dev/null +++ b/app/graphql/types/input_types/generic_item_input.rb @@ -0,0 +1,74 @@ +# frozen_string_literal: true + +module Types + class InputTypes::GenericItemInput < BaseInputObject + argument :force_create, Boolean, required: false + argument :push_notification, Boolean, required: false + argument :author, String, required: false + argument :title, String, required: false + argument :generic_type, String, required: false + argument :external_id, String, required: false + argument :publication_date, String, required: false + argument :published_at, String, required: false + argument :category_name, String, required: false + argument :payload, GraphQL::Types::JSON, required: false + argument :contacts, [Types::InputTypes::ContactInput], + required: false, as: :contacts_attributes, + prepare: ->(contacts, _ctx) { contacts.map(&:to_h) } + argument :generic_items, [Types::InputTypes::GenericItemInput], required: false, + as: :generic_items_attributes, + prepare: lambda { |generic_items, _ctx| + generic_items.map(&:to_h) + } + argument :companies, [Types::InputTypes::OperatingCompanyInput], required: false, + as: :companies_attributes, + prepare: lambda { |companies, _ctx| + companies.map(&:to_h) + } + + argument :categories, [Types::InputTypes::CategoryInput], required: false, + as: :category_names, + prepare: lambda { |category, _ctx| + category.map(&:to_h) + } + argument :web_urls, [Types::InputTypes::WebUrlInput], required: false, + as: :web_urls_attributes, + prepare: ->(source_url, _ctx) { source_url.map(&:to_h) } + argument :addresses, [Types::InputTypes::AddressInput], required: false, + as: :address_attributes, + prepare: lambda { |address, _ctx| + address.to_h + } + argument :content_blocks, [Types::InputTypes::ContentBlockInput], required: false, + as: :content_blocks_attributes, + prepare: lambda { |content_blocks, _ctx| + content_blocks.map(&:to_h) + } + argument :opening_hours, [Types::InputTypes::OpeningHourInput], required: false, + as: :opening_hours_attributes, + prepare: lambda { |opening_hours, _ctx| + opening_hours.map(&:to_h) + } + argument :price_informations, [Types::InputTypes::PriceInput], required: false, + as: :price_informations_attributes, + prepare: lambda { |price_informations, _ctx| + price_informations.map(&:to_h) + } + argument :media_contents, [Types::InputTypes::MediaContentInput], required: false, + as: :media_contents_attributes, + prepare: lambda { |media_contents, _ctx| + media_contents.map(&:to_h) + } + argument :locations, [Types::InputTypes::LocationInput], required: false, + as: :locations_attributes, + prepare: ->(location, _ctx) { location.map(&:to_h) } + argument :dates, [Types::InputTypes::DateInput], required: false, + as: :dates_attributes, + prepare: ->(dates, _ctx) { dates.map(&:to_h) } + argument :accessibility_informations, [Types::InputTypes::AccessibilityInformationInput], + required: false, as: :accessibility_informations_attributes, + prepare: lambda { |accessibility_informations, _ctx| + accessibility_informations.map(&:to_h) + } + end +end diff --git a/app/graphql/types/geo_location_input.rb b/app/graphql/types/input_types/geo_location_input.rb similarity index 75% rename from app/graphql/types/geo_location_input.rb rename to app/graphql/types/input_types/geo_location_input.rb index 7c2f0806..a012bcd6 100644 --- a/app/graphql/types/geo_location_input.rb +++ b/app/graphql/types/input_types/geo_location_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class GeoLocationInput < BaseInputObject + class InputTypes::GeoLocationInput < BaseInputObject argument :latitude, AnyPrimitiveType, required: false argument :longitude, AnyPrimitiveType, required: false end diff --git a/app/graphql/types/location_input.rb b/app/graphql/types/input_types/location_input.rb similarity index 82% rename from app/graphql/types/location_input.rb rename to app/graphql/types/input_types/location_input.rb index 18d21d9b..df40cf8f 100644 --- a/app/graphql/types/location_input.rb +++ b/app/graphql/types/input_types/location_input.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true module Types - class LocationInput < BaseInputObject + class InputTypes::LocationInput < BaseInputObject argument :name, String, required: false argument :department, String, required: false argument :district, String, required: false argument :region_name, String, required: false argument :state, String, required: false - argument :geo_location, Types::GeoLocationInput, required: false, + argument :geo_location, Types::InputTypes::GeoLocationInput, required: false, as: :geo_location_attributes, prepare: lambda { |geo_location, _ctx| geo_location.to_h diff --git a/app/graphql/types/input_types/lunch_input.rb b/app/graphql/types/input_types/lunch_input.rb new file mode 100644 index 00000000..3f5591ed --- /dev/null +++ b/app/graphql/types/input_types/lunch_input.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Types + class InputTypes::LunchInput < BaseInputObject + argument :text, String, required: false + argument :dates, [Types::InputTypes::DateInput], required: false, as: :dates_attributes, prepare: ->(dates, _ctx) { dates.map(&:to_h) } + argument :lunch_offers, [Types::InputTypes::LunchOfferInput], required: false, as: :lunch_offers_attributes, prepare: ->(lunch_offers, _ctx) { lunch_offers.map(&:to_h) } + argument :point_of_interest_id, ID, required: false + argument :point_of_interest_attributes, String, required: false + end +end diff --git a/app/graphql/types/lunch_offer_input.rb b/app/graphql/types/input_types/lunch_offer_input.rb similarity index 72% rename from app/graphql/types/lunch_offer_input.rb rename to app/graphql/types/input_types/lunch_offer_input.rb index 5478146f..8d711ea3 100644 --- a/app/graphql/types/lunch_offer_input.rb +++ b/app/graphql/types/input_types/lunch_offer_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class LunchOfferInput < BaseInputObject + class InputTypes::LunchOfferInput < BaseInputObject argument :name, String, required: false argument :price, String, required: false end diff --git a/app/graphql/types/media_content_input.rb b/app/graphql/types/input_types/media_content_input.rb similarity index 78% rename from app/graphql/types/media_content_input.rb rename to app/graphql/types/input_types/media_content_input.rb index f776f436..0b58b9de 100644 --- a/app/graphql/types/media_content_input.rb +++ b/app/graphql/types/input_types/media_content_input.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true module Types - class MediaContentInput < BaseInputObject + class InputTypes::MediaContentInput < BaseInputObject argument :caption_text, String, required: false argument :copyright, String, required: false argument :height, AnyPrimitiveType, required: false argument :width, AnyPrimitiveType, required: false argument :content_type, String, required: false - argument :source_url, Types::WebUrlInput, required: false, + argument :source_url, Types::InputTypes::WebUrlInput, required: false, as: :source_url_attributes, prepare: ->(source_url, _ctx) { source_url.to_h } end diff --git a/app/graphql/types/opening_hour_input.rb b/app/graphql/types/input_types/opening_hour_input.rb similarity index 88% rename from app/graphql/types/opening_hour_input.rb rename to app/graphql/types/input_types/opening_hour_input.rb index d6ae2646..15242b85 100644 --- a/app/graphql/types/opening_hour_input.rb +++ b/app/graphql/types/input_types/opening_hour_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class OpeningHourInput < BaseInputObject + class InputTypes::OpeningHourInput < BaseInputObject argument :weekday, String, required: false argument :date_from, String, required: false argument :date_to, String, required: false diff --git a/app/graphql/types/operating_company_input.rb b/app/graphql/types/input_types/operating_company_input.rb similarity index 66% rename from app/graphql/types/operating_company_input.rb rename to app/graphql/types/input_types/operating_company_input.rb index 0719820e..5d6b6c2d 100644 --- a/app/graphql/types/operating_company_input.rb +++ b/app/graphql/types/input_types/operating_company_input.rb @@ -1,12 +1,12 @@ # frozen_string_literal: true module Types - class OperatingCompanyInput < BaseInputObject + class InputTypes::OperatingCompanyInput < BaseInputObject argument :name, String, required: false - argument :address, Types::AddressInput, required: false, + argument :address, Types::InputTypes::AddressInput, required: false, as: :address_attributes, prepare: ->(address, _ctx) { address.to_h } - argument :contact, Types::ContactInput, required: false, + argument :contact, Types::InputTypes::ContactInput, required: false, as: :contact_attributes, prepare: ->(contact, _ctx) { contact.to_h } end diff --git a/app/graphql/types/price_input.rb b/app/graphql/types/input_types/price_input.rb similarity index 92% rename from app/graphql/types/price_input.rb rename to app/graphql/types/input_types/price_input.rb index 138e20ca..587b543d 100644 --- a/app/graphql/types/price_input.rb +++ b/app/graphql/types/input_types/price_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class PriceInput < BaseInputObject + class InputTypes::PriceInput < BaseInputObject argument :name, String, required: false argument :amount, AnyPrimitiveType, required: false argument :group_price, Boolean, required: false diff --git a/app/graphql/types/region_input.rb b/app/graphql/types/input_types/region_input.rb similarity index 66% rename from app/graphql/types/region_input.rb rename to app/graphql/types/input_types/region_input.rb index 04753021..4240e401 100644 --- a/app/graphql/types/region_input.rb +++ b/app/graphql/types/input_types/region_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class RegionInput < BaseInputObject + class InputTypes::RegionInput < BaseInputObject argument :name, String, required: false end end diff --git a/app/graphql/types/repeat_duration_input.rb b/app/graphql/types/input_types/repeat_duration_input.rb similarity index 77% rename from app/graphql/types/repeat_duration_input.rb rename to app/graphql/types/input_types/repeat_duration_input.rb index d0e17f85..73a7a716 100644 --- a/app/graphql/types/repeat_duration_input.rb +++ b/app/graphql/types/input_types/repeat_duration_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class RepeatDurationInput < BaseInputObject + class InputTypes::RepeatDurationInput < BaseInputObject argument :start_date, String, required: false argument :end_date, String, required: false argument :every_year, Boolean, required: false diff --git a/app/graphql/types/web_url_input.rb b/app/graphql/types/input_types/web_url_input.rb similarity index 74% rename from app/graphql/types/web_url_input.rb rename to app/graphql/types/input_types/web_url_input.rb index 9ae6d4ee..df22319b 100644 --- a/app/graphql/types/web_url_input.rb +++ b/app/graphql/types/input_types/web_url_input.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class WebUrlInput < BaseInputObject + class InputTypes::WebUrlInput < BaseInputObject argument :url, String, required: false argument :description, String, required: false end diff --git a/app/graphql/types/lunch_input.rb b/app/graphql/types/lunch_input.rb deleted file mode 100644 index 71cbd60d..00000000 --- a/app/graphql/types/lunch_input.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Types - class LunchInput < BaseInputObject - argument :text, String, required: false - argument :dates, [Types::DateInput], required: false, as: :dates_attributes, prepare: ->(dates, _ctx) { dates.map(&:to_h) } - argument :lunch_offers, [Types::LunchOfferInput], required: false, as: :lunch_offers_attributes, prepare: ->(lunch_offers, _ctx) { lunch_offers.map(&:to_h) } - argument :point_of_interest_id, ID, required: false - argument :point_of_interest_attributes, String, required: false - end -end diff --git a/app/graphql/types/mutation_type.rb b/app/graphql/types/mutation_type.rb index 9582e47a..cb15b7d8 100644 --- a/app/graphql/types/mutation_type.rb +++ b/app/graphql/types/mutation_type.rb @@ -4,6 +4,7 @@ module Types class MutationType < Types::BaseObject # creations field :create_news_item, mutation: Mutations::CreateNewsItem + field :create_generic_item, mutation: Mutations::CreateGenericItem field :create_tour, mutation: Mutations::CreateTour field :create_event_record, mutation: Mutations::CreateEventRecord field :create_point_of_interest, mutation: Mutations::CreatePointOfInterest diff --git a/app/graphql/types/operating_company_type.rb b/app/graphql/types/operating_company_type.rb deleted file mode 100644 index c00a0169..00000000 --- a/app/graphql/types/operating_company_type.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -module Types - class OperatingCompanyType < Types::BaseObject - field :id, ID, null: true - field :name, String, null: true - field :address, AddressType, null: true - field :contact, ContactType, null: true - end -end diff --git a/app/graphql/types/point_of_interest_type.rb b/app/graphql/types/point_of_interest_type.rb deleted file mode 100644 index 3d3bce22..00000000 --- a/app/graphql/types/point_of_interest_type.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -module Types - class PointOfInterestType < Types::BaseObject - field :id, ID, null: true - field :visible, Boolean, null: true - field :settings, SettingType, null: true - field :name, String, null: true - field :description, String, null: true - field :mobile_description, String, null: true - field :addresses, [AddressType], null: true - field :active, Boolean, null: true - field :category, CategoryType, null: true - field :categories, [CategoryType], null: true - field :location, LocationType, null: true - field :data_provider, DataProviderType, null: true - field :contact, ContactType, null: true - field :web_urls, [WebUrlType], null: true - field :media_contents, [MediaContentType], null: true - field :operating_company, OperatingCompanyType, null: true - field :opening_hours, [OpeningHourType], null: true - field :price_informations, [PriceType], null: true - field :certificates, [CertificateType], null: true - field :accessibility_information, AccessibilityInformationType, null: true - field :tag_list, [String], null: true - field :lunches, [LunchType], null: true - field :updated_at, String, null: true - field :created_at, String, null: true - end -end diff --git a/app/graphql/types/query_type.rb b/app/graphql/types/query_type.rb index 1b9e08a0..ffa81dbb 100644 --- a/app/graphql/types/query_type.rb +++ b/app/graphql/types/query_type.rb @@ -4,47 +4,53 @@ module Types class QueryType < Types::BaseObject + field :generic_items, function: Resolvers::GenericItemSearch + field :generic_item, QueryTypes::GenericItemType, null: false do + argument :id, ID, required: true + end + field :weather_maps, function: Resolvers::WeatherSearch - field :weather_map, OpenWeatherMapType, null: false do + field :weather_map, QueryTypes::OpenWeatherMapType, null: false do argument :id, ID, required: false end field :points_of_interest, function: Resolvers::PointsOfInterestSearch - field :point_of_interest, PointOfInterestType, null: false do + field :point_of_interest, QueryTypes::PointOfInterestType, null: false do argument :id, ID, required: true end field :event_records, function: Resolvers::EventRecordsSearch - field :event_record, EventRecordType, null: false do + field :event_record, QueryTypes::EventRecordType, null: false do argument :id, ID, required: true end field :news_items, function: Resolvers::NewsItemsSearch - field :news_item, NewsItemType, null: false do + field :news_item, QueryTypes::NewsItemType, null: false do argument :id, ID, required: true end - field :tours, [TourType], function: Resolvers::ToursSearch - field :tour, TourType, null: false do + field :tours, [QueryTypes::TourType], function: Resolvers::ToursSearch + field :tour, QueryTypes::TourType, null: false do argument :id, ID, required: true end - field :categories, [CategoryType], null: false + field :categories, [QueryTypes::CategoryType], null: false + field :category_tree, GraphQL::Types::JSON, null: false - field :public_html_file, PublicHtmlFileType, null: false do + field :public_html_file, QueryTypes::PublicHtmlFileType, null: false do argument :name, String, required: true end - field :public_json_file, PublicJsonFileType, null: false do + field :public_json_file, QueryTypes::PublicJsonFileType, null: false do argument :name, String, required: true end - field :news_items_data_providers, [DataProviderType], null: false do + field :news_items_data_providers, [QueryTypes::DataProviderType], null: false do argument :category_id, ID, required: false end - field :lunches, [LunchType], function: Resolvers::LunchesSearch - field :lunch, LunchType, null: false do + field :lunches, [QueryTypes::LunchType], function: Resolvers::LunchesSearch + field :lunch, QueryTypes::LunchType, null: false do argument :id, ID, required: true end @@ -69,6 +75,10 @@ def news_item(id:) NewsItem.find(id) end + def generic_item(id:) + GenericItem.find(id) + end + def tour(id:) Tour.find(id) end @@ -77,6 +87,10 @@ def categories Category.all.order(:name) end + def category_tree + Category.order(:name).select(:id, :name, :ancestry).arrange_serializable + end + def news_items_data_providers(category_id: nil) return DataProvider.joins(:news_items).order(:name).uniq if category_id.blank? diff --git a/app/graphql/types/accessibility_information_type.rb b/app/graphql/types/query_types/accessibility_information_type.rb similarity index 57% rename from app/graphql/types/accessibility_information_type.rb rename to app/graphql/types/query_types/accessibility_information_type.rb index 8096707c..5abf9e00 100644 --- a/app/graphql/types/accessibility_information_type.rb +++ b/app/graphql/types/query_types/accessibility_information_type.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true module Types - class AccessibilityInformationType < Types::BaseObject + class QueryTypes::AccessibilityInformationType < Types::BaseObject field :id, ID, null: true field :description, String, null: true field :types, String, null: true - field :urls, [WebUrlType], null: true + field :urls, [QueryTypes::WebUrlType], null: true end end diff --git a/app/graphql/types/address_type.rb b/app/graphql/types/query_types/address_type.rb similarity index 69% rename from app/graphql/types/address_type.rb rename to app/graphql/types/query_types/address_type.rb index 9e3cc8ed..1c63da8a 100644 --- a/app/graphql/types/address_type.rb +++ b/app/graphql/types/query_types/address_type.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true module Types - class AddressType < Types::BaseObject + class QueryTypes::AddressType < Types::BaseObject field :id, ID, null: true field :addition, String, null: true field :street, String, null: true field :city, String, null: true field :zip, String, null: true field :kind, String, null: true - field :geo_location, GeoLocationType, null: true + field :geo_location, QueryTypes::GeoLocationType, null: true end end diff --git a/app/graphql/types/app_user_content_type.rb b/app/graphql/types/query_types/app_user_content_type.rb similarity index 83% rename from app/graphql/types/app_user_content_type.rb rename to app/graphql/types/query_types/app_user_content_type.rb index 07026138..d494749d 100644 --- a/app/graphql/types/app_user_content_type.rb +++ b/app/graphql/types/query_types/app_user_content_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class AppUserContentType < Types::BaseObject + class QueryTypes::AppUserContentType < Types::BaseObject field :id, ID, null: true field :data_source, String, null: true field :data_type, String, null: true diff --git a/app/graphql/types/query_types/category_type.rb b/app/graphql/types/query_types/category_type.rb new file mode 100644 index 00000000..8de00219 --- /dev/null +++ b/app/graphql/types/query_types/category_type.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +module Types + class QueryTypes::CategoryType < Types::BaseObject + field :id, ID, null: true + field :name, String, null: true + field :points_of_interest_count, Integer, null: true + field :tours_count, Integer, null: true + field :news_items_count, Integer, null: true + field :event_records_count, Integer, null: true + field :upcoming_event_records_count, Integer, null: true + field :event_records, [QueryTypes::EventRecordType], null: true + field :upcoming_event_records, [QueryTypes::EventRecordType], null: true + field :points_of_interest, [QueryTypes::PointOfInterestType], null: true + field :tours, [QueryTypes::TourType], null: true + field :news_items, [QueryTypes::NewsItemType], null: true + end +end diff --git a/app/graphql/types/certificate_type.rb b/app/graphql/types/query_types/certificate_type.rb similarity index 68% rename from app/graphql/types/certificate_type.rb rename to app/graphql/types/query_types/certificate_type.rb index 232292c2..ecea66c1 100644 --- a/app/graphql/types/certificate_type.rb +++ b/app/graphql/types/query_types/certificate_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class CertificateType < Types::BaseObject + class QueryTypes::CertificateType < Types::BaseObject field :id, ID, null: true field :name, String, null: true end diff --git a/app/graphql/types/contact_type.rb b/app/graphql/types/query_types/contact_type.rb similarity index 71% rename from app/graphql/types/contact_type.rb rename to app/graphql/types/query_types/contact_type.rb index 537723ea..1cb9843f 100644 --- a/app/graphql/types/contact_type.rb +++ b/app/graphql/types/query_types/contact_type.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true module Types - class ContactType < Types::BaseObject + class QueryTypes::ContactType < Types::BaseObject field :id, ID, null: true field :first_name, String, null: true field :last_name, String, null: true field :phone, String, null: true field :fax, String, null: true - field :web_urls, [WebUrlType], null: true + field :web_urls, [QueryTypes::WebUrlType], null: true field :email, String, null: true end end diff --git a/app/graphql/types/content_block_type.rb b/app/graphql/types/query_types/content_block_type.rb similarity index 68% rename from app/graphql/types/content_block_type.rb rename to app/graphql/types/query_types/content_block_type.rb index 37d98448..5757bb26 100644 --- a/app/graphql/types/content_block_type.rb +++ b/app/graphql/types/query_types/content_block_type.rb @@ -1,12 +1,12 @@ # frozen_string_literal: true module Types - class ContentBlockType < Types::BaseObject + class QueryTypes::ContentBlockType < Types::BaseObject field :id, ID, null: true field :title, String, null: true field :intro, String, null: true field :body, String, null: true - field :media_contents, [MediaContentType], null: true + field :media_contents, [QueryTypes::MediaContentType], null: true field :updated_at, String, null: true field :created_at, String, null: true end diff --git a/app/graphql/types/query_types/data_provider_type.rb b/app/graphql/types/query_types/data_provider_type.rb new file mode 100644 index 00000000..83539196 --- /dev/null +++ b/app/graphql/types/query_types/data_provider_type.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Types + class QueryTypes::DataProviderType < Types::BaseObject + field :id, ID, null: true + field :name, String, null: true + field :data_type, String, null: true + field :logo, QueryTypes::WebUrlType, null: true + field :description, String, null: true + field :address, QueryTypes::AddressType, null: true + field :contact, QueryTypes::ContactType, null: true + end +end diff --git a/app/graphql/types/date_type.rb b/app/graphql/types/query_types/date_type.rb similarity index 95% rename from app/graphql/types/date_type.rb rename to app/graphql/types/query_types/date_type.rb index a0a1f35c..0a567bd4 100644 --- a/app/graphql/types/date_type.rb +++ b/app/graphql/types/query_types/date_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class DateType < Types::BaseObject + class QueryTypes::DateType < Types::BaseObject field :id, ID, null: true field :weekday, String, null: true field :date_start, String, null: true diff --git a/app/graphql/types/query_types/event_record_type.rb b/app/graphql/types/query_types/event_record_type.rb new file mode 100644 index 00000000..50eb8f65 --- /dev/null +++ b/app/graphql/types/query_types/event_record_type.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true + +module Types + class QueryTypes::EventRecordType < Types::BaseObject + field :id, ID, null: true + field :visible, Boolean, null: true + field :settings, QueryTypes::SettingType, null: true + field :external_id, String, null: true + field :parent_id, Integer, null: true + field :description, String, null: true + field :title, String, null: true + field :dates, [QueryTypes::DateType], null: true + field :list_date, String, null: true + field :repeat, Boolean, null: true + field :repeat_duration, QueryTypes::RepeatDurationType, null: true + field :category, QueryTypes::CategoryType, null: true + field :categories, [QueryTypes::CategoryType], null: true + field :addresses, [QueryTypes::AddressType], null: true + field :location, QueryTypes::LocationType, null: true + field :region_id, String, null: true + field :region, QueryTypes::RegionType, null: true + field :data_provider, QueryTypes::DataProviderType, null: true + field :contacts, [QueryTypes::ContactType], null: true + field :urls, [QueryTypes::WebUrlType], null: true + field :media_contents, [QueryTypes::MediaContentType], null: true + field :organizer, QueryTypes::OperatingCompanyType, null: true + field :price_informations, [QueryTypes::PriceType], null: true + field :accessibility_information, QueryTypes::AccessibilityInformationType, null: true + field :tag_list, [String], null: true + field :updated_at, String, null: true + field :created_at, String, null: true + end +end diff --git a/app/graphql/types/query_types/generic_item_type.rb b/app/graphql/types/query_types/generic_item_type.rb new file mode 100644 index 00000000..0a79c4a3 --- /dev/null +++ b/app/graphql/types/query_types/generic_item_type.rb @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +module Types + class QueryTypes::GenericItemType < Types::BaseObject + field :id, ID, null: true + field :accessibility_informations, [QueryTypes::AccessibilityInformationType], null: true + field :addresses, [QueryTypes::AddressType], null: true + field :author, String, null: true + field :categories, [QueryTypes::CategoryType], null: true + field :companies, [QueryTypes::OperatingCompanyType], null: true + field :contacts, [QueryTypes::ContactType], null: true + field :content_blocks, [QueryTypes::ContentBlockType], null: true + field :data_provider, QueryTypes::DataProviderType, null: true + field :dates, [QueryTypes::DateType], null: true + field :external_id, String, null: true + field :generic_items, [QueryTypes::GenericItemType], null: true + field :generic_type, String, null: true + field :locations, [QueryTypes::LocationType], null: true + field :media_contents, [QueryTypes::MediaContentType], null: true + field :opening_hours, [QueryTypes::OpeningHourType], null: true + field :payload, GraphQL::Types::JSON, null: true + field :price_informations, [QueryTypes::PriceType], null: true + field :publication_date, String, null: true + field :published_at, String, null: true + field :settings, QueryTypes::SettingType, null: true + field :title, String, null: true + field :visible, Boolean, null: true + field :web_urls, [QueryTypes::WebUrlType], null: true + field :updated_at, String, null: true + field :created_at, String, null: true + end +end diff --git a/app/graphql/types/geo_location_type.rb b/app/graphql/types/query_types/geo_location_type.rb similarity index 74% rename from app/graphql/types/geo_location_type.rb rename to app/graphql/types/query_types/geo_location_type.rb index 32c2a923..f954d8ab 100644 --- a/app/graphql/types/geo_location_type.rb +++ b/app/graphql/types/query_types/geo_location_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class GeoLocationType < Types::BaseObject + class QueryTypes::GeoLocationType < Types::BaseObject field :id, ID, null: true field :latitude, Float, null: true field :longitude, Float, null: true diff --git a/app/graphql/types/location_type.rb b/app/graphql/types/query_types/location_type.rb similarity index 70% rename from app/graphql/types/location_type.rb rename to app/graphql/types/query_types/location_type.rb index 55b8011c..0d0b2493 100644 --- a/app/graphql/types/location_type.rb +++ b/app/graphql/types/query_types/location_type.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true module Types - class LocationType < Types::BaseObject + class QueryTypes::LocationType < Types::BaseObject field :id, ID, null: true field :name, String, null: true field :department, String, null: true field :district, String, null: true field :region_name, String, null: true field :state, String, null: true - field :geo_location, GeoLocationType, null: true + field :geo_location, QueryTypes::GeoLocationType, null: true end end diff --git a/app/graphql/types/lunch_offer_type.rb b/app/graphql/types/query_types/lunch_offer_type.rb similarity index 81% rename from app/graphql/types/lunch_offer_type.rb rename to app/graphql/types/query_types/lunch_offer_type.rb index d3e63737..94244f80 100644 --- a/app/graphql/types/lunch_offer_type.rb +++ b/app/graphql/types/query_types/lunch_offer_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class LunchOfferType < Types::BaseObject + class QueryTypes::LunchOfferType < Types::BaseObject field :id, ID, null: true field :name, String, null: true field :price, String, null: true diff --git a/app/graphql/types/lunch_type.rb b/app/graphql/types/query_types/lunch_type.rb similarity index 55% rename from app/graphql/types/lunch_type.rb rename to app/graphql/types/query_types/lunch_type.rb index e34e02fa..c715c84a 100644 --- a/app/graphql/types/lunch_type.rb +++ b/app/graphql/types/query_types/lunch_type.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true module Types - class LunchType < Types::BaseObject + class QueryTypes::LunchType < Types::BaseObject field :id, ID, null: true field :text, String, null: true field :list_date, String, null: true - field :dates, [DateType], null: true - field :lunch_offers, [LunchOfferType], null: true - field :point_of_interest, PointOfInterestType, null: false + field :dates, [QueryTypes::DateType], null: true + field :lunch_offers, [QueryTypes::LunchOfferType], null: true + field :point_of_interest, QueryTypes::PointOfInterestType, null: false field :point_of_interest_attributes, String, null: true field :updated_at, String, null: true field :created_at, String, null: true diff --git a/app/graphql/types/media_content_type.rb b/app/graphql/types/query_types/media_content_type.rb similarity index 71% rename from app/graphql/types/media_content_type.rb rename to app/graphql/types/query_types/media_content_type.rb index 8a04223d..2faa187c 100644 --- a/app/graphql/types/media_content_type.rb +++ b/app/graphql/types/query_types/media_content_type.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true module Types - class MediaContentType < Types::BaseObject + class QueryTypes::MediaContentType < Types::BaseObject field :id, ID, null: true field :caption_text, String, null: true field :copyright, String, null: true field :height, Integer, null: true field :width, Integer, null: true field :content_type, String, null: true - field :source_url, WebUrlType, null: true + field :source_url, QueryTypes::WebUrlType, null: true end end diff --git a/app/graphql/types/news_item_type.rb b/app/graphql/types/query_types/news_item_type.rb similarity index 58% rename from app/graphql/types/news_item_type.rb rename to app/graphql/types/query_types/news_item_type.rb index 6e3f3a79..f94dad64 100644 --- a/app/graphql/types/news_item_type.rb +++ b/app/graphql/types/query_types/news_item_type.rb @@ -1,24 +1,24 @@ # frozen_string_literal: true module Types - class NewsItemType < Types::BaseObject + class QueryTypes::NewsItemType < Types::BaseObject field :id, ID, null: true field :visible, Boolean, null: true - field :settings, SettingType, null: true + field :settings, QueryTypes::SettingType, null: true field :title, String, null: true field :external_id, String, null: true field :author, String, null: true field :full_version, Boolean, null: true field :characters_to_be_shown, String, null: true - field :categories, [CategoryType], null: true + field :categories, [QueryTypes::CategoryType], null: true field :publication_date, String, null: true field :published_at, String, null: true field :show_publish_date, Boolean, null: true field :news_type, String, null: true - field :data_provider, DataProviderType, null: true - field :address, AddressType, null: true - field :source_url, WebUrlType, null: true - field :content_blocks, [ContentBlockType], null: true + field :data_provider, QueryTypes::DataProviderType, null: true + field :address, QueryTypes::AddressType, null: true + field :source_url, QueryTypes::WebUrlType, null: true + field :content_blocks, [QueryTypes::ContentBlockType], null: true field :updated_at, String, null: true field :created_at, String, null: true end diff --git a/app/graphql/types/open_weather_map_type.rb b/app/graphql/types/query_types/open_weather_map_type.rb similarity index 88% rename from app/graphql/types/open_weather_map_type.rb rename to app/graphql/types/query_types/open_weather_map_type.rb index 68cc68dd..09954be9 100644 --- a/app/graphql/types/open_weather_map_type.rb +++ b/app/graphql/types/query_types/open_weather_map_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class OpenWeatherMapType < Types::BaseObject + class QueryTypes::OpenWeatherMapType < Types::BaseObject field :id, ID, null: true field :lat, Float, null: true field :lon, Float, null: true diff --git a/app/graphql/types/opening_hour_type.rb b/app/graphql/types/query_types/opening_hour_type.rb similarity index 95% rename from app/graphql/types/opening_hour_type.rb rename to app/graphql/types/query_types/opening_hour_type.rb index 9d7d81ae..6b5be06b 100644 --- a/app/graphql/types/opening_hour_type.rb +++ b/app/graphql/types/query_types/opening_hour_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class OpeningHourType < Types::BaseObject + class QueryTypes::OpeningHourType < Types::BaseObject field :id, ID, null: true field :weekday, String, null: true field :date_from, String, null: true diff --git a/app/graphql/types/query_types/operating_company_type.rb b/app/graphql/types/query_types/operating_company_type.rb new file mode 100644 index 00000000..41f24740 --- /dev/null +++ b/app/graphql/types/query_types/operating_company_type.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +module Types + class QueryTypes::OperatingCompanyType < Types::BaseObject + field :id, ID, null: true + field :name, String, null: true + field :address, QueryTypes::AddressType, null: true + field :contact, QueryTypes::ContactType, null: true + end +end diff --git a/app/graphql/types/query_types/point_of_interest_type.rb b/app/graphql/types/query_types/point_of_interest_type.rb new file mode 100644 index 00000000..d786dfad --- /dev/null +++ b/app/graphql/types/query_types/point_of_interest_type.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +module Types + class QueryTypes::PointOfInterestType < Types::BaseObject + field :id, ID, null: true + field :visible, Boolean, null: true + field :settings, QueryTypes::SettingType, null: true + field :name, String, null: true + field :description, String, null: true + field :mobile_description, String, null: true + field :addresses, [QueryTypes::AddressType], null: true + field :active, Boolean, null: true + field :category, QueryTypes::CategoryType, null: true + field :categories, [QueryTypes::CategoryType], null: true + field :location, QueryTypes::LocationType, null: true + field :data_provider, QueryTypes::DataProviderType, null: true + field :contact, QueryTypes::ContactType, null: true + field :web_urls, [QueryTypes::WebUrlType], null: true + field :media_contents, [QueryTypes::MediaContentType], null: true + field :operating_company, QueryTypes::OperatingCompanyType, null: true + field :opening_hours, [QueryTypes::OpeningHourType], null: true + field :price_informations, [QueryTypes::PriceType], null: true + field :certificates, [QueryTypes::CertificateType], null: true + field :accessibility_information, QueryTypes::AccessibilityInformationType, null: true + field :tag_list, [String], null: true + field :lunches, [QueryTypes::LunchType], null: true + field :updated_at, String, null: true + field :created_at, String, null: true + end +end diff --git a/app/graphql/types/price_type.rb b/app/graphql/types/query_types/price_type.rb similarity index 91% rename from app/graphql/types/price_type.rb rename to app/graphql/types/query_types/price_type.rb index 95bb32be..2b53e333 100644 --- a/app/graphql/types/price_type.rb +++ b/app/graphql/types/query_types/price_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class PriceType < Types::BaseObject + class QueryTypes::PriceType < Types::BaseObject field :id, ID, null: true field :name, String, null: true field :category, String, null: true diff --git a/app/graphql/types/public_html_file_type.rb b/app/graphql/types/query_types/public_html_file_type.rb similarity index 68% rename from app/graphql/types/public_html_file_type.rb rename to app/graphql/types/query_types/public_html_file_type.rb index c61b99e6..2ac31c87 100644 --- a/app/graphql/types/public_html_file_type.rb +++ b/app/graphql/types/query_types/public_html_file_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class PublicHtmlFileType < Types::BaseObject + class QueryTypes::PublicHtmlFileType < Types::BaseObject field :name, String, null: true field :content, String, null: true end diff --git a/app/graphql/types/public_json_file_type.rb b/app/graphql/types/query_types/public_json_file_type.rb similarity index 68% rename from app/graphql/types/public_json_file_type.rb rename to app/graphql/types/query_types/public_json_file_type.rb index 04bbfcc4..d75d3633 100644 --- a/app/graphql/types/public_json_file_type.rb +++ b/app/graphql/types/query_types/public_json_file_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class PublicJsonFileType < Types::BaseObject + class QueryTypes::PublicJsonFileType < Types::BaseObject field :name, String, null: false field :content, String, null: false end diff --git a/app/graphql/types/region_type.rb b/app/graphql/types/query_types/region_type.rb similarity index 70% rename from app/graphql/types/region_type.rb rename to app/graphql/types/query_types/region_type.rb index bfbf3813..a0cbda28 100644 --- a/app/graphql/types/region_type.rb +++ b/app/graphql/types/query_types/region_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class RegionType < Types::BaseObject + class QueryTypes::RegionType < Types::BaseObject field :id, ID, null: true field :name, String, null: true end diff --git a/app/graphql/types/repeat_duration_type.rb b/app/graphql/types/query_types/repeat_duration_type.rb similarity index 77% rename from app/graphql/types/repeat_duration_type.rb rename to app/graphql/types/query_types/repeat_duration_type.rb index 19024d81..5a085438 100644 --- a/app/graphql/types/repeat_duration_type.rb +++ b/app/graphql/types/query_types/repeat_duration_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class RepeatDurationType < Types::BaseObject + class QueryTypes::RepeatDurationType < Types::BaseObject field :id, ID, null: true field :start_date, String, null: true field :end_date, String, null: true diff --git a/app/graphql/types/setting_type.rb b/app/graphql/types/query_types/setting_type.rb similarity index 80% rename from app/graphql/types/setting_type.rb rename to app/graphql/types/query_types/setting_type.rb index 06383300..908a34c2 100644 --- a/app/graphql/types/setting_type.rb +++ b/app/graphql/types/query_types/setting_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class SettingType < Types::BaseObject + class QueryTypes::SettingType < Types::BaseObject field :display_only_summary, String, null: true field :always_recreate_on_import, String, null: true field :only_summary_link_text, String, null: true diff --git a/app/graphql/types/query_types/tour_type.rb b/app/graphql/types/query_types/tour_type.rb new file mode 100644 index 00000000..1d9e72dd --- /dev/null +++ b/app/graphql/types/query_types/tour_type.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true + +module Types + class QueryTypes::TourType < Types::BaseObject + field :id, ID, null: true + field :visible, Boolean, null: true + field :settings, QueryTypes::SettingType, null: true + field :name, String, null: true + field :description, String, null: true + field :mobile_description, String, null: true + field :active, Boolean, null: true + field :addresses, [QueryTypes::AddressType], null: true + field :means_of_transportation, String, null: true + field :length_km, Integer, null: true + field :category, QueryTypes::CategoryType, null: true + field :categories, [QueryTypes::CategoryType], null: true + field :data_provider, QueryTypes::DataProviderType, null: true + field :tags, String, null: true + field :contact, QueryTypes::ContactType, null: true + field :web_urls, [QueryTypes::WebUrlType], null: true + field :media_contents, [QueryTypes::MediaContentType], null: true + field :operating_company, QueryTypes::OperatingCompanyType, null: true + field :certificates, [QueryTypes::CertificateType], null: true + field :regions, [QueryTypes::RegionType], null: true + field :geometry_tour_data, [QueryTypes::GeoLocationType], null: false + field :updated_at, String, null: true + field :created_at, String, null: true + end +end diff --git a/app/graphql/types/web_url_type.rb b/app/graphql/types/query_types/web_url_type.rb similarity index 76% rename from app/graphql/types/web_url_type.rb rename to app/graphql/types/query_types/web_url_type.rb index c2b717bb..3190a3f1 100644 --- a/app/graphql/types/web_url_type.rb +++ b/app/graphql/types/query_types/web_url_type.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Types - class WebUrlType < Types::BaseObject + class QueryTypes::WebUrlType < Types::BaseObject field :id, ID, null: true field :url, String, null: true field :description, String, null: true diff --git a/app/graphql/types/tour_type.rb b/app/graphql/types/tour_type.rb deleted file mode 100644 index be23afc6..00000000 --- a/app/graphql/types/tour_type.rb +++ /dev/null @@ -1,29 +0,0 @@ -# frozen_string_literal: true - -module Types - class TourType < Types::BaseObject - field :id, ID, null: true - field :visible, Boolean, null: true - field :settings, SettingType, null: true - field :name, String, null: true - field :description, String, null: true - field :mobile_description, String, null: true - field :active, Boolean, null: true - field :addresses, [AddressType], null: true - field :means_of_transportation, String, null: true - field :length_km, Integer, null: true - field :category, CategoryType, null: true - field :categories, [CategoryType], null: true - field :data_provider, DataProviderType, null: true - field :tags, String, null: true - field :contact, ContactType, null: true - field :web_urls, [WebUrlType], null: true - field :media_contents, [MediaContentType], null: true - field :operating_company, OperatingCompanyType, null: true - field :certificates, [CertificateType], null: true - field :regions, [RegionType], null: true - field :geometry_tour_data, [GeoLocationType], null: false - field :updated_at, String, null: true - field :created_at, String, null: true - end -end diff --git a/app/models/data_resource_setting.rb b/app/models/data_resource_setting.rb index 28afb333..87d512f6 100644 --- a/app/models/data_resource_setting.rb +++ b/app/models/data_resource_setting.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class DataResourceSetting < ApplicationRecord - DATA_RESOURCES = [Tour, PointOfInterest, NewsItem, EventRecord].freeze + DATA_RESOURCES = [Tour, PointOfInterest, NewsItem, EventRecord, GenericItem].freeze store :settings, accessors: %i[ diff --git a/app/models/data_resources/generic_item.rb b/app/models/data_resources/generic_item.rb new file mode 100644 index 00000000..9ff59046 --- /dev/null +++ b/app/models/data_resources/generic_item.rb @@ -0,0 +1,95 @@ +class GenericItem < ApplicationRecord + include FilterByRole + has_ancestry orphan_strategy: :destroy + + attr_accessor :force_create + attr_accessor :category_name + attr_accessor :category_names + + after_save :find_or_create_category + + validates_presence_of :generic_type + store :payload, coder: JSON + + belongs_to :data_provider + has_one :external_reference, as: :external, dependent: :destroy + has_many :accessibility_informations, as: :accessable, dependent: :destroy + has_many :addresses, as: :addressable, dependent: :destroy + has_many :data_resource_categories, as: :data_resource + has_many :categories, through: :data_resource_categories + has_many :companies, as: :companyable, class_name: "OperatingCompany", dependent: :destroy + has_many :contacts, as: :contactable, dependent: :destroy + has_many :content_blocks, as: :content_blockable, dependent: :destroy + has_many :dates, as: :dateable, class_name: "FixedDate", dependent: :destroy + has_many :locations, as: :locateable, dependent: :destroy + has_many :media_contents, as: :mediaable, dependent: :destroy + has_many :opening_hours, as: :openingable, dependent: :destroy + has_many :price_informations, as: :priceable, class_name: "Price", dependent: :destroy + has_many :web_urls, as: :web_urlable, dependent: :destroy + + scope :with_category, lambda { |category_id| + where(categories: { id: category_id }).joins(:categories) + } + + accepts_nested_attributes_for :web_urls, reject_if: ->(attr) { attr[:url].blank? } + accepts_nested_attributes_for :content_blocks, :data_provider, :price_informations, :opening_hours, + :media_contents, :accessibility_informations, :addresses, :contacts, + :companies, :locations, :dates + def generic_items + children + end + + def unique_id + return external_id if external_id.present? + + fields = [title, published_at] + + generate_checksum(fields) + end + + def settings + data_provider.data_resource_settings.where(data_resource_type: "GenericItem").first.try(:settings) + end + + private + + def find_or_create_category + # für Abwärtskompatibilität, wenn nur ein einiger Kategorienamen angegeben wird + # ist der attr_accessor :category_name befüllt + if category_name.present? + category_to_add = Category.where(name: category_name).first_or_create + categories << category_to_add unless categories.include?(category_to_add) + end + + # Wenn mehrere Kategorein auf einmal gesetzt werden + # ist der attr_accessor :category_names befüllt + if category_names.present? + category_names.each do |cat| + category_to_add = Category.where(name: cat[:name]).first_or_create + categories << category_to_add unless categories.include?(category_to_add) + end + end + end + +end + +# == Schema Information +# +# Table name: generic_items +# +# id :bigint not null, primary key +# generic_type :string(255) +# author :text(65535) +# publication_date :datetime +# published_at :datetime +# external_id :text(65535) +# visible :boolean default(TRUE) +# title :text(65535) +# teaser :text(65535) +# description :text(65535) +# data_provider_id :integer +# payload :text(65535) +# ancestry :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# diff --git a/app/models/data_resources/news_item.rb b/app/models/data_resources/news_item.rb index 3008f509..6a21e94c 100644 --- a/app/models/data_resources/news_item.rb +++ b/app/models/data_resources/news_item.rb @@ -15,12 +15,12 @@ class NewsItem < ApplicationRecord belongs_to :data_provider + has_one :address, as: :addressable, dependent: :destroy + has_one :external_reference, as: :external, dependent: :destroy + has_one :source_url, as: :web_urlable, class_name: "WebUrl", dependent: :destroy has_many :data_resource_categories, as: :data_resource has_many :categories, through: :data_resource_categories has_many :content_blocks, as: :content_blockable, dependent: :destroy - has_one :external_reference, as: :external, dependent: :destroy - has_one :address, as: :addressable, dependent: :destroy - has_one :source_url, as: :web_urlable, class_name: "WebUrl", dependent: :destroy scope :with_category, lambda { |category_id| where(categories: { id: category_id }).joins(:categories) @@ -90,18 +90,19 @@ def send_push_notification # # Table name: news_items # -# id :bigint not null, primary key -# author :string(255) -# full_version :boolean -# characters_to_be_shown :integer -# publication_date :datetime -# published_at :datetime -# show_publish_date :boolean -# news_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# data_provider_id :integer -# external_id :text(65535) -# title :string(255) -# visible :boolean default(TRUE) +# id :bigint not null, primary key +# author :string(255) +# full_version :boolean +# characters_to_be_shown :integer +# publication_date :datetime +# published_at :datetime +# show_publish_date :boolean +# news_type :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# data_provider_id :integer +# external_id :text(65535) +# title :string(255) +# visible :boolean default(TRUE) +# push_notifications_sent_at :datetime # diff --git a/db/migrate/20210216150230_create_generic_items.rb b/db/migrate/20210216150230_create_generic_items.rb new file mode 100644 index 00000000..63723158 --- /dev/null +++ b/db/migrate/20210216150230_create_generic_items.rb @@ -0,0 +1,20 @@ +class CreateGenericItems < ActiveRecord::Migration[5.2] + def change + create_table :generic_items do |t| + t.string :generic_type + t.text :author + t.datetime :publication_date + t.datetime :published_at + t.text :external_id + t.boolean :visible, default: true + t.text :title + t.text :teaser + t.text :description + t.integer :data_provider_id + t.text :payload + t.string :ancestry + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index c52ae671..fa826bb4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_02_04_121745) do +ActiveRecord::Schema.define(version: 2021_02_16_150230) do create_table "accessibility_informations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| t.text "description" @@ -56,7 +56,7 @@ t.index ["addressable_type", "addressable_id"], name: "index_addresses_on_addressable_type_and_addressable_id" end - create_table "app_user_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| + create_table "app_user_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.text "content" t.string "data_type" t.string "data_source" @@ -151,7 +151,7 @@ t.datetime "updated_at", null: false end - create_table "data_resource_settings", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| + create_table "data_resource_settings", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.integer "data_provider_id" t.string "data_resource_type" t.string "settings" @@ -197,6 +197,23 @@ t.index ["dateable_type", "dateable_id"], name: "index_fixed_dates_on_dateable_type_and_dateable_id" end + create_table "generic_items", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| + t.string "generic_type" + t.text "author" + t.datetime "publication_date" + t.datetime "published_at" + t.text "external_id" + t.boolean "visible", default: true + t.text "title" + t.text "teaser" + t.text "description" + t.integer "data_provider_id" + t.text "payload" + t.string "ancestry" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "geo_locations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| t.float "latitude", limit: 53 t.float "longitude", limit: 53 @@ -265,6 +282,7 @@ t.text "external_id" t.string "title" t.boolean "visible", default: true + t.datetime "push_notifications_sent_at" end create_table "notification_devices", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| @@ -386,7 +404,7 @@ t.index ["event_record_id"], name: "index_repeat_durations_on_event_record_id" end - create_table "static_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| + create_table "static_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| t.string "name" t.string "data_type" t.text "content" @@ -450,6 +468,20 @@ t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true end + create_table "waste_location_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| + t.string "waste_type" + t.integer "address_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "waste_pick_up_times", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| + t.integer "waste_location_type_id" + t.date "pickup_date" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "web_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci", force: :cascade do |t| t.text "url" t.text "description" diff --git a/public/schema.graphql b/public/schema.graphql index 8cd4bbca..ee8372e6 100644 --- a/public/schema.graphql +++ b/public/schema.graphql @@ -192,6 +192,71 @@ enum EventRecordsOrder { updatedAt_DESC } +type GenericItem { + accessibilityInformations: [AccessibilityInformation!] + addresses: [Address!] + author: String + categories: [Category!] + companies: [OperatingCompany!] + contacts: [Contact!] + contentBlocks: [ContentBlock!] + createdAt: String + dataProvider: DataProvider + dates: [Date!] + externalId: String + genericItems: [GenericItem!] + genericType: String + id: ID + locations: [Location!] + mediaContents: [MediaContent!] + openingHours: [OpeningHour!] + payload: JSON + priceInformations: [Price!] + publicationDate: String + publishedAt: String + settings: Setting + title: String + updatedAt: String + visible: Boolean + webUrls: [WebUrl!] +} + +input GenericItemInput { + accessibilityInformations: [AccessibilityInformationInput!] + addresses: [AddressInput!] + author: String + categories: [CategoryInput!] + categoryName: String + companies: [OperatingCompanyInput!] + contacts: [ContactInput!] + contentBlocks: [ContentBlockInput!] + dates: [DateInput!] + externalId: String + genericItems: [GenericItemInput!] + genericType: String + locations: [LocationInput!] + mediaContents: [MediaContentInput!] + openingHours: [OpeningHourInput!] + payload: JSON + priceInformations: [PriceInput!] + publicationDate: String + publishedAt: String + pushNotification: Boolean + title: String + webUrls: [WebUrlInput!] +} + +enum GenericItemOrder { + createdAt_ASC + createdAt_DESC + id_ASC + id_DESC + publishedAt_ASC + publishedAt_DESC + updatedAt_ASC + updatedAt_DESC +} + type GeoLocation { id: ID latitude: Float @@ -239,6 +304,14 @@ type Lunch { updatedAt: String } +input LunchInput { + dates: [DateInput!] + lunchOffers: [LunchOfferInput!] + pointOfInterestAttributes: String + pointOfInterestId: ID + text: String +} + type LunchOffer { createdAt: String id: ID @@ -247,6 +320,11 @@ type LunchOffer { updatedAt: String } +input LunchOfferInput { + name: String + price: String +} + enum LunchesOrder { createdAt_ASC createdAt_DESC @@ -279,8 +357,9 @@ type Mutation { changeVisibility(id: ID!, recordType: String!, visible: Boolean!): ChangeVisibility! createAppUserContent(content: String, dataSource: String, dataType: String): AppUserContent! createEventRecord(accessibilityInformation: AccessibilityInformationInput, addresses: [AddressInput!], categories: [CategoryInput!], categoryName: String, contacts: [ContactInput!], dates: [DateInput!], description: String, externalId: String, forceCreate: Boolean, location: LocationInput, mediaContents: [MediaContentInput!], organizer: OperatingCompanyInput, parentId: Int, priceInformations: [PriceInput!], region: RegionInput, regionName: String, repeat: Boolean, repeatDuration: RepeatDurationInput, tags: [String!], title: String, urls: [WebUrlInput!]): EventRecord! + createGenericItem(accessibilityInformations: [AccessibilityInformationInput!], addresses: [AddressInput!], author: String, categories: [CategoryInput!], categoryName: String, companies: [OperatingCompanyInput!], contacts: [ContactInput!], contentBlocks: [ContentBlockInput!], dates: [DateInput!], externalId: String, genericItems: [GenericItemInput!], genericType: String, locations: [LocationInput!], mediaContents: [MediaContentInput!], openingHours: [OpeningHourInput!], payload: JSON, priceInformations: [PriceInput!], publicationDate: String, publishedAt: String, pushNotification: Boolean, title: String, webUrls: [WebUrlInput!]): GenericItem! createNewsItem(address: AddressInput, author: String, categories: [CategoryInput!], categoryName: String, charactersToBeShown: Int, contentBlocks: [ContentBlockInput!], externalId: String, forceCreate: Boolean, fullVersion: Boolean, newsType: String, publicationDate: String, publishedAt: String, pushNotification: Boolean, showPublishDate: Boolean, sourceUrl: WebUrlInput, title: String): NewsItem! - createPointOfInterest(accessibilityInformation: AccessibilityInformationInput, active: Boolean, addresses: [AddressInput!], categories: [CategoryInput!], categoryName: String, certificates: [CertificateInput!], contact: ContactInput, description: String, forceCreate: Boolean, location: LocationInput, mediaContents: [MediaContentInput!], mobileDescription: String, name: String!, openingHours: [OpeningHourInput!], operatingCompany: OperatingCompanyInput, priceInformations: [PriceInput!], tags: [String!], webUrls: [WebUrlInput!]): PointOfInterest! + createPointOfInterest(accessibilityInformation: AccessibilityInformationInput, active: Boolean, addresses: [AddressInput!], categories: [CategoryInput!], categoryName: String, certificates: [CertificateInput!], contact: ContactInput, description: String, forceCreate: Boolean, location: LocationInput, lunches: [LunchInput!], mediaContents: [MediaContentInput!], mobileDescription: String, name: String!, openingHours: [OpeningHourInput!], operatingCompany: OperatingCompanyInput, priceInformations: [PriceInput!], tags: [String!], webUrls: [WebUrlInput!]): PointOfInterest! createTour(accessibilityInformation: AccessibilityInformationInput, active: Boolean, addresses: [AddressInput!], categories: [CategoryInput!], categoryName: String, certificates: [CertificateInput!], contact: ContactInput, description: String, forceCreate: Boolean, geometryTourData: [GeoLocationInput!], lengthKm: Int!, location: LocationInput, meansOfTransportation: String, mediaContents: [MediaContentInput!], mobileDescription: String, name: String!, operatingCompany: OperatingCompanyInput, tags: [String!], webUrls: [WebUrlInput!]): Tour! destroyRecord(externalId: Int, id: Int, recordType: String!): Destroy! } @@ -455,9 +534,12 @@ type PublicJsonFile { type Query { categories: [Category!]! + categoryTree: JSON! directus(query: String): JSON! eventRecord(id: ID!): EventRecord! eventRecords(categoryId: ID, dataProvider: String, dataProviderId: ID, dateRange: [String], ids: [ID], limit: Int, order: EventRecordsOrder = createdAt_DESC, skip: Int, take: Int): [EventRecord] + genericItem(id: ID!): GenericItem! + genericItems(categoryId: ID, dataProvider: String, dataProviderId: ID, externalId: ID, genericType: String, ids: [ID], limit: Int, order: GenericItemOrder = createdAt_DESC, skip: Int): [GenericItem] lunch(id: ID!): Lunch! lunches(dateRange: [String], ids: [ID], limit: Int, order: LunchesOrder = createdAt_DESC, skip: Int): [Lunch!]! newsItem(id: ID!): NewsItem! diff --git a/public/schema.json b/public/schema.json index 8dfebeaf..138bbef6 100644 --- a/public/schema.json +++ b/public/schema.json @@ -60,6 +60,24 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "categoryTree", + "description": null, + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "directus", "description": null, @@ -233,6 +251,148 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "genericItem", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GenericItem", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "genericItems", + "description": null, + "args": [ + { + "name": "categoryId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "dataProvider", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "dataProviderId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "externalId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "genericType", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "ids", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "order", + "description": null, + "type": { + "kind": "ENUM", + "name": "GenericItemOrder", + "ofType": null + }, + "defaultValue": "createdAt_DESC" + }, + { + "name": "skip", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GenericItem", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "lunch", "description": null, @@ -916,11 +1076,11 @@ }, { "kind": "OBJECT", - "name": "OpenWeatherMap", + "name": "GenericItem", "description": null, "fields": [ { - "name": "alerts", + "name": "accessibilityInformations", "description": null, "args": [ @@ -932,8 +1092,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "JSON", + "kind": "OBJECT", + "name": "AccessibilityInformation", "ofType": null } } @@ -942,35 +1102,43 @@ "deprecationReason": null }, { - "name": "createdAt", + "name": "addresses", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "current", + "name": "author", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "JSON", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "daily", + "name": "categories", "description": null, "args": [ @@ -982,8 +1150,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "JSON", + "kind": "OBJECT", + "name": "Category", "ofType": null } } @@ -992,7 +1160,7 @@ "deprecationReason": null }, { - "name": "hourly", + "name": "companies", "description": null, "args": [ @@ -1004,8 +1172,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "JSON", + "kind": "OBJECT", + "name": "OperatingCompany", "ofType": null } } @@ -1014,191 +1182,187 @@ "deprecationReason": null }, { - "name": "id", + "name": "contacts", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Contact", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lat", + "name": "contentBlocks", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Float", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContentBlock", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lon", + "name": "createdAt", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt", + "name": "dataProvider", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "DataProvider", "ofType": null }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ + }, + { + "name": "dates", + "description": null, + "args": [ - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "ID", - "description": "Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"VXNlci0xMA==\"`) or integer (such as `4`) input value will be accepted as an ID.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Float", - "description": "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "JSON", - "description": "Represents untyped JSON", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Int", - "description": "Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OpenWeatherMapsOrder", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "createdAt_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt_DESC", - "description": null, + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Date", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_ASC", + "name": "externalId", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_DESC", + "name": "genericItems", "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GenericItem", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "genericType", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PointOfInterest", - "description": null, - "fields": [ - { - "name": "accessibilityInformation", + "name": "id", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "AccessibilityInformation", + "kind": "SCALAR", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "active", + "name": "locations", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Location", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "addresses", + "name": "mediaContents", "description": null, "args": [ @@ -1211,7 +1375,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Address", + "name": "MediaContent", "ofType": null } } @@ -1220,7 +1384,7 @@ "deprecationReason": null }, { - "name": "categories", + "name": "openingHours", "description": null, "args": [ @@ -1233,7 +1397,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Category", + "name": "OpeningHour", "ofType": null } } @@ -1242,21 +1406,21 @@ "deprecationReason": null }, { - "name": "category", + "name": "payload", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Category", + "kind": "SCALAR", + "name": "JSON", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "certificates", + "name": "priceInformations", "description": null, "args": [ @@ -1269,7 +1433,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Certificate", + "name": "Price", "ofType": null } } @@ -1278,21 +1442,21 @@ "deprecationReason": null }, { - "name": "contact", + "name": "publicationDate", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Contact", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createdAt", + "name": "publishedAt", "description": null, "args": [ @@ -1306,21 +1470,21 @@ "deprecationReason": null }, { - "name": "dataProvider", + "name": "settings", "description": null, "args": [ ], "type": { "kind": "OBJECT", - "name": "DataProvider", + "name": "Setting", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "description", + "name": "title", "description": null, "args": [ @@ -1334,35 +1498,35 @@ "deprecationReason": null }, { - "name": "id", + "name": "updatedAt", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "location", + "name": "visible", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Location", + "kind": "SCALAR", + "name": "Boolean", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lunches", + "name": "webUrls", "description": null, "args": [ @@ -1375,52 +1539,67 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Lunch", + "name": "WebUrl", "ofType": null } } }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "ID", + "description": "Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"VXNlci0xMA==\"`) or integer (such as `4`) input value will be accepted as an ID.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "AccessibilityInformation", + "description": null, + "fields": [ { - "name": "mediaContents", + "name": "description", "description": null, "args": [ ], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MediaContent", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "mobileDescription", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "types", "description": null, "args": [ @@ -1434,7 +1613,7 @@ "deprecationReason": null }, { - "name": "openingHours", + "name": "urls", "description": null, "args": [ @@ -1447,179 +1626,57 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "OpeningHour", + "name": "WebUrl", "ofType": null } } }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "WebUrl", + "description": null, + "fields": [ { - "name": "operatingCompany", + "name": "description", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "OperatingCompany", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "priceInformations", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Price", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "settings", - "description": null, - "args": [ - - ], - "type": { - "kind": "OBJECT", - "name": "Setting", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tagList", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visible", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webUrls", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebUrl", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Setting", - "description": null, - "fields": [ - { - "name": "alwaysRecreateOnImport", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayOnlySummary", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "onlySummaryLinkText", + "name": "url", "description": null, "args": [ @@ -1806,6 +1863,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "Float", + "description": "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Category", @@ -2027,6 +2094,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "Int", + "description": "Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "EventRecord", @@ -2482,6 +2559,61 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "Setting", + "description": null, + "fields": [ + { + "name": "alwaysRecreateOnImport", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "displayOnlySummary", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "onlySummaryLinkText", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Date", @@ -2941,11 +3073,11 @@ }, { "kind": "OBJECT", - "name": "WebUrl", + "name": "Contact", "description": null, "fields": [ { - "name": "description", + "name": "email", "description": null, "args": [ @@ -2959,21 +3091,21 @@ "deprecationReason": null }, { - "name": "id", + "name": "fax", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "url", + "name": "firstName", "description": null, "args": [ @@ -2985,36 +3117,23 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Contact", - "description": null, - "fields": [ + }, { - "name": "email", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "fax", + "name": "lastName", "description": null, "args": [ @@ -3028,7 +3147,7 @@ "deprecationReason": null }, { - "name": "firstName", + "name": "phone", "description": null, "args": [ @@ -3042,65 +3161,23 @@ "deprecationReason": null }, { - "name": "id", + "name": "webUrls", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webUrls", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebUrl", - "ofType": null - } - } + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WebUrl", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -3476,86 +3553,23 @@ }, { "kind": "OBJECT", - "name": "AccessibilityInformation", + "name": "PointOfInterest", "description": null, "fields": [ { - "name": "description", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "types", + "name": "accessibilityInformation", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "AccessibilityInformation", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, - { - "name": "urls", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebUrl", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Tour", - "description": null, - "fields": [ { "name": "active", "description": null, @@ -3706,32 +3720,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "geometryTourData", - "description": null, - "args": [ - - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GeoLocation", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "id", "description": null, @@ -3747,29 +3735,37 @@ "deprecationReason": null }, { - "name": "lengthKm", + "name": "location", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "OBJECT", + "name": "Location", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "meansOfTransportation", + "name": "lunches", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Lunch", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -3824,6 +3820,28 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openingHours", + "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OpeningHour", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "operatingCompany", "description": null, @@ -3839,7 +3857,7 @@ "deprecationReason": null }, { - "name": "regions", + "name": "priceInformations", "description": null, "args": [ @@ -3852,7 +3870,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Region", + "name": "Price", "ofType": null } } @@ -3875,15 +3893,23 @@ "deprecationReason": null }, { - "name": "tags", + "name": "tagList", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -3948,25 +3974,25 @@ }, { "kind": "OBJECT", - "name": "Certificate", + "name": "OpeningHour", "description": null, "fields": [ { - "name": "id", + "name": "dateFrom", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "dateTo", "description": null, "args": [ @@ -3978,108 +4004,65 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ + }, + { + "name": "description", + "description": null, + "args": [ - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "NewsItem", - "description": null, - "fields": [ + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { - "name": "address", + "name": "id", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Address", + "kind": "SCALAR", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "author", + "name": "open", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "categories", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "charactersToBeShown", + "name": "sortNumber", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "contentBlocks", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContentBlock", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", + "name": "timeFrom", "description": null, "args": [ @@ -4093,21 +4076,21 @@ "deprecationReason": null }, { - "name": "dataProvider", + "name": "timeTo", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "DataProvider", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "externalId", + "name": "weekday", "description": null, "args": [ @@ -4119,37 +4102,63 @@ }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Certificate", + "description": null, + "fields": [ { - "name": "fullVersion", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id", + "name": "name", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Lunch", + "description": null, + "fields": [ { - "name": "newsType", + "name": "createdAt", "description": null, "args": [ @@ -4163,77 +4172,97 @@ "deprecationReason": null }, { - "name": "publicationDate", + "name": "dates", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Date", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "publishedAt", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "settings", + "name": "listDate", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Setting", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "showPublishDate", + "name": "lunchOffers", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LunchOffer", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "sourceUrl", + "name": "pointOfInterest", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "WebUrl", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PointOfInterest", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "title", + "name": "pointOfInterestAttributes", "description": null, "args": [ @@ -4247,7 +4276,7 @@ "deprecationReason": null }, { - "name": "updatedAt", + "name": "text", "description": null, "args": [ @@ -4261,14 +4290,14 @@ "deprecationReason": null }, { - "name": "visible", + "name": "updatedAt", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "isDeprecated": false, @@ -4284,23 +4313,9 @@ }, { "kind": "OBJECT", - "name": "ContentBlock", + "name": "LunchOffer", "description": null, "fields": [ - { - "name": "body", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "createdAt", "description": null, @@ -4330,7 +4345,7 @@ "deprecationReason": null }, { - "name": "intro", + "name": "name", "description": null, "args": [ @@ -4344,29 +4359,7 @@ "deprecationReason": null }, { - "name": "mediaContents", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MediaContent", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", + "name": "price", "description": null, "args": [ @@ -4403,109 +4396,119 @@ }, { "kind": "OBJECT", - "name": "OpeningHour", + "name": "Tour", "description": null, "fields": [ { - "name": "dateFrom", + "name": "active", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "dateTo", + "name": "addresses", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "description", + "name": "categories", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id", + "name": "category", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "ID", + "kind": "OBJECT", + "name": "Category", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "open", + "name": "certificates", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortNumber", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Certificate", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "timeFrom", + "name": "contact", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Contact", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "timeTo", + "name": "createdAt", "description": null, "args": [ @@ -4519,34 +4522,21 @@ "deprecationReason": null }, { - "name": "weekday", + "name": "dataProvider", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "DataProvider", "ofType": null }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Lunch", - "description": null, - "fields": [ + }, { - "name": "createdAt", + "name": "description", "description": null, "args": [ @@ -4560,21 +4550,25 @@ "deprecationReason": null }, { - "name": "dates", + "name": "geometryTourData", "description": null, "args": [ ], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Date", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GeoLocation", + "ofType": null + } } } }, @@ -4596,7 +4590,21 @@ "deprecationReason": null }, { - "name": "listDate", + "name": "lengthKm", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "meansOfTransportation", "description": null, "args": [ @@ -4610,7 +4618,7 @@ "deprecationReason": null }, { - "name": "lunchOffers", + "name": "mediaContents", "description": null, "args": [ @@ -4623,7 +4631,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "LunchOffer", + "name": "MediaContent", "ofType": null } } @@ -4632,25 +4640,21 @@ "deprecationReason": null }, { - "name": "pointOfInterest", + "name": "mobileDescription", "description": null, "args": [ ], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PointOfInterest", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "pointOfInterestAttributes", + "name": "name", "description": null, "args": [ @@ -4664,76 +4668,71 @@ "deprecationReason": null }, { - "name": "text", + "name": "operatingCompany", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "OperatingCompany", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt", + "name": "regions", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Region", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "LunchOffer", - "description": null, - "fields": [ + }, { - "name": "createdAt", + "name": "settings", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Setting", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id", + "name": "tags", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "updatedAt", "description": null, "args": [ @@ -4747,29 +4746,37 @@ "deprecationReason": null }, { - "name": "price", + "name": "visible", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt", + "name": "webUrls", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WebUrl", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -4783,203 +4790,432 @@ "possibleTypes": null }, { - "kind": "ENUM", - "name": "PointsOfInterestOrder", + "kind": "OBJECT", + "name": "NewsItem", "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ + "fields": [ { - "name": "createdAt_ASC", + "name": "address", "description": null, + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createdAt_DESC", + "name": "author", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_ASC", + "name": "categories", "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_DESC", + "name": "charactersToBeShown", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name_ASC", + "name": "contentBlocks", "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContentBlock", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name_DESC", + "name": "createdAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "dataProvider", "description": null, - "isDeprecated": false, + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "DataProvider", + "ofType": null + }, + "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", + "name": "externalId", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "RAND", + "name": "fullVersion", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "EventRecordsOrder", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ + }, { - "name": "createdAt_ASC", + "name": "id", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createdAt_DESC", + "name": "newsType", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_ASC", + "name": "publicationDate", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_DESC", + "name": "publishedAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "title_ASC", + "name": "settings", "description": null, + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "Setting", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "title_DESC", + "name": "showPublishDate", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "sourceUrl", "description": null, + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "WebUrl", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", + "name": "title", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "listDate_DESC", + "name": "updatedAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "listDate_ASC", + "name": "visible", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null } ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, "possibleTypes": null }, { - "kind": "ENUM", - "name": "NewsItemsOrder", + "kind": "OBJECT", + "name": "ContentBlock", "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "createdAt_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, + "fields": [ { - "name": "createdAt_DESC", + "name": "body", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_ASC", + "name": "createdAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_DESC", + "name": "id", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "publishedAt_ASC", + "name": "intro", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "publishedAt_DESC", + "name": "mediaContents", "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaContent", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "title", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", + "name": "updatedAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null } ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "JSON", + "description": "Represents untyped JSON", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, "possibleTypes": null }, { "kind": "ENUM", - "name": "ToursOrder", + "name": "GenericItemOrder", "description": null, "fields": null, "inputFields": null, @@ -4998,43 +5234,37 @@ "deprecationReason": null }, { - "name": "updatedAt_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt_DESC", + "name": "id_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "name_ASC", + "name": "id_DESC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "name_DESC", + "name": "publishedAt_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "publishedAt_DESC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", + "name": "updatedAt_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "RAND", + "name": "updatedAt_DESC", "description": null, "isDeprecated": false, "deprecationReason": null @@ -5044,11 +5274,33 @@ }, { "kind": "OBJECT", - "name": "PublicHtmlFile", + "name": "OpenWeatherMap", "description": null, "fields": [ { - "name": "content", + "name": "alerts", + "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", "description": null, "args": [ @@ -5062,67 +5314,118 @@ "deprecationReason": null }, { - "name": "name", + "name": "current", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "JSON", "ofType": null }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PublicJsonFile", - "description": null, - "fields": [ + }, { - "name": "content", + "name": "daily", "description": null, "args": [ ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "hourly", "description": null, "args": [ ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } } }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lat", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lon", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -5134,7 +5437,7 @@ }, { "kind": "ENUM", - "name": "LunchesOrder", + "name": "OpenWeatherMapsOrder", "description": null, "fields": null, "inputFields": null, @@ -5180,113 +5483,510 @@ "possibleTypes": null }, { - "kind": "OBJECT", - "name": "Mutation", + "kind": "ENUM", + "name": "PointsOfInterestOrder", "description": null, - "fields": [ + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ { - "name": "changeVisibility", + "name": "createdAt_ASC", "description": null, - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "recordType", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "visible", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChangeVisibility", - "ofType": null - } - }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createAppUserContent", + "name": "createdAt_DESC", "description": null, - "args": [ - { - "name": "dataSource", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "dataType", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "content", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppUserContent", - "ofType": null - } - }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "RAND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "EventRecordsOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "createdAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "listDate_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "listDate_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "NewsItemsOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "createdAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "publishedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "publishedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "ToursOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "createdAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "RAND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PublicHtmlFile", + "description": null, + "fields": [ + { + "name": "content", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PublicJsonFile", + "description": null, + "fields": [ + { + "name": "content", + "description": null, + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "LunchesOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "createdAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Mutation", + "description": null, + "fields": [ + { + "name": "changeVisibility", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "recordType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "visible", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ChangeVisibility", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createAppUserContent", + "description": null, + "args": [ + { + "name": "dataSource", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "dataType", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "content", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AppUserContent", + "ofType": null + } + }, "isDeprecated": false, "deprecationReason": null }, @@ -5295,7 +5995,298 @@ "description": null, "args": [ { - "name": "forceCreate", + "name": "forceCreate", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "parentId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "description", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "externalId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "title", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "dates", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DateInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "repeat", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "repeatDuration", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "RepeatDurationInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "categoryName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "categories", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CategoryInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "regionName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "region", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "RegionInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "addresses", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "location", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LocationInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contacts", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContactInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "urls", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "mediaContents", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MediaContentInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "organizer", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "OperatingCompanyInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "priceInformations", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PriceInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "accessibilityInformation", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "AccessibilityInformationInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "tags", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventRecord", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createGenericItem", + "description": null, + "args": [ + { + "name": "pushNotification", "description": null, "type": { "kind": "SCALAR", @@ -5305,17 +6296,17 @@ "defaultValue": null }, { - "name": "parentId", + "name": "author", "description": null, "type": { "kind": "SCALAR", - "name": "Int", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "description", + "name": "title", "description": null, "type": { "kind": "SCALAR", @@ -5325,7 +6316,7 @@ "defaultValue": null }, { - "name": "externalId", + "name": "genericType", "description": null, "type": { "kind": "SCALAR", @@ -5335,7 +6326,7 @@ "defaultValue": null }, { - "name": "title", + "name": "externalId", "description": null, "type": { "kind": "SCALAR", @@ -5345,55 +6336,47 @@ "defaultValue": null }, { - "name": "dates", + "name": "publicationDate", "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DateInput", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "repeat", + "name": "publishedAt", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "repeatDuration", + "name": "categoryName", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "RepeatDurationInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "categoryName", + "name": "payload", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "JSON", "ofType": null }, "defaultValue": null }, { - "name": "categories", + "name": "contacts", "description": null, "type": { "kind": "LIST", @@ -5403,7 +6386,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CategoryInput", + "name": "ContactInput", "ofType": null } } @@ -5411,22 +6394,74 @@ "defaultValue": null }, { - "name": "regionName", + "name": "genericItems", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "GenericItemInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "region", + "name": "companies", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "RegionInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OperatingCompanyInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "categories", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CategoryInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "webUrls", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } + } }, "defaultValue": null }, @@ -5449,17 +6484,25 @@ "defaultValue": null }, { - "name": "location", + "name": "contentBlocks", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "LocationInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContentBlockInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "contacts", + "name": "openingHours", "description": null, "type": { "kind": "LIST", @@ -5469,7 +6512,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "ContactInput", + "name": "OpeningHourInput", "ofType": null } } @@ -5477,7 +6520,7 @@ "defaultValue": null }, { - "name": "urls", + "name": "priceInformations", "description": null, "type": { "kind": "LIST", @@ -5487,7 +6530,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "WebUrlInput", + "name": "PriceInput", "ofType": null } } @@ -5513,17 +6556,7 @@ "defaultValue": null }, { - "name": "organizer", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "OperatingCompanyInput", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "priceInformations", + "name": "locations", "description": null, "type": { "kind": "LIST", @@ -5533,7 +6566,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "PriceInput", + "name": "LocationInput", "ofType": null } } @@ -5541,17 +6574,25 @@ "defaultValue": null }, { - "name": "accessibilityInformation", + "name": "dates", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "AccessibilityInformationInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DateInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "tags", + "name": "accessibilityInformations", "description": null, "type": { "kind": "LIST", @@ -5560,8 +6601,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "AccessibilityInformationInput", "ofType": null } } @@ -5574,7 +6615,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "EventRecord", + "name": "GenericItem", "ofType": null } }, @@ -6025,6 +7066,24 @@ } }, "defaultValue": null + }, + { + "name": "lunches", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "LunchInput", + "ofType": null + } + } + }, + "defaultValue": null } ], "type": { @@ -6299,84 +7358,446 @@ } ], "type": { - "kind": "NON_NULL", + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Tour", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "destroyRecord", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "recordType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "externalId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Destroy", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CategoryInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "url", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "description", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "addition", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "street", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "zip", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "city", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "kind", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "geoLocation", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "GeoLocationInput", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "GeoLocationInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "latitude", + "description": null, + "type": { + "kind": "SCALAR", + "name": "AnyPrimitive", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "longitude", + "description": null, + "type": { + "kind": "SCALAR", + "name": "AnyPrimitive", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "AnyPrimitive", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ContentBlockInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "title", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "intro", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "body", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "mediaContents", + "description": null, + "type": { + "kind": "LIST", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Tour", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MediaContentInput", + "ofType": null + } } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "MediaContentInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "captionText", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null }, { - "name": "destroyRecord", + "name": "copyright", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "height", + "description": null, + "type": { + "kind": "SCALAR", + "name": "AnyPrimitive", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "width", + "description": null, + "type": { + "kind": "SCALAR", + "name": "AnyPrimitive", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contentType", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "sourceUrl", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ContactInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "firstName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "lastName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "phone", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "fax", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "webUrls", "description": null, - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "recordType", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "externalId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - } - ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Destroy", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } } }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CategoryInput", - "description": null, - "fields": null, - "inputFields": [ + "defaultValue": null + }, { - "name": "name", + "name": "email", "description": null, "type": { "kind": "SCALAR", @@ -6392,12 +7813,22 @@ }, { "kind": "INPUT_OBJECT", - "name": "WebUrlInput", + "name": "GenericItemInput", "description": null, "fields": null, "inputFields": [ { - "name": "url", + "name": "pushNotification", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "author", "description": null, "type": { "kind": "SCALAR", @@ -6407,7 +7838,7 @@ "defaultValue": null }, { - "name": "description", + "name": "title", "description": null, "type": { "kind": "SCALAR", @@ -6415,30 +7846,19 @@ "ofType": null }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "id", + "name": "genericType", "description": null, "type": { "kind": "SCALAR", - "name": "Int", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "addition", + "name": "externalId", "description": null, "type": { "kind": "SCALAR", @@ -6448,7 +7868,27 @@ "defaultValue": null }, { - "name": "street", + "name": "publicationDate", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "publishedAt", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "categoryName", "description": null, "type": { "kind": "SCALAR", @@ -6458,42 +7898,246 @@ "defaultValue": null }, { - "name": "zip", + "name": "payload", + "description": null, + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contacts", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContactInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "genericItems", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "GenericItemInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "companies", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OperatingCompanyInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "categories", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CategoryInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "webUrls", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "addresses", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "contentBlocks", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContentBlockInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "openingHours", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OpeningHourInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "priceInformations", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PriceInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "mediaContents", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MediaContentInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "city", + "name": "locations", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "LocationInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "kind", + "name": "dates", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DateInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "geoLocation", + "name": "accessibilityInformations", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "GeoLocationInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AccessibilityInformationInput", + "ofType": null + } + } }, "defaultValue": null } @@ -6504,26 +8148,36 @@ }, { "kind": "INPUT_OBJECT", - "name": "GeoLocationInput", + "name": "OperatingCompanyInput", "description": null, "fields": null, "inputFields": [ { - "name": "latitude", + "name": "name", "description": null, "type": { "kind": "SCALAR", - "name": "AnyPrimitive", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "longitude", + "name": "address", "description": null, "type": { - "kind": "SCALAR", - "name": "AnyPrimitive", + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contact", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "ContactInput", "ofType": null }, "defaultValue": null @@ -6533,24 +8187,14 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "SCALAR", - "name": "AnyPrimitive", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", - "name": "ContentBlockInput", + "name": "OpeningHourInput", "description": null, "fields": null, "inputFields": [ { - "name": "title", + "name": "weekday", "description": null, "type": { "kind": "SCALAR", @@ -6560,7 +8204,7 @@ "defaultValue": null }, { - "name": "intro", + "name": "dateFrom", "description": null, "type": { "kind": "SCALAR", @@ -6570,7 +8214,7 @@ "defaultValue": null }, { - "name": "body", + "name": "dateTo", "description": null, "type": { "kind": "SCALAR", @@ -6580,36 +8224,7 @@ "defaultValue": null }, { - "name": "mediaContents", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MediaContentInput", - "ofType": null - } - } - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MediaContentInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "captionText", + "name": "timeFrom", "description": null, "type": { "kind": "SCALAR", @@ -6619,7 +8234,7 @@ "defaultValue": null }, { - "name": "copyright", + "name": "timeTo", "description": null, "type": { "kind": "SCALAR", @@ -6629,27 +8244,27 @@ "defaultValue": null }, { - "name": "height", + "name": "sortNumber", "description": null, "type": { "kind": "SCALAR", - "name": "AnyPrimitive", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "width", + "name": "open", "description": null, "type": { "kind": "SCALAR", - "name": "AnyPrimitive", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "contentType", + "name": "description", "description": null, "type": { "kind": "SCALAR", @@ -6657,16 +8272,6 @@ "ofType": null }, "defaultValue": null - }, - { - "name": "sourceUrl", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "WebUrlInput", - "ofType": null - }, - "defaultValue": null } ], "interfaces": null, @@ -6675,12 +8280,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "ContactInput", + "name": "PriceInput", "description": null, "fields": null, "inputFields": [ { - "name": "firstName", + "name": "name", "description": null, "type": { "kind": "SCALAR", @@ -6690,157 +8295,87 @@ "defaultValue": null }, { - "name": "lastName", + "name": "amount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "AnyPrimitive", "ofType": null }, "defaultValue": null }, { - "name": "phone", + "name": "groupPrice", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "fax", + "name": "ageFrom", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "webUrls", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "WebUrlInput", - "ofType": null - } - } - }, - "defaultValue": null - }, - { - "name": "email", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OperatingCompanyInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", + "name": "ageTo", "description": null, "type": { "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "address", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "contact", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "ContactInput", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "LocationInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", + "name": "minAdultCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "department", + "name": "maxAdultCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "district", + "name": "minChildrenCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "regionName", + "name": "maxChildrenCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "state", + "name": "description", "description": null, "type": { "kind": "SCALAR", @@ -6850,11 +8385,11 @@ "defaultValue": null }, { - "name": "geoLocation", + "name": "category", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "GeoLocationInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null @@ -6866,7 +8401,7 @@ }, { "kind": "INPUT_OBJECT", - "name": "CertificateInput", + "name": "LocationInput", "description": null, "fields": null, "inputFields": [ @@ -6879,20 +8414,9 @@ "ofType": null }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AccessibilityInformationInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "description", + "name": "department", "description": null, "type": { "kind": "SCALAR", @@ -6902,7 +8426,7 @@ "defaultValue": null }, { - "name": "types", + "name": "district", "description": null, "type": { "kind": "SCALAR", @@ -6912,20 +8436,32 @@ "defaultValue": null }, { - "name": "urls", + "name": "regionName", "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "WebUrlInput", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "state", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "geoLocation", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "GeoLocationInput", + "ofType": null }, "defaultValue": null } @@ -7017,12 +8553,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "RepeatDurationInput", + "name": "AccessibilityInformationInput", "description": null, "fields": null, "inputFields": [ { - "name": "startDate", + "name": "description", "description": null, "type": { "kind": "SCALAR", @@ -7032,7 +8568,7 @@ "defaultValue": null }, { - "name": "endDate", + "name": "types", "description": null, "type": { "kind": "SCALAR", @@ -7042,12 +8578,20 @@ "defaultValue": null }, { - "name": "everyYear", + "name": "urls", "description": null, "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } + } }, "defaultValue": null } @@ -7058,7 +8602,7 @@ }, { "kind": "INPUT_OBJECT", - "name": "RegionInput", + "name": "CertificateInput", "description": null, "fields": null, "inputFields": [ @@ -7079,12 +8623,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "PriceInput", + "name": "RepeatDurationInput", "description": null, "fields": null, "inputFields": [ { - "name": "name", + "name": "startDate", "description": null, "type": { "kind": "SCALAR", @@ -7094,17 +8638,17 @@ "defaultValue": null }, { - "name": "amount", + "name": "endDate", "description": null, "type": { "kind": "SCALAR", - "name": "AnyPrimitive", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "groupPrice", + "name": "everyYear", "description": null, "type": { "kind": "SCALAR", @@ -7112,79 +8656,20 @@ "ofType": null }, "defaultValue": null - }, - { - "name": "ageFrom", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "ageTo", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "minAdultCount", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "maxAdultCount", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "minChildrenCount", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "maxChildrenCount", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "description", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "RegionInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "category", + "name": "name", "description": null, "type": { "kind": "SCALAR", @@ -7200,12 +8685,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "OpeningHourInput", + "name": "LunchInput", "description": null, "fields": null, "inputFields": [ { - "name": "weekday", + "name": "text", "description": null, "type": { "kind": "SCALAR", @@ -7215,37 +8700,53 @@ "defaultValue": null }, { - "name": "dateFrom", + "name": "dates", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DateInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "dateTo", + "name": "lunchOffers", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "LunchOfferInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "timeFrom", + "name": "pointOfInterestId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "timeTo", + "name": "pointOfInterestAttributes", "description": null, "type": { "kind": "SCALAR", @@ -7253,29 +8754,30 @@ "ofType": null }, "defaultValue": null - }, - { - "name": "sortNumber", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "LunchOfferInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "open", + "name": "name", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "description", + "name": "price", "description": null, "type": { "kind": "SCALAR", diff --git a/schema.graphql b/schema.graphql index 8cd4bbca..f9d7eb42 100644 --- a/schema.graphql +++ b/schema.graphql @@ -192,6 +192,71 @@ enum EventRecordsOrder { updatedAt_DESC } +type GenericItem { + accessibilityInformations: [AccessibilityInformation!] + addresses: [Address!] + author: String + categories: [Category!] + companies: [OperatingCompany!] + contacts: [Contact!] + contentBlocks: [ContentBlock!] + createdAt: String + dataProvider: DataProvider + dates: [Date!] + externalId: String + genericItems: [GenericItem!] + genericType: String + id: ID + locations: [Location!] + mediaContents: [MediaContent!] + openingHours: [OpeningHour!] + payload: JSON + priceInformations: [Price!] + publicationDate: String + publishedAt: String + settings: Setting + title: String + updatedAt: String + visible: Boolean + webUrls: [WebUrl!] +} + +input GenericItemInput { + accessibilityInformations: [AccessibilityInformationInput!] + addresses: [AddressInput!] + author: String + categories: [CategoryInput!] + categoryName: String + companies: [OperatingCompanyInput!] + contacts: [ContactInput!] + contentBlocks: [ContentBlockInput!] + dates: [DateInput!] + externalId: String + genericItems: [GenericItemInput!] + genericType: String + locations: [LocationInput!] + mediaContents: [MediaContentInput!] + openingHours: [OpeningHourInput!] + payload: JSON + priceInformations: [PriceInput!] + publicationDate: String + publishedAt: String + pushNotification: Boolean + title: String + webUrls: [WebUrlInput!] +} + +enum GenericItemOrder { + createdAt_ASC + createdAt_DESC + id_ASC + id_DESC + publishedAt_ASC + publishedAt_DESC + updatedAt_ASC + updatedAt_DESC +} + type GeoLocation { id: ID latitude: Float @@ -239,6 +304,14 @@ type Lunch { updatedAt: String } +input LunchInput { + dates: [DateInput!] + lunchOffers: [LunchOfferInput!] + pointOfInterestAttributes: String + pointOfInterestId: ID + text: String +} + type LunchOffer { createdAt: String id: ID @@ -247,6 +320,11 @@ type LunchOffer { updatedAt: String } +input LunchOfferInput { + name: String + price: String +} + enum LunchesOrder { createdAt_ASC createdAt_DESC @@ -279,8 +357,9 @@ type Mutation { changeVisibility(id: ID!, recordType: String!, visible: Boolean!): ChangeVisibility! createAppUserContent(content: String, dataSource: String, dataType: String): AppUserContent! createEventRecord(accessibilityInformation: AccessibilityInformationInput, addresses: [AddressInput!], categories: [CategoryInput!], categoryName: String, contacts: [ContactInput!], dates: [DateInput!], description: String, externalId: String, forceCreate: Boolean, location: LocationInput, mediaContents: [MediaContentInput!], organizer: OperatingCompanyInput, parentId: Int, priceInformations: [PriceInput!], region: RegionInput, regionName: String, repeat: Boolean, repeatDuration: RepeatDurationInput, tags: [String!], title: String, urls: [WebUrlInput!]): EventRecord! + createGenericItem(accessibilityInformations: [AccessibilityInformationInput!], addresses: [AddressInput!], author: String, categories: [CategoryInput!], categoryName: String, companies: [OperatingCompanyInput!], contacts: [ContactInput!], contentBlocks: [ContentBlockInput!], dates: [DateInput!], externalId: String, genericItems: [GenericItemInput!], genericType: String, locations: [LocationInput!], mediaContents: [MediaContentInput!], openingHours: [OpeningHourInput!], payload: JSON, priceInformations: [PriceInput!], publicationDate: String, publishedAt: String, pushNotification: Boolean, title: String, webUrls: [WebUrlInput!]): GenericItem! createNewsItem(address: AddressInput, author: String, categories: [CategoryInput!], categoryName: String, charactersToBeShown: Int, contentBlocks: [ContentBlockInput!], externalId: String, forceCreate: Boolean, fullVersion: Boolean, newsType: String, publicationDate: String, publishedAt: String, pushNotification: Boolean, showPublishDate: Boolean, sourceUrl: WebUrlInput, title: String): NewsItem! - createPointOfInterest(accessibilityInformation: AccessibilityInformationInput, active: Boolean, addresses: [AddressInput!], categories: [CategoryInput!], categoryName: String, certificates: [CertificateInput!], contact: ContactInput, description: String, forceCreate: Boolean, location: LocationInput, mediaContents: [MediaContentInput!], mobileDescription: String, name: String!, openingHours: [OpeningHourInput!], operatingCompany: OperatingCompanyInput, priceInformations: [PriceInput!], tags: [String!], webUrls: [WebUrlInput!]): PointOfInterest! + createPointOfInterest(accessibilityInformation: AccessibilityInformationInput, active: Boolean, addresses: [AddressInput!], categories: [CategoryInput!], categoryName: String, certificates: [CertificateInput!], contact: ContactInput, description: String, forceCreate: Boolean, location: LocationInput, lunches: [LunchInput!], mediaContents: [MediaContentInput!], mobileDescription: String, name: String!, openingHours: [OpeningHourInput!], operatingCompany: OperatingCompanyInput, priceInformations: [PriceInput!], tags: [String!], webUrls: [WebUrlInput!]): PointOfInterest! createTour(accessibilityInformation: AccessibilityInformationInput, active: Boolean, addresses: [AddressInput!], categories: [CategoryInput!], categoryName: String, certificates: [CertificateInput!], contact: ContactInput, description: String, forceCreate: Boolean, geometryTourData: [GeoLocationInput!], lengthKm: Int!, location: LocationInput, meansOfTransportation: String, mediaContents: [MediaContentInput!], mobileDescription: String, name: String!, operatingCompany: OperatingCompanyInput, tags: [String!], webUrls: [WebUrlInput!]): Tour! destroyRecord(externalId: Int, id: Int, recordType: String!): Destroy! } @@ -458,6 +537,8 @@ type Query { directus(query: String): JSON! eventRecord(id: ID!): EventRecord! eventRecords(categoryId: ID, dataProvider: String, dataProviderId: ID, dateRange: [String], ids: [ID], limit: Int, order: EventRecordsOrder = createdAt_DESC, skip: Int, take: Int): [EventRecord] + genericItem(id: ID!): GenericItem! + genericItems(categoryId: ID, dataProvider: String, dataProviderId: ID, externalId: ID, genericType: String, ids: [ID], limit: Int, order: GenericItemOrder = createdAt_DESC, skip: Int): [GenericItem] lunch(id: ID!): Lunch! lunches(dateRange: [String], ids: [ID], limit: Int, order: LunchesOrder = createdAt_DESC, skip: Int): [Lunch!]! newsItem(id: ID!): NewsItem! diff --git a/schema.json b/schema.json index 8dfebeaf..3a189ba6 100644 --- a/schema.json +++ b/schema.json @@ -233,6 +233,148 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "genericItem", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GenericItem", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "genericItems", + "description": null, + "args": [ + { + "name": "categoryId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "dataProvider", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "dataProviderId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "externalId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "genericType", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "ids", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "limit", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "order", + "description": null, + "type": { + "kind": "ENUM", + "name": "GenericItemOrder", + "ofType": null + }, + "defaultValue": "createdAt_DESC" + }, + { + "name": "skip", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GenericItem", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "lunch", "description": null, @@ -916,11 +1058,11 @@ }, { "kind": "OBJECT", - "name": "OpenWeatherMap", + "name": "GenericItem", "description": null, "fields": [ { - "name": "alerts", + "name": "accessibilityInformations", "description": null, "args": [ @@ -932,8 +1074,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "JSON", + "kind": "OBJECT", + "name": "AccessibilityInformation", "ofType": null } } @@ -942,7 +1084,29 @@ "deprecationReason": null }, { - "name": "createdAt", + "name": "addresses", + "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "author", "description": null, "args": [ @@ -956,21 +1120,29 @@ "deprecationReason": null }, { - "name": "current", + "name": "categories", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "JSON", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "daily", + "name": "companies", "description": null, "args": [ @@ -982,8 +1154,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "JSON", + "kind": "OBJECT", + "name": "OperatingCompany", "ofType": null } } @@ -992,7 +1164,7 @@ "deprecationReason": null }, { - "name": "hourly", + "name": "contacts", "description": null, "args": [ @@ -1004,8 +1176,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "JSON", + "kind": "OBJECT", + "name": "Contact", "ofType": null } } @@ -1014,49 +1186,79 @@ "deprecationReason": null }, { - "name": "id", + "name": "contentBlocks", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContentBlock", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lat", + "name": "createdAt", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "Float", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lon", + "name": "dataProvider", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Float", + "kind": "OBJECT", + "name": "DataProvider", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt", + "name": "dates", + "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Date", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "externalId", "description": null, "args": [ @@ -1068,137 +1270,81 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ + }, + { + "name": "genericItems", + "description": null, + "args": [ - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "ID", - "description": "Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"VXNlci0xMA==\"`) or integer (such as `4`) input value will be accepted as an ID.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Float", - "description": "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "JSON", - "description": "Represents untyped JSON", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Int", - "description": "Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "OpenWeatherMapsOrder", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "createdAt_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt_DESC", - "description": null, + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GenericItem", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "genericType", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PointOfInterest", - "description": null, - "fields": [ - { - "name": "accessibilityInformation", + "name": "id", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "AccessibilityInformation", + "kind": "SCALAR", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "active", + "name": "locations", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Location", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "addresses", + "name": "mediaContents", "description": null, "args": [ @@ -1211,7 +1357,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Address", + "name": "MediaContent", "ofType": null } } @@ -1220,7 +1366,7 @@ "deprecationReason": null }, { - "name": "categories", + "name": "openingHours", "description": null, "args": [ @@ -1233,7 +1379,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Category", + "name": "OpeningHour", "ofType": null } } @@ -1242,21 +1388,21 @@ "deprecationReason": null }, { - "name": "category", + "name": "payload", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Category", + "kind": "SCALAR", + "name": "JSON", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "certificates", + "name": "priceInformations", "description": null, "args": [ @@ -1269,7 +1415,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Certificate", + "name": "Price", "ofType": null } } @@ -1278,21 +1424,21 @@ "deprecationReason": null }, { - "name": "contact", + "name": "publicationDate", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Contact", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createdAt", + "name": "publishedAt", "description": null, "args": [ @@ -1306,21 +1452,21 @@ "deprecationReason": null }, { - "name": "dataProvider", + "name": "settings", "description": null, "args": [ ], "type": { "kind": "OBJECT", - "name": "DataProvider", + "name": "Setting", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "description", + "name": "title", "description": null, "args": [ @@ -1334,35 +1480,35 @@ "deprecationReason": null }, { - "name": "id", + "name": "updatedAt", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "location", + "name": "visible", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Location", + "kind": "SCALAR", + "name": "Boolean", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lunches", + "name": "webUrls", "description": null, "args": [ @@ -1375,52 +1521,67 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Lunch", + "name": "WebUrl", "ofType": null } } }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "ID", + "description": "Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"VXNlci0xMA==\"`) or integer (such as `4`) input value will be accepted as an ID.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "AccessibilityInformation", + "description": null, + "fields": [ { - "name": "mediaContents", + "name": "description", "description": null, "args": [ ], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MediaContent", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "mobileDescription", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "types", "description": null, "args": [ @@ -1434,7 +1595,7 @@ "deprecationReason": null }, { - "name": "openingHours", + "name": "urls", "description": null, "args": [ @@ -1447,179 +1608,57 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "OpeningHour", + "name": "WebUrl", "ofType": null } } }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "WebUrl", + "description": null, + "fields": [ { - "name": "operatingCompany", + "name": "description", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "OperatingCompany", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "priceInformations", + "name": "id", "description": null, "args": [ ], "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Price", - "ofType": null - } - } + "kind": "SCALAR", + "name": "ID", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "settings", - "description": null, - "args": [ - - ], - "type": { - "kind": "OBJECT", - "name": "Setting", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "tagList", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updatedAt", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "visible", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webUrls", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebUrl", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Setting", - "description": null, - "fields": [ - { - "name": "alwaysRecreateOnImport", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "displayOnlySummary", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "onlySummaryLinkText", + "name": "url", "description": null, "args": [ @@ -1806,6 +1845,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "Float", + "description": "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Category", @@ -2027,6 +2076,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "Int", + "description": "Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "EventRecord", @@ -2482,6 +2541,61 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "Setting", + "description": null, + "fields": [ + { + "name": "alwaysRecreateOnImport", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "displayOnlySummary", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "onlySummaryLinkText", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Date", @@ -2941,11 +3055,11 @@ }, { "kind": "OBJECT", - "name": "WebUrl", + "name": "Contact", "description": null, "fields": [ { - "name": "description", + "name": "email", "description": null, "args": [ @@ -2959,21 +3073,21 @@ "deprecationReason": null }, { - "name": "id", + "name": "fax", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "url", + "name": "firstName", "description": null, "args": [ @@ -2985,36 +3099,23 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Contact", - "description": null, - "fields": [ + }, { - "name": "email", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "fax", + "name": "lastName", "description": null, "args": [ @@ -3028,7 +3129,7 @@ "deprecationReason": null }, { - "name": "firstName", + "name": "phone", "description": null, "args": [ @@ -3042,65 +3143,23 @@ "deprecationReason": null }, { - "name": "id", + "name": "webUrls", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastName", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "phone", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "webUrls", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebUrl", - "ofType": null - } - } + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WebUrl", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -3476,86 +3535,23 @@ }, { "kind": "OBJECT", - "name": "AccessibilityInformation", + "name": "PointOfInterest", "description": null, "fields": [ { - "name": "description", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "types", + "name": "accessibilityInformation", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "AccessibilityInformation", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, - { - "name": "urls", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "WebUrl", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Tour", - "description": null, - "fields": [ { "name": "active", "description": null, @@ -3706,32 +3702,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "geometryTourData", - "description": null, - "args": [ - - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GeoLocation", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "id", "description": null, @@ -3747,29 +3717,37 @@ "deprecationReason": null }, { - "name": "lengthKm", + "name": "location", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "OBJECT", + "name": "Location", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "meansOfTransportation", + "name": "lunches", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Lunch", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -3824,6 +3802,28 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openingHours", + "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "OpeningHour", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "operatingCompany", "description": null, @@ -3839,7 +3839,7 @@ "deprecationReason": null }, { - "name": "regions", + "name": "priceInformations", "description": null, "args": [ @@ -3852,7 +3852,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Region", + "name": "Price", "ofType": null } } @@ -3875,15 +3875,23 @@ "deprecationReason": null }, { - "name": "tags", + "name": "tagList", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -3948,25 +3956,25 @@ }, { "kind": "OBJECT", - "name": "Certificate", + "name": "OpeningHour", "description": null, "fields": [ { - "name": "id", + "name": "dateFrom", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "dateTo", "description": null, "args": [ @@ -3978,108 +3986,65 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ + }, + { + "name": "description", + "description": null, + "args": [ - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "NewsItem", - "description": null, - "fields": [ + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { - "name": "address", + "name": "id", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Address", + "kind": "SCALAR", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "author", + "name": "open", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "categories", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Category", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "charactersToBeShown", + "name": "sortNumber", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "contentBlocks", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContentBlock", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createdAt", + "name": "timeFrom", "description": null, "args": [ @@ -4093,21 +4058,21 @@ "deprecationReason": null }, { - "name": "dataProvider", + "name": "timeTo", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "DataProvider", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "externalId", + "name": "weekday", "description": null, "args": [ @@ -4119,37 +4084,63 @@ }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Certificate", + "description": null, + "fields": [ { - "name": "fullVersion", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id", + "name": "name", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Lunch", + "description": null, + "fields": [ { - "name": "newsType", + "name": "createdAt", "description": null, "args": [ @@ -4163,77 +4154,97 @@ "deprecationReason": null }, { - "name": "publicationDate", + "name": "dates", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Date", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "publishedAt", + "name": "id", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "settings", + "name": "listDate", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "Setting", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "showPublishDate", + "name": "lunchOffers", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "LunchOffer", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "sourceUrl", + "name": "pointOfInterest", "description": null, "args": [ ], "type": { - "kind": "OBJECT", - "name": "WebUrl", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PointOfInterest", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "title", + "name": "pointOfInterestAttributes", "description": null, "args": [ @@ -4247,7 +4258,7 @@ "deprecationReason": null }, { - "name": "updatedAt", + "name": "text", "description": null, "args": [ @@ -4261,14 +4272,14 @@ "deprecationReason": null }, { - "name": "visible", + "name": "updatedAt", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "isDeprecated": false, @@ -4284,23 +4295,9 @@ }, { "kind": "OBJECT", - "name": "ContentBlock", + "name": "LunchOffer", "description": null, "fields": [ - { - "name": "body", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "createdAt", "description": null, @@ -4330,7 +4327,7 @@ "deprecationReason": null }, { - "name": "intro", + "name": "name", "description": null, "args": [ @@ -4344,29 +4341,7 @@ "deprecationReason": null }, { - "name": "mediaContents", - "description": null, - "args": [ - - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MediaContent", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "title", + "name": "price", "description": null, "args": [ @@ -4403,109 +4378,119 @@ }, { "kind": "OBJECT", - "name": "OpeningHour", + "name": "Tour", "description": null, "fields": [ { - "name": "dateFrom", + "name": "active", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "dateTo", + "name": "addresses", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "description", + "name": "categories", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id", + "name": "category", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "ID", + "kind": "OBJECT", + "name": "Category", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "open", + "name": "certificates", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortNumber", - "description": null, - "args": [ - - ], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Certificate", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "timeFrom", + "name": "contact", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Contact", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "timeTo", + "name": "createdAt", "description": null, "args": [ @@ -4519,34 +4504,21 @@ "deprecationReason": null }, { - "name": "weekday", + "name": "dataProvider", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "DataProvider", "ofType": null }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Lunch", - "description": null, - "fields": [ + }, { - "name": "createdAt", + "name": "description", "description": null, "args": [ @@ -4560,21 +4532,25 @@ "deprecationReason": null }, { - "name": "dates", + "name": "geometryTourData", "description": null, "args": [ ], "type": { - "kind": "LIST", + "kind": "NON_NULL", "name": null, "ofType": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Date", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GeoLocation", + "ofType": null + } } } }, @@ -4596,7 +4572,21 @@ "deprecationReason": null }, { - "name": "listDate", + "name": "lengthKm", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "meansOfTransportation", "description": null, "args": [ @@ -4610,7 +4600,7 @@ "deprecationReason": null }, { - "name": "lunchOffers", + "name": "mediaContents", "description": null, "args": [ @@ -4623,7 +4613,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "LunchOffer", + "name": "MediaContent", "ofType": null } } @@ -4632,25 +4622,21 @@ "deprecationReason": null }, { - "name": "pointOfInterest", + "name": "mobileDescription", "description": null, "args": [ ], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PointOfInterest", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "pointOfInterestAttributes", + "name": "name", "description": null, "args": [ @@ -4664,76 +4650,71 @@ "deprecationReason": null }, { - "name": "text", + "name": "operatingCompany", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "OperatingCompany", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt", + "name": "regions", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Region", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "LunchOffer", - "description": null, - "fields": [ + }, { - "name": "createdAt", + "name": "settings", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "Setting", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id", + "name": "tags", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "ID", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "updatedAt", "description": null, "args": [ @@ -4747,29 +4728,37 @@ "deprecationReason": null }, { - "name": "price", + "name": "visible", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt", + "name": "webUrls", "description": null, "args": [ ], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WebUrl", + "ofType": null + } + } }, "isDeprecated": false, "deprecationReason": null @@ -4783,258 +4772,481 @@ "possibleTypes": null }, { - "kind": "ENUM", - "name": "PointsOfInterestOrder", + "kind": "OBJECT", + "name": "NewsItem", "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ + "fields": [ { - "name": "createdAt_ASC", + "name": "address", "description": null, + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "Address", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createdAt_DESC", + "name": "author", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_ASC", + "name": "categories", "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Category", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_DESC", + "name": "charactersToBeShown", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name_ASC", + "name": "contentBlocks", "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ContentBlock", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name_DESC", + "name": "createdAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "dataProvider", "description": null, - "isDeprecated": false, - "deprecationReason": null + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "DataProvider", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null }, { - "name": "id_DESC", + "name": "externalId", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "RAND", + "name": "fullVersion", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "EventRecordsOrder", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ + }, { - "name": "createdAt_ASC", + "name": "id", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createdAt_DESC", + "name": "newsType", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_ASC", + "name": "publicationDate", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_DESC", + "name": "publishedAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "title_ASC", + "name": "settings", "description": null, + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "Setting", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "title_DESC", + "name": "showPublishDate", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "sourceUrl", "description": null, + "args": [ + + ], + "type": { + "kind": "OBJECT", + "name": "WebUrl", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", + "name": "title", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "listDate_DESC", + "name": "updatedAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "listDate_ASC", + "name": "visible", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null } ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, "possibleTypes": null }, { - "kind": "ENUM", - "name": "NewsItemsOrder", + "kind": "OBJECT", + "name": "ContentBlock", "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "createdAt_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, + "fields": [ { - "name": "createdAt_DESC", + "name": "body", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_ASC", + "name": "createdAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_DESC", + "name": "id", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "publishedAt_ASC", + "name": "intro", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "publishedAt_DESC", + "name": "mediaContents", "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaContent", + "ofType": null + } + } + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "title", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", + "name": "updatedAt", "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, "isDeprecated": false, "deprecationReason": null } ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, "possibleTypes": null }, { - "kind": "ENUM", - "name": "ToursOrder", - "description": null, + "kind": "SCALAR", + "name": "JSON", + "description": "Represents untyped JSON", "fields": null, "inputFields": null, "interfaces": null, - "enumValues": [ - { - "name": "createdAt_ASC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "GenericItemOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ { - "name": "createdAt_DESC", + "name": "createdAt_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_ASC", + "name": "createdAt_DESC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "updatedAt_DESC", + "name": "id_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "name_ASC", + "name": "id_DESC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "name_DESC", + "name": "publishedAt_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_ASC", + "name": "publishedAt_DESC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "id_DESC", + "name": "updatedAt_ASC", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "RAND", + "name": "updatedAt_DESC", "description": null, "isDeprecated": false, "deprecationReason": null @@ -5044,11 +5256,33 @@ }, { "kind": "OBJECT", - "name": "PublicHtmlFile", + "name": "OpenWeatherMap", "description": null, "fields": [ { - "name": "content", + "name": "alerts", + "description": null, + "args": [ + + ], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", "description": null, "args": [ @@ -5062,67 +5296,118 @@ "deprecationReason": null }, { - "name": "name", + "name": "current", "description": null, "args": [ ], "type": { "kind": "SCALAR", - "name": "String", + "name": "JSON", "ofType": null }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PublicJsonFile", - "description": null, - "fields": [ + }, { - "name": "content", + "name": "daily", "description": null, "args": [ ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "hourly", "description": null, "args": [ ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + } } }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lat", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lon", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -5134,7 +5419,7 @@ }, { "kind": "ENUM", - "name": "LunchesOrder", + "name": "OpenWeatherMapsOrder", "description": null, "fields": null, "inputFields": null, @@ -5180,102 +5465,790 @@ "possibleTypes": null }, { - "kind": "OBJECT", - "name": "Mutation", + "kind": "ENUM", + "name": "PointsOfInterestOrder", "description": null, - "fields": [ + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ { - "name": "changeVisibility", + "name": "createdAt_ASC", "description": null, - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "recordType", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "visible", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChangeVisibility", - "ofType": null - } - }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createAppUserContent", + "name": "createdAt_DESC", "description": null, - "args": [ - { - "name": "dataSource", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "dataType", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "content", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "RAND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "EventRecordsOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "createdAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "listDate_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "listDate_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "NewsItemsOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "createdAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "publishedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "publishedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "ToursOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "createdAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "RAND", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PublicHtmlFile", + "description": null, + "fields": [ + { + "name": "content", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [ + + ], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PublicJsonFile", + "description": null, + "fields": [ + { + "name": "content", + "description": null, + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [ + + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "LunchesOrder", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "createdAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "updatedAt_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_ASC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id_DESC", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Mutation", + "description": null, + "fields": [ + { + "name": "changeVisibility", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "recordType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "visible", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ChangeVisibility", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createAppUserContent", + "description": null, + "args": [ + { + "name": "dataSource", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "dataType", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "content", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AppUserContent", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createEventRecord", + "description": null, + "args": [ + { + "name": "forceCreate", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "parentId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "description", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "externalId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "title", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "dates", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DateInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "repeat", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "repeatDuration", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "RepeatDurationInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "categoryName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "categories", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CategoryInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "regionName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "region", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "RegionInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "addresses", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "location", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "LocationInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contacts", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContactInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "urls", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "mediaContents", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MediaContentInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "organizer", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "OperatingCompanyInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "priceInformations", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PriceInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "accessibilityInformation", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "AccessibilityInformationInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "tags", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null } ], "type": { @@ -5283,7 +6256,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "AppUserContent", + "name": "EventRecord", "ofType": null } }, @@ -5291,11 +6264,11 @@ "deprecationReason": null }, { - "name": "createEventRecord", + "name": "createGenericItem", "description": null, "args": [ { - "name": "forceCreate", + "name": "pushNotification", "description": null, "type": { "kind": "SCALAR", @@ -5305,17 +6278,17 @@ "defaultValue": null }, { - "name": "parentId", + "name": "author", "description": null, "type": { "kind": "SCALAR", - "name": "Int", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "description", + "name": "title", "description": null, "type": { "kind": "SCALAR", @@ -5325,7 +6298,7 @@ "defaultValue": null }, { - "name": "externalId", + "name": "genericType", "description": null, "type": { "kind": "SCALAR", @@ -5335,7 +6308,7 @@ "defaultValue": null }, { - "name": "title", + "name": "externalId", "description": null, "type": { "kind": "SCALAR", @@ -5345,55 +6318,47 @@ "defaultValue": null }, { - "name": "dates", + "name": "publicationDate", "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "DateInput", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null }, { - "name": "repeat", + "name": "publishedAt", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "repeatDuration", + "name": "categoryName", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "RepeatDurationInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "categoryName", + "name": "payload", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "JSON", "ofType": null }, "defaultValue": null }, { - "name": "categories", + "name": "contacts", "description": null, "type": { "kind": "LIST", @@ -5403,7 +6368,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CategoryInput", + "name": "ContactInput", "ofType": null } } @@ -5411,22 +6376,74 @@ "defaultValue": null }, { - "name": "regionName", + "name": "genericItems", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "GenericItemInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "region", + "name": "companies", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "RegionInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OperatingCompanyInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "categories", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CategoryInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "webUrls", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } + } }, "defaultValue": null }, @@ -5449,17 +6466,25 @@ "defaultValue": null }, { - "name": "location", + "name": "contentBlocks", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "LocationInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContentBlockInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "contacts", + "name": "openingHours", "description": null, "type": { "kind": "LIST", @@ -5469,7 +6494,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "ContactInput", + "name": "OpeningHourInput", "ofType": null } } @@ -5477,7 +6502,7 @@ "defaultValue": null }, { - "name": "urls", + "name": "priceInformations", "description": null, "type": { "kind": "LIST", @@ -5487,7 +6512,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "WebUrlInput", + "name": "PriceInput", "ofType": null } } @@ -5513,17 +6538,7 @@ "defaultValue": null }, { - "name": "organizer", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "OperatingCompanyInput", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "priceInformations", + "name": "locations", "description": null, "type": { "kind": "LIST", @@ -5533,7 +6548,7 @@ "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "PriceInput", + "name": "LocationInput", "ofType": null } } @@ -5541,17 +6556,25 @@ "defaultValue": null }, { - "name": "accessibilityInformation", + "name": "dates", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "AccessibilityInformationInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DateInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "tags", + "name": "accessibilityInformations", "description": null, "type": { "kind": "LIST", @@ -5560,8 +6583,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "AccessibilityInformationInput", "ofType": null } } @@ -5574,7 +6597,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "EventRecord", + "name": "GenericItem", "ofType": null } }, @@ -6025,6 +7048,24 @@ } }, "defaultValue": null + }, + { + "name": "lunches", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "LunchInput", + "ofType": null + } + } + }, + "defaultValue": null } ], "type": { @@ -6299,84 +7340,446 @@ } ], "type": { - "kind": "NON_NULL", + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Tour", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "destroyRecord", + "description": null, + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "recordType", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "externalId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Destroy", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CategoryInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "name", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "url", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "description", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "id", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "addition", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "street", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "zip", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "city", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "kind", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "geoLocation", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "GeoLocationInput", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "GeoLocationInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "latitude", + "description": null, + "type": { + "kind": "SCALAR", + "name": "AnyPrimitive", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "longitude", + "description": null, + "type": { + "kind": "SCALAR", + "name": "AnyPrimitive", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "AnyPrimitive", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ContentBlockInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "title", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "intro", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "body", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "mediaContents", + "description": null, + "type": { + "kind": "LIST", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Tour", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MediaContentInput", + "ofType": null + } } }, - "isDeprecated": false, - "deprecationReason": null + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "MediaContentInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "captionText", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null }, { - "name": "destroyRecord", + "name": "copyright", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "height", + "description": null, + "type": { + "kind": "SCALAR", + "name": "AnyPrimitive", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "width", + "description": null, + "type": { + "kind": "SCALAR", + "name": "AnyPrimitive", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contentType", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "sourceUrl", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "ContactInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "firstName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "lastName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "phone", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "fax", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "webUrls", "description": null, - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "recordType", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null - }, - { - "name": "externalId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - } - ], "type": { - "kind": "NON_NULL", + "kind": "LIST", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Destroy", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } } }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CategoryInput", - "description": null, - "fields": null, - "inputFields": [ + "defaultValue": null + }, { - "name": "name", + "name": "email", "description": null, "type": { "kind": "SCALAR", @@ -6392,12 +7795,22 @@ }, { "kind": "INPUT_OBJECT", - "name": "WebUrlInput", + "name": "GenericItemInput", "description": null, "fields": null, "inputFields": [ { - "name": "url", + "name": "pushNotification", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "author", "description": null, "type": { "kind": "SCALAR", @@ -6407,7 +7820,7 @@ "defaultValue": null }, { - "name": "description", + "name": "title", "description": null, "type": { "kind": "SCALAR", @@ -6415,30 +7828,19 @@ "ofType": null }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AddressInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "id", + "name": "genericType", "description": null, "type": { "kind": "SCALAR", - "name": "Int", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "addition", + "name": "externalId", "description": null, "type": { "kind": "SCALAR", @@ -6448,7 +7850,27 @@ "defaultValue": null }, { - "name": "street", + "name": "publicationDate", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "publishedAt", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "categoryName", "description": null, "type": { "kind": "SCALAR", @@ -6458,42 +7880,246 @@ "defaultValue": null }, { - "name": "zip", + "name": "payload", + "description": null, + "type": { + "kind": "SCALAR", + "name": "JSON", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contacts", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContactInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "genericItems", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "GenericItemInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "companies", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OperatingCompanyInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "categories", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CategoryInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "webUrls", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "addresses", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "contentBlocks", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ContentBlockInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "openingHours", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "OpeningHourInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "priceInformations", + "description": null, + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PriceInput", + "ofType": null + } + } + }, + "defaultValue": null + }, + { + "name": "mediaContents", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MediaContentInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "city", + "name": "locations", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "LocationInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "kind", + "name": "dates", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DateInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "geoLocation", + "name": "accessibilityInformations", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "GeoLocationInput", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AccessibilityInformationInput", + "ofType": null + } + } }, "defaultValue": null } @@ -6504,26 +8130,36 @@ }, { "kind": "INPUT_OBJECT", - "name": "GeoLocationInput", + "name": "OperatingCompanyInput", "description": null, "fields": null, "inputFields": [ { - "name": "latitude", + "name": "name", "description": null, "type": { "kind": "SCALAR", - "name": "AnyPrimitive", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "longitude", + "name": "address", "description": null, "type": { - "kind": "SCALAR", - "name": "AnyPrimitive", + "kind": "INPUT_OBJECT", + "name": "AddressInput", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "contact", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "ContactInput", "ofType": null }, "defaultValue": null @@ -6533,24 +8169,14 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "SCALAR", - "name": "AnyPrimitive", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", - "name": "ContentBlockInput", + "name": "OpeningHourInput", "description": null, "fields": null, "inputFields": [ { - "name": "title", + "name": "weekday", "description": null, "type": { "kind": "SCALAR", @@ -6560,7 +8186,7 @@ "defaultValue": null }, { - "name": "intro", + "name": "dateFrom", "description": null, "type": { "kind": "SCALAR", @@ -6570,7 +8196,7 @@ "defaultValue": null }, { - "name": "body", + "name": "dateTo", "description": null, "type": { "kind": "SCALAR", @@ -6580,36 +8206,7 @@ "defaultValue": null }, { - "name": "mediaContents", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MediaContentInput", - "ofType": null - } - } - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "MediaContentInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "captionText", + "name": "timeFrom", "description": null, "type": { "kind": "SCALAR", @@ -6619,7 +8216,7 @@ "defaultValue": null }, { - "name": "copyright", + "name": "timeTo", "description": null, "type": { "kind": "SCALAR", @@ -6629,27 +8226,27 @@ "defaultValue": null }, { - "name": "height", + "name": "sortNumber", "description": null, "type": { "kind": "SCALAR", - "name": "AnyPrimitive", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "width", + "name": "open", "description": null, "type": { "kind": "SCALAR", - "name": "AnyPrimitive", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "contentType", + "name": "description", "description": null, "type": { "kind": "SCALAR", @@ -6657,16 +8254,6 @@ "ofType": null }, "defaultValue": null - }, - { - "name": "sourceUrl", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "WebUrlInput", - "ofType": null - }, - "defaultValue": null } ], "interfaces": null, @@ -6675,12 +8262,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "ContactInput", + "name": "PriceInput", "description": null, "fields": null, "inputFields": [ { - "name": "firstName", + "name": "name", "description": null, "type": { "kind": "SCALAR", @@ -6690,157 +8277,87 @@ "defaultValue": null }, { - "name": "lastName", + "name": "amount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "AnyPrimitive", "ofType": null }, "defaultValue": null }, { - "name": "phone", + "name": "groupPrice", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null }, "defaultValue": null }, { - "name": "fax", + "name": "ageFrom", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "webUrls", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "WebUrlInput", - "ofType": null - } - } - }, - "defaultValue": null - }, - { - "name": "email", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "OperatingCompanyInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", + "name": "ageTo", "description": null, "type": { "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "address", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "AddressInput", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "contact", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "ContactInput", - "ofType": null - }, - "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "LocationInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "name", + "name": "minAdultCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "department", + "name": "maxAdultCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "district", + "name": "minChildrenCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "regionName", + "name": "maxChildrenCount", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null }, { - "name": "state", + "name": "description", "description": null, "type": { "kind": "SCALAR", @@ -6850,11 +8367,11 @@ "defaultValue": null }, { - "name": "geoLocation", + "name": "category", "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "GeoLocationInput", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null @@ -6866,7 +8383,7 @@ }, { "kind": "INPUT_OBJECT", - "name": "CertificateInput", + "name": "LocationInput", "description": null, "fields": null, "inputFields": [ @@ -6879,20 +8396,9 @@ "ofType": null }, "defaultValue": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "AccessibilityInformationInput", - "description": null, - "fields": null, - "inputFields": [ + }, { - "name": "description", + "name": "department", "description": null, "type": { "kind": "SCALAR", @@ -6902,7 +8408,7 @@ "defaultValue": null }, { - "name": "types", + "name": "district", "description": null, "type": { "kind": "SCALAR", @@ -6912,20 +8418,32 @@ "defaultValue": null }, { - "name": "urls", + "name": "regionName", "description": null, "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "WebUrlInput", - "ofType": null - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "state", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "geoLocation", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "GeoLocationInput", + "ofType": null }, "defaultValue": null } @@ -7017,12 +8535,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "RepeatDurationInput", + "name": "AccessibilityInformationInput", "description": null, "fields": null, "inputFields": [ { - "name": "startDate", + "name": "description", "description": null, "type": { "kind": "SCALAR", @@ -7032,7 +8550,7 @@ "defaultValue": null }, { - "name": "endDate", + "name": "types", "description": null, "type": { "kind": "SCALAR", @@ -7042,12 +8560,20 @@ "defaultValue": null }, { - "name": "everyYear", + "name": "urls", "description": null, "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "WebUrlInput", + "ofType": null + } + } }, "defaultValue": null } @@ -7058,7 +8584,7 @@ }, { "kind": "INPUT_OBJECT", - "name": "RegionInput", + "name": "CertificateInput", "description": null, "fields": null, "inputFields": [ @@ -7079,12 +8605,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "PriceInput", + "name": "RepeatDurationInput", "description": null, "fields": null, "inputFields": [ { - "name": "name", + "name": "startDate", "description": null, "type": { "kind": "SCALAR", @@ -7094,17 +8620,17 @@ "defaultValue": null }, { - "name": "amount", + "name": "endDate", "description": null, "type": { "kind": "SCALAR", - "name": "AnyPrimitive", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "groupPrice", + "name": "everyYear", "description": null, "type": { "kind": "SCALAR", @@ -7112,79 +8638,20 @@ "ofType": null }, "defaultValue": null - }, - { - "name": "ageFrom", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "ageTo", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "minAdultCount", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "maxAdultCount", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "minChildrenCount", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "maxChildrenCount", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, - { - "name": "description", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "RegionInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "category", + "name": "name", "description": null, "type": { "kind": "SCALAR", @@ -7200,12 +8667,12 @@ }, { "kind": "INPUT_OBJECT", - "name": "OpeningHourInput", + "name": "LunchInput", "description": null, "fields": null, "inputFields": [ { - "name": "weekday", + "name": "text", "description": null, "type": { "kind": "SCALAR", @@ -7215,37 +8682,53 @@ "defaultValue": null }, { - "name": "dateFrom", + "name": "dates", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DateInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "dateTo", + "name": "lunchOffers", "description": null, "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "LunchOfferInput", + "ofType": null + } + } }, "defaultValue": null }, { - "name": "timeFrom", + "name": "pointOfInterestId", "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null }, "defaultValue": null }, { - "name": "timeTo", + "name": "pointOfInterestAttributes", "description": null, "type": { "kind": "SCALAR", @@ -7253,29 +8736,30 @@ "ofType": null }, "defaultValue": null - }, - { - "name": "sortNumber", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "LunchOfferInput", + "description": null, + "fields": null, + "inputFields": [ { - "name": "open", + "name": "name", "description": null, "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null }, { - "name": "description", + "name": "price", "description": null, "type": { "kind": "SCALAR", diff --git a/spec/factories/news_items.rb b/spec/factories/news_items.rb index a5e0239f..1312f68c 100644 --- a/spec/factories/news_items.rb +++ b/spec/factories/news_items.rb @@ -16,18 +16,19 @@ # # Table name: news_items # -# id :bigint not null, primary key -# author :string(255) -# full_version :boolean -# characters_to_be_shown :integer -# publication_date :datetime -# published_at :datetime -# show_publish_date :boolean -# news_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# data_provider_id :integer -# external_id :text(65535) -# title :string(255) -# visible :boolean default(TRUE) +# id :bigint not null, primary key +# author :string(255) +# full_version :boolean +# characters_to_be_shown :integer +# publication_date :datetime +# published_at :datetime +# show_publish_date :boolean +# news_type :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# data_provider_id :integer +# external_id :text(65535) +# title :string(255) +# visible :boolean default(TRUE) +# push_notifications_sent_at :datetime # diff --git a/spec/models/news_item_spec.rb b/spec/models/news_item_spec.rb index fb344392..ed2265d1 100644 --- a/spec/models/news_item_spec.rb +++ b/spec/models/news_item_spec.rb @@ -12,18 +12,19 @@ # # Table name: news_items # -# id :bigint not null, primary key -# author :string(255) -# full_version :boolean -# characters_to_be_shown :integer -# publication_date :datetime -# published_at :datetime -# show_publish_date :boolean -# news_type :string(255) -# created_at :datetime not null -# updated_at :datetime not null -# data_provider_id :integer -# external_id :text(65535) -# title :string(255) -# visible :boolean default(TRUE) +# id :bigint not null, primary key +# author :string(255) +# full_version :boolean +# characters_to_be_shown :integer +# publication_date :datetime +# published_at :datetime +# show_publish_date :boolean +# news_type :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# data_provider_id :integer +# external_id :text(65535) +# title :string(255) +# visible :boolean default(TRUE) +# push_notifications_sent_at :datetime #