Skip to content

Commit a2385d2

Browse files
🔃 [Magento Community Engineering] Community Contributions - GraphQL
Accepted Public Pull Requests: - magento/graphql-ce#707: Tidied spelling/grammar for GraphQL documentation (by @chickenland) - magento/graphql-ce#696: 678 Add Tests Email Sender empty send product wich not visible in catalog (by @osrecio) - magento/graphql-ce#694: 574 - Unskip tests Cart testApplyExpiredCoupon (by @osrecio) - magento/graphql-ce#695: 686 Remove extra quoation and change to 'must' Error messages (by @osrecio) Fixed GitHub Issues: - #574: Maximum function nesting level of '100' reached (reported by @steadweb) has been fixed in magento/graphql-ce#694 by @osrecio in 2.3-develop branch Related commits: 1. 55ad3d0 - #686: Product save validation errors in the admin don't hide the overlay (reported by @tzyganu) has been fixed in magento/graphql-ce#695 by @osrecio in 2.3-develop branch Related commits: 1. 898d032
2 parents c2e834d + fc0ca19 commit a2385d2

File tree

9 files changed

+492
-429
lines changed

9 files changed

+492
-429
lines changed

app/code/Magento/BundleGraphQl/etc/schema.graphqls

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
# Copyright © Magento, Inc. All rights reserved.
22
# See COPYING.txt for license details.
33

4-
type BundleItem @doc(description: "BundleItem defines an individual item in a bundle product") {
5-
option_id: Int @doc(description: "An ID assigned to each type of item in a bundle product")
6-
title: String @doc(description: "The display name of the item")
7-
required: Boolean @doc(description: "Indicates whether the item must be included in the bundle")
8-
type: String @doc(description: "The input type that the customer uses to select the item. Examples include radio button and checkbox")
9-
position: Int @doc(description: "he relative position of this item compared to the other bundle items")
10-
sku: String @doc(description: "The SKU of the bundle product")
11-
options: [BundleItemOption] @doc(description: "An array of additional options for this bundle item") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItemLinks")
4+
type BundleItem @doc(description: "BundleItem defines an individual item in a bundle product.") {
5+
option_id: Int @doc(description: "An ID assigned to each type of item in a bundle product.")
6+
title: String @doc(description: "The display name of the item.")
7+
required: Boolean @doc(description: "Indicates whether the item must be included in the bundle.")
8+
type: String @doc(description: "The input type that the customer uses to select the item. Examples include radio button and checkbox.")
9+
position: Int @doc(description: "he relative position of this item compared to the other bundle items.")
10+
sku: String @doc(description: "The SKU of the bundle product.")
11+
options: [BundleItemOption] @doc(description: "An array of additional options for this bundle item.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItemLinks")
1212
}
1313

14-
type BundleItemOption @doc(description: "BundleItemOption defines characteristics and options for a specific bundle item") {
15-
id: Int @doc(description: "The ID assigned to the bundled item option")
16-
label: String @doc(description: "The text that identifies the bundled item option") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Options\\Label")
17-
qty: Float @doc(description: "Indicates the quantity of this specific bundle item")
18-
position: Int @doc(description: "When a bundle item contains multiple options, the relative position of this option compared to the other options")
19-
is_default: Boolean @doc(description: "Indicates whether this option is the default option")
20-
price: Float @doc(description: "The price of the selected option")
21-
price_type: PriceTypeEnum @doc(description: "One of FIXED, PERCENT, or DYNAMIC")
22-
can_change_quantity: Boolean @doc(description: "Indicates whether the customer can change the number of items for this option")
23-
product: ProductInterface @doc(description: "Contains details about this product option") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product")
14+
type BundleItemOption @doc(description: "BundleItemOption defines characteristics and options for a specific bundle item.") {
15+
id: Int @doc(description: "The ID assigned to the bundled item option.")
16+
label: String @doc(description: "The text that identifies the bundled item option.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Options\\Label")
17+
qty: Float @doc(description: "Indicates the quantity of this specific bundle item.")
18+
position: Int @doc(description: "When a bundle item contains multiple options, the relative position of this option compared to the other options.")
19+
is_default: Boolean @doc(description: "Indicates whether this option is the default option.")
20+
price: Float @doc(description: "The price of the selected option.")
21+
price_type: PriceTypeEnum @doc(description: "One of FIXED, PERCENT, or DYNAMIC.")
22+
can_change_quantity: Boolean @doc(description: "Indicates whether the customer can change the number of items for this option.")
23+
product: ProductInterface @doc(description: "Contains details about this product option.") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product")
2424
}
2525

26-
type BundleProduct implements ProductInterface, PhysicalProductInterface, CustomizableProductInterface @doc(description: "BundleProduct defines basic features of a bundle product and contains multiple BundleItems") {
27-
price_view: PriceViewEnum @doc(description: "One of PRICE_RANGE or AS_LOW_AS") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\PriceView")
28-
dynamic_price: Boolean @doc(description: "Indicates whether the bundle product has a dynamic price") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicPrice")
29-
dynamic_sku: Boolean @doc(description: "Indicates whether the bundle product has a dynamic SK") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicSku")
30-
ship_bundle_items: ShipBundleItemsEnum @doc(description: "Indicates whether to ship bundle items together or individually") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\ShipBundleItems")
31-
dynamic_weight: Boolean @doc(description: "Indicates whether the bundle product has a dynamically calculated weight") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicWeight")
32-
items: [BundleItem] @doc(description: "An array containing information about individual bundle items") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItems")
26+
type BundleProduct implements ProductInterface, PhysicalProductInterface, CustomizableProductInterface @doc(description: "BundleProduct defines basic features of a bundle product and contains multiple BundleItems.") {
27+
price_view: PriceViewEnum @doc(description: "One of PRICE_RANGE or AS_LOW_AS.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\PriceView")
28+
dynamic_price: Boolean @doc(description: "Indicates whether the bundle product has a dynamic price.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicPrice")
29+
dynamic_sku: Boolean @doc(description: "Indicates whether the bundle product has a dynamic SK.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicSku")
30+
ship_bundle_items: ShipBundleItemsEnum @doc(description: "Indicates whether to ship bundle items together or individually.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\ShipBundleItems")
31+
dynamic_weight: Boolean @doc(description: "Indicates whether the bundle product has a dynamically calculated weight.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicWeight")
32+
items: [BundleItem] @doc(description: "An array containing information about individual bundle items.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItems")
3333
}
3434

3535
enum PriceViewEnum @doc(description: "This enumeration defines whether a bundle product's price is displayed as the lowest possible value or as a range.") {

0 commit comments

Comments
 (0)