solidus_graphql_api 0.1.0 → 0.3.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.
Files changed (282) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +43 -67
  3. data/.github/dependabot.yml +23 -0
  4. data/.github/stale.yml +3 -3
  5. data/.github_changelog_generator +2 -0
  6. data/.rubocop.yml +10 -4
  7. data/CHANGELOG.md +4 -0
  8. data/CONTRIBUTING.md +5 -5
  9. data/Gemfile +1 -1
  10. data/Gemfile-local +1 -0
  11. data/LICENSE +1 -1
  12. data/OLD_CHANGELOG.md +170 -0
  13. data/README.md +26 -10
  14. data/Rakefile +22 -7
  15. data/app/assets/javascripts/spree/backend/solidus_graphql_api.js +2 -0
  16. data/app/assets/javascripts/spree/frontend/solidus_graphql_api.js +2 -0
  17. data/app/assets/stylesheets/spree/backend/solidus_graphql_api.css +4 -0
  18. data/app/assets/stylesheets/spree/frontend/solidus_graphql_api.css +4 -0
  19. data/app/controllers/spree/graphql_controller.rb +2 -0
  20. data/bin/console +2 -2
  21. data/bin/rails +0 -2
  22. data/bin/rails-engine +0 -3
  23. data/bin/rails-sandbox +1 -3
  24. data/bin/rake +0 -1
  25. data/bin/sandbox +5 -7
  26. data/docs/assets/images/graphiql-headers.png +0 -0
  27. data/docs/assets/images/graphiql-variables.png +0 -0
  28. data/docs/assets/images/graphiql.png +0 -0
  29. data/docs/assets/images/menu.png +0 -0
  30. data/docs/assets/images/navbar.png +0 -0
  31. data/docs/assets/style.css +1115 -0
  32. data/docs/assets/webfonts/2C4B9D_B_0.eot +0 -0
  33. data/docs/assets/webfonts/2C4B9D_B_0.ttf +0 -0
  34. data/docs/assets/webfonts/2C4B9D_B_0.woff +0 -0
  35. data/docs/assets/webfonts/2C4B9D_B_0.woff2 +0 -0
  36. data/docs/assets/webfonts/2C4B9D_C_0.eot +0 -0
  37. data/docs/assets/webfonts/2C4B9D_C_0.ttf +0 -0
  38. data/docs/assets/webfonts/2C4B9D_C_0.woff +0 -0
  39. data/docs/assets/webfonts/2C4B9D_C_0.woff2 +0 -0
  40. data/docs/assets/webfonts/2C4B9D_D_0.eot +0 -0
  41. data/docs/assets/webfonts/2C4B9D_D_0.ttf +0 -0
  42. data/docs/assets/webfonts/2C4B9D_D_0.woff +0 -0
  43. data/docs/assets/webfonts/2C4B9D_D_0.woff2 +0 -0
  44. data/docs/assets/webfonts/2C4B9D_E_0.eot +0 -0
  45. data/docs/assets/webfonts/2C4B9D_E_0.ttf +0 -0
  46. data/docs/assets/webfonts/2C4B9D_E_0.woff +0 -0
  47. data/docs/assets/webfonts/2C4B9D_E_0.woff2 +0 -0
  48. data/docs/directive/deprecated/index.html +1142 -0
  49. data/docs/directive/include/index.html +1141 -0
  50. data/docs/directive/index.html +1113 -0
  51. data/docs/directive/skip/index.html +1141 -0
  52. data/docs/enum/__directivelocation/index.html +1204 -0
  53. data/docs/enum/__typekind/index.html +1154 -0
  54. data/docs/enum/addresstypeinput/index.html +1121 -0
  55. data/docs/enum/index.html +1113 -0
  56. data/docs/index.html +1122 -0
  57. data/docs/input_object/addaddressestocheckoutinput/index.html +1135 -0
  58. data/docs/input_object/addpaymenttocheckoutinput/index.html +1135 -0
  59. data/docs/input_object/addressinput/index.html +1169 -0
  60. data/docs/input_object/addtocartinput/index.html +1130 -0
  61. data/docs/input_object/advancecheckoutinput/index.html +1120 -0
  62. data/docs/input_object/applycouponcodeinput/index.html +1125 -0
  63. data/docs/input_object/completecheckoutinput/index.html +1120 -0
  64. data/docs/input_object/createorderinput/index.html +1120 -0
  65. data/docs/input_object/emptycartinput/index.html +1120 -0
  66. data/docs/input_object/index.html +1113 -0
  67. data/docs/input_object/markdefaultshipaddressinput/index.html +1125 -0
  68. data/docs/input_object/nextcheckoutstateinput/index.html +1120 -0
  69. data/docs/input_object/productsqueryinput/index.html +1132 -0
  70. data/docs/input_object/removefromaddressbookinput/index.html +1125 -0
  71. data/docs/input_object/removefromcartinput/index.html +1125 -0
  72. data/docs/input_object/saveinaddressbookinput/index.html +1135 -0
  73. data/docs/input_object/selectshippingrateinput/index.html +1125 -0
  74. data/docs/input_object/setorderemailinput/index.html +1125 -0
  75. data/docs/input_object/updatecartquantityinput/index.html +1130 -0
  76. data/docs/interface/adjustment/index.html +1145 -0
  77. data/docs/interface/index.html +1113 -0
  78. data/docs/interface/node/index.html +1151 -0
  79. data/docs/interface/paymentsource/index.html +1134 -0
  80. data/docs/mutation/addaddressestocheckout/index.html +1137 -0
  81. data/docs/mutation/addpaymenttocheckout/index.html +1137 -0
  82. data/docs/mutation/addtocart/index.html +1137 -0
  83. data/docs/mutation/advancecheckout/index.html +1137 -0
  84. data/docs/mutation/applycouponcode/index.html +1137 -0
  85. data/docs/mutation/completecheckout/index.html +1137 -0
  86. data/docs/mutation/createorder/index.html +1137 -0
  87. data/docs/mutation/emptycart/index.html +1137 -0
  88. data/docs/mutation/markdefaultshipaddress/index.html +1132 -0
  89. data/docs/mutation/nextcheckoutstate/index.html +1137 -0
  90. data/docs/mutation/removefromaddressbook/index.html +1132 -0
  91. data/docs/mutation/removefromcart/index.html +1137 -0
  92. data/docs/mutation/saveinaddressbook/index.html +1137 -0
  93. data/docs/mutation/selectshippingrate/index.html +1137 -0
  94. data/docs/mutation/setorderemail/index.html +1137 -0
  95. data/docs/mutation/updatecartquantity/index.html +1137 -0
  96. data/docs/object/__directive/index.html +1182 -0
  97. data/docs/object/__enumvalue/index.html +1134 -0
  98. data/docs/object/__field/index.html +1164 -0
  99. data/docs/object/__inputvalue/index.html +1145 -0
  100. data/docs/object/__schema/index.html +1144 -0
  101. data/docs/object/__type/index.html +1220 -0
  102. data/docs/object/addaddressestocheckoutpayload/index.html +1130 -0
  103. data/docs/object/addpaymenttocheckoutpayload/index.html +1130 -0
  104. data/docs/object/address/index.html +1189 -0
  105. data/docs/object/addressconnection/index.html +1132 -0
  106. data/docs/object/addressedge/index.html +1126 -0
  107. data/docs/object/addtocartpayload/index.html +1130 -0
  108. data/docs/object/adjustmentconnection/index.html +1132 -0
  109. data/docs/object/adjustmentedge/index.html +1126 -0
  110. data/docs/object/advancecheckoutpayload/index.html +1130 -0
  111. data/docs/object/applycouponcodepayload/index.html +1130 -0
  112. data/docs/object/completecheckoutpayload/index.html +1130 -0
  113. data/docs/object/country/index.html +1218 -0
  114. data/docs/object/countryconnection/index.html +1132 -0
  115. data/docs/object/countryedge/index.html +1126 -0
  116. data/docs/object/createorderpayload/index.html +1130 -0
  117. data/docs/object/creditcard/index.html +1170 -0
  118. data/docs/object/currency/index.html +1144 -0
  119. data/docs/object/currencyconnection/index.html +1132 -0
  120. data/docs/object/currencyedge/index.html +1126 -0
  121. data/docs/object/emptycartpayload/index.html +1130 -0
  122. data/docs/object/image/index.html +1169 -0
  123. data/docs/object/imageconnection/index.html +1132 -0
  124. data/docs/object/imageedge/index.html +1126 -0
  125. data/docs/object/index.html +1113 -0
  126. data/docs/object/lineitem/index.html +1184 -0
  127. data/docs/object/lineitemconnection/index.html +1132 -0
  128. data/docs/object/lineitemedge/index.html +1126 -0
  129. data/docs/object/manifestitem/index.html +1124 -0
  130. data/docs/object/markdefaultshipaddresspayload/index.html +1125 -0
  131. data/docs/object/nextcheckoutstatepayload/index.html +1130 -0
  132. data/docs/object/optiontype/index.html +1203 -0
  133. data/docs/object/optiontypeconnection/index.html +1132 -0
  134. data/docs/object/optiontypeedge/index.html +1126 -0
  135. data/docs/object/optionvalue/index.html +1154 -0
  136. data/docs/object/optionvalueconnection/index.html +1132 -0
  137. data/docs/object/optionvalueedge/index.html +1126 -0
  138. data/docs/object/order/index.html +1412 -0
  139. data/docs/object/orderconnection/index.html +1132 -0
  140. data/docs/object/orderedge/index.html +1126 -0
  141. data/docs/object/pageinfo/index.html +1138 -0
  142. data/docs/object/payment/index.html +1149 -0
  143. data/docs/object/paymentmethod/index.html +1149 -0
  144. data/docs/object/price/index.html +1159 -0
  145. data/docs/object/priceconnection/index.html +1132 -0
  146. data/docs/object/priceedge/index.html +1126 -0
  147. data/docs/object/product/index.html +1327 -0
  148. data/docs/object/productconnection/index.html +1132 -0
  149. data/docs/object/productedge/index.html +1126 -0
  150. data/docs/object/productproperty/index.html +1149 -0
  151. data/docs/object/productpropertyconnection/index.html +1132 -0
  152. data/docs/object/productpropertyedge/index.html +1126 -0
  153. data/docs/object/promotionadjustment/index.html +1155 -0
  154. data/docs/object/property/index.html +1144 -0
  155. data/docs/object/removefromaddressbookpayload/index.html +1125 -0
  156. data/docs/object/removefromcartpayload/index.html +1130 -0
  157. data/docs/object/saveinaddressbookpayload/index.html +1130 -0
  158. data/docs/object/selectshippingratepayload/index.html +1130 -0
  159. data/docs/object/setorderemailpayload/index.html +1130 -0
  160. data/docs/object/shipment/index.html +1218 -0
  161. data/docs/object/shipmentconnection/index.html +1132 -0
  162. data/docs/object/shipmentedge/index.html +1126 -0
  163. data/docs/object/shippingmethod/index.html +1174 -0
  164. data/docs/object/shippingrate/index.html +1154 -0
  165. data/docs/object/shippingrateconnection/index.html +1132 -0
  166. data/docs/object/shippingrateedge/index.html +1126 -0
  167. data/docs/object/state/index.html +1144 -0
  168. data/docs/object/stateconnection/index.html +1132 -0
  169. data/docs/object/stateedge/index.html +1126 -0
  170. data/docs/object/store/index.html +1238 -0
  171. data/docs/object/taxadjustment/index.html +1150 -0
  172. data/docs/object/taxon/index.html +1228 -0
  173. data/docs/object/taxonconnection/index.html +1132 -0
  174. data/docs/object/taxonedge/index.html +1126 -0
  175. data/docs/object/taxonomy/index.html +1198 -0
  176. data/docs/object/taxonomyconnection/index.html +1132 -0
  177. data/docs/object/taxonomyedge/index.html +1126 -0
  178. data/docs/object/updatecartquantitypayload/index.html +1130 -0
  179. data/docs/object/user/index.html +1280 -0
  180. data/docs/object/usererror/index.html +1126 -0
  181. data/docs/object/variant/index.html +1332 -0
  182. data/docs/object/variantconnection/index.html +1132 -0
  183. data/docs/object/variantedge/index.html +1126 -0
  184. data/docs/object/walletpaymentsource/index.html +1144 -0
  185. data/docs/object/walletpaymentsourceconnection/index.html +1132 -0
  186. data/docs/object/walletpaymentsourceedge/index.html +1126 -0
  187. data/docs/operation/mutation/index.html +1114 -0
  188. data/docs/operation/query/index.html +1431 -0
  189. data/docs/scalar/boolean/index.html +1112 -0
  190. data/docs/scalar/float/index.html +1112 -0
  191. data/docs/scalar/id/index.html +1112 -0
  192. data/docs/scalar/index.html +1113 -0
  193. data/docs/scalar/int/index.html +1112 -0
  194. data/docs/scalar/iso8601datetime/index.html +1112 -0
  195. data/docs/scalar/json/index.html +1112 -0
  196. data/docs/scalar/string/index.html +1112 -0
  197. data/docs/union/index.html +1113 -0
  198. data/lib/generators/solidus_graphql_api/install/install_generator.rb +19 -0
  199. data/lib/generators/solidus_graphql_api/install/templates/initializer.rb +6 -0
  200. data/lib/graphql_docs/landing_pages/index.md +16 -0
  201. data/lib/solidus_graphql_api/batch_loader/has_many_through.rb +1 -0
  202. data/lib/solidus_graphql_api/batch_loader.rb +1 -1
  203. data/lib/solidus_graphql_api/configuration.rb +12 -8
  204. data/lib/solidus_graphql_api/context.rb +8 -2
  205. data/lib/solidus_graphql_api/engine.rb +2 -2
  206. data/lib/solidus_graphql_api/mutations/base_mutation.rb +3 -3
  207. data/lib/solidus_graphql_api/mutations/checkout/add_payment_to_checkout.rb +1 -1
  208. data/lib/solidus_graphql_api/mutations/user/{mark_default_address.rb → mark_default_ship_address.rb} +2 -2
  209. data/lib/solidus_graphql_api/mutations/user/save_in_address_book.rb +8 -2
  210. data/lib/solidus_graphql_api/queries/option_value/option_type_query.rb +19 -0
  211. data/lib/solidus_graphql_api/queries/shipping_rate/shipping_method_query.rb +19 -0
  212. data/lib/solidus_graphql_api/queries/taxon/children_query.rb +1 -1
  213. data/lib/solidus_graphql_api/queries/taxonomy/taxons_query.rb +1 -1
  214. data/lib/solidus_graphql_api/queries/variant/default_price_query.rb +1 -1
  215. data/lib/solidus_graphql_api/{factories → testing_support/factories}/address_factory.rb +1 -2
  216. data/lib/solidus_graphql_api/{factories → testing_support/factories}/taxonomy_factory.rb +10 -0
  217. data/lib/solidus_graphql_api/testing_support/factories.rb +9 -0
  218. data/lib/solidus_graphql_api/types/address.rb +1 -2
  219. data/lib/solidus_graphql_api/types/base/relay_node.rb +1 -1
  220. data/lib/solidus_graphql_api/types/input_objects/address_input.rb +1 -2
  221. data/lib/solidus_graphql_api/types/json.rb +6 -3
  222. data/lib/solidus_graphql_api/types/mutation.rb +1 -1
  223. data/lib/solidus_graphql_api/types/option_value.rb +5 -0
  224. data/lib/solidus_graphql_api/types/query.rb +2 -2
  225. data/lib/solidus_graphql_api/types/shipping_method.rb +20 -0
  226. data/lib/solidus_graphql_api/types/shipping_rate.rb +5 -0
  227. data/lib/solidus_graphql_api/types/user.rb +1 -1
  228. data/lib/solidus_graphql_api/version.rb +1 -1
  229. data/lib/solidus_graphql_api.rb +0 -3
  230. data/schema.graphql +128 -26
  231. data/solidus_graphql_api.gemspec +12 -12
  232. data/spec/integration/mutations/checkout/add_addresses_to_checkout_spec.rb +13 -19
  233. data/spec/integration/mutations/checkout/apply_coupon_code_spec.rb +3 -1
  234. data/spec/integration/mutations/{mark_default_address_spec.rb → mark_default_ship_address_spec.rb} +5 -5
  235. data/spec/integration/mutations/remove_from_address_book_spec.rb +4 -4
  236. data/spec/integration/mutations/save_in_address_book_spec.rb +25 -12
  237. data/spec/integration/queries/completed_orders_spec.rb +19 -15
  238. data/spec/integration/queries/countries_spec.rb +2 -2
  239. data/spec/integration/queries/current_order_spec.rb +4 -1
  240. data/spec/integration/queries/current_store_spec.rb +1 -1
  241. data/spec/integration/queries/current_user_spec.rb +7 -2
  242. data/spec/integration/queries/products_spec.rb +4 -1
  243. data/spec/integration/queries/taxonomies_spec.rb +12 -4
  244. data/spec/integration/types/json_spec.rb +17 -0
  245. data/spec/lib/solidus_graphql_api/batch_loader/belongs_to_spec.rb +24 -25
  246. data/spec/lib/solidus_graphql_api/batch_loader/has_many_spec.rb +17 -15
  247. data/spec/lib/solidus_graphql_api/batch_loader/has_many_through_spec.rb +42 -25
  248. data/spec/lib/solidus_graphql_api/batch_loader/has_one_spec.rb +17 -15
  249. data/spec/lib/solidus_graphql_api/context_spec.rb +119 -6
  250. data/spec/lib/solidus_graphql_api/queries/option_value/option_type_query_spec.rb +10 -0
  251. data/spec/lib/solidus_graphql_api/queries/shipping_rate/shipping_method_query_spec.rb +11 -0
  252. data/spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb +9 -5
  253. data/spec/lib/solidus_graphql_api/queries/taxonomy/taxons_query_spec.rb +8 -5
  254. data/spec/lib/solidus_graphql_api/queries/variant/default_price_query_spec.rb +1 -1
  255. data/spec/lib/solidus_graphql_api/types/base/object_spec.rb +5 -1
  256. data/spec/lib/solidus_graphql_api/types/json_spec.rb +2 -1
  257. data/spec/lib/solidus_graphql_api/types/option_value_spec.rb +22 -0
  258. data/spec/lib/solidus_graphql_api/types/product_spec.rb +3 -1
  259. data/spec/lib/solidus_graphql_api/types/query_spec.rb +3 -1
  260. data/spec/lib/solidus_graphql_api/types/shipping_rate_spec.rb +22 -0
  261. data/spec/requests/spree/graphql_controller_spec.rb +15 -2
  262. data/spec/spec_helper.rb +20 -12
  263. data/spec/support/expected_schema.graphql +128 -26
  264. data/spec/support/graphql/mutations/add_addresses_to_checkout.gql +2 -2
  265. data/spec/support/graphql/mutations/mark_default_ship_address.gql +9 -0
  266. data/spec/support/graphql/mutations/remove_from_address_book.gql +1 -1
  267. data/spec/support/graphql/mutations/save_in_address_book.gql +6 -5
  268. data/spec/support/graphql/queries/completed_orders/billing_address.gql +1 -2
  269. data/spec/support/graphql/queries/completed_orders/shipping_address.gql +1 -2
  270. data/spec/support/graphql/queries/current_user.gql +6 -11
  271. data/spec/support/graphql/responses/completed_orders/billing_address.json.erb +2 -4
  272. data/spec/support/graphql/responses/completed_orders/shipping_address.json.erb +2 -4
  273. data/spec/support/graphql/responses/current_store.json.erb +1 -1
  274. data/spec/support/graphql/responses/current_user.json.erb +7 -13
  275. data/spec/support/graphql/responses/taxonomies.json.erb +7 -7
  276. data/spec/support/helpers/active_record.rb +18 -0
  277. data/spec/support/helpers/graphql.rb +4 -4
  278. metadata +245 -54
  279. data/lib/solidus_graphql_api/factories.rb +0 -11
  280. data/spec/support/graphql/mutations/mark_default_address.gql +0 -9
  281. /data/lib/solidus_graphql_api/{factories → testing_support/factories}/country_factory.rb +0 -0
  282. /data/lib/solidus_graphql_api/{factories → testing_support/factories}/store_factory.rb +0 -0
