Skip to content

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

Merge remote-tracking branch 'origin/main' into SALEOR-6404_webhooks_in_manifest

Tomasz Magulskief4b4fa67d90
diff --cc saleor/app/installation_utils.py
index fe575b5faa,215a94018d..047ffe7438
--- a/saleor/app/installation_utils.py
+++ b/saleor/app/installation_utils.py
@@@ -1,9 -1,9 +1,11 @@@
import requests
+ from django.conf import settings
from django.contrib.sites.models import Site
+from django.db import transaction
from ..core.permissions import get_permission_names
+ from ..plugins.manager import PluginsManager
+from ..webhook.models import Webhook, WebhookEvent
from .manifest_validations import clean_manifest_data
from .models import App, AppExtension, AppInstallation
from .types import AppExtensionTarget, AppType
diff --cc saleor/graphql/schema.graphql
index 499c9d8106,a04c75f060..7bcdbad252
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@@ -15835,16 -19261,10 +19262,18 @@@ type AppManifestExtension
target: AppExtensionTargetEnum!
}
+type AppManifestWebhook {
+ name: String!
+ events: [WebhookEventTypeEnum!]!
+ query: String!
+ targetUrl: String!
+ isActive: Boolean!
+}
+
"""
- Activate the app. Requires one of the following permissions: MANAGE_APPS.
+ Activate the app.
+
+ Requires one of the following permissions: MANAGE_APPS.
"""
type AppActivate {
appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")