Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fifty-cycles-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/magento-graphql": patch
---

Schema defintions for 246,247 and 248
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type AvailablePaymentMethod {
"""
If the payment method is an online integration
"""
is_deferred: Boolean! @deprecated(reason: "Magento >= 2.4.6")
}
39 changes: 39 additions & 0 deletions packages/magento-graphql/schema-246/CartAddress.graphqls
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
type BillingCartAddress {
"""
The unique id of the customer address.
"""
uid: String! @deprecated(reason: "Magento >= 2.4.6")
"""
The VAT company number for billing or shipping address.
"""
vat_id: String @deprecated(reason: "Magento >= 2.4.6")
}

input CartAddressInput {
"""
The VAT company number for billing or shipping address.
"""
vat_id: String @deprecated(reason: "Magento >= 2.4.6")
}

interface CartAddressInterface {
"""
The unique id of the customer address.
"""
uid: String! @deprecated(reason: "Magento >= 2.4.6")
"""
The VAT company number for billing or shipping address.
"""
vat_id: String @deprecated(reason: "Magento >= 2.4.6")
}

type ShippingCartAddress {
"""
The unique id of the customer address.
"""
uid: String! @deprecated(reason: "Magento >= 2.4.6")
"""
The VAT company number for billing or shipping address.
"""
vat_id: String @deprecated(reason: "Magento >= 2.4.6")
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,40 +1,61 @@
enum ScopeTypeEnum {
GLOBAL
WEBSITE
STORE
}

input CustomerOrderSortInput {
sort_direction: SortEnum!
sort_field: CustomerOrderSortableField!
}

enum CustomerOrderSortableField {
NUMBER
CREATED_AT
}

extend type Customer {
type Customer {
orders(
"""
Defines the filter to use for searching customer orders.
"""
filter: CustomerOrdersFilterInput
"""
Specifies which page of results to return. The default value is 1.
"""
currentPage: Int = 1
"""
Specifies the maximum number of results to return at once. The default value is 20.
Defines the filter to use for searching customer orders.
"""
pageSize: Int = 20
filter: CustomerOrdersFilterInput
"""
Specifies which field to sort on, and whether to return the results in ascending or descending order.
Specifies the maximum number of results to return at once. The default value is 20.
"""
sort: CustomerOrderSortInput
pageSize: Int = 20
"""
Specifies the scope to search for customer orders. The Store request header identifies the customer's store view code. The default value of STORE limits the search to the value specified in the header. Specify WEBSITE to expand the search to include all customer orders assigned to the website that is defined in the header, or specify GLOBAL to include all customer orders across all websites and stores.
"""
scope: ScopeTypeEnum
"""
Specifies which field to sort on, and whether to return the results in ascending or descending order.
"""
sort: CustomerOrderSortInput
): CustomerOrders
}

"""
This enumeration defines the scope type for customer orders.
"""
enum ScopeTypeEnum {
GLOBAL @deprecated
STORE @deprecated
WEBSITE @deprecated
}

"""
CustomerOrderSortInput specifies the field to use for sorting search results and indicates whether the results are sorted in ascending or descending order.
"""
input CustomerOrderSortInput {
"""
This enumeration indicates whether to return results in ascending or descending order
"""
sort_direction: SortEnum!
"""
Specifies the field to use for sorting
"""
sort_field: CustomerOrderSortableField!
}

"""
Specifies the field to use for sorting
"""
enum CustomerOrderSortableField {
"""
Sorts customer orders by created_at field
"""
CREATED_AT @deprecated
"""
Sorts customer orders by number
"""
NUMBER @deprecated
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
interface OrderItemInterface {
type BundleOrderItem {
"""
The selected gift message for the order item
"""
gift_message: GiftMessage @deprecated(reason: "Magento >= 2.4.6")
}

type OrderItem {
type DownloadableOrderItem {
"""
The selected gift message for the order item
"""
gift_message: GiftMessage @deprecated(reason: "Magento >= 2.4.6")
}

type BundleOrderItem {
type OrderItem {
"""
The selected gift message for the order item
"""
gift_message: GiftMessage @deprecated(reason: "Magento >= 2.4.6")
}

type DownloadableOrderItem {
interface OrderItemInterface {
"""
The selected gift message for the order item
"""
Expand Down

This file was deleted.

10 changes: 10 additions & 0 deletions packages/magento-graphql/schema-246/Totals.graphqls
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
type SelectedShippingMethod {
"""
The cost of shipping using this shipping method, excluding tax.
"""
price_excl_tax: Money! @deprecated(reason: "Magento >= 2.4.6")
"""
The cost of shipping using this shipping method, including tax.
"""
price_incl_tax: Money! @deprecated(reason: "Magento >= 2.4.6")
}
48 changes: 48 additions & 0 deletions packages/magento-graphql/schema-247/AttributeValueInput.graphqls
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
input CustomerAddressInput {
"""
Custom attributes assigned to the customer address.
"""
custom_attributesV2: [AttributeValueInput] @deprecated(reason: "Magento >= 2.4.7")
}

"""
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] @deprecated(reason: "Magento >= 2.4.7")
}

input CustomerUpdateInput {
"""
The customer's custom attributes.
"""
custom_attributes: [AttributeValueInput] @deprecated(reason: "Magento >= 2.4.7")
}
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
type CartItems {
"""
An array of products that have been added to the cart.
"""
items: [CartItemInterface]!
type Cart {
itemsV2(currentPage: Int = 1, pageSize: Int = 20, sort: QuoteItemsSortInput): CartItems
@deprecated(reason: "Magento >= 2.4.7")
}

"""
Specifies the field to use for sorting quote items
"""
input QuoteItemsSortInput {
"""
Metadata for pagination rendering.
Specifies the quote items field to sort by
"""
page_info: SearchResultPageInfo
field: SortQuoteItemsEnum!
"""
The number of returned cart items.
Specifies the order of quote items' sorting
"""
total_count: Int!
order: SortEnum!
}

"""
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_DISCOUNT_AMOUNT
BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT
BASE_PRICE
BASE_PRICE_INC_TAX
BASE_ROW_TOTAL
BASE_ROW_TOTAL_INC_TAX
BASE_TAX_AMOUNT
BASE_TAX_BEFORE_DISCOUNT
CREATED_AT
CUSTOM_PRICE
DISCOUNT_PERCENT
DESCRIPTION
DISCOUNT_AMOUNT
BASE_DISCOUNT_AMOUNT
TAX_PERCENT
TAX_AMOUNT
BASE_TAX_AMOUNT
DISCOUNT_PERCENT
DISCOUNT_TAX_COMPENSATION_AMOUNT
FREE_SHIPPING
ITEM_ID
NAME
ORIGINAL_CUSTOM_PRICE
PRICE
PRICE_INC_TAX
PRODUCT_ID
PRODUCT_TYPE
QTY
ROW_TOTAL
BASE_ROW_TOTAL
ROW_TOTAL_INC_TAX
ROW_TOTAL_WITH_DISCOUNT
ROW_WEIGHT
PRODUCT_TYPE
BASE_TAX_BEFORE_DISCOUNT
SKU
TAX_AMOUNT
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
TAX_PERCENT
UPDATED_AT
WEIGHT
}

"""
Specifies the field to use for sorting quote items
"""
input QuoteItemsSortInput {
type CartItems {
"""
Specifies the quote items field to sort by
An array of products that have been added to the cart.
"""
field: SortQuoteItemsEnum!
items: [CartItemInterface]!
"""
Specifies the order of quote items' sorting
Metadata for pagination rendering.
"""
order: SortEnum!
}

type Cart {
itemsV2(pageSize: Int = 20, currentPage: Int = 1, sort: QuoteItemsSortInput): CartItems
@deprecated(reason: "Magento >= 2.4.7")
page_info: SearchResultPageInfo
"""
The number of returned cart items.
"""
total_count: Int!
}
Loading
Loading