solidus_graphql_api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.circleci/config.yml +93 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +17 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +62 -0
- data/CHANGELOG.md +0 -0
- data/CONTRIBUTING.md +57 -0
- data/Gemfile +33 -0
- data/LICENSE +26 -0
- data/LICENSE.md +26 -0
- data/README.md +245 -0
- data/Rakefile +43 -0
- data/app/controllers/spree/graphql_controller.rb +49 -0
- data/bin/console +17 -0
- data/bin/rails +9 -0
- data/bin/rails-engine +16 -0
- data/bin/rails-sandbox +18 -0
- data/bin/rake +8 -0
- data/bin/sandbox +84 -0
- data/bin/setup +8 -0
- data/config/locales/en.yml +6 -0
- data/config/routes.rb +5 -0
- data/lib/generators/solidus_graphql_api/install/install_generator.rb +8 -0
- data/lib/solidus_graphql_api.rb +11 -0
- data/lib/solidus_graphql_api/batch_loader.rb +114 -0
- data/lib/solidus_graphql_api/batch_loader/belongs_to.rb +30 -0
- data/lib/solidus_graphql_api/batch_loader/has_many.rb +24 -0
- data/lib/solidus_graphql_api/batch_loader/has_many_through.rb +42 -0
- data/lib/solidus_graphql_api/batch_loader/has_one.rb +22 -0
- data/lib/solidus_graphql_api/configuration.rb +19 -0
- data/lib/solidus_graphql_api/context.rb +76 -0
- data/lib/solidus_graphql_api/engine.rb +25 -0
- data/lib/solidus_graphql_api/factories.rb +11 -0
- data/lib/solidus_graphql_api/factories/address_factory.rb +8 -0
- data/lib/solidus_graphql_api/factories/country_factory.rb +12 -0
- data/lib/solidus_graphql_api/factories/store_factory.rb +16 -0
- data/lib/solidus_graphql_api/factories/taxonomy_factory.rb +26 -0
- data/lib/solidus_graphql_api/mutations/.keep +0 -0
- data/lib/solidus_graphql_api/mutations/base_mutation.rb +45 -0
- data/lib/solidus_graphql_api/mutations/checkout/add_addresses_to_checkout.rb +41 -0
- data/lib/solidus_graphql_api/mutations/checkout/add_payment_to_checkout.rb +45 -0
- data/lib/solidus_graphql_api/mutations/checkout/add_to_cart.rb +30 -0
- data/lib/solidus_graphql_api/mutations/checkout/advance_checkout.rb +27 -0
- data/lib/solidus_graphql_api/mutations/checkout/apply_coupon_code.rb +32 -0
- data/lib/solidus_graphql_api/mutations/checkout/complete_checkout.rb +31 -0
- data/lib/solidus_graphql_api/mutations/checkout/create_order.rb +27 -0
- data/lib/solidus_graphql_api/mutations/checkout/empty_cart.rb +29 -0
- data/lib/solidus_graphql_api/mutations/checkout/next_checkout_state.rb +27 -0
- data/lib/solidus_graphql_api/mutations/checkout/remove_from_cart.rb +33 -0
- data/lib/solidus_graphql_api/mutations/checkout/select_shipping_rate.rb +40 -0
- data/lib/solidus_graphql_api/mutations/checkout/set_order_email.rb +29 -0
- data/lib/solidus_graphql_api/mutations/checkout/update_cart_quantity.rb +41 -0
- data/lib/solidus_graphql_api/mutations/user/mark_default_address.rb +31 -0
- data/lib/solidus_graphql_api/mutations/user/remove_from_address_book.rb +25 -0
- data/lib/solidus_graphql_api/mutations/user/save_in_address_book.rb +30 -0
- data/lib/solidus_graphql_api/queries/address/country_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/address/state_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/completed_orders_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/countries_query.rb +11 -0
- data/lib/solidus_graphql_api/queries/country/states_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/line_item/variant_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/option_type/option_values_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/adjustments_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/billing_address_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/line_items_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/payments_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/shipments_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/order/shipping_address_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product/master_variant_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product/option_types_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product/product_properties_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product/variants_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/product_by_slug_query.rb +11 -0
- data/lib/solidus_graphql_api/queries/product_property/property_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/products_query.rb +29 -0
- data/lib/solidus_graphql_api/queries/shipment/shipping_rates_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/taxon/children_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/taxon/parent_taxon_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/taxonomies_query.rb +11 -0
- data/lib/solidus_graphql_api/queries/taxonomy/root_taxon_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/taxonomy/taxons_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/variant/default_price_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/variant/images_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/variant/option_values_query.rb +19 -0
- data/lib/solidus_graphql_api/queries/variant/prices_query.rb +19 -0
- data/lib/solidus_graphql_api/schema.rb +40 -0
- data/lib/solidus_graphql_api/types/.keep +0 -0
- data/lib/solidus_graphql_api/types/address.rb +32 -0
- data/lib/solidus_graphql_api/types/base/argument.rb +10 -0
- data/lib/solidus_graphql_api/types/base/enum.rb +10 -0
- data/lib/solidus_graphql_api/types/base/field.rb +13 -0
- data/lib/solidus_graphql_api/types/base/input_object.rb +10 -0
- data/lib/solidus_graphql_api/types/base/interface.rb +11 -0
- data/lib/solidus_graphql_api/types/base/object.rb +25 -0
- data/lib/solidus_graphql_api/types/base/relay_node.rb +13 -0
- data/lib/solidus_graphql_api/types/base/scalar.rb +10 -0
- data/lib/solidus_graphql_api/types/base/union.rb +10 -0
- data/lib/solidus_graphql_api/types/country.rb +23 -0
- data/lib/solidus_graphql_api/types/credit_card.rb +18 -0
- data/lib/solidus_graphql_api/types/currency.rb +14 -0
- data/lib/solidus_graphql_api/types/image.rb +27 -0
- data/lib/solidus_graphql_api/types/input_objects/address_input.rb +24 -0
- data/lib/solidus_graphql_api/types/input_objects/products_query_input.rb +15 -0
- data/lib/solidus_graphql_api/types/interfaces/adjustment.rb +32 -0
- data/lib/solidus_graphql_api/types/interfaces/payment_source.rb +19 -0
- data/lib/solidus_graphql_api/types/json.rb +63 -0
- data/lib/solidus_graphql_api/types/line_item.rb +26 -0
- data/lib/solidus_graphql_api/types/manifest_item.rb +12 -0
- data/lib/solidus_graphql_api/types/mutation.rb +24 -0
- data/lib/solidus_graphql_api/types/option_type.rb +22 -0
- data/lib/solidus_graphql_api/types/option_value.rb +15 -0
- data/lib/solidus_graphql_api/types/order.rb +63 -0
- data/lib/solidus_graphql_api/types/payment.rb +15 -0
- data/lib/solidus_graphql_api/types/payment_method.rb +15 -0
- data/lib/solidus_graphql_api/types/price.rb +21 -0
- data/lib/solidus_graphql_api/types/product.rb +38 -0
- data/lib/solidus_graphql_api/types/product_property.rb +19 -0
- data/lib/solidus_graphql_api/types/promotion_adjustment.rb +17 -0
- data/lib/solidus_graphql_api/types/property.rb +14 -0
- data/lib/solidus_graphql_api/types/query.rb +84 -0
- data/lib/solidus_graphql_api/types/shipment.rb +23 -0
- data/lib/solidus_graphql_api/types/shipping_rate.rb +15 -0
- data/lib/solidus_graphql_api/types/state.rb +14 -0
- data/lib/solidus_graphql_api/types/store.rb +27 -0
- data/lib/solidus_graphql_api/types/tax_adjustment.rb +11 -0
- data/lib/solidus_graphql_api/types/taxon.rb +33 -0
- data/lib/solidus_graphql_api/types/taxonomy.rb +23 -0
- data/lib/solidus_graphql_api/types/user.rb +23 -0
- data/lib/solidus_graphql_api/types/user_error.rb +12 -0
- data/lib/solidus_graphql_api/types/variant.rb +39 -0
- data/lib/solidus_graphql_api/types/wallet_payment_source.rb +14 -0
- data/lib/solidus_graphql_api/version.rb +5 -0
- data/schema.graphql +2070 -0
- data/solidus_graphql_api.gemspec +43 -0
- data/spec/integration/mutations/add_to_cart_spec.rb +67 -0
- data/spec/integration/mutations/checkout/add_addresses_to_checkout_spec.rb +115 -0
- data/spec/integration/mutations/checkout/add_payment_to_checkout_spec.rb +87 -0
- data/spec/integration/mutations/checkout/advance_checkout_spec.rb +71 -0
- data/spec/integration/mutations/checkout/apply_coupon_code_spec.rb +76 -0
- data/spec/integration/mutations/checkout/complete_checkout_spec.rb +56 -0
- data/spec/integration/mutations/checkout/next_checkout_state_spec.rb +69 -0
- data/spec/integration/mutations/checkout/select_shipping_rate_spec.rb +89 -0
- data/spec/integration/mutations/create_order_spec.rb +55 -0
- data/spec/integration/mutations/empty_cart_spec.rb +58 -0
- data/spec/integration/mutations/mark_default_address_spec.rb +33 -0
- data/spec/integration/mutations/remove_from_address_book_spec.rb +48 -0
- data/spec/integration/mutations/remove_from_cart_spec.rb +65 -0
- data/spec/integration/mutations/save_in_address_book_spec.rb +90 -0
- data/spec/integration/mutations/set_order_email_spec.rb +61 -0
- data/spec/integration/mutations/update_cart_quantity_spec.rb +68 -0
- data/spec/integration/queries/completed_orders_spec.rb +158 -0
- data/spec/integration/queries/countries_spec.rb +18 -0
- data/spec/integration/queries/current_order_spec.rb +15 -0
- data/spec/integration/queries/current_store_spec.rb +15 -0
- data/spec/integration/queries/current_user_spec.rb +43 -0
- data/spec/integration/queries/product_by_slug_spec.rb +42 -0
- data/spec/integration/queries/products_spec.rb +40 -0
- data/spec/integration/queries/taxonomies_spec.rb +22 -0
- data/spec/lib/solidus_graphql_api/batch_loader/belongs_to_spec.rb +67 -0
- data/spec/lib/solidus_graphql_api/batch_loader/has_many_spec.rb +38 -0
- data/spec/lib/solidus_graphql_api/batch_loader/has_many_through_spec.rb +47 -0
- data/spec/lib/solidus_graphql_api/batch_loader/has_one_spec.rb +38 -0
- data/spec/lib/solidus_graphql_api/context_spec.rb +236 -0
- data/spec/lib/solidus_graphql_api/queries/address/country_query_spec.rb +13 -0
- data/spec/lib/solidus_graphql_api/queries/address/state_query_spec.rb +13 -0
- data/spec/lib/solidus_graphql_api/queries/completed_orders_query_spec.rb +12 -0
- data/spec/lib/solidus_graphql_api/queries/countries_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/country/states_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/line_item/variant_query_spec.rb +9 -0
- data/spec/lib/solidus_graphql_api/queries/option_type/option_values_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/order/adjustments_query_spec.rb +10 -0
- data/spec/lib/solidus_graphql_api/queries/order/billing_address_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/order/line_items_query_spec.rb +9 -0
- data/spec/lib/solidus_graphql_api/queries/order/payments_query_spec.rb +9 -0
- data/spec/lib/solidus_graphql_api/queries/order/shipments_query_spec.rb +18 -0
- data/spec/lib/solidus_graphql_api/queries/order/shipping_address_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product/master_variant_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product/option_types_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product/product_properties_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product/variants_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/product_by_slug_query_spec.rb +13 -0
- data/spec/lib/solidus_graphql_api/queries/product_property/property_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/products_query_spec.rb +49 -0
- data/spec/lib/solidus_graphql_api/queries/shipment/shipping_rates_query_spec.rb +18 -0
- data/spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/taxon/parent_taxon_query_spec.rb +10 -0
- data/spec/lib/solidus_graphql_api/queries/taxonomies_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/taxonomy/root_taxon_query_spec.rb +10 -0
- data/spec/lib/solidus_graphql_api/queries/taxonomy/taxons_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/variant/default_price_query_spec.rb +9 -0
- data/spec/lib/solidus_graphql_api/queries/variant/images_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/variant/option_values_query_spec.rb +11 -0
- data/spec/lib/solidus_graphql_api/queries/variant/prices_query_spec.rb +13 -0
- data/spec/lib/solidus_graphql_api/schema_spec.rb +80 -0
- data/spec/lib/solidus_graphql_api/types/base/object_spec.rb +29 -0
- data/spec/lib/solidus_graphql_api/types/json_spec.rb +115 -0
- data/spec/lib/solidus_graphql_api/types/option_type_spec.rb +7 -0
- data/spec/lib/solidus_graphql_api/types/product_property_spec.rb +22 -0
- data/spec/lib/solidus_graphql_api/types/product_spec.rb +56 -0
- data/spec/lib/solidus_graphql_api/types/query_spec.rb +33 -0
- data/spec/lib/solidus_graphql_api/types/variant_spec.rb +58 -0
- data/spec/requests/spree/graphql_controller_spec.rb +17 -0
- data/spec/spec_helper.rb +62 -0
- data/spec/support/expected_schema.graphql +2070 -0
- data/spec/support/graphql/mutations/add_addresses_to_checkout.gql +19 -0
- data/spec/support/graphql/mutations/add_payment_to_checkout.gql +13 -0
- data/spec/support/graphql/mutations/add_to_cart.gql +21 -0
- data/spec/support/graphql/mutations/advance_checkout.gql +13 -0
- data/spec/support/graphql/mutations/apply_coupon_code.gql +13 -0
- data/spec/support/graphql/mutations/complete_checkout.gql +13 -0
- data/spec/support/graphql/mutations/create_order.gql +11 -0
- data/spec/support/graphql/mutations/empty_cart.gql +17 -0
- data/spec/support/graphql/mutations/mark_default_address.gql +9 -0
- data/spec/support/graphql/mutations/next_checkout_state.gql +13 -0
- data/spec/support/graphql/mutations/remove_from_address_book.gql +14 -0
- data/spec/support/graphql/mutations/remove_from_cart.gql +17 -0
- data/spec/support/graphql/mutations/save_in_address_book.gql +57 -0
- data/spec/support/graphql/mutations/select_shipping_rate.gql +23 -0
- data/spec/support/graphql/mutations/set_order_email.gql +13 -0
- data/spec/support/graphql/mutations/update_cart_quantity.gql +18 -0
- data/spec/support/graphql/queries/completed_orders.gql +29 -0
- data/spec/support/graphql/queries/completed_orders/adjustments.gql +24 -0
- data/spec/support/graphql/queries/completed_orders/available_payment_methods.gql +15 -0
- data/spec/support/graphql/queries/completed_orders/billing_address.gql +40 -0
- data/spec/support/graphql/queries/completed_orders/line_items.gql +23 -0
- data/spec/support/graphql/queries/completed_orders/payments.gql +23 -0
- data/spec/support/graphql/queries/completed_orders/shipping_address.gql +40 -0
- data/spec/support/graphql/queries/countries.gql +24 -0
- data/spec/support/graphql/queries/current_order.gql +32 -0
- data/spec/support/graphql/queries/current_store.gql +24 -0
- data/spec/support/graphql/queries/current_user.gql +197 -0
- data/spec/support/graphql/queries/product_by_slug.gql +106 -0
- data/spec/support/graphql/queries/products.gql +7 -0
- data/spec/support/graphql/queries/taxonomies.gql +81 -0
- data/spec/support/graphql/responses/completed_orders.json.erb +58 -0
- data/spec/support/graphql/responses/completed_orders/adjustments.json.erb +34 -0
- data/spec/support/graphql/responses/completed_orders/available_payment_methods.json.erb +29 -0
- data/spec/support/graphql/responses/completed_orders/billing_address.json.erb +78 -0
- data/spec/support/graphql/responses/completed_orders/line_items.json.erb +43 -0
- data/spec/support/graphql/responses/completed_orders/payments.json.erb +27 -0
- data/spec/support/graphql/responses/completed_orders/shipping_address.json.erb +78 -0
- data/spec/support/graphql/responses/countries.json.erb +51 -0
- data/spec/support/graphql/responses/current_order.json.erb +36 -0
- data/spec/support/graphql/responses/current_store.json.erb +34 -0
- data/spec/support/graphql/responses/current_user.json.erb +232 -0
- data/spec/support/graphql/responses/product_by_slug.json.erb +123 -0
- data/spec/support/graphql/responses/taxonomies.json.erb +145 -0
- data/spec/support/helpers/graphql.rb +43 -0
- data/spec/support/matchers/graphql.rb +35 -0
- data/spec/support/shared_contexts/graphql_query_subject.rb +21 -0
- metadata +572 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Helpers
|
|
4
|
+
module Graphql
|
|
5
|
+
def execute(path, query_or_mutation, variables: {}, context: {}, decode_ids: true, object_class: Hash)
|
|
6
|
+
result = SolidusGraphqlApi::Schema.execute(
|
|
7
|
+
File.read(File.join(path, "#{query_or_mutation}.gql")),
|
|
8
|
+
variables: variables,
|
|
9
|
+
context: context
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
result = decode_field_ids(result.to_h) if decode_ids
|
|
13
|
+
|
|
14
|
+
JSON.parse(result.to_json, object_class: object_class, symbolize_names: true)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def execute_query(*args)
|
|
18
|
+
execute(RSpec.configuration.graphql_queries_dir, *args)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def execute_mutation(*args)
|
|
22
|
+
execute(RSpec.configuration.graphql_mutations_dir, *args)
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def decode_field_ids(field)
|
|
26
|
+
field.each do |field_name, field_value|
|
|
27
|
+
case field_value
|
|
28
|
+
when String
|
|
29
|
+
if field_name == "id"
|
|
30
|
+
field[field_name] = GraphQL::Schema::UniqueWithinType.decode(field_value).last.to_i
|
|
31
|
+
end
|
|
32
|
+
when Hash
|
|
33
|
+
decode_field_ids field_value
|
|
34
|
+
when Array
|
|
35
|
+
field_value.flatten.each do |child_field|
|
|
36
|
+
decode_field_ids(child_field) if child_field.is_a?(Hash)
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
field
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Matchers
|
|
4
|
+
module Graphql
|
|
5
|
+
extend RSpec::Matchers::DSL
|
|
6
|
+
|
|
7
|
+
matcher :match_response do |query_response_file|
|
|
8
|
+
match do |actual|
|
|
9
|
+
query_response_path = File.join(RSpec.configuration.graphql_responses_dir, "#{query_response_file}.json.erb")
|
|
10
|
+
template = File.read(query_response_path)
|
|
11
|
+
json_response = ERB.new(template).result_with_hash(@variables || {})
|
|
12
|
+
|
|
13
|
+
@expected = JSON.parse(json_response, object_class: @object_class || Hash, symbolize_names: true)
|
|
14
|
+
|
|
15
|
+
# Lets the failure message have a nice diff
|
|
16
|
+
@expected = JSON.pretty_generate @expected
|
|
17
|
+
@actual = JSON.pretty_generate actual
|
|
18
|
+
|
|
19
|
+
@actual == @expected
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
chain :with_args do |variables|
|
|
23
|
+
@variables = variables
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
chain :as do |object_class|
|
|
27
|
+
@object_class = object_class
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
diffable
|
|
31
|
+
|
|
32
|
+
attr_reader :expected
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
RSpec.shared_context "graphql query subject", type: :graphql_query do
|
|
4
|
+
subject(:query_response) do |example|
|
|
5
|
+
execute_query(
|
|
6
|
+
try(:query) || example.metadata[:query],
|
|
7
|
+
variables: try(:query_variables) || example.metadata[:query_variables],
|
|
8
|
+
context: try(:query_context) || example.metadata[:query_context]
|
|
9
|
+
)
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
RSpec.shared_context "graphql mutation subject", type: :graphql_mutation do
|
|
14
|
+
subject(:mutation_response) do |example|
|
|
15
|
+
execute_mutation(
|
|
16
|
+
try(:mutation) || example.metadata[:mutation],
|
|
17
|
+
variables: try(:mutation_variables) || example.metadata[:mutation_variables],
|
|
18
|
+
context: try(:mutation_context) || example.metadata[:mutation_context]
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: solidus_graphql_api
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Christian Rimondi
|
|
8
|
+
- Alessio Rocco
|
|
9
|
+
- Rainer Dema
|
|
10
|
+
autorequire:
|
|
11
|
+
bindir: exe
|
|
12
|
+
cert_chain: []
|
|
13
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: batch-loader
|
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
|
+
requirements:
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 1.4.1
|
|
22
|
+
- - "<"
|
|
23
|
+
- !ruby/object:Gem::Version
|
|
24
|
+
version: 1.6.0
|
|
25
|
+
type: :runtime
|
|
26
|
+
prerelease: false
|
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
28
|
+
requirements:
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 1.4.1
|
|
32
|
+
- - "<"
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: 1.6.0
|
|
35
|
+
- !ruby/object:Gem::Dependency
|
|
36
|
+
name: graphql
|
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '1.10'
|
|
42
|
+
- - "<"
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
version: '1.12'
|
|
45
|
+
type: :runtime
|
|
46
|
+
prerelease: false
|
|
47
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
48
|
+
requirements:
|
|
49
|
+
- - ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '1.10'
|
|
52
|
+
- - "<"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '1.12'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: solidus_core
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '2.5'
|
|
62
|
+
- - "<"
|
|
63
|
+
- !ruby/object:Gem::Version
|
|
64
|
+
version: '3'
|
|
65
|
+
type: :runtime
|
|
66
|
+
prerelease: false
|
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
68
|
+
requirements:
|
|
69
|
+
- - ">="
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
version: '2.5'
|
|
72
|
+
- - "<"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '3'
|
|
75
|
+
- !ruby/object:Gem::Dependency
|
|
76
|
+
name: solidus_support
|
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '0.5'
|
|
82
|
+
type: :runtime
|
|
83
|
+
prerelease: false
|
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '0.5'
|
|
89
|
+
- !ruby/object:Gem::Dependency
|
|
90
|
+
name: graphql-schema_comparator
|
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - "~>"
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: 1.0.0
|
|
96
|
+
type: :development
|
|
97
|
+
prerelease: false
|
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - "~>"
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: 1.0.0
|
|
103
|
+
- !ruby/object:Gem::Dependency
|
|
104
|
+
name: pry
|
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - "~>"
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: 0.13.1
|
|
110
|
+
type: :development
|
|
111
|
+
prerelease: false
|
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
113
|
+
requirements:
|
|
114
|
+
- - "~>"
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: 0.13.1
|
|
117
|
+
- !ruby/object:Gem::Dependency
|
|
118
|
+
name: simplecov
|
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - "~>"
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: 0.16.1
|
|
124
|
+
type: :development
|
|
125
|
+
prerelease: false
|
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
- - "~>"
|
|
129
|
+
- !ruby/object:Gem::Version
|
|
130
|
+
version: 0.16.1
|
|
131
|
+
- !ruby/object:Gem::Dependency
|
|
132
|
+
name: solidus_dev_support
|
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
|
134
|
+
requirements:
|
|
135
|
+
- - "~>"
|
|
136
|
+
- !ruby/object:Gem::Version
|
|
137
|
+
version: 1.5.0
|
|
138
|
+
type: :development
|
|
139
|
+
prerelease: false
|
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
141
|
+
requirements:
|
|
142
|
+
- - "~>"
|
|
143
|
+
- !ruby/object:Gem::Version
|
|
144
|
+
version: 1.5.0
|
|
145
|
+
- !ruby/object:Gem::Dependency
|
|
146
|
+
name: timecop
|
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
|
148
|
+
requirements:
|
|
149
|
+
- - "~>"
|
|
150
|
+
- !ruby/object:Gem::Version
|
|
151
|
+
version: 0.9.1
|
|
152
|
+
type: :development
|
|
153
|
+
prerelease: false
|
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
155
|
+
requirements:
|
|
156
|
+
- - "~>"
|
|
157
|
+
- !ruby/object:Gem::Version
|
|
158
|
+
version: 0.9.1
|
|
159
|
+
- !ruby/object:Gem::Dependency
|
|
160
|
+
name: with_model
|
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
|
162
|
+
requirements:
|
|
163
|
+
- - "~>"
|
|
164
|
+
- !ruby/object:Gem::Version
|
|
165
|
+
version: 2.1.2
|
|
166
|
+
type: :development
|
|
167
|
+
prerelease: false
|
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
169
|
+
requirements:
|
|
170
|
+
- - "~>"
|
|
171
|
+
- !ruby/object:Gem::Version
|
|
172
|
+
version: 2.1.2
|
|
173
|
+
description: GraphQL comes to Solidus
|
|
174
|
+
email: contact@solidus.io
|
|
175
|
+
executables: []
|
|
176
|
+
extensions: []
|
|
177
|
+
extra_rdoc_files: []
|
|
178
|
+
files:
|
|
179
|
+
- ".circleci/config.yml"
|
|
180
|
+
- ".gem_release.yml"
|
|
181
|
+
- ".github/stale.yml"
|
|
182
|
+
- ".gitignore"
|
|
183
|
+
- ".rspec"
|
|
184
|
+
- ".rubocop.yml"
|
|
185
|
+
- CHANGELOG.md
|
|
186
|
+
- CONTRIBUTING.md
|
|
187
|
+
- Gemfile
|
|
188
|
+
- LICENSE
|
|
189
|
+
- LICENSE.md
|
|
190
|
+
- README.md
|
|
191
|
+
- Rakefile
|
|
192
|
+
- app/controllers/spree/graphql_controller.rb
|
|
193
|
+
- bin/console
|
|
194
|
+
- bin/rails
|
|
195
|
+
- bin/rails-engine
|
|
196
|
+
- bin/rails-sandbox
|
|
197
|
+
- bin/rake
|
|
198
|
+
- bin/sandbox
|
|
199
|
+
- bin/setup
|
|
200
|
+
- config/locales/en.yml
|
|
201
|
+
- config/routes.rb
|
|
202
|
+
- lib/generators/solidus_graphql_api/install/install_generator.rb
|
|
203
|
+
- lib/solidus_graphql_api.rb
|
|
204
|
+
- lib/solidus_graphql_api/batch_loader.rb
|
|
205
|
+
- lib/solidus_graphql_api/batch_loader/belongs_to.rb
|
|
206
|
+
- lib/solidus_graphql_api/batch_loader/has_many.rb
|
|
207
|
+
- lib/solidus_graphql_api/batch_loader/has_many_through.rb
|
|
208
|
+
- lib/solidus_graphql_api/batch_loader/has_one.rb
|
|
209
|
+
- lib/solidus_graphql_api/configuration.rb
|
|
210
|
+
- lib/solidus_graphql_api/context.rb
|
|
211
|
+
- lib/solidus_graphql_api/engine.rb
|
|
212
|
+
- lib/solidus_graphql_api/factories.rb
|
|
213
|
+
- lib/solidus_graphql_api/factories/address_factory.rb
|
|
214
|
+
- lib/solidus_graphql_api/factories/country_factory.rb
|
|
215
|
+
- lib/solidus_graphql_api/factories/store_factory.rb
|
|
216
|
+
- lib/solidus_graphql_api/factories/taxonomy_factory.rb
|
|
217
|
+
- lib/solidus_graphql_api/mutations/.keep
|
|
218
|
+
- lib/solidus_graphql_api/mutations/base_mutation.rb
|
|
219
|
+
- lib/solidus_graphql_api/mutations/checkout/add_addresses_to_checkout.rb
|
|
220
|
+
- lib/solidus_graphql_api/mutations/checkout/add_payment_to_checkout.rb
|
|
221
|
+
- lib/solidus_graphql_api/mutations/checkout/add_to_cart.rb
|
|
222
|
+
- lib/solidus_graphql_api/mutations/checkout/advance_checkout.rb
|
|
223
|
+
- lib/solidus_graphql_api/mutations/checkout/apply_coupon_code.rb
|
|
224
|
+
- lib/solidus_graphql_api/mutations/checkout/complete_checkout.rb
|
|
225
|
+
- lib/solidus_graphql_api/mutations/checkout/create_order.rb
|
|
226
|
+
- lib/solidus_graphql_api/mutations/checkout/empty_cart.rb
|
|
227
|
+
- lib/solidus_graphql_api/mutations/checkout/next_checkout_state.rb
|
|
228
|
+
- lib/solidus_graphql_api/mutations/checkout/remove_from_cart.rb
|
|
229
|
+
- lib/solidus_graphql_api/mutations/checkout/select_shipping_rate.rb
|
|
230
|
+
- lib/solidus_graphql_api/mutations/checkout/set_order_email.rb
|
|
231
|
+
- lib/solidus_graphql_api/mutations/checkout/update_cart_quantity.rb
|
|
232
|
+
- lib/solidus_graphql_api/mutations/user/mark_default_address.rb
|
|
233
|
+
- lib/solidus_graphql_api/mutations/user/remove_from_address_book.rb
|
|
234
|
+
- lib/solidus_graphql_api/mutations/user/save_in_address_book.rb
|
|
235
|
+
- lib/solidus_graphql_api/queries/address/country_query.rb
|
|
236
|
+
- lib/solidus_graphql_api/queries/address/state_query.rb
|
|
237
|
+
- lib/solidus_graphql_api/queries/completed_orders_query.rb
|
|
238
|
+
- lib/solidus_graphql_api/queries/countries_query.rb
|
|
239
|
+
- lib/solidus_graphql_api/queries/country/states_query.rb
|
|
240
|
+
- lib/solidus_graphql_api/queries/line_item/variant_query.rb
|
|
241
|
+
- lib/solidus_graphql_api/queries/option_type/option_values_query.rb
|
|
242
|
+
- lib/solidus_graphql_api/queries/order/adjustments_query.rb
|
|
243
|
+
- lib/solidus_graphql_api/queries/order/billing_address_query.rb
|
|
244
|
+
- lib/solidus_graphql_api/queries/order/line_items_query.rb
|
|
245
|
+
- lib/solidus_graphql_api/queries/order/payments_query.rb
|
|
246
|
+
- lib/solidus_graphql_api/queries/order/shipments_query.rb
|
|
247
|
+
- lib/solidus_graphql_api/queries/order/shipping_address_query.rb
|
|
248
|
+
- lib/solidus_graphql_api/queries/product/master_variant_query.rb
|
|
249
|
+
- lib/solidus_graphql_api/queries/product/option_types_query.rb
|
|
250
|
+
- lib/solidus_graphql_api/queries/product/product_properties_query.rb
|
|
251
|
+
- lib/solidus_graphql_api/queries/product/variants_query.rb
|
|
252
|
+
- lib/solidus_graphql_api/queries/product_by_slug_query.rb
|
|
253
|
+
- lib/solidus_graphql_api/queries/product_property/property_query.rb
|
|
254
|
+
- lib/solidus_graphql_api/queries/products_query.rb
|
|
255
|
+
- lib/solidus_graphql_api/queries/shipment/shipping_rates_query.rb
|
|
256
|
+
- lib/solidus_graphql_api/queries/taxon/children_query.rb
|
|
257
|
+
- lib/solidus_graphql_api/queries/taxon/parent_taxon_query.rb
|
|
258
|
+
- lib/solidus_graphql_api/queries/taxonomies_query.rb
|
|
259
|
+
- lib/solidus_graphql_api/queries/taxonomy/root_taxon_query.rb
|
|
260
|
+
- lib/solidus_graphql_api/queries/taxonomy/taxons_query.rb
|
|
261
|
+
- lib/solidus_graphql_api/queries/variant/default_price_query.rb
|
|
262
|
+
- lib/solidus_graphql_api/queries/variant/images_query.rb
|
|
263
|
+
- lib/solidus_graphql_api/queries/variant/option_values_query.rb
|
|
264
|
+
- lib/solidus_graphql_api/queries/variant/prices_query.rb
|
|
265
|
+
- lib/solidus_graphql_api/schema.rb
|
|
266
|
+
- lib/solidus_graphql_api/types/.keep
|
|
267
|
+
- lib/solidus_graphql_api/types/address.rb
|
|
268
|
+
- lib/solidus_graphql_api/types/base/argument.rb
|
|
269
|
+
- lib/solidus_graphql_api/types/base/enum.rb
|
|
270
|
+
- lib/solidus_graphql_api/types/base/field.rb
|
|
271
|
+
- lib/solidus_graphql_api/types/base/input_object.rb
|
|
272
|
+
- lib/solidus_graphql_api/types/base/interface.rb
|
|
273
|
+
- lib/solidus_graphql_api/types/base/object.rb
|
|
274
|
+
- lib/solidus_graphql_api/types/base/relay_node.rb
|
|
275
|
+
- lib/solidus_graphql_api/types/base/scalar.rb
|
|
276
|
+
- lib/solidus_graphql_api/types/base/union.rb
|
|
277
|
+
- lib/solidus_graphql_api/types/country.rb
|
|
278
|
+
- lib/solidus_graphql_api/types/credit_card.rb
|
|
279
|
+
- lib/solidus_graphql_api/types/currency.rb
|
|
280
|
+
- lib/solidus_graphql_api/types/image.rb
|
|
281
|
+
- lib/solidus_graphql_api/types/input_objects/address_input.rb
|
|
282
|
+
- lib/solidus_graphql_api/types/input_objects/products_query_input.rb
|
|
283
|
+
- lib/solidus_graphql_api/types/interfaces/adjustment.rb
|
|
284
|
+
- lib/solidus_graphql_api/types/interfaces/payment_source.rb
|
|
285
|
+
- lib/solidus_graphql_api/types/json.rb
|
|
286
|
+
- lib/solidus_graphql_api/types/line_item.rb
|
|
287
|
+
- lib/solidus_graphql_api/types/manifest_item.rb
|
|
288
|
+
- lib/solidus_graphql_api/types/mutation.rb
|
|
289
|
+
- lib/solidus_graphql_api/types/option_type.rb
|
|
290
|
+
- lib/solidus_graphql_api/types/option_value.rb
|
|
291
|
+
- lib/solidus_graphql_api/types/order.rb
|
|
292
|
+
- lib/solidus_graphql_api/types/payment.rb
|
|
293
|
+
- lib/solidus_graphql_api/types/payment_method.rb
|
|
294
|
+
- lib/solidus_graphql_api/types/price.rb
|
|
295
|
+
- lib/solidus_graphql_api/types/product.rb
|
|
296
|
+
- lib/solidus_graphql_api/types/product_property.rb
|
|
297
|
+
- lib/solidus_graphql_api/types/promotion_adjustment.rb
|
|
298
|
+
- lib/solidus_graphql_api/types/property.rb
|
|
299
|
+
- lib/solidus_graphql_api/types/query.rb
|
|
300
|
+
- lib/solidus_graphql_api/types/shipment.rb
|
|
301
|
+
- lib/solidus_graphql_api/types/shipping_rate.rb
|
|
302
|
+
- lib/solidus_graphql_api/types/state.rb
|
|
303
|
+
- lib/solidus_graphql_api/types/store.rb
|
|
304
|
+
- lib/solidus_graphql_api/types/tax_adjustment.rb
|
|
305
|
+
- lib/solidus_graphql_api/types/taxon.rb
|
|
306
|
+
- lib/solidus_graphql_api/types/taxonomy.rb
|
|
307
|
+
- lib/solidus_graphql_api/types/user.rb
|
|
308
|
+
- lib/solidus_graphql_api/types/user_error.rb
|
|
309
|
+
- lib/solidus_graphql_api/types/variant.rb
|
|
310
|
+
- lib/solidus_graphql_api/types/wallet_payment_source.rb
|
|
311
|
+
- lib/solidus_graphql_api/version.rb
|
|
312
|
+
- schema.graphql
|
|
313
|
+
- solidus_graphql_api.gemspec
|
|
314
|
+
- spec/integration/mutations/add_to_cart_spec.rb
|
|
315
|
+
- spec/integration/mutations/checkout/add_addresses_to_checkout_spec.rb
|
|
316
|
+
- spec/integration/mutations/checkout/add_payment_to_checkout_spec.rb
|
|
317
|
+
- spec/integration/mutations/checkout/advance_checkout_spec.rb
|
|
318
|
+
- spec/integration/mutations/checkout/apply_coupon_code_spec.rb
|
|
319
|
+
- spec/integration/mutations/checkout/complete_checkout_spec.rb
|
|
320
|
+
- spec/integration/mutations/checkout/next_checkout_state_spec.rb
|
|
321
|
+
- spec/integration/mutations/checkout/select_shipping_rate_spec.rb
|
|
322
|
+
- spec/integration/mutations/create_order_spec.rb
|
|
323
|
+
- spec/integration/mutations/empty_cart_spec.rb
|
|
324
|
+
- spec/integration/mutations/mark_default_address_spec.rb
|
|
325
|
+
- spec/integration/mutations/remove_from_address_book_spec.rb
|
|
326
|
+
- spec/integration/mutations/remove_from_cart_spec.rb
|
|
327
|
+
- spec/integration/mutations/save_in_address_book_spec.rb
|
|
328
|
+
- spec/integration/mutations/set_order_email_spec.rb
|
|
329
|
+
- spec/integration/mutations/update_cart_quantity_spec.rb
|
|
330
|
+
- spec/integration/queries/completed_orders_spec.rb
|
|
331
|
+
- spec/integration/queries/countries_spec.rb
|
|
332
|
+
- spec/integration/queries/current_order_spec.rb
|
|
333
|
+
- spec/integration/queries/current_store_spec.rb
|
|
334
|
+
- spec/integration/queries/current_user_spec.rb
|
|
335
|
+
- spec/integration/queries/product_by_slug_spec.rb
|
|
336
|
+
- spec/integration/queries/products_spec.rb
|
|
337
|
+
- spec/integration/queries/taxonomies_spec.rb
|
|
338
|
+
- spec/lib/solidus_graphql_api/batch_loader/belongs_to_spec.rb
|
|
339
|
+
- spec/lib/solidus_graphql_api/batch_loader/has_many_spec.rb
|
|
340
|
+
- spec/lib/solidus_graphql_api/batch_loader/has_many_through_spec.rb
|
|
341
|
+
- spec/lib/solidus_graphql_api/batch_loader/has_one_spec.rb
|
|
342
|
+
- spec/lib/solidus_graphql_api/context_spec.rb
|
|
343
|
+
- spec/lib/solidus_graphql_api/queries/address/country_query_spec.rb
|
|
344
|
+
- spec/lib/solidus_graphql_api/queries/address/state_query_spec.rb
|
|
345
|
+
- spec/lib/solidus_graphql_api/queries/completed_orders_query_spec.rb
|
|
346
|
+
- spec/lib/solidus_graphql_api/queries/countries_query_spec.rb
|
|
347
|
+
- spec/lib/solidus_graphql_api/queries/country/states_query_spec.rb
|
|
348
|
+
- spec/lib/solidus_graphql_api/queries/line_item/variant_query_spec.rb
|
|
349
|
+
- spec/lib/solidus_graphql_api/queries/option_type/option_values_query_spec.rb
|
|
350
|
+
- spec/lib/solidus_graphql_api/queries/order/adjustments_query_spec.rb
|
|
351
|
+
- spec/lib/solidus_graphql_api/queries/order/billing_address_query_spec.rb
|
|
352
|
+
- spec/lib/solidus_graphql_api/queries/order/line_items_query_spec.rb
|
|
353
|
+
- spec/lib/solidus_graphql_api/queries/order/payments_query_spec.rb
|
|
354
|
+
- spec/lib/solidus_graphql_api/queries/order/shipments_query_spec.rb
|
|
355
|
+
- spec/lib/solidus_graphql_api/queries/order/shipping_address_query_spec.rb
|
|
356
|
+
- spec/lib/solidus_graphql_api/queries/product/master_variant_query_spec.rb
|
|
357
|
+
- spec/lib/solidus_graphql_api/queries/product/option_types_query_spec.rb
|
|
358
|
+
- spec/lib/solidus_graphql_api/queries/product/product_properties_query_spec.rb
|
|
359
|
+
- spec/lib/solidus_graphql_api/queries/product/variants_query_spec.rb
|
|
360
|
+
- spec/lib/solidus_graphql_api/queries/product_by_slug_query_spec.rb
|
|
361
|
+
- spec/lib/solidus_graphql_api/queries/product_property/property_query_spec.rb
|
|
362
|
+
- spec/lib/solidus_graphql_api/queries/products_query_spec.rb
|
|
363
|
+
- spec/lib/solidus_graphql_api/queries/shipment/shipping_rates_query_spec.rb
|
|
364
|
+
- spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb
|
|
365
|
+
- spec/lib/solidus_graphql_api/queries/taxon/parent_taxon_query_spec.rb
|
|
366
|
+
- spec/lib/solidus_graphql_api/queries/taxonomies_query_spec.rb
|
|
367
|
+
- spec/lib/solidus_graphql_api/queries/taxonomy/root_taxon_query_spec.rb
|
|
368
|
+
- spec/lib/solidus_graphql_api/queries/taxonomy/taxons_query_spec.rb
|
|
369
|
+
- spec/lib/solidus_graphql_api/queries/variant/default_price_query_spec.rb
|
|
370
|
+
- spec/lib/solidus_graphql_api/queries/variant/images_query_spec.rb
|
|
371
|
+
- spec/lib/solidus_graphql_api/queries/variant/option_values_query_spec.rb
|
|
372
|
+
- spec/lib/solidus_graphql_api/queries/variant/prices_query_spec.rb
|
|
373
|
+
- spec/lib/solidus_graphql_api/schema_spec.rb
|
|
374
|
+
- spec/lib/solidus_graphql_api/types/base/object_spec.rb
|
|
375
|
+
- spec/lib/solidus_graphql_api/types/json_spec.rb
|
|
376
|
+
- spec/lib/solidus_graphql_api/types/option_type_spec.rb
|
|
377
|
+
- spec/lib/solidus_graphql_api/types/product_property_spec.rb
|
|
378
|
+
- spec/lib/solidus_graphql_api/types/product_spec.rb
|
|
379
|
+
- spec/lib/solidus_graphql_api/types/query_spec.rb
|
|
380
|
+
- spec/lib/solidus_graphql_api/types/variant_spec.rb
|
|
381
|
+
- spec/requests/spree/graphql_controller_spec.rb
|
|
382
|
+
- spec/spec_helper.rb
|
|
383
|
+
- spec/support/expected_schema.graphql
|
|
384
|
+
- spec/support/graphql/mutations/add_addresses_to_checkout.gql
|
|
385
|
+
- spec/support/graphql/mutations/add_payment_to_checkout.gql
|
|
386
|
+
- spec/support/graphql/mutations/add_to_cart.gql
|
|
387
|
+
- spec/support/graphql/mutations/advance_checkout.gql
|
|
388
|
+
- spec/support/graphql/mutations/apply_coupon_code.gql
|
|
389
|
+
- spec/support/graphql/mutations/complete_checkout.gql
|
|
390
|
+
- spec/support/graphql/mutations/create_order.gql
|
|
391
|
+
- spec/support/graphql/mutations/empty_cart.gql
|
|
392
|
+
- spec/support/graphql/mutations/mark_default_address.gql
|
|
393
|
+
- spec/support/graphql/mutations/next_checkout_state.gql
|
|
394
|
+
- spec/support/graphql/mutations/remove_from_address_book.gql
|
|
395
|
+
- spec/support/graphql/mutations/remove_from_cart.gql
|
|
396
|
+
- spec/support/graphql/mutations/save_in_address_book.gql
|
|
397
|
+
- spec/support/graphql/mutations/select_shipping_rate.gql
|
|
398
|
+
- spec/support/graphql/mutations/set_order_email.gql
|
|
399
|
+
- spec/support/graphql/mutations/update_cart_quantity.gql
|
|
400
|
+
- spec/support/graphql/queries/completed_orders.gql
|
|
401
|
+
- spec/support/graphql/queries/completed_orders/adjustments.gql
|
|
402
|
+
- spec/support/graphql/queries/completed_orders/available_payment_methods.gql
|
|
403
|
+
- spec/support/graphql/queries/completed_orders/billing_address.gql
|
|
404
|
+
- spec/support/graphql/queries/completed_orders/line_items.gql
|
|
405
|
+
- spec/support/graphql/queries/completed_orders/payments.gql
|
|
406
|
+
- spec/support/graphql/queries/completed_orders/shipping_address.gql
|
|
407
|
+
- spec/support/graphql/queries/countries.gql
|
|
408
|
+
- spec/support/graphql/queries/current_order.gql
|
|
409
|
+
- spec/support/graphql/queries/current_store.gql
|
|
410
|
+
- spec/support/graphql/queries/current_user.gql
|
|
411
|
+
- spec/support/graphql/queries/product_by_slug.gql
|
|
412
|
+
- spec/support/graphql/queries/products.gql
|
|
413
|
+
- spec/support/graphql/queries/taxonomies.gql
|
|
414
|
+
- spec/support/graphql/responses/completed_orders.json.erb
|
|
415
|
+
- spec/support/graphql/responses/completed_orders/adjustments.json.erb
|
|
416
|
+
- spec/support/graphql/responses/completed_orders/available_payment_methods.json.erb
|
|
417
|
+
- spec/support/graphql/responses/completed_orders/billing_address.json.erb
|
|
418
|
+
- spec/support/graphql/responses/completed_orders/line_items.json.erb
|
|
419
|
+
- spec/support/graphql/responses/completed_orders/payments.json.erb
|
|
420
|
+
- spec/support/graphql/responses/completed_orders/shipping_address.json.erb
|
|
421
|
+
- spec/support/graphql/responses/countries.json.erb
|
|
422
|
+
- spec/support/graphql/responses/current_order.json.erb
|
|
423
|
+
- spec/support/graphql/responses/current_store.json.erb
|
|
424
|
+
- spec/support/graphql/responses/current_user.json.erb
|
|
425
|
+
- spec/support/graphql/responses/product_by_slug.json.erb
|
|
426
|
+
- spec/support/graphql/responses/taxonomies.json.erb
|
|
427
|
+
- spec/support/helpers/graphql.rb
|
|
428
|
+
- spec/support/matchers/graphql.rb
|
|
429
|
+
- spec/support/shared_contexts/graphql_query_subject.rb
|
|
430
|
+
homepage: https://github.com/solidusio-contrib/solidus_graphql_api
|
|
431
|
+
licenses:
|
|
432
|
+
- BSD-3-Clause
|
|
433
|
+
metadata:
|
|
434
|
+
homepage_uri: https://github.com/solidusio-contrib/solidus_graphql_api
|
|
435
|
+
source_code_uri: https://github.com/solidusio-contrib/solidus_graphql_api
|
|
436
|
+
changelog_uri: https://github.com/solidusio-contrib/solidus_graphql_api/blob/master/CHANGELOG.md
|
|
437
|
+
post_install_message:
|
|
438
|
+
rdoc_options: []
|
|
439
|
+
require_paths:
|
|
440
|
+
- lib
|
|
441
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
442
|
+
requirements:
|
|
443
|
+
- - "~>"
|
|
444
|
+
- !ruby/object:Gem::Version
|
|
445
|
+
version: '2.5'
|
|
446
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
447
|
+
requirements:
|
|
448
|
+
- - ">="
|
|
449
|
+
- !ruby/object:Gem::Version
|
|
450
|
+
version: '0'
|
|
451
|
+
requirements: []
|
|
452
|
+
rubygems_version: 3.0.3
|
|
453
|
+
signing_key:
|
|
454
|
+
specification_version: 4
|
|
455
|
+
summary: Solidus GraphQL API
|
|
456
|
+
test_files:
|
|
457
|
+
- spec/integration/mutations/add_to_cart_spec.rb
|
|
458
|
+
- spec/integration/mutations/checkout/add_addresses_to_checkout_spec.rb
|
|
459
|
+
- spec/integration/mutations/checkout/add_payment_to_checkout_spec.rb
|
|
460
|
+
- spec/integration/mutations/checkout/advance_checkout_spec.rb
|
|
461
|
+
- spec/integration/mutations/checkout/apply_coupon_code_spec.rb
|
|
462
|
+
- spec/integration/mutations/checkout/complete_checkout_spec.rb
|
|
463
|
+
- spec/integration/mutations/checkout/next_checkout_state_spec.rb
|
|
464
|
+
- spec/integration/mutations/checkout/select_shipping_rate_spec.rb
|
|
465
|
+
- spec/integration/mutations/create_order_spec.rb
|
|
466
|
+
- spec/integration/mutations/empty_cart_spec.rb
|
|
467
|
+
- spec/integration/mutations/mark_default_address_spec.rb
|
|
468
|
+
- spec/integration/mutations/remove_from_address_book_spec.rb
|
|
469
|
+
- spec/integration/mutations/remove_from_cart_spec.rb
|
|
470
|
+
- spec/integration/mutations/save_in_address_book_spec.rb
|
|
471
|
+
- spec/integration/mutations/set_order_email_spec.rb
|
|
472
|
+
- spec/integration/mutations/update_cart_quantity_spec.rb
|
|
473
|
+
- spec/integration/queries/completed_orders_spec.rb
|
|
474
|
+
- spec/integration/queries/countries_spec.rb
|
|
475
|
+
- spec/integration/queries/current_order_spec.rb
|
|
476
|
+
- spec/integration/queries/current_store_spec.rb
|
|
477
|
+
- spec/integration/queries/current_user_spec.rb
|
|
478
|
+
- spec/integration/queries/product_by_slug_spec.rb
|
|
479
|
+
- spec/integration/queries/products_spec.rb
|
|
480
|
+
- spec/integration/queries/taxonomies_spec.rb
|
|
481
|
+
- spec/lib/solidus_graphql_api/batch_loader/belongs_to_spec.rb
|
|
482
|
+
- spec/lib/solidus_graphql_api/batch_loader/has_many_spec.rb
|
|
483
|
+
- spec/lib/solidus_graphql_api/batch_loader/has_many_through_spec.rb
|
|
484
|
+
- spec/lib/solidus_graphql_api/batch_loader/has_one_spec.rb
|
|
485
|
+
- spec/lib/solidus_graphql_api/context_spec.rb
|
|
486
|
+
- spec/lib/solidus_graphql_api/queries/address/country_query_spec.rb
|
|
487
|
+
- spec/lib/solidus_graphql_api/queries/address/state_query_spec.rb
|
|
488
|
+
- spec/lib/solidus_graphql_api/queries/completed_orders_query_spec.rb
|
|
489
|
+
- spec/lib/solidus_graphql_api/queries/countries_query_spec.rb
|
|
490
|
+
- spec/lib/solidus_graphql_api/queries/country/states_query_spec.rb
|
|
491
|
+
- spec/lib/solidus_graphql_api/queries/line_item/variant_query_spec.rb
|
|
492
|
+
- spec/lib/solidus_graphql_api/queries/option_type/option_values_query_spec.rb
|
|
493
|
+
- spec/lib/solidus_graphql_api/queries/order/adjustments_query_spec.rb
|
|
494
|
+
- spec/lib/solidus_graphql_api/queries/order/billing_address_query_spec.rb
|
|
495
|
+
- spec/lib/solidus_graphql_api/queries/order/line_items_query_spec.rb
|
|
496
|
+
- spec/lib/solidus_graphql_api/queries/order/payments_query_spec.rb
|
|
497
|
+
- spec/lib/solidus_graphql_api/queries/order/shipments_query_spec.rb
|
|
498
|
+
- spec/lib/solidus_graphql_api/queries/order/shipping_address_query_spec.rb
|
|
499
|
+
- spec/lib/solidus_graphql_api/queries/product/master_variant_query_spec.rb
|
|
500
|
+
- spec/lib/solidus_graphql_api/queries/product/option_types_query_spec.rb
|
|
501
|
+
- spec/lib/solidus_graphql_api/queries/product/product_properties_query_spec.rb
|
|
502
|
+
- spec/lib/solidus_graphql_api/queries/product/variants_query_spec.rb
|
|
503
|
+
- spec/lib/solidus_graphql_api/queries/product_by_slug_query_spec.rb
|
|
504
|
+
- spec/lib/solidus_graphql_api/queries/product_property/property_query_spec.rb
|
|
505
|
+
- spec/lib/solidus_graphql_api/queries/products_query_spec.rb
|
|
506
|
+
- spec/lib/solidus_graphql_api/queries/shipment/shipping_rates_query_spec.rb
|
|
507
|
+
- spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb
|
|
508
|
+
- spec/lib/solidus_graphql_api/queries/taxon/parent_taxon_query_spec.rb
|
|
509
|
+
- spec/lib/solidus_graphql_api/queries/taxonomies_query_spec.rb
|
|
510
|
+
- spec/lib/solidus_graphql_api/queries/taxonomy/root_taxon_query_spec.rb
|
|
511
|
+
- spec/lib/solidus_graphql_api/queries/taxonomy/taxons_query_spec.rb
|
|
512
|
+
- spec/lib/solidus_graphql_api/queries/variant/default_price_query_spec.rb
|
|
513
|
+
- spec/lib/solidus_graphql_api/queries/variant/images_query_spec.rb
|
|
514
|
+
- spec/lib/solidus_graphql_api/queries/variant/option_values_query_spec.rb
|
|
515
|
+
- spec/lib/solidus_graphql_api/queries/variant/prices_query_spec.rb
|
|
516
|
+
- spec/lib/solidus_graphql_api/schema_spec.rb
|
|
517
|
+
- spec/lib/solidus_graphql_api/types/base/object_spec.rb
|
|
518
|
+
- spec/lib/solidus_graphql_api/types/json_spec.rb
|
|
519
|
+
- spec/lib/solidus_graphql_api/types/option_type_spec.rb
|
|
520
|
+
- spec/lib/solidus_graphql_api/types/product_property_spec.rb
|
|
521
|
+
- spec/lib/solidus_graphql_api/types/product_spec.rb
|
|
522
|
+
- spec/lib/solidus_graphql_api/types/query_spec.rb
|
|
523
|
+
- spec/lib/solidus_graphql_api/types/variant_spec.rb
|
|
524
|
+
- spec/requests/spree/graphql_controller_spec.rb
|
|
525
|
+
- spec/spec_helper.rb
|
|
526
|
+
- spec/support/expected_schema.graphql
|
|
527
|
+
- spec/support/graphql/mutations/add_addresses_to_checkout.gql
|
|
528
|
+
- spec/support/graphql/mutations/add_payment_to_checkout.gql
|
|
529
|
+
- spec/support/graphql/mutations/add_to_cart.gql
|
|
530
|
+
- spec/support/graphql/mutations/advance_checkout.gql
|
|
531
|
+
- spec/support/graphql/mutations/apply_coupon_code.gql
|
|
532
|
+
- spec/support/graphql/mutations/complete_checkout.gql
|
|
533
|
+
- spec/support/graphql/mutations/create_order.gql
|
|
534
|
+
- spec/support/graphql/mutations/empty_cart.gql
|
|
535
|
+
- spec/support/graphql/mutations/mark_default_address.gql
|
|
536
|
+
- spec/support/graphql/mutations/next_checkout_state.gql
|
|
537
|
+
- spec/support/graphql/mutations/remove_from_address_book.gql
|
|
538
|
+
- spec/support/graphql/mutations/remove_from_cart.gql
|
|
539
|
+
- spec/support/graphql/mutations/save_in_address_book.gql
|
|
540
|
+
- spec/support/graphql/mutations/select_shipping_rate.gql
|
|
541
|
+
- spec/support/graphql/mutations/set_order_email.gql
|
|
542
|
+
- spec/support/graphql/mutations/update_cart_quantity.gql
|
|
543
|
+
- spec/support/graphql/queries/completed_orders.gql
|
|
544
|
+
- spec/support/graphql/queries/completed_orders/adjustments.gql
|
|
545
|
+
- spec/support/graphql/queries/completed_orders/available_payment_methods.gql
|
|
546
|
+
- spec/support/graphql/queries/completed_orders/billing_address.gql
|
|
547
|
+
- spec/support/graphql/queries/completed_orders/line_items.gql
|
|
548
|
+
- spec/support/graphql/queries/completed_orders/payments.gql
|
|
549
|
+
- spec/support/graphql/queries/completed_orders/shipping_address.gql
|
|
550
|
+
- spec/support/graphql/queries/countries.gql
|
|
551
|
+
- spec/support/graphql/queries/current_order.gql
|
|
552
|
+
- spec/support/graphql/queries/current_store.gql
|
|
553
|
+
- spec/support/graphql/queries/current_user.gql
|
|
554
|
+
- spec/support/graphql/queries/product_by_slug.gql
|
|
555
|
+
- spec/support/graphql/queries/products.gql
|
|
556
|
+
- spec/support/graphql/queries/taxonomies.gql
|
|
557
|
+
- spec/support/graphql/responses/completed_orders.json.erb
|
|
558
|
+
- spec/support/graphql/responses/completed_orders/adjustments.json.erb
|
|
559
|
+
- spec/support/graphql/responses/completed_orders/available_payment_methods.json.erb
|
|
560
|
+
- spec/support/graphql/responses/completed_orders/billing_address.json.erb
|
|
561
|
+
- spec/support/graphql/responses/completed_orders/line_items.json.erb
|
|
562
|
+
- spec/support/graphql/responses/completed_orders/payments.json.erb
|
|
563
|
+
- spec/support/graphql/responses/completed_orders/shipping_address.json.erb
|
|
564
|
+
- spec/support/graphql/responses/countries.json.erb
|
|
565
|
+
- spec/support/graphql/responses/current_order.json.erb
|
|
566
|
+
- spec/support/graphql/responses/current_store.json.erb
|
|
567
|
+
- spec/support/graphql/responses/current_user.json.erb
|
|
568
|
+
- spec/support/graphql/responses/product_by_slug.json.erb
|
|
569
|
+
- spec/support/graphql/responses/taxonomies.json.erb
|
|
570
|
+
- spec/support/helpers/graphql.rb
|
|
571
|
+
- spec/support/matchers/graphql.rb
|
|
572
|
+
- spec/support/shared_contexts/graphql_query_subject.rb
|