Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
App type enum descriptions
Krzysztof Wolski5c06f7384d95
diff --git a/saleor/graphql/app/enums.py b/saleor/graphql/app/enums.pyindex 1e1eab193e..2be7869e5e 100644--- a/saleor/graphql/app/enums.py+++ b/saleor/graphql/app/enums.py@@ -1,4 +1,19 @@from ...app.types import AppTypefrom ..core.enums import to_enum-AppTypeEnum = to_enum(AppType)++def description(enum):+ if enum == AppTypeEnum.LOCAL:+ return (+ "Local Saleor App. The app is fully manageable from dashboard. ",+ "You can change assigned permissions, add webhooks, or authentication token",+ )+ elif enum == AppTypeEnum.THIRDPARTY:+ return (+ "Third party external App. Installation is fully automated. ",+ "Saleor uses a defined App manifest to gather all required information.",+ )+ return "Enum determining type of your App."+++AppTypeEnum = to_enum(AppType, description=description)