![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-swatches-graph-ql/etc/ |
# Copyright © Magento, Inc. All rights reserved. # See COPYING.txt for license details. interface ProductInterface { swatch_image: String @doc(description: "The file name of a swatch image.") } input ProductFilterInput { swatch_image: FilterTypeInput @doc(description: "The file name of a swatch image.") } input ProductSortInput { swatch_image: SortEnum @doc(description: "Indicates the criteria to sort swatches.") } interface SwatchLayerFilterItemInterface @typeResolver(class: "Magento\\SwatchesGraphQl\\Model\\Resolver\\SwatchLayerFilterItemResolver") { swatch_data: SwatchData @doc(description: "Data required to render a swatch filter item.") } type SwatchLayerFilterItem implements LayerFilterItemInterface, SwatchLayerFilterItemInterface { } type SwatchData @doc(description: "Describes the swatch type and a value.") { type: String @doc(description: "The type of swatch filter item: 1 - text; 2 - image.") value: String @doc(description: "The value for the swatch item. It could be text or an image link.") } type ConfigurableProductOptionsValues { swatch_data: SwatchDataInterface @doc(description: "Swatch data for a configurable product option.") @resolver(class: "Magento\\SwatchesGraphQl\\Model\\Resolver\\Product\\Options\\SwatchData") } interface SwatchDataInterface @typeResolver(class: "Magento\\SwatchesGraphQl\\Model\\Resolver\\Product\\Options\\SwatchDataTypeResolver") { value: String @doc(description: "The value can be represented as color (HEX code), image link, or text.") } type ImageSwatchData implements SwatchDataInterface { thumbnail: String @doc(description: "The URL assigned to the thumbnail of the swatch image.") } type TextSwatchData implements SwatchDataInterface { } type ColorSwatchData implements SwatchDataInterface { } type ConfigurableProductOptionValue { swatch: SwatchDataInterface @resolver(class: "Magento\\SwatchesGraphQl\\Model\\Resolver\\Product\\Options\\SwatchData") @doc(description: "The URL assigned to the thumbnail of the swatch image.") }