Skip to content

Commit 903e3ed

Browse files
committed
DOC-474: Last major revisions before review
1 parent b131f2a commit 903e3ed

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See COPYING.txt for license details.
33

44
type Mutation {
5-
addBundleProductsToCart(input: AddBundleProductsToCartInput): AddBundleProductsToCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart") @doc(description: "Add one or more bundle products to the specified cart. We recommend using `addProductsToCart` instead.")
5+
addBundleProductsToCart(input: AddBundleProductsToCartInput @doc(description: "An input object that defines which bundle products to add to the cart.")): AddBundleProductsToCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart") @doc(description: "Add one or more bundle products to the specified cart. We recommend using `addProductsToCart` instead.")
66
}
77

88
input AddBundleProductsToCartInput @doc(description: "Defines the bundle products to add to the cart.") {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
type Query {
55
products (
6-
search: String @doc(description: "One or more strings to use to perform a full-text search."),
6+
search: String @doc(description: "One or more keywords to use in a full-text search."),
77
filter: ProductAttributeFilterInput @doc(description: "The product attributes to search for and return."),
88
pageSize: Int = 20 @doc(description: "The maximum number of results to return at once. The default value is 20."),
99
currentPage: Int = 1 @doc(description: "The page of results to return. The default value is 1."),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# See COPYING.txt for license details.
33

44
interface ProductInterface {
5-
only_x_left_in_stock: Float @doc(description: "The value assigned to the Only X Left Threshold in the Admin.") @resolver(class: "Magento\\CatalogInventoryGraphQl\\Model\\Resolver\\OnlyXLeftInStockResolver")
6-
stock_status: ProductStockStatus @doc(description: "Stock status of the product.") @resolver(class: "Magento\\CatalogInventoryGraphQl\\Model\\Resolver\\StockStatusProvider")
5+
only_x_left_in_stock: Float @doc(description: "The value assigned to the Only X Left Threshold option in the Admin.") @resolver(class: "Magento\\CatalogInventoryGraphQl\\Model\\Resolver\\OnlyXLeftInStockResolver")
6+
stock_status: ProductStockStatus @doc(description: "The stock status of the product.") @resolver(class: "Magento\\CatalogInventoryGraphQl\\Model\\Resolver\\StockStatusProvider")
77
}
88

99
enum ProductStockStatus @doc(description: "States whether a product stock status is in stock or out of stock.") {

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Copyright © Magento, Inc. All rights reserved.
22
# See COPYING.txt for license details.
33
type Mutation {
4-
addConfigurableProductsToCart(input: AddConfigurableProductsToCartInput): AddConfigurableProductsToCartOutput @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\AddConfigurableProductsToCart") @doc(description: "Add one or more configurable products to the specified cart. We recommend using `addProductsToCart` instead.")
4+
addConfigurableProductsToCart(input: AddConfigurableProductsToCartInput @doc(description: "An input object that defines which configurable products to add to the cart.")): AddConfigurableProductsToCartOutput @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\AddConfigurableProductsToCart") @doc(description: "Add one or more configurable products to the specified cart. We recommend using `addProductsToCart` instead.")
55
}
66

77
type ConfigurableProduct implements ProductInterface, RoutableInterface, PhysicalProductInterface, CustomizableProductInterface @doc(description: "Defines basic features of a configurable product and its simple product variants.") {
88
variants: [ConfigurableVariant] @doc(description: "An array of simple product variants.") @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\ConfigurableVariant")
99
configurable_options: [ConfigurableProductOptions] @doc(description: "An array of options for the configurable product.") @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\Options")
10-
configurable_product_options_selection(configurableOptionValueUids: [ID!]): ConfigurableProductOptionsSelection @doc(description: "Contains media gallery items and other details about selected configurable product options as well as details about remaining selectable options.") @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\OptionsSelectionMetadata")
10+
configurable_product_options_selection(configurableOptionValueUids: [ID!]): ConfigurableProductOptionsSelection @doc(description: "An array of media gallery items and other details about selected configurable product options as well as details about remaining selectable options.") @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\OptionsSelectionMetadata")
1111
}
1212

13-
type ConfigurableVariant @doc(description: "An array containing all the simple product variants of a configurable product.") {
13+
type ConfigurableVariant @doc(description: "Contains all the simple product variants of a configurable product.") {
1414
attributes: [ConfigurableAttributeOption] @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\Variant\\Attributes") @doc(description: "An array of configurable attribute options.")
1515
product: SimpleProduct @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product") @doc(description: "An array of linked simple products.")
1616
}
@@ -19,7 +19,7 @@ type ConfigurableAttributeOption @doc(description: "Contains details about a con
1919
label: String @doc(description: "A string that describes the configurable attribute option.")
2020
code: String @doc(description: "The ID assigned to the attribute.")
2121
value_index: Int @doc(description: "A unique index number assigned to the configurable product option.")
22-
uid: ID! @doc(description: "The unique ID for a `ConfigurableAttributeOption` object") @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\Variant\\Attributes\\ConfigurableAttributeUid")
22+
uid: ID! @doc(description: "The unique ID for a `ConfigurableAttributeOption` object.") @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\Variant\\Attributes\\ConfigurableAttributeUid")
2323
}
2424

2525
type ConfigurableProductOptions @doc(description: "Defines configurable attributes for the specified product.") {
@@ -29,7 +29,7 @@ type ConfigurableProductOptions @doc(description: "Defines configurable attribut
2929
attribute_id_v2: Int @deprecated(reason: "Use `attribute_uid` instead.") @doc(description: "The ID assigned to the attribute.")
3030
attribute_uid: ID! @doc(description: "The unique ID for an `Attribute` object.")
3131
attribute_code: String @doc(description: "A string that identifies the attribute.")
32-
label: String @doc(description: "A string that describes the configurable product option, which is displayed on the storefront.")
32+
label: String @doc(description: "A displayed string that describes the configurable product option.")
3333
position: Int @doc(description: "A number that indicates the order in which the attribute is displayed.")
3434
use_default: Boolean @doc(description: "Indicates whether the option is the default.")
3535
values: [ConfigurableProductOptionsValues] @doc(description: "An array that defines the `value_index` codes assigned to the configurable product.")
@@ -70,7 +70,7 @@ type ConfigurableCartItem implements CartItemInterface @doc(description: "An imp
7070
type SelectedConfigurableOption @doc(description: "Contains details about a selected configurable option.") {
7171
id: Int! @deprecated(reason: "Use `SelectedConfigurableOption.configurable_product_option_uid` instead.")
7272
configurable_product_option_uid: ID! @doc(description: "The unique ID for a `ConfigurableProductOptions` object.")
73-
option_label: String! @doc(description: "")
73+
option_label: String! @doc(description: "The display text for the option.")
7474
value_id: Int! @deprecated(reason: "Use `SelectedConfigurableOption.configurable_product_option_value_uid` instead.")
7575
configurable_product_option_value_uid: ID! @doc(description: "The unique ID for a `ConfigurableProductOptionsValues` object.")
7676
value_label: String! @doc(description: "The display name of the selected configurable option.")
@@ -81,19 +81,19 @@ type ConfigurableWishlistItem implements WishlistItemInterface @doc(description:
8181
configurable_options: [SelectedConfigurableOption!] @resolver(class: "\\Magento\\ConfigurableProductGraphQl\\Model\\Wishlist\\ConfigurableOptions") @doc(description: "An array of selected configurable options.")
8282
}
8383

84-
type ConfigurableProductOptionsSelection @doc(description: "Contains metadata corresponding to the configurable options selection.") {
85-
options_available_for_selection: [ConfigurableOptionAvailableForSelection!] @doc(description: "Configurable options available for further selection based on the current selection.")
86-
configurable_options: [ConfigurableProductOption!] @doc(description: "Configurable options available for further selection based on the current selections.")
84+
type ConfigurableProductOptionsSelection @doc(description: "Contains metadata corresponding to the selected configurable options.") {
85+
options_available_for_selection: [ConfigurableOptionAvailableForSelection!] @doc(description: "The configurable options available for further selection based on the current selection.")
86+
configurable_options: [ConfigurableProductOption!] @doc(description: "An array of all possible configurable options.")
8787
media_gallery: [MediaGalleryInterface!] @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\SelectionMediaGallery") @doc(description: "Product images and videos corresponding to the specified configurable options selection.")
88-
variant: SimpleProduct @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\Variant\\Variant") @doc(description: "A variant represented by the specified configurable options selection. It is expected to be null, until selections are made for each configurable option.")
88+
variant: SimpleProduct @resolver(class: "Magento\\ConfigurableProductGraphQl\\Model\\Resolver\\Variant\\Variant") @doc(description: "A variant represented by the specified configurable options selection. The value is expected to be null until selections are made for each configurable option.")
8989
}
9090

9191
type ConfigurableOptionAvailableForSelection @doc(description: "Describes configurable options that have been selected and can be selected as a result of the previous selections.") {
92-
option_value_uids: [ID!]! @doc(description: "An array of IDs that can be selected.")
92+
option_value_uids: [ID!]! @doc(description: "An array of selectable option value IDs.")
9393
attribute_code: String! @doc(description: "An attribute code that uniquely identifies a configurable option.")
9494
}
9595

96-
type ConfigurableProductOption @doc(description: "Contains configurable options available for further selected, based on the current selections.") {
96+
type ConfigurableProductOption @doc(description: "Contains details about configurable product options.") {
9797
uid: ID! @doc(description: "The unique ID of the configurable option.")
9898
attribute_code: String! @doc(description: "An attribute code that uniquely identifies a configurable option.")
9999
label: String! @doc(description: "The display name of the option.")
@@ -108,5 +108,5 @@ type ConfigurableProductOptionValue @doc(description: "Defines a value for a con
108108
}
109109

110110
type StoreConfig {
111-
configurable_thumbnail_source : String @doc(description: "The configuration setting determines which thumbnail should be used in the cart for configurable products.")
111+
configurable_thumbnail_source : String @doc(description: "Indicates whether the `parent` or child (`itself`) thumbnail should be used in the cart for configurable products.")
112112
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See COPYING.txt for license details.
33

44
type Mutation {
5-
addDownloadableProductsToCart(input: AddDownloadableProductsToCartInput): AddDownloadableProductsToCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart") @doc(description: "Add one or more downloadable products to the specified cart. We recommend using `addProductsToCart` instead.")
5+
addDownloadableProductsToCart(input: AddDownloadableProductsToCartInput @doc(description: "An input object that defines which downloadable products to add to the cart.")): AddDownloadableProductsToCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart") @doc(description: "Add one or more downloadable products to the specified cart. We recommend using `addProductsToCart` instead.")
66
}
77

88
input AddDownloadableProductsToCartInput {
@@ -47,7 +47,7 @@ type DownloadableProductLinks @doc(description: "Defines characteristics of a do
4747
title: String @doc(description: "The display name of the link.")
4848
sort_order: Int @doc(description: "A number indicating the sort order.")
4949
price: Float @doc(description: "The price of the downloadable product.")
50-
sample_url: String @doc(description: "URL to the downloadable sample.")
50+
sample_url: String @doc(description: "The full URL to the downloadable sample.")
5151
is_shareable: Boolean @deprecated(reason: "This information should not be exposed on frontend.")
5252
number_of_downloads: Int @deprecated(reason: "This information should not be exposed on frontend.")
5353
link_type: DownloadableFileTypeEnum @deprecated(reason: "Use `sample_url` instead.")
@@ -60,7 +60,7 @@ type DownloadableProductSamples @doc(description: "Defines characteristics of a
6060
id: Int @deprecated(reason: "This information should not be exposed on frontend.")
6161
title: String @doc(description: "The display name of the sample.")
6262
sort_order: Int @doc(description: "A number indicating the sort order.")
63-
sample_url: String @doc(description: "URL to the downloadable sample.")
63+
sample_url: String @doc(description: "The full URL to the downloadable sample.")
6464
sample_type: DownloadableFileTypeEnum @deprecated(reason: "Use `sample_url` instead.")
6565
sample_file: String @deprecated(reason: "Use `sample_url` instead.")
6666
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See COPYING.txt for license details.
33

44
interface ProductInterface {
5-
related_products: [ProductInterface] @doc(description: "Related Products") @resolver(class: "Magento\\RelatedProductGraphQl\\Model\\Resolver\\Batch\\RelatedProducts")
6-
upsell_products: [ProductInterface] @doc(description: "Upsell Products") @resolver(class: "Magento\\RelatedProductGraphQl\\Model\\Resolver\\Batch\\UpSellProducts")
7-
crosssell_products: [ProductInterface] @doc(description: "Crosssell Products") @resolver(class: "Magento\\RelatedProductGraphQl\\Model\\Resolver\\Batch\\CrossSellProducts")
5+
related_products: [ProductInterface] @doc(description: "An array of products to be displayed in a Related Products block.") @resolver(class: "Magento\\RelatedProductGraphQl\\Model\\Resolver\\Batch\\RelatedProducts")
6+
upsell_products: [ProductInterface] @doc(description: "Upsell Products") @resolver(class: "Magento\\RelatedProductGraphQl\\Model\\Resolver\\Batch\\UpSellProducts") @doc(description: "An array of products to be displayed in a Upsell Products block.")
7+
crosssell_products: [ProductInterface] @doc(description: "Crosssell Products") @resolver(class: "Magento\\RelatedProductGraphQl\\Model\\Resolver\\Batch\\CrossSellProducts") @doc(description: "An array of products to be displayed in a Cross-sell Products block.")
88
}

0 commit comments

Comments
 (0)