Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix webhook descriptions (#13791)
Marcin Gębalae9761f46f960
diff --git a/saleor/graphql/account/mutations/account/account_request_deletion.py b/saleor/graphql/account/mutations/account/account_request_deletion.pyindex 810320472e..c8e068b508 100644--- a/saleor/graphql/account/mutations/account/account_request_deletion.py+++ b/saleor/graphql/account/mutations/account/account_request_deletion.py@@ -46,7 +46,11 @@ class AccountRequestDeletion(BaseMutation):WebhookEventInfo(type=WebhookEventAsyncType.NOTIFY_USER,description="A notification for account delete request.",- )+ ),+ WebhookEventInfo(+ type=WebhookEventAsyncType.ACCOUNT_DELETE_REQUESTED,+ description="An account delete requested.",+ ),]@classmethoddiff --git a/saleor/graphql/account/mutations/account/request_email_change.py b/saleor/graphql/account/mutations/account/request_email_change.pyindex 633a60c152..6a9efe71d4 100644--- a/saleor/graphql/account/mutations/account/request_email_change.py+++ b/saleor/graphql/account/mutations/account/request_email_change.py@@ -51,7 +51,11 @@ class RequestEmailChange(BaseMutation):WebhookEventInfo(type=WebhookEventAsyncType.NOTIFY_USER,description="A notification for account email change.",- )+ ),+ WebhookEventInfo(+ type=WebhookEventAsyncType.ACCOUNT_CHANGE_EMAIL_REQUESTED,+ description="An account email change was requested.",+ ),]@classmethoddiff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 19d6bd1a2f..9ef08e245c 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -18333,6 +18333,7 @@ type Mutation {Triggers the following webhook events:- NOTIFY_USER (async): A notification for account email change.+ - ACCOUNT_CHANGE_EMAIL_REQUESTED (async): An account email change was requested."""requestEmailChange("""@@ -18350,7 +18351,7 @@ type Mutation {URL of a view where users should be redirected to update the email address. URL in RFC 1808 format."""redirectUrl: String!- ): RequestEmailChange @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER], syncEvents: [])+ ): RequestEmailChange @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_CHANGE_EMAIL_REQUESTED], syncEvents: [])"""Confirm the email change of the logged-in user.@@ -18466,6 +18467,7 @@ type Mutation {Triggers the following webhook events:- NOTIFY_USER (async): A notification for account delete request.+ - ACCOUNT_DELETE_REQUESTED (async): An account delete requested."""accountRequestDeletion("""@@ -18477,7 +18479,7 @@ type Mutation {URL of a view where users should be redirected to delete their account. URL in RFC 1808 format."""redirectUrl: String!- ): AccountRequestDeletion @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER], syncEvents: [])+ ): AccountRequestDeletion @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_DELETE_REQUESTED], syncEvents: [])"""Remove user account.@@ -28693,8 +28695,9 @@ Requires one of the following permissions: AUTHENTICATED_USER.Triggers the following webhook events:- NOTIFY_USER (async): A notification for account email change.+- ACCOUNT_CHANGE_EMAIL_REQUESTED (async): An account email change was requested."""-type RequestEmailChange @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER], syncEvents: []) {+type RequestEmailChange @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_CHANGE_EMAIL_REQUESTED], syncEvents: []) {"""A user instance."""user: UseraccountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")@@ -28870,8 +28873,9 @@ Requires one of the following permissions: AUTHENTICATED_USER.Triggers the following webhook events:- NOTIFY_USER (async): A notification for account delete request.+- ACCOUNT_DELETE_REQUESTED (async): An account delete requested."""-type AccountRequestDeletion @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER], syncEvents: []) {+type AccountRequestDeletion @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_DELETE_REQUESTED], syncEvents: []) {accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")errors: [AccountError!]!}