@@ -14,12 +14,12 @@ module Helpers
14
14
  JSON.parse(result.to_json, object_class: object_class, symbolize_names: true)
15
15
  end
16
16
 
17
- def execute_query(*args)
18
- execute(RSpec.configuration.graphql_queries_dir, *args)
17
+ def execute_query(*args, **kwargs)
18
+ execute(RSpec.configuration.graphql_queries_dir, *args, **kwargs)
19
19
  end
20
20
 
21
- def execute_mutation(*args)
22
- execute(RSpec.configuration.graphql_mutations_dir, *args)
21
+ def execute_mutation(*args, **kwargs)
22
+ execute(RSpec.configuration.graphql_mutations_dir, *args, **kwargs)
23
23
  end
24
24
 
25
25
  def decode_field_ids(field)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_graphql_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Rimondi
@@ -10,28 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-07-03 00:00:00.000000000 Z
13
+ date: 2023-08-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: batch-loader
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
20
- - !ruby/object:Gem::Version
21
- version: 1.4.1
22
- - - "<"
19
+ - - "~>"
23
20
  - !ruby/object:Gem::Version
24
- version: 1.6.0
21
+ version: '2.0'
25
22
  type: :runtime
26
23
  prerelease: false
27
24
  version_requirements: !ruby/object:Gem::Requirement
