-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2299 from graphcommerce-org/feature/GCOM-1383-con…
…firm-email Forward compatibility functionality so we can implement 2.4.7 features without having them available in the schema
- Loading branch information
Showing
40 changed files
with
624 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@graphcommerce/next-config": patch | ||
--- | ||
|
||
Solve an issue where an env variable wouldn't be coerced to a Number if a Config.graphqls value is defined as an Int/Float |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@graphcommerce/magento-graphql": patch | ||
--- | ||
|
||
Added a magentoVersion configuration value to be able to differentiate features based on the Magento version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/magento-graphql/schema-246/CartAddressInput-vat_id.graphqls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
input CartAddressInput { | ||
vat_id: String | ||
} | ||
|
||
interface CartAddressInteface { | ||
vat_id: String | ||
} | ||
|
||
type ShippingCartAddress implements CartAddressInterface { | ||
vat_id: String | ||
} | ||
|
||
type BillingCartAddress { | ||
vat_id: String | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/magento-graphql/schema-246/Mutation-deleteCustomer.graphqls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type Mutation { | ||
""" | ||
Delete customer account | ||
""" | ||
deleteCustomer: Boolean | ||
} |
27 changes: 27 additions & 0 deletions
27
packages/magento-graphql/schema-246/OrderItem-gift_message.graphqls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
interface OrderItemInterface { | ||
""" | ||
The selected gift message for the order item | ||
""" | ||
gift_message: GiftMessage | ||
} | ||
|
||
type OrderItem { | ||
""" | ||
The selected gift message for the order item | ||
""" | ||
gift_message: GiftMessage | ||
} | ||
|
||
type BundleOrderItem { | ||
""" | ||
The selected gift message for the order item | ||
""" | ||
gift_message: GiftMessage | ||
} | ||
|
||
type DownloadableOrderItem { | ||
""" | ||
The selected gift message for the order item | ||
""" | ||
gift_message: GiftMessage | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/magento-graphql/schema-246/SelectedShippingMethod.graphqls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type SelectedShippingMethod { | ||
price_excl_tax: Money | ||
price_incl_tax: Money | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
type CartItems { | ||
""" | ||
An array of products that have been added to the cart. | ||
""" | ||
items: [CartItemInterface]! | ||
""" | ||
Metadata for pagination rendering. | ||
""" | ||
page_info: SearchResultPageInfo | ||
""" | ||
The number of returned cart items. | ||
""" | ||
total_count: Int! | ||
} | ||
|
||
""" | ||
Specifies the field to use for sorting quote items | ||
""" | ||
enum SortQuoteItemsEnum { | ||
ITEM_ID | ||
CREATED_AT | ||
UPDATED_AT | ||
PRODUCT_ID | ||
SKU | ||
NAME | ||
DESCRIPTION | ||
WEIGHT | ||
QTY | ||
PRICE | ||
BASE_PRICE | ||
CUSTOM_PRICE | ||
DISCOUNT_PERCENT | ||
DISCOUNT_AMOUNT | ||
BASE_DISCOUNT_AMOUNT | ||
TAX_PERCENT | ||
TAX_AMOUNT | ||
BASE_TAX_AMOUNT | ||
ROW_TOTAL | ||
BASE_ROW_TOTAL | ||
ROW_TOTAL_WITH_DISCOUNT | ||
ROW_WEIGHT | ||
PRODUCT_TYPE | ||
BASE_TAX_BEFORE_DISCOUNT | ||
TAX_BEFORE_DISCOUNT | ||
ORIGINAL_CUSTOM_PRICE | ||
PRICE_INC_TAX | ||
BASE_PRICE_INC_TAX | ||
ROW_TOTAL_INC_TAX | ||
BASE_ROW_TOTAL_INC_TAX | ||
DISCOUNT_TAX_COMPENSATION_AMOUNT | ||
BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT | ||
FREE_SHIPPING | ||
} | ||
|
||
""" | ||
Specifies the field to use for sorting quote items | ||
""" | ||
input QuoteItemsSortInput { | ||
""" | ||
Specifies the quote items field to sort by | ||
""" | ||
field: SortQuoteItemsEnum! | ||
""" | ||
Specifies the order of quote items' sorting | ||
""" | ||
order: SortEnum! | ||
} | ||
|
||
type Cart { | ||
itemsV2(pageSize: Int = 20, currentPage: Int = 1, sort: QuoteItemsSortInput): CartItems | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
input CartAddressInput { | ||
""" | ||
The customer's fax number. | ||
""" | ||
fax: String | ||
""" | ||
The middle name of the person associated with the billing/shipping address. | ||
""" | ||
middlename: String | ||
""" | ||
An honorific, such as Dr., Mr., or Mrs. | ||
""" | ||
prefix: String | ||
""" | ||
A value such as Sr., Jr., or III. | ||
""" | ||
suffix: String | ||
} | ||
|
||
type BillingCartAdress { | ||
""" | ||
The customer's fax number. | ||
""" | ||
fax: String | ||
""" | ||
The middle name of the person associated with the billing/shipping address. | ||
""" | ||
middlename: String | ||
""" | ||
An honorific, such as Dr., Mr., or Mrs. | ||
""" | ||
prefix: String | ||
""" | ||
A value such as Sr., Jr., or III. | ||
""" | ||
suffix: String | ||
} | ||
|
||
type ShippingCartAddress { | ||
""" | ||
The customer's fax number. | ||
""" | ||
fax: String | ||
""" | ||
The middle name of the person associated with the billing/shipping address. | ||
""" | ||
middlename: String | ||
""" | ||
An honorific, such as Dr., Mr., or Mrs. | ||
""" | ||
prefix: String | ||
""" | ||
A value such as Sr., Jr., or III. | ||
""" | ||
suffix: String | ||
} |
48 changes: 48 additions & 0 deletions
48
packages/magento-graphql/schema-247/CustomAttributesV2.graphqls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
""" | ||
Specifies the value for attribute. | ||
""" | ||
input AttributeValueInput { | ||
""" | ||
The code of the attribute. | ||
""" | ||
attribute_code: String! | ||
""" | ||
An array containing selected options for a select or multiselect attribute. | ||
""" | ||
selected_options: [AttributeInputSelectedOption] | ||
""" | ||
The value assigned to the attribute. | ||
""" | ||
value: String | ||
} | ||
|
||
""" | ||
Specifies selected option for a select or multiselect attribute value. | ||
""" | ||
input AttributeInputSelectedOption { | ||
""" | ||
The attribute option value. | ||
""" | ||
value: String! | ||
} | ||
|
||
input CustomerCreateInput { | ||
""" | ||
The customer's custom attributes. | ||
""" | ||
custom_attributes: [AttributeValueInput] | ||
} | ||
|
||
input CustomerUpdateInput { | ||
""" | ||
The customer's custom attributes. | ||
""" | ||
custom_attributes: [AttributeValueInput] | ||
} | ||
|
||
input CustomerAddressInput { | ||
""" | ||
Custom attributes assigned to the customer address. | ||
""" | ||
custom_attributesV2: [AttributeValueInput] | ||
} |
34 changes: 34 additions & 0 deletions
34
packages/magento-graphql/schema-247/Mutation-cancelOrder.graphqls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
""" | ||
Defines the order to cancel. | ||
""" | ||
input CancelOrderInput { | ||
""" | ||
Order ID. | ||
""" | ||
order_id: ID! | ||
""" | ||
Cancellation reason. | ||
""" | ||
reason: String! | ||
} | ||
|
||
""" | ||
Contains the updated customer order and error message if any. | ||
""" | ||
type CancelOrderOutput { | ||
""" | ||
Error encountered while cancelling the order. | ||
""" | ||
error: String | ||
""" | ||
Updated customer order. | ||
""" | ||
order: CustomerOrder | ||
} | ||
|
||
type Mutation { | ||
""" | ||
Cancel the specified customer order. | ||
""" | ||
cancelOrder(input: CancelOrderInput!): CancelOrderOutput | ||
} |
Oops, something went wrong.