Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add missing descriptions to product types (#13259)
FremahA9be026b45542
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1d4f37a4f9..b68ad1de1b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -90,6 +90,7 @@ All notable, unreleased changes to this project will be documented in this file.- Add `ACCOUNT_CHANGE_EMAIL_REQUESTED` async event - #13233 by @SzymJ- Add missing descriptions to Shop module. - #13295 by @Smit-Parmar- Add missing descriptions to Warehouse module. - #13264 by @Smit-Parmar+- Add missing descriptions to Product module. - #13259 by @FremahA# 3.14.0diff --git a/saleor/graphql/product/types/categories.py b/saleor/graphql/product/types/categories.pyindex 5ac4e2112b..ea993b9eb1 100644--- a/saleor/graphql/product/types/categories.py+++ b/saleor/graphql/product/types/categories.py@@ -45,14 +45,14 @@ from .products import ProductCountableConnection@federated_entity("id")class Category(ModelObjectType[models.Category]):- id = graphene.GlobalID(required=True)- seo_title = graphene.String()- seo_description = graphene.String()- name = graphene.String(required=True)+ id = graphene.GlobalID(required=True, description="The ID of the category.")+ seo_title = graphene.String(description="SEO title of category.")+ seo_description = graphene.String(description="SEO description of category.")+ name = graphene.String(required=True, description="Name of category")description = JSONString(description="Description of the category." + RICH_CONTENT)- slug = graphene.String(required=True)- parent = graphene.Field(lambda: Category)- level = graphene.Int(required=True)+ slug = graphene.String(required=True, description="Slug of the category.")+ parent = graphene.Field(lambda: Category, description="Parent category.")+ level = graphene.Int(required=True, description="Level of the category.")description_json = JSONString(description="Description of the category." + RICH_CONTENT,deprecation_reason=(@@ -87,7 +87,7 @@ class Category(ModelObjectType[models.Category]):lambda: CategoryCountableConnection,description="List of children of the category.",)- background_image = ThumbnailField()+ background_image = ThumbnailField(description="Background image of the category.")translation = TranslationField(CategoryTranslation, type_name="category")class Meta:diff --git a/saleor/graphql/product/types/channels.py b/saleor/graphql/product/types/channels.pyindex 6437d8b780..ecc3d728dd 100644--- a/saleor/graphql/product/types/channels.py+++ b/saleor/graphql/product/types/channels.py@@ -44,15 +44,18 @@ from ..dataloaders import (class Margin(BaseObjectType):- start = graphene.Int()- stop = graphene.Int()+ start = graphene.Int(description="The starting value of the margin.")+ stop = graphene.Int(description="The ending value of the margin.")class Meta:doc_category = DOC_CATEGORY_PRODUCTS+ description = "Metadata for the Margin class."class ProductChannelListing(ModelObjectType[models.ProductChannelListing]):- id = graphene.GlobalID(required=True)+ id = graphene.GlobalID(+ required=True, description="The ID of the product channel listing."+ )publication_date = Date(deprecation_reason=(f"{DEPRECATED_IN_3X_FIELD} "@@ -62,9 +65,19 @@ class ProductChannelListing(ModelObjectType[models.ProductChannelListing]):published_at = graphene.DateTime(description="The product publication date time." + ADDED_IN_33)- is_published = graphene.Boolean(required=True)- channel = graphene.Field(Channel, required=True)- visible_in_listings = graphene.Boolean(required=True)+ is_published = graphene.Boolean(+ required=True,+ description="Indicates if the product is published in the channel.",+ )+ channel = graphene.Field(+ Channel,+ required=True,+ description="The channel in which the product is listed.",+ )+ visible_in_listings = graphene.Boolean(+ required=True,+ description="Indicates product visibility in the channel listings.",+ )available_for_purchase = Date(deprecation_reason=(f"{DEPRECATED_IN_3X_FIELD} "@@ -330,9 +343,15 @@ class PreorderThreshold(BaseObjectType):class ProductVariantChannelListing(ModelObjectType[models.ProductVariantChannelListing]):- id = graphene.GlobalID(required=True)- channel = graphene.Field(Channel, required=True)- price = graphene.Field(Money)+ id = graphene.GlobalID(+ required=True, description="The ID of the variant channel listing."+ )+ channel = graphene.Field(+ Channel,+ required=True,+ description="The channel to which the variant listing belongs.",+ )+ price = graphene.Field(Money, description="The price of the variant.")cost_price = graphene.Field(Money, description="Cost price of the variant.")margin = PermissionsField(graphene.Int,@@ -369,7 +388,9 @@ class ProductVariantChannelListing(class CollectionChannelListing(ModelObjectType[models.CollectionChannelListing]):- id = graphene.GlobalID(required=True)+ id = graphene.GlobalID(+ required=True, description="The ID of the collection channel listing."+ )publication_date = Date(deprecation_reason=(f"{DEPRECATED_IN_3X_FIELD} "@@ -379,8 +400,15 @@ class CollectionChannelListing(ModelObjectType[models.CollectionChannelListing])published_at = graphene.DateTime(description="The collection publication date." + ADDED_IN_33)- is_published = graphene.Boolean(required=True)- channel = graphene.Field(Channel, required=True)+ is_published = graphene.Boolean(+ required=True,+ description="Indicates if the collection is published in the channel.",+ )+ channel = graphene.Field(+ Channel,+ required=True,+ description="The channel to which the collection belongs.",+ )class Meta:description = "Represents collection channel listing."diff --git a/saleor/graphql/product/types/collections.py b/saleor/graphql/product/types/collections.pyindex 13fa672a92..2001a86213 100644--- a/saleor/graphql/product/types/collections.py+++ b/saleor/graphql/product/types/collections.py@@ -46,14 +46,14 @@ from .products import ProductCountableConnection@federated_entity("id channel")class Collection(ChannelContextTypeWithMetadata[models.Collection]):- id = graphene.GlobalID(required=True)- seo_title = graphene.String()- seo_description = graphene.String()- name = graphene.String(required=True)+ id = graphene.GlobalID(required=True, description="The ID of the collection.")+ seo_title = graphene.String(description="SEO title of the collection.")+ seo_description = graphene.String(description="SEO description of the collection.")+ name = graphene.String(required=True, description="Name of the collection.")description = JSONString(description="Description of the collection." + RICH_CONTENT)- slug = graphene.String(required=True)+ slug = graphene.String(required=True, description="Slug of the collection.")channel = graphene.String(description=("Channel given to retrieve this collection. Also used by federation "@@ -77,7 +77,7 @@ class Collection(ChannelContextTypeWithMetadata[models.Collection]):sort_by=ProductOrder(description="Sort products."),description="List of products in this collection.",)- background_image = ThumbnailField()+ background_image = ThumbnailField(description="Background image of the collection.")translation = TranslationField(CollectionTranslation,type_name="collection",@@ -183,3 +183,4 @@ class CollectionCountableConnection(CountableConnection):class Meta:doc_category = DOC_CATEGORY_PRODUCTSnode = Collection+ description = "Represents a connection to a list of collections."diff --git a/saleor/graphql/product/types/digital_contents.py b/saleor/graphql/product/types/digital_contents.pyindex a923ecfe2d..5323fe6183 100644--- a/saleor/graphql/product/types/digital_contents.py+++ b/saleor/graphql/product/types/digital_contents.py@@ -13,16 +13,29 @@ from ..dataloaders import ProductVariantByIdLoaderclass DigitalContentUrl(ModelObjectType[models.DigitalContentUrl]):- id = graphene.GlobalID(required=True)- content = graphene.Field(lambda: DigitalContent, required=True)- created = graphene.DateTime(required=True)- download_num = graphene.Int(required=True)+ id = graphene.GlobalID(+ required=True, description="The ID of the digital content URL."+ )+ content = graphene.Field(+ lambda: DigitalContent,+ required=True,+ description="Digital content associated with the URL.",+ )+ created = graphene.DateTime(+ required=True,+ description="Date and time when the digital content URL was created.",+ )+ download_num = graphene.Int(+ required=True,+ description="Number of times digital content has been downloaded.",+ )url = graphene.String(description="URL for digital content.")token = graphene.Field(UUID, description="UUID of digital content.", required=True)class Meta:model = models.DigitalContentUrlinterfaces = (relay.Node,)+ description = "Represents a URL for digital content."@staticmethoddef resolve_created(root: models.DigitalContentUrl, _info):@@ -34,12 +47,24 @@ class DigitalContentUrl(ModelObjectType[models.DigitalContentUrl]):class DigitalContent(ModelObjectType[models.DigitalContent]):- id = graphene.GlobalID(required=True)- use_default_settings = graphene.Boolean(required=True)- automatic_fulfillment = graphene.Boolean(required=True)- content_file = graphene.String(required=True)- max_downloads = graphene.Int()- url_valid_days = graphene.Int()+ id = graphene.GlobalID(required=True, description="The ID of the digital content.")+ use_default_settings = graphene.Boolean(+ required=True,+ description="Default settings indicator for digital content.",+ )+ automatic_fulfillment = graphene.Boolean(+ required=True,+ description="Indicator for automatic fulfillment of digital content.",+ )+ content_file = graphene.String(+ required=True, description="File associated with digital content."+ )+ max_downloads = graphene.Int(+ description="Maximum number of allowed downloads for the digital content."+ )+ url_valid_days = graphene.Int(+ description="Number of days the URL for the digital content remains valid."+ )urls = NonNullList(lambda: DigitalContentUrl,description="List of URLs for the digital variant.",@@ -53,6 +78,7 @@ class DigitalContent(ModelObjectType[models.DigitalContent]):class Meta:model = models.DigitalContentinterfaces = (relay.Node, ObjectWithMetadata)+ description = "Represents digital content associated with a product variant."@staticmethoddef resolve_urls(root: models.DigitalContent, _info):@@ -71,3 +97,4 @@ class DigitalContentCountableConnection(CountableConnection):class Meta:doc_category = DOC_CATEGORY_PRODUCTSnode = DigitalContent+ description = "A connection to a list of digital content items."diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex 89db378103..b2adfe225d 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -173,6 +173,7 @@ class BasePricingInfo(BaseObjectType):class Meta:doc_category = DOC_CATEGORY_PRODUCTS+ description = "Represents base type for pricing information of a product."class VariantPricingInfo(BasePricingInfo):@@ -262,13 +263,25 @@ class PreorderData(BaseObjectType):@federated_entity("id channel")class ProductVariant(ChannelContextTypeWithMetadata[models.ProductVariant]):- id = graphene.GlobalID(required=True)- name = graphene.String(required=True)- sku = graphene.String()- product = graphene.Field(lambda: Product, required=True)- track_inventory = graphene.Boolean(required=True)- quantity_limit_per_customer = graphene.Int()- weight = graphene.Field(Weight)+ id = graphene.GlobalID(required=True, description="The ID of the product variant.")+ name = graphene.String(+ required=True, description="The name of the product variant."+ )+ sku = graphene.String(+ description="The SKU (stock keeping unit) of the product variant."+ )+ product = graphene.Field(+ lambda: Product,+ required=True,+ description="The product to which the variant belongs.",+ )+ track_inventory = graphene.Boolean(+ required=True, description="Whether the inventory of the variant is tracked."+ )+ quantity_limit_per_customer = graphene.Int(+ description="The maximum quantity of this variant that a customer can purchase."+ )+ weight = graphene.Field(Weight, description="The weight of the product variant.")channel = graphene.String(description=("Channel given to retrieve this product variant. Also used by federation "@@ -376,8 +389,14 @@ class ProductVariant(ChannelContextTypeWithMetadata[models.ProductVariant]):required=False,description=("Preorder data for product variant." + ADDED_IN_31),)- created = graphene.DateTime(required=True)- updated_at = graphene.DateTime(required=True)+ created = graphene.DateTime(+ required=True,+ description="The date and time when the product variant was created.",+ )+ updated_at = graphene.DateTime(+ required=True,+ description="The date and time when the product variant was last updated.",+ )external_reference = graphene.String(description=f"External ID of this product. {ADDED_IN_310}",required=False,@@ -806,16 +825,23 @@ class ProductVariantCountableConnection(CountableConnection):@federated_entity("id channel")class Product(ChannelContextTypeWithMetadata[models.Product]):- id = graphene.GlobalID(required=True)- seo_title = graphene.String()- seo_description = graphene.String()- name = graphene.String(required=True)+ id = graphene.GlobalID(required=True, description="The ID of the product.")+ seo_title = graphene.String(description="SEO title of the product.")+ seo_description = graphene.String(description="SEO description of the product.")+ name = graphene.String(required=True, description="SEO description of the product.")description = JSONString(description="Description of the product." + RICH_CONTENT)- product_type = graphene.Field(lambda: ProductType, required=True)- slug = graphene.String(required=True)+ product_type = graphene.Field(+ lambda: ProductType, required=True, description="Type of the product."+ )+ slug = graphene.String(required=True, description="Slug of the product.")category = graphene.Field("saleor.graphql.product.types.categories.Category")- created = graphene.DateTime(required=True)- updated_at = graphene.DateTime(required=True)+ created = graphene.DateTime(+ required=True, description="The date and time when the product was created."+ )+ updated_at = graphene.DateTime(+ required=True,+ description="The date and time when the product was last updated.",+ )charge_taxes = graphene.Boolean(required=True,deprecation_reason=(@@ -823,9 +849,11 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):"determine whether tax collection is enabled."),)- weight = graphene.Field(Weight)- default_variant = graphene.Field(ProductVariant)- rating = graphene.Float()+ weight = graphene.Field(Weight, description="Weight of the product.")+ default_variant = graphene.Field(+ ProductVariant, description="Default variant of the product."+ )+ rating = graphene.Float(description="Rating of the product.")channel = graphene.String(description=("Channel given to retrieve this product. Also used by federation "@@ -838,7 +866,7 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):f"{DEPRECATED_IN_3X_FIELD} Use the `description` field instead."),)- thumbnail = ThumbnailField()+ thumbnail = ThumbnailField(description="Thumbnail of the product.")pricing = graphene.Field(ProductPricingInfo,address=destination_address_argument,@@ -1551,13 +1579,19 @@ class ProductCountableConnection(CountableConnection):@federated_entity("id")class ProductType(ModelObjectType[models.ProductType]):- id = graphene.GlobalID(required=True)- name = graphene.String(required=True)- slug = graphene.String(required=True)- has_variants = graphene.Boolean(required=True)- is_shipping_required = graphene.Boolean(required=True)- is_digital = graphene.Boolean(required=True)- weight = graphene.Field(Weight)+ id = graphene.GlobalID(required=True, description="The ID of the product type.")+ name = graphene.String(required=True, description="Name of the product type.")+ slug = graphene.String(required=True, description="Slug of the product type.")+ has_variants = graphene.Boolean(+ required=True, description="Whether the product type has variants."+ )+ is_shipping_required = graphene.Boolean(+ required=True, description="Whether shipping is required for this product type."+ )+ is_digital = graphene.Boolean(+ required=True, description="Whether the product type is digital."+ )+ weight = graphene.Field(Weight, description="Weight of the product type.")kind = ProductTypeKindEnum(description="The product type kind.", required=True)products = ConnectionField(ProductCountableConnection,@@ -1755,12 +1789,16 @@ class ProductTypeCountableConnection(CountableConnection):@federated_entity("id")class ProductMedia(ModelObjectType[models.ProductMedia]):- id = graphene.GlobalID(required=True)- sort_order = graphene.Int()- alt = graphene.String(required=True)- type = ProductMediaType(required=True)- oembed_data = JSONString(required=True)- url = ThumbnailField(graphene.String, required=True)+ id = graphene.GlobalID(+ required=True, description="The unique ID of the product media."+ )+ sort_order = graphene.Int(description="The sort order of the media.")+ alt = graphene.String(required=True, description="The alt text of the media.")+ type = ProductMediaType(required=True, description="The type of the media.")+ oembed_data = JSONString(required=True, description="The oEmbed data of the media.")+ url = ThumbnailField(+ graphene.String, required=True, description="The URL of the media."+ )product_id = graphene.ID(description="Product id the media refers to." + ADDED_IN_312)@@ -1825,7 +1863,9 @@ class ProductImage(BaseObjectType):"backward, 0 leaves the item unchanged."),)- url = ThumbnailField(graphene.String, required=True)+ url = ThumbnailField(+ graphene.String, required=True, description="The URL of the image."+ )class Meta:doc_category = DOC_CATEGORY_PRODUCTSdiff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 2bacef8ab3..803c184be0 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -5335,6 +5335,7 @@ type ProductCountableEdge @doc(category: "Products") {"""Represents an individual item for sale in the storefront."""type Product implements Node & ObjectWithMetadata @doc(category: "Products") {+ """The ID of the product."""id: ID!"""List of private metadata items. Requires staff permissions to access."""@@ -5374,8 +5375,14 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {Added in Saleor 3.3."""metafields(keys: [String!]): Metadata++ """SEO title of the product."""seoTitle: String++ """SEO description of the product."""seoDescription: String++ """SEO description of the product."""name: String!"""@@ -5384,14 +5391,28 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {Rich text format. For reference see https://editorjs.io/"""description: JSONString++ """Type of the product."""productType: ProductType!++ """Slug of the product."""slug: String!category: Category++ """The date and time when the product was created."""created: DateTime!++ """The date and time when the product was last updated."""updatedAt: DateTime!chargeTaxes: Boolean! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Channel.taxConfiguration` field to determine whether tax collection is enabled.")++ """Weight of the product."""weight: Weight++ """Default variant of the product."""defaultVariant: ProductVariant++ """Rating of the product."""rating: Float"""@@ -5405,6 +5426,8 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {Rich text format. For reference see https://editorjs.io/"""descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")++ """Thumbnail of the product."""thumbnail("""Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).@@ -5546,6 +5569,7 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {Represents a type of product. It defines what attributes are available to products of this type."""type ProductType implements Node & ObjectWithMetadata @doc(category: "Products") {+ """The ID of the product type."""id: ID!"""List of private metadata items. Requires staff permissions to access."""@@ -5585,11 +5609,23 @@ type ProductType implements Node & ObjectWithMetadata @doc(category: "Products")Added in Saleor 3.3."""metafields(keys: [String!]): Metadata++ """Name of the product type."""name: String!++ """Slug of the product type."""slug: String!++ """Whether the product type has variants."""hasVariants: Boolean!++ """Whether shipping is required for this product type."""isShippingRequired: Boolean!++ """Whether the product type is digital."""isDigital: Boolean!++ """Weight of the product type."""weight: Weight"""The product type kind."""@@ -6307,6 +6343,7 @@ input MeasurementUnitsEnumFilterInput @doc(category: "Attributes") {Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront."""type Category implements Node & ObjectWithMetadata @doc(category: "Products") {+ """The ID of the category."""id: ID!"""List of private metadata items. Requires staff permissions to access."""@@ -6346,8 +6383,14 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") {Added in Saleor 3.3."""metafields(keys: [String!]): Metadata++ """SEO title of category."""seoTitle: String++ """SEO description of category."""seoDescription: String++ """Name of category"""name: String!"""@@ -6356,8 +6399,14 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") {Rich text format. For reference see https://editorjs.io/"""description: JSONString++ """Slug of the category."""slug: String!++ """Parent category."""parent: Category++ """Level of the category."""level: Int!"""@@ -6451,6 +6500,8 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") {"""last: Int): CategoryCountableConnection++ """Background image of the category."""backgroundImage("""Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).@@ -6870,6 +6921,7 @@ type CategoryTranslation implements Node @doc(category: "Products") {"""Represents a version of a product such as different size or color."""type ProductVariant implements Node & ObjectWithMetadata @doc(category: "Products") {+ """The ID of the product variant."""id: ID!"""List of private metadata items. Requires staff permissions to access."""@@ -6909,11 +6961,23 @@ type ProductVariant implements Node & ObjectWithMetadata @doc(category: "ProductAdded in Saleor 3.3."""metafields(keys: [String!]): Metadata++ """The name of the product variant."""name: String!++ """The SKU (stock keeping unit) of the product variant."""sku: String++ """The product to which the variant belongs."""product: Product!++ """Whether the inventory of the variant is tracked."""trackInventory: Boolean!++ """The maximum quantity of this variant that a customer can purchase."""quantityLimitPerCustomer: Int++ """The weight of the product variant."""weight: Weight"""@@ -7022,7 +7086,11 @@ type ProductVariant implements Node & ObjectWithMetadata @doc(category: "ProductAdded in Saleor 3.1."""preorder: PreorderData++ """The date and time when the product variant was created."""created: DateTime!++ """The date and time when the product variant was last updated."""updatedAt: DateTime!"""@@ -7035,8 +7103,13 @@ type ProductVariant implements Node & ObjectWithMetadata @doc(category: "Product"""Represents product variant channel listing."""type ProductVariantChannelListing implements Node @doc(category: "Products") {+ """The ID of the variant channel listing."""id: ID!++ """The channel to which the variant listing belongs."""channel: Channel!++ """The price of the variant."""price: Money"""Cost price of the variant."""@@ -7169,6 +7242,8 @@ type ProductImage @doc(category: "Products") {The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged."""sortOrder: Int++ """The URL of the image."""url("""Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).@@ -7186,6 +7261,7 @@ type ProductImage @doc(category: "Products") {"""Represents a product media."""type ProductMedia implements Node & ObjectWithMetadata @doc(category: "Products") {+ """The unique ID of the product media."""id: ID!"""@@ -7233,10 +7309,20 @@ type ProductMedia implements Node & ObjectWithMetadata @doc(category: "Products"Added in Saleor 3.12."""metafields(keys: [String!]): Metadata++ """The sort order of the media."""sortOrder: Int++ """The alt text of the media."""alt: String!++ """The type of the media."""type: ProductMediaType!++ """The oEmbed data of the media."""oembedData: JSONString!++ """The URL of the media."""url("""Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).@@ -7273,7 +7359,9 @@ type ProductVariantTranslation implements Node @doc(category: "Products") {name: String!}+"""Represents digital content associated with a product variant."""type DigitalContent implements Node & ObjectWithMetadata @doc(category: "Products") {+ """The ID of the digital content."""id: ID!"""List of private metadata items. Requires staff permissions to access."""@@ -7313,10 +7401,20 @@ type DigitalContent implements Node & ObjectWithMetadata @doc(category: "ProductAdded in Saleor 3.3."""metafields(keys: [String!]): Metadata++ """Default settings indicator for digital content."""useDefaultSettings: Boolean!++ """Indicator for automatic fulfillment of digital content."""automaticFulfillment: Boolean!++ """File associated with digital content."""contentFile: String!++ """Maximum number of allowed downloads for the digital content."""maxDownloads: Int++ """Number of days the URL for the digital content remains valid."""urlValidDays: Int"""List of URLs for the digital variant."""@@ -7326,10 +7424,18 @@ type DigitalContent implements Node & ObjectWithMetadata @doc(category: "ProductproductVariant: ProductVariant!}+"""Represents a URL for digital content."""type DigitalContentUrl implements Node @doc(category: "Products") {+ """The ID of the digital content URL."""id: ID!++ """Digital content associated with the URL."""content: DigitalContent!++ """Date and time when the digital content URL was created."""created: DateTime!++ """Number of times digital content has been downloaded."""downloadNum: Int!"""URL for digital content."""@@ -7435,6 +7541,7 @@ type TaxedMoneyRange {"""Represents product channel listing."""type ProductChannelListing implements Node @doc(category: "Products") {+ """The ID of the product channel listing."""id: ID!publicationDate: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date.")@@ -7444,8 +7551,14 @@ type ProductChannelListing implements Node @doc(category: "Products") {Added in Saleor 3.3."""publishedAt: DateTime++ """Indicates if the product is published in the channel."""isPublished: Boolean!++ """The channel in which the product is listed."""channel: Channel!++ """Indicates product visibility in the channel listings."""visibleInListings: Boolean!availableForPurchase: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date.")@@ -7489,8 +7602,12 @@ type ProductChannelListing implements Node @doc(category: "Products") {): ProductPricingInfo}+"""Metadata for the Margin class."""type Margin @doc(category: "Products") {+ """The starting value of the margin."""start: Int++ """The ending value of the margin."""stop: Int}@@ -7509,6 +7626,7 @@ enum MediaChoicesSortField @doc(category: "Products") {"""Represents a collection of products."""type Collection implements Node & ObjectWithMetadata @doc(category: "Products") {+ """The ID of the collection."""id: ID!"""List of private metadata items. Requires staff permissions to access."""@@ -7548,8 +7666,14 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products")Added in Saleor 3.3."""metafields(keys: [String!]): Metadata++ """SEO title of the collection."""seoTitle: String++ """SEO description of the collection."""seoDescription: String++ """Name of the collection."""name: String!"""@@ -7558,6 +7682,8 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products")Rich text format. For reference see https://editorjs.io/"""description: JSONString++ """Slug of the collection."""slug: String!"""@@ -7605,6 +7731,8 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products")"""last: Int): ProductCountableConnection++ """Background image of the collection."""backgroundImage("""Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).@@ -7659,6 +7787,7 @@ type CollectionTranslation implements Node @doc(category: "Products") {"""Represents collection channel listing."""type CollectionChannelListing implements Node @doc(category: "Products") {+ """The ID of the collection channel listing."""id: ID!publicationDate: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date.")@@ -7668,7 +7797,11 @@ type CollectionChannelListing implements Node @doc(category: "Products") {Added in Saleor 3.3."""publishedAt: DateTime++ """Indicates if the collection is published in the channel."""isPublished: Boolean!++ """The channel to which the collection belongs."""channel: Channel!}@@ -8350,6 +8483,7 @@ enum SaleType @doc(category: "Discounts") {PERCENTAGE}+"""Represents a connection to a list of collections."""type CollectionCountableConnection @doc(category: "Products") {"""Pagination data for this connection."""pageInfo: PageInfo!@@ -11926,6 +12060,7 @@ input ShippingZoneFilterInput @doc(category: "Shipping") {channels: [ID!]}+"""A connection to a list of digital content items."""type DigitalContentCountableConnection @doc(category: "Products") {"""Pagination data for this connection."""pageInfo: PageInfo!