28
25
  requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- version: 1.4.1
32
- - - "<"
26
+ - - "~>"
33
27
  - !ruby/object:Gem::Version
34
- version: 1.6.0
28
+ version: '2.0'
35
29
  - !ruby/object:Gem::Dependency
36
30
  name: graphql
37
31
  requirement: !ruby/object:Gem::Requirement
@@ -41,7 +35,7 @@ dependencies:
41
35
  version: '1.10'
42
36
  - - "<"
43
37
  - !ruby/object:Gem::Version
44
- version: '1.12'
38
+ version: '1.13'
45
39
  type: :runtime
46
40
  prerelease: false
47
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -51,125 +45,125 @@ dependencies:
51
45
  version: '1.10'
52
46
  - - "<"
53
47
  - !ruby/object:Gem::Version
54
- version: '1.12'
48
+ version: '1.13'
55
49
  - !ruby/object:Gem::Dependency
56
50
  name: solidus_core
57
51
  requirement: !ruby/object:Gem::Requirement
58
52
  requirements:
59
53
  - - ">="
60
54
  - !ruby/object:Gem::Version
61
- version: '2.5'
55
+ version: '3.2'
62
56
  - - "<"
63
57
  - !ruby/object:Gem::Version
64
- version: '3'
58
+ version: '5'
65
59
  type: :runtime
