| Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-downloadable-graph-ql/etc/ |
| Current File : /var/www/clients/client3/web2/web/vendor/magento/module-downloadable-graph-ql/etc/schema.graphqls |
# Copyright © Magento, Inc. All rights reserved.
# See COPYING.txt for license details.
type Mutation {
addDownloadableProductsToCart(input: AddDownloadableProductsToCartInput): AddDownloadableProductsToCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart")
}
input AddDownloadableProductsToCartInput {
cart_id: String!
cart_items: [DownloadableProductCartItemInput!]!
}
input DownloadableProductCartItemInput {
data: CartItemInput!
downloadable_product_links: [DownloadableProductLinksInput!]
customizable_options:[CustomizableOptionInput!]
}
input DownloadableProductLinksInput {
link_id: Int!
}
type AddDownloadableProductsToCartOutput {
cart: Cart!
}
type DownloadableCartItem implements CartItemInterface @doc(description: "Downloadable Cart Item") {
customizable_options: [SelectedCustomizableOption]! @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")
links: [DownloadableProductLinks] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\DownloadableCartItem\\Links") @doc(description: "An array containing information about the links for the added to cart downloadable product")
samples: [DownloadableProductSamples] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\DownloadableCartItem\\Samples") @doc(description: "DownloadableProductSamples defines characteristics of a downloadable product")
}
type DownloadableProduct implements ProductInterface, RoutableInterface, CustomizableProductInterface @doc(description: "DownloadableProduct defines a product that the shopper downloads") {
downloadable_product_samples: [DownloadableProductSamples] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Samples") @doc(description: "An array containing information about samples of this downloadable product.")
downloadable_product_links: [DownloadableProductLinks] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Links") @doc(description: "An array containing information about the links for this downloadable product")
links_purchased_separately: Int @doc(description: "A value of 1 indicates that each link in the array must be purchased separately")
links_title: String @doc(description: "The heading above the list of downloadable products")
}
enum DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample") {
FILE @deprecated(reason: "`sample_url` serves to get the downloadable sample")
URL @deprecated(reason: "`sample_url` serves to get the downloadable sample")
}
type DownloadableProductLinks @doc(description: "DownloadableProductLinks defines characteristics of a downloadable product") {
id: Int @deprecated(reason: "This information should not be exposed on frontend")
title: String @doc(description: "The display name of the link")
sort_order: Int @doc(description: "A number indicating the sort order")
price: Float @doc(description: "The price of the downloadable product")
sample_url: String @doc(description: "URL to the downloadable sample")
is_shareable: Boolean @deprecated(reason: "This information should not be exposed on frontend")
number_of_downloads: Int @deprecated(reason: "This information should not be exposed on frontend")
link_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
sample_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
sample_file: String @deprecated(reason: "`sample_url` serves to get the downloadable sample")
uid: ID! @doc(description: "The unique ID for a `DownloadableProductLinks` object.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\DownloadableLinksValueUid")
}
type DownloadableProductSamples @doc(description: "DownloadableProductSamples defines characteristics of a downloadable product") {
id: Int @deprecated(reason: "This information should not be exposed on frontend")
title: String @doc(description: "The display name of the sample")
sort_order: Int @doc(description: "A number indicating the sort order")
sample_url: String @doc(description: "URL to the downloadable sample")
sample_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
sample_file: String @deprecated(reason: "`sample_url` serves to get the downloadable sample")
}
type DownloadableOrderItem implements OrderItemInterface {
downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are ordered from the downloadable product") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
}
type DownloadableInvoiceItem implements InvoiceItemInterface {
downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are invoiced from the downloadable product") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
}
type DownloadableCreditMemoItem implements CreditMemoItemInterface {
downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are refunded from the downloadable product") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
}
type DownloadableItemsLinks @doc(description: "DownloadableProductLinks defines characteristics of a downloadable product") {
title: String @doc(description: "The display name of the link")
sort_order: Int @doc(description: "A number indicating the sort order")
uid: ID! @doc(description: "The unique ID for a `DownloadableItemsLinks` object.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\DownloadableLinksValueUid")
}
type DownloadableWishlistItem implements WishlistItemInterface @doc(description: "A downloadable product wish list item") {
links_v2: [DownloadableProductLinks] @doc(description: "An array containing information about the selected links") @resolver(class: "\\Magento\\DownloadableGraphQl\\Model\\Wishlist\\ItemLinks")
samples: [DownloadableProductSamples] @doc(description: "An array containing information about the selected samples") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Samples")
}