Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Added description for shop types. (#13295)

Smit Parmar89ab5e4f453b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6923933b31..60eead7435 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -87,6 +87,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Add `ACCOUNT_CONFIRMATION_REQUESTED` async event - #13162 by @SzymJ
- Add `ACCOUNT_DELETE_REQUESTED` async event - #13170 by @SzymJ
- 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
# 3.14.0
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 38b29e3049..2bacef8ab3 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -9203,6 +9203,7 @@ type GatewayConfigLine @doc(category: "Payments") {
value: String
}
+"""External authentication plugin."""
type ExternalAuthentication @doc(category: "Authentication") {
"""ID of external authentication plugin."""
id: String!
@@ -11863,6 +11864,7 @@ type PaymentSource @doc(category: "Payments") {
metadata: [MetadataItem!]!
}
+"""Store the current and allowed usage."""
type LimitInfo {
"""Defines the current resource usage."""
currentUsage: Limits!
@@ -11872,10 +11874,19 @@ type LimitInfo {
}
type Limits {
+ """Defines the number of channels."""
channels: Int
+
+ """Defines the number of order."""
orders: Int
+
+ """Defines the number of product variants."""
productVariants: Int
+
+ """Defines the number of staff users."""
staffUsers: Int
+
+ """Defines the number of warehouses."""
warehouses: Int
}
diff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.py
index dbd811c3db..6daa7e89a1 100644
--- a/saleor/graphql/shop/types.py
+++ b/saleor/graphql/shop/types.py
@@ -103,15 +103,18 @@ class ExternalAuthentication(BaseObjectType):
name = graphene.String(description="Name of external authentication plugin.")
class Meta:
+ description = "External authentication plugin."
doc_category = DOC_CATEGORY_AUTH
class Limits(graphene.ObjectType):
- channels = graphene.Int()
- orders = graphene.Int()
- product_variants = graphene.Int()
- staff_users = graphene.Int()
- warehouses = graphene.Int()
+ channels = graphene.Int(description="Defines the number of channels.")
+ orders = graphene.Int(description="Defines the number of order.")
+ product_variants = graphene.Int(
+ description="Defines the number of product variants."
+ )
+ staff_users = graphene.Int(description="Defines the number of staff users.")
+ warehouses = graphene.Int(description="Defines the number of warehouses.")
class LimitInfo(graphene.ObjectType):
@@ -126,6 +129,9 @@ class LimitInfo(graphene.ObjectType):
description="Defines the allowed maximum resource usage, null means unlimited.",
)
+ class Meta:
+ description = "Store the current and allowed usage."
+
class Shop(graphene.ObjectType):
available_payment_gateways = NonNullList(