66
60
  prerelease: false
67
61
  version_requirements: !ruby/object:Gem::Requirement
68
62
  requirements:
69
63
  - - ">="
70
64
  - !ruby/object:Gem::Version
71
- version: '2.5'
65
+ version: '3.2'
72
66
  - - "<"
73
67
  - !ruby/object:Gem::Version
74
- version: '3'
68
+ version: '5'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: solidus_support
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
73
  - - "~>"
80
74
  - !ruby/object:Gem::Version
81
- version: '0.5'
75
+ version: '0.6'
82
76
  type: :runtime
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
80
  - - "~>"
87
81
  - !ruby/object:Gem::Version
88
- version: '0.5'
82
+ version: '0.6'
89
83
  - !ruby/object:Gem::Dependency
90
- name: graphql-schema_comparator
84
+ name: graphql-docs
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: 1.0.0
89
+ version: 2.0.1
96
90
  type: :development
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: 1.0.0
96
+ version: 2.0.1
103
97
  - !ruby/object:Gem::Dependency
104
- name: pry
98
+ name: graphql-schema_comparator
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - "~>"
108
102
  - !ruby/object:Gem::Version
109
- version: 0.13.1
103
+ version: 1.0.0
110
104
  type: :development
111
105
  prerelease: false
112
106
  version_requirements: !ruby/object:Gem::Requirement
113
107
  requirements:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
- version: 0.13.1
110
+ version: 1.0.0
117
111
  - !ruby/object:Gem::Dependency
118
- name: simplecov
112
+ name: pry
119
113
  requirement: !ruby/object:Gem::Requirement
120
114
  requirements:
121
115
  - - "~>"
122
116
  - !ruby/object:Gem::Version
123
- version: 0.16.1
117
+ version: '0.14'
124
118
  type: :development
125
119
  prerelease: false
126
120
  version_requirements: !ruby/object:Gem::Requirement
127
121
  requirements:
128
122
  - - "~>"
129
123
  - !ruby/object:Gem::Version
130
- version: 0.16.1
124
+ version: '0.14'
131
125
  - !ruby/object:Gem::Dependency
132
- name: solidus_dev_support
126
+ name: simplecov
133
127
  requirement: !ruby/object:Gem::Requirement
134
128
  requirements:
135
129
  - - "~>"
136
130
  - !ruby/object:Gem::Version
137
- version: 1.5.0
131
+ version: '0.21'
138
132
  type: :development
139
133
  prerelease: false
140
134
  version_requirements: !ruby/object:Gem::Requirement
141
135
  requirements:
142
136
  - - "~>"
143
137
  - !ruby/object:Gem::Version
144
- version: 1.5.0
138
+ version: '0.21'
145
139
  - !ruby/object:Gem::Dependency
146
- name: timecop
140
+ name: solidus_dev_support
147
141
  requirement: !ruby/object:Gem::Requirement
148
142
  requirements:
149
143
  - - "~>"
150
144
  - !ruby/object:Gem::Version
151
- version: 0.9.1
145
+ version: '2.4'
152
146
  type: :development
153
147
  prerelease: false
154
148
  version_requirements: !ruby/object:Gem::Requirement
155
149
  requirements:
156
150
  - - "~>"
157
151
  - !ruby/object:Gem::Version
158
- version: 0.9.1
152
+ version: '2.4'
159
153
  - !ruby/object:Gem::Dependency
160
- name: with_model
154
+ name: timecop
161
155
  requirement: !ruby/object:Gem::Requirement
162
156
  requirements:
163
157
  - - "~>"
164
158
  - !ruby/object:Gem::Version
