Skip to content

Commit

Permalink
Merge pull request #1626 from graphcommerce-org/feature/codegen
Browse files Browse the repository at this point in the history
Feature/codegen
  • Loading branch information
paales authored Sep 8, 2022
2 parents b998cc8 + b20f3e5 commit a464bd9
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-berries-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-cart-checkout': patch
---

Add coupon query
6 changes: 6 additions & 0 deletions .changeset/twelve-cats-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphcommerce/magento-category': patch
'@graphcommerce/magento-product': patch
---

Simplified generated query for ProductCustomizable
2 changes: 1 addition & 1 deletion examples/magento-graphcms/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ generates:
skipTypename: true
namingConvention: 'keep'
dedupeOperationSuffix: true
content: '/* eslint-disable */'
content: /* eslint-disable */
watchConfig:
usePolling: false
3 changes: 0 additions & 3 deletions packages/magento-category/queries/CategoryPage.graphql

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fragment CustomizableAreaOption on CustomizableAreaOption {
...CustomizableOption
product_sku
areaValue: value {
max_characters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fragment CustomizableCheckboxOption on CustomizableCheckboxOption {
...CustomizableOption
checkboxValue: value {
price
price_type
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fragment CustomizableDateOption on CustomizableDateOption {
...CustomizableOption
product_sku
dateValue: value {
price
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fragment CustomizableDropDownOption on CustomizableDropDownOption {
...CustomizableOption
dropdownValue: value {
option_type_id
price
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fragment CustomizableFieldOption on CustomizableFieldOption {
...CustomizableOption
product_sku
fieldValue: value {
max_characters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fragment CustomizableFileOption on CustomizableFileOption {
...CustomizableOption
product_sku
fileValue: value {
file_extension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fragment CustomizableMultipleOption on CustomizableMultipleOption {
...CustomizableOption
multipleValue: value {
option_type_id
price
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
fragment CustomizableRadioOption on CustomizableRadioOption {
...CustomizableOption
value {
radioValue: value {
option_type_id
price
price_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ fragment ProductCustomizable on CustomizableProductInterface @injectable {
options {
uid
__typename
...CustomizableOption
...CustomizableAreaOption
...CustomizableCheckboxOption
...CustomizableDateOption
Expand Down
2 changes: 1 addition & 1 deletion scripts/codegen.magento-graphcms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ generates:
skipTypename: true
namingConvention: 'keep'
dedupeOperationSuffix: true
content: '/* eslint-disable */'
content: /* eslint-disable */
watchConfig:
usePolling: false

1 comment on commit a464bd9

@vercel
Copy link

@vercel vercel bot commented on a464bd9 Sep 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.