Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Added missing description in webhook types. (#13262)
Smit Parmar0927867b8a7f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7a31c2ab88..65ad283f4d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -89,6 +89,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 Webhook module - #13262 by @Smit-Parmar- 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 @FremahAdiff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 737ee57f14..20b5ef7c09 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -1630,7 +1630,10 @@ type Query {"""Webhook."""type Webhook implements Node @doc(category: "Webhooks") {+ """The ID of webhook."""id: ID!++ """The name of webhook."""name: String"""List of webhook events."""@@ -1641,6 +1644,8 @@ type Webhook implements Node @doc(category: "Webhooks") {"""List of asynchronous webhook events."""asyncEvents: [WebhookEventAsync!]!++ """The app associated with Webhook."""app: App!"""Event deliveries."""@@ -3205,7 +3210,10 @@ type EventDeliveryCountableEdge {"""Event delivery."""type EventDelivery implements Node {+ """The ID of an event delivery."""id: ID!++ """Creation time of an event delivery."""createdAt: DateTime!"""Event delivery status."""@@ -3265,6 +3273,7 @@ type EventDeliveryAttemptCountableEdge {"""Event delivery attempts."""type EventDeliveryAttempt implements Node @doc(category: "Webhooks") {+ """The ID of Event Delivery Attempt."""id: ID!"""Event delivery creation date and time."""diff --git a/saleor/graphql/webhook/types.py b/saleor/graphql/webhook/types.pyindex a14ba7b250..77e4c0a655 100644--- a/saleor/graphql/webhook/types.py+++ b/saleor/graphql/webhook/types.py@@ -75,7 +75,9 @@ class WebhookEventSync(ModelObjectType[models.WebhookEvent]):class EventDeliveryAttempt(ModelObjectType[core_models.EventDeliveryAttempt]):- id = graphene.GlobalID(required=True)+ id = graphene.GlobalID(+ required=True, description="The ID of Event Delivery Attempt."+ )created_at = graphene.DateTime(description="Event delivery creation date and time.", required=True)@@ -107,8 +109,10 @@ class EventDeliveryAttemptCountableConnection(CountableConnection):class EventDelivery(ModelObjectType[core_models.EventDelivery]):- id = graphene.GlobalID(required=True)- created_at = graphene.DateTime(required=True)+ id = graphene.GlobalID(required=True, description="The ID of an event delivery.")+ created_at = graphene.DateTime(+ required=True, description="Creation time of an event delivery."+ )status = EventDeliveryStatusEnum(description="Event delivery status.", required=True)@@ -146,8 +150,8 @@ class EventDeliveryCountableConnection(CountableConnection):class Webhook(ModelObjectType[models.Webhook]):- id = graphene.GlobalID(required=True)- name = graphene.String(required=False)+ id = graphene.GlobalID(required=True, description="The ID of webhook.")+ name = graphene.String(required=False, description="The name of webhook.")events = NonNullList(WebhookEvent,description="List of webhook events.",@@ -166,7 +170,11 @@ class Webhook(ModelObjectType[models.Webhook]):description="List of asynchronous webhook events.",required=True,)- app = graphene.Field("saleor.graphql.app.types.App", required=True)+ app = graphene.Field(+ "saleor.graphql.app.types.App",+ required=True,+ description="The app associated with Webhook.",+ )event_deliveries = FilterConnectionField(EventDeliveryCountableConnection,sort_by=EventDeliverySortingInput(description="Event delivery sorter."),