165
- version: 2.1.2
159
+ version: 0.9.1
166
160
  type: :development
167
161
  prerelease: false
168
162
  version_requirements: !ruby/object:Gem::Requirement
169
163
  requirements:
170
164
  - - "~>"
171
165
  - !ruby/object:Gem::Version
172
- version: 2.1.2
166
+ version: 0.9.1
173
167
  description: GraphQL comes to Solidus
174
168
  email: contact@solidus.io
175
169
  executables: []
@@ -178,17 +172,25 @@ extra_rdoc_files: []
178
172
  files:
179
173
  - ".circleci/config.yml"
180
174
  - ".gem_release.yml"
175
+ - ".github/dependabot.yml"
181
176
  - ".github/stale.yml"
177
+ - ".github_changelog_generator"
182
178
  - ".gitignore"
183
179
  - ".rspec"
184
180
  - ".rubocop.yml"
185
181
  - CHANGELOG.md
186
182
  - CONTRIBUTING.md
187
183
  - Gemfile
184
+ - Gemfile-local
188
185
  - LICENSE
189
186
  - LICENSE.md
187
+ - OLD_CHANGELOG.md
190
188
  - README.md
191
189
  - Rakefile
190
+ - app/assets/javascripts/spree/backend/solidus_graphql_api.js
191
+ - app/assets/javascripts/spree/frontend/solidus_graphql_api.js
192
+ - app/assets/stylesheets/spree/backend/solidus_graphql_api.css
193
+ - app/assets/stylesheets/spree/frontend/solidus_graphql_api.css
192
194
  - app/controllers/spree/graphql_controller.rb
193
195
  - bin/console
194
196
  - bin/rails
@@ -199,7 +201,181 @@ files:
199
201
  - bin/setup
200
202
  - config/locales/en.yml
201
203
  - config/routes.rb
204
+ - docs/assets/images/graphiql-headers.png
205
+ - docs/assets/images/graphiql-variables.png
206
+ - docs/assets/images/graphiql.png
207
+ - docs/assets/images/menu.png
208
+ - docs/assets/images/navbar.png
209
+ - docs/assets/style.css
210
+ - docs/assets/webfonts/2C4B9D_B_0.eot
211
+ - docs/assets/webfonts/2C4B9D_B_0.ttf
212
+ - docs/assets/webfonts/2C4B9D_B_0.woff
213
+ - docs/assets/webfonts/2C4B9D_B_0.woff2
214
+ - docs/assets/webfonts/2C4B9D_C_0.eot
215
+ - docs/assets/webfonts/2C4B9D_C_0.ttf
216
+ - docs/assets/webfonts/2C4B9D_C_0.woff
217
+ - docs/assets/webfonts/2C4B9D_C_0.woff2
218
+ - docs/assets/webfonts/2C4B9D_D_0.eot
219
+ - docs/assets/webfonts/2C4B9D_D_0.ttf
220
+ - docs/assets/webfonts/2C4B9D_D_0.woff
221
+ - docs/assets/webfonts/2C4B9D_D_0.woff2
222
+ - docs/assets/webfonts/2C4B9D_E_0.eot
223
+ - docs/assets/webfonts/2C4B9D_E_0.ttf
224
+ - docs/assets/webfonts/2C4B9D_E_0.woff
225
+ - docs/assets/webfonts/2C4B9D_E_0.woff2
226
+ - docs/directive/deprecated/index.html
227
+ - docs/directive/include/index.html
228
+ - docs/directive/index.html
229
+ - docs/directive/skip/index.html
230
+ - docs/enum/__directivelocation/index.html
231
+ - docs/enum/__typekind/index.html
232
+ - docs/enum/addresstypeinput/index.html
233
+ - docs/enum/index.html
234
+ - docs/index.html
235
+ - docs/input_object/addaddressestocheckoutinput/index.html
236
+ - docs/input_object/addpaymenttocheckoutinput/index.html
237
+ - docs/input_object/addressinput/index.html
238
+ - docs/input_object/addtocartinput/index.html
239
+ - docs/input_object/advancecheckoutinput/index.html
240
+ - docs/input_object/applycouponcodeinput/index.html
241
+ - docs/input_object/completecheckoutinput/index.html
242
+ - docs/input_object/createorderinput/index.html
243
+ - docs/input_object/emptycartinput/index.html
244
+ - docs/input_object/index.html
245
+ - docs/input_object/markdefaultshipaddressinput/index.html
246
+ - docs/input_object/nextcheckoutstateinput/index.html
247
+ - docs/input_object/productsqueryinput/index.html
248
+ - docs/input_object/removefromaddressbookinput/index.html
249
+ - docs/input_object/removefromcartinput/index.html
250
+ - docs/input_object/saveinaddressbookinput/index.html
251
+ - docs/input_object/selectshippingrateinput/index.html
252
+ - docs/input_object/setorderemailinput/index.html
253
+ - docs/input_object/updatecartquantityinput/index.html
254
+ - docs/interface/adjustment/index.html
255
+ - docs/interface/index.html
256
+ - docs/interface/node/index.html
257
+ - docs/interface/paymentsource/index.html
258
+ - docs/mutation/addaddressestocheckout/index.html
259
+ - docs/mutation/addpaymenttocheckout/index.html
260
+ - docs/mutation/addtocart/index.html
261
+ - docs/mutation/advancecheckout/index.html
262
+ - docs/mutation/applycouponcode/index.html
263
+ - docs/mutation/completecheckout/index.html
264
+ - docs/mutation/createorder/index.html
265
+ - docs/mutation/emptycart/index.html
266
+ - docs/mutation/markdefaultshipaddress/index.html
267
+ - docs/mutation/nextcheckoutstate/index.html
268
+ - docs/mutation/removefromaddressbook/index.html
269
+ - docs/mutation/removefromcart/index.html
270
+ - docs/mutation/saveinaddressbook/index.html
271
+ - docs/mutation/selectshippingrate/index.html
272
+ - docs/mutation/setorderemail/index.html
273
+ - docs/mutation/updatecartquantity/index.html
274
+ - docs/object/__directive/index.html
275
+ - docs/object/__enumvalue/index.html
276
+ - docs/object/__field/index.html
277
+ - docs/object/__inputvalue/index.html
278
+ - docs/object/__schema/index.html
279
+ - docs/object/__type/index.html
280
+ - docs/object/addaddressestocheckoutpayload/index.html
281
+ - docs/object/addpaymenttocheckoutpayload/index.html
282
+ - docs/object/address/index.html
283
+ - docs/object/addressconnection/index.html
284
+ - docs/object/addressedge/index.html
285
+ - docs/object/addtocartpayload/index.html
286
+ - docs/object/adjustmentconnection/index.html
287
+ - docs/object/adjustmentedge/index.html
288
+ - docs/object/advancecheckoutpayload/index.html
289
+ - docs/object/applycouponcodepayload/index.html
290
+ - docs/object/completecheckoutpayload/index.html
291
+ - docs/object/country/index.html
292
+ - docs/object/countryconnection/index.html
293
+ - docs/object/countryedge/index.html
294
+ - docs/object/createorderpayload/index.html
295
+ - docs/object/creditcard/index.html
296
+ - docs/object/currency/index.html
297
+ - docs/object/currencyconnection/index.html
298
+ - docs/object/currencyedge/index.html
299
+ - docs/object/emptycartpayload/index.html
300
+ - docs/object/image/index.html
301
+ - docs/object/imageconnection/index.html
302
+ - docs/object/imageedge/index.html
303
+ - docs/object/index.html
304
+ - docs/object/lineitem/index.html
305
+ - docs/object/lineitemconnection/index.html
306
+ - docs/object/lineitemedge/index.html
307
+ - docs/object/manifestitem/index.html
308
+ - docs/object/markdefaultshipaddresspayload/index.html
309
+ - docs/object/nextcheckoutstatepayload/index.html
310
+ - docs/object/optiontype/index.html
311
+ - docs/object/optiontypeconnection/index.html
312
+ - docs/object/optiontypeedge/index.html
313
+ - docs/object/optionvalue/index.html
314
+ - docs/object/optionvalueconnection/index.html
315
+ - docs/object/optionvalueedge/index.html
316
+ - docs/object/order/index.html
317
+ - docs/object/orderconnection/index.html
318
+ - docs/object/orderedge/index.html
319
+ - docs/object/pageinfo/index.html
320
+ - docs/object/payment/index.html
321
+ - docs/object/paymentmethod/index.html
322
+ - docs/object/price/index.html
323
+ - docs/object/priceconnection/index.html
324
+ - docs/object/priceedge/index.html
325
+ - docs/object/product/index.html
326
+ - docs/object/productconnection/index.html
327
+ - docs/object/productedge/index.html
328
+ - docs/object/productproperty/index.html
329
+ - docs/object/productpropertyconnection/index.html
330
+ - docs/object/productpropertyedge/index.html
331
+ - docs/object/promotionadjustment/index.html
332
+ - docs/object/property/index.html
333
+ - docs/object/removefromaddressbookpayload/index.html
334
+ - docs/object/removefromcartpayload/index.html
335
+ - docs/object/saveinaddressbookpayload/index.html
336
+ - docs/object/selectshippingratepayload/index.html
337
+ - docs/object/setorderemailpayload/index.html
338
+ - docs/object/shipment/index.html
339
+ - docs/object/shipmentconnection/index.html
340
+ - docs/object/shipmentedge/index.html
341
+ - docs/object/shippingmethod/index.html
342
+ - docs/object/shippingrate/index.html
343
+ - docs/object/shippingrateconnection/index.html
344
+ - docs/object/shippingrateedge/index.html
345
+ - docs/object/state/index.html
346
+ - docs/object/stateconnection/index.html
347
+ - docs/object/stateedge/index.html
348
+ - docs/object/store/index.html
349
+ - docs/object/taxadjustment/index.html
350
+ - docs/object/taxon/index.html
351
+ - docs/object/taxonconnection/index.html
352
+ - docs/object/taxonedge/index.html
353
+ - docs/object/taxonomy/index.html
354
+ - docs/object/taxonomyconnection/index.html
355
+ - docs/object/taxonomyedge/index.html
356
+ - docs/object/updatecartquantitypayload/index.html
357
+ - docs/object/user/index.html
358
+ - docs/object/usererror/index.html
359
+ - docs/object/variant/index.html
360
+ - docs/object/variantconnection/index.html
361
+ - docs/object/variantedge/index.html
362
+ - docs/object/walletpaymentsource/index.html
363
+ - docs/object/walletpaymentsourceconnection/index.html
364
+ - docs/object/walletpaymentsourceedge/index.html
365
+ - docs/operation/mutation/index.html
366
+ - docs/operation/query/index.html
367
+ - docs/scalar/boolean/index.html
368
+ - docs/scalar/float/index.html
369
+ - docs/scalar/id/index.html
370
+ - docs/scalar/index.html
371
+ - docs/scalar/int/index.html
372
+ - docs/scalar/iso8601datetime/index.html
373
+ - docs/scalar/json/index.html
374
+ - docs/scalar/string/index.html
375
+ - docs/union/index.html
202
376
  - lib/generators/solidus_graphql_api/install/install_generator.rb
377
+ - lib/generators/solidus_graphql_api/install/templates/initializer.rb
378
+ - lib/graphql_docs/landing_pages/index.md
203
379
  - lib/solidus_graphql_api.rb
204
380
  - lib/solidus_graphql_api/batch_loader.rb
205
381
  - lib/solidus_graphql_api/batch_loader/belongs_to.rb
@@ -209,11 +385,6 @@ files:
209
385
  - lib/solidus_graphql_api/configuration.rb
210
386
  - lib/solidus_graphql_api/context.rb
211
387
  - 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
388
  - lib/solidus_graphql_api/mutations/.keep
218
389
  - lib/solidus_graphql_api/mutations/base_mutation.rb
219
390
  - lib/solidus_graphql_api/mutations/checkout/add_addresses_to_checkout.rb
@@ -229,7 +400,7 @@ files:
229
400
  - lib/solidus_graphql_api/mutations/checkout/select_shipping_rate.rb
230
401
  - lib/solidus_graphql_api/mutations/checkout/set_order_email.rb
231
402
  - lib/solidus_graphql_api/mutations/checkout/update_cart_quantity.rb
232
- - lib/solidus_graphql_api/mutations/user/mark_default_address.rb
403
+ - lib/solidus_graphql_api/mutations/user/mark_default_ship_address.rb
233
404
  - lib/solidus_graphql_api/mutations/user/remove_from_address_book.rb
234
405
  - lib/solidus_graphql_api/mutations/user/save_in_address_book.rb
235
406
  - lib/solidus_graphql_api/queries/address/country_query.rb
@@ -239,6 +410,7 @@ files:
239
410
  - lib/solidus_graphql_api/queries/country/states_query.rb
240
411
  - lib/solidus_graphql_api/queries/line_item/variant_query.rb
241
412
  - lib/solidus_graphql_api/queries/option_type/option_values_query.rb
413
+ - lib/solidus_graphql_api/queries/option_value/option_type_query.rb
242
414
  - lib/solidus_graphql_api/queries/order/adjustments_query.rb
243
415
  - lib/solidus_graphql_api/queries/order/billing_address_query.rb
244
416
  - lib/solidus_graphql_api/queries/order/line_items_query.rb
@@ -253,6 +425,7 @@ files:
253
425
  - lib/solidus_graphql_api/queries/product_property/property_query.rb
254
426
  - lib/solidus_graphql_api/queries/products_query.rb
255
427
  - lib/solidus_graphql_api/queries/shipment/shipping_rates_query.rb
428
+ - lib/solidus_graphql_api/queries/shipping_rate/shipping_method_query.rb
256
429
  - lib/solidus_graphql_api/queries/taxon/children_query.rb
257
430
  - lib/solidus_graphql_api/queries/taxon/parent_taxon_query.rb
258
431
  - lib/solidus_graphql_api/queries/taxonomies_query.rb
@@ -263,6 +436,11 @@ files:
263
436
  - lib/solidus_graphql_api/queries/variant/option_values_query.rb
264
437
  - lib/solidus_graphql_api/queries/variant/prices_query.rb
265
438
  - lib/solidus_graphql_api/schema.rb
439
+ - lib/solidus_graphql_api/testing_support/factories.rb
440
+ - lib/solidus_graphql_api/testing_support/factories/address_factory.rb
441
+ - lib/solidus_graphql_api/testing_support/factories/country_factory.rb
442
+ - lib/solidus_graphql_api/testing_support/factories/store_factory.rb
443
+ - lib/solidus_graphql_api/testing_support/factories/taxonomy_factory.rb
266
444
  - lib/solidus_graphql_api/types/.keep
267
445
  - lib/solidus_graphql_api/types/address.rb
268
446
  - lib/solidus_graphql_api/types/base/argument.rb
@@ -298,6 +476,7 @@ files:
298
476
  - lib/solidus_graphql_api/types/property.rb
299
477
  - lib/solidus_graphql_api/types/query.rb
300
478
  - lib/solidus_graphql_api/types/shipment.rb
479
+ - lib/solidus_graphql_api/types/shipping_method.rb
301
480
  - lib/solidus_graphql_api/types/shipping_rate.rb
302
481
  - lib/solidus_graphql_api/types/state.rb
303
482
  - lib/solidus_graphql_api/types/store.rb
@@ -321,7 +500,7 @@ files:
321
500
  - spec/integration/mutations/checkout/select_shipping_rate_spec.rb
322
501
  - spec/integration/mutations/create_order_spec.rb
323
502
  - spec/integration/mutations/empty_cart_spec.rb
324
- - spec/integration/mutations/mark_default_address_spec.rb
503
+ - spec/integration/mutations/mark_default_ship_address_spec.rb
325
504
  - spec/integration/mutations/remove_from_address_book_spec.rb
326
505
  - spec/integration/mutations/remove_from_cart_spec.rb
327
506
  - spec/integration/mutations/save_in_address_book_spec.rb
@@ -335,6 +514,7 @@ files:
335
514
  - spec/integration/queries/product_by_slug_spec.rb
336
515
  - spec/integration/queries/products_spec.rb
337
516
  - spec/integration/queries/taxonomies_spec.rb
517
+ - spec/integration/types/json_spec.rb
338
518
  - spec/lib/solidus_graphql_api/batch_loader/belongs_to_spec.rb
339
519
  - spec/lib/solidus_graphql_api/batch_loader/has_many_spec.rb
340
520
  - spec/lib/solidus_graphql_api/batch_loader/has_many_through_spec.rb
@@ -347,6 +527,7 @@ files:
347
527
  - spec/lib/solidus_graphql_api/queries/country/states_query_spec.rb
348
528
  - spec/lib/solidus_graphql_api/queries/line_item/variant_query_spec.rb
349
529
  - spec/lib/solidus_graphql_api/queries/option_type/option_values_query_spec.rb
530
+ - spec/lib/solidus_graphql_api/queries/option_value/option_type_query_spec.rb
350
531
  - spec/lib/solidus_graphql_api/queries/order/adjustments_query_spec.rb
351
532
  - spec/lib/solidus_graphql_api/queries/order/billing_address_query_spec.rb
352
533
  - spec/lib/solidus_graphql_api/queries/order/line_items_query_spec.rb
@@ -361,6 +542,7 @@ files:
361
542
  - spec/lib/solidus_graphql_api/queries/product_property/property_query_spec.rb
362
543
  - spec/lib/solidus_graphql_api/queries/products_query_spec.rb
363
544
  - spec/lib/solidus_graphql_api/queries/shipment/shipping_rates_query_spec.rb
545
+ - spec/lib/solidus_graphql_api/queries/shipping_rate/shipping_method_query_spec.rb
364
546
  - spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb
365
547
  - spec/lib/solidus_graphql_api/queries/taxon/parent_taxon_query_spec.rb
366
548
  - spec/lib/solidus_graphql_api/queries/taxonomies_query_spec.rb
@@ -374,9 +556,11 @@ files:
374
556
  - spec/lib/solidus_graphql_api/types/base/object_spec.rb
375
557
  - spec/lib/solidus_graphql_api/types/json_spec.rb
376
558
  - spec/lib/solidus_graphql_api/types/option_type_spec.rb
559
+ - spec/lib/solidus_graphql_api/types/option_value_spec.rb
377
560
  - spec/lib/solidus_graphql_api/types/product_property_spec.rb
378
561
  - spec/lib/solidus_graphql_api/types/product_spec.rb
379
562
  - spec/lib/solidus_graphql_api/types/query_spec.rb
563
+ - spec/lib/solidus_graphql_api/types/shipping_rate_spec.rb
380
564
  - spec/lib/solidus_graphql_api/types/variant_spec.rb
381
565
  - spec/requests/spree/graphql_controller_spec.rb
382
566
  - spec/spec_helper.rb
@@ -389,7 +573,7 @@ files:
389
573
  - spec/support/graphql/mutations/complete_checkout.gql
390
574
  - spec/support/graphql/mutations/create_order.gql
391
575
  - spec/support/graphql/mutations/empty_cart.gql
392
- - spec/support/graphql/mutations/mark_default_address.gql
576
+ - spec/support/graphql/mutations/mark_default_ship_address.gql
393
577
  - spec/support/graphql/mutations/next_checkout_state.gql
394
578
  - spec/support/graphql/mutations/remove_from_address_book.gql
395
579
  - spec/support/graphql/mutations/remove_from_cart.gql
@@ -424,16 +608,17 @@ files:
424
608
  - spec/support/graphql/responses/current_user.json.erb
425
609
  - spec/support/graphql/responses/product_by_slug.json.erb
426
610
  - spec/support/graphql/responses/taxonomies.json.erb
611
+ - spec/support/helpers/active_record.rb
427
612
  - spec/support/helpers/graphql.rb
428
613
  - spec/support/matchers/graphql.rb
429
614
  - spec/support/shared_contexts/graphql_query_subject.rb
430
- homepage: https://github.com/solidusio-contrib/solidus_graphql_api
615
+ homepage: https://github.com/solidusio/solidus_graphql_api
431
616
  licenses:
432
617
  - BSD-3-Clause
433
618
  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
619
+ homepage_uri: https://github.com/solidusio/solidus_graphql_api
620
+ source_code_uri: https://github.com/solidusio/solidus_graphql_api
621
+ changelog_uri: https://github.com/solidusio/solidus_graphql_api/releases
437
622
  post_install_message:
438
623
  rdoc_options: []
439
624
  require_paths:
@@ -442,14 +627,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
442
627
  requirements:
443
628
  - - "~>"
444
629
  - !ruby/object:Gem::Version
445
- version: '2.5'
630
+ version: '3.0'
446
631
  required_rubygems_version: !ruby/object:Gem::Requirement
447
632
  requirements:
448
633
  - - ">="
449
634
  - !ruby/object:Gem::Version
450
635
  version: '0'
451
636
  requirements: []
452
- rubygems_version: 3.0.3
637
+ rubygems_version: 3.3.7
453
638
  signing_key:
454
639
  specification_version: 4
455
640
  summary: Solidus GraphQL API
@@ -464,7 +649,7 @@ test_files:
464
649
  - spec/integration/mutations/checkout/select_shipping_rate_spec.rb
465
650
  - spec/integration/mutations/create_order_spec.rb
466
651
  - spec/integration/mutations/empty_cart_spec.rb
467
- - spec/integration/mutations/mark_default_address_spec.rb
652
+ - spec/integration/mutations/mark_default_ship_address_spec.rb
468
653
  - spec/integration/mutations/remove_from_address_book_spec.rb
469
654
  - spec/integration/mutations/remove_from_cart_spec.rb
470
655
  - spec/integration/mutations/save_in_address_book_spec.rb
@@ -478,6 +663,7 @@ test_files:
478
663
  - spec/integration/queries/product_by_slug_spec.rb
479
664
  - spec/integration/queries/products_spec.rb
480
665
  - spec/integration/queries/taxonomies_spec.rb
666
+ - spec/integration/types/json_spec.rb
481
667
  - spec/lib/solidus_graphql_api/batch_loader/belongs_to_spec.rb
482
668
  - spec/lib/solidus_graphql_api/batch_loader/has_many_spec.rb
483
669
  - spec/lib/solidus_graphql_api/batch_loader/has_many_through_spec.rb
@@ -490,6 +676,7 @@ test_files:
490
676
  - spec/lib/solidus_graphql_api/queries/country/states_query_spec.rb
491
677
  - spec/lib/solidus_graphql_api/queries/line_item/variant_query_spec.rb
492
678
  - spec/lib/solidus_graphql_api/queries/option_type/option_values_query_spec.rb
679
+ - spec/lib/solidus_graphql_api/queries/option_value/option_type_query_spec.rb
493
680
  - spec/lib/solidus_graphql_api/queries/order/adjustments_query_spec.rb
494
681
  - spec/lib/solidus_graphql_api/queries/order/billing_address_query_spec.rb
495
682
  - spec/lib/solidus_graphql_api/queries/order/line_items_query_spec.rb
@@ -504,6 +691,7 @@ test_files:
504
691
  - spec/lib/solidus_graphql_api/queries/product_property/property_query_spec.rb
505
692
  - spec/lib/solidus_graphql_api/queries/products_query_spec.rb
506
693
  - spec/lib/solidus_graphql_api/queries/shipment/shipping_rates_query_spec.rb
694
+ - spec/lib/solidus_graphql_api/queries/shipping_rate/shipping_method_query_spec.rb
507
695
  - spec/lib/solidus_graphql_api/queries/taxon/children_query_spec.rb
508
696
  - spec/lib/solidus_graphql_api/queries/taxon/parent_taxon_query_spec.rb
509
697
  - spec/lib/solidus_graphql_api/queries/taxonomies_query_spec.rb
@@ -517,9 +705,11 @@ test_files:
517
705
  - spec/lib/solidus_graphql_api/types/base/object_spec.rb
518
706
  - spec/lib/solidus_graphql_api/types/json_spec.rb
519
707
  - spec/lib/solidus_graphql_api/types/option_type_spec.rb
708
+ - spec/lib/solidus_graphql_api/types/option_value_spec.rb
520
709
  - spec/lib/solidus_graphql_api/types/product_property_spec.rb
521
710
  - spec/lib/solidus_graphql_api/types/product_spec.rb
522
711
  - spec/lib/solidus_graphql_api/types/query_spec.rb
712
+ - spec/lib/solidus_graphql_api/types/shipping_rate_spec.rb
523
713
  - spec/lib/solidus_graphql_api/types/variant_spec.rb
524
714
  - spec/requests/spree/graphql_controller_spec.rb
525
715
  - spec/spec_helper.rb
@@ -532,7 +722,7 @@ test_files:
532
722
  - spec/support/graphql/mutations/complete_checkout.gql
533
723
  - spec/support/graphql/mutations/create_order.gql
534
724
  - spec/support/graphql/mutations/empty_cart.gql
535
- - spec/support/graphql/mutations/mark_default_address.gql
725
+ - spec/support/graphql/mutations/mark_default_ship_address.gql
536
726
  - spec/support/graphql/mutations/next_checkout_state.gql
537
727
  - spec/support/graphql/mutations/remove_from_address_book.gql
538
728
  - spec/support/graphql/mutations/remove_from_cart.gql
@@ -567,6 +757,7 @@ test_files:
567
757
  - spec/support/graphql/responses/current_user.json.erb
568
758
  - spec/support/graphql/responses/product_by_slug.json.erb
569
759
  - spec/support/graphql/responses/taxonomies.json.erb
760
+ - spec/support/helpers/active_record.rb
570
761
  - spec/support/helpers/graphql.rb
571
762
  - spec/support/matchers/graphql.rb
572
763
  - spec/support/shared_contexts/graphql_query_subject.rb
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'solidus_graphql_api/factories/address_factory'
4
- require 'solidus_graphql_api/factories/country_factory'
5
- require 'solidus_graphql_api/factories/store_factory'
6
- require 'solidus_graphql_api/factories/taxonomy_factory'
7
-
8
- module SolidusGraphqlApi
9
- module Factories
10
- end
11
- end
@@ -1,9 +0,0 @@
1
- mutation ($input: MarkDefaultAddressInput!) {
2
- markDefaultAddress(input: $input) {
3
- user {
4
- defaultAddress {
5
- id
6
- }
7
- }
8
- }
9
- }