Skip to content

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

Port a better schema printer from GraphQL Core 3.x (#9389)

Patryk Zawadzkibd0f5b42a5ea
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dfea430741..3f60e6eb37 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,7 +10,7 @@ repos:
hooks:
- id: trailing-whitespace
exclude: ^templates/templated_email/compiled/
- exclude_types: [svg]
+ exclude_types: [svg,graphql]
- id: end-of-file-fixer
exclude: ^templates/templated_email/compiled/
exclude_types: [svg]
diff --git a/saleor/__init__.py b/saleor/__init__.py
index 5f8db4a86e..1f44d281dd 100644
--- a/saleor/__init__.py
+++ b/saleor/__init__.py
@@ -1,19 +1,4 @@
-from graphql.utils import schema_printer
-
from .celeryconf import app as celery_app
__all__ = ["celery_app"]
__version__ = "dev"
-
-
-def patched_print_object(type):
- interfaces = type.interfaces
- implemented_interfaces = (
- " implements {}".format(" & ".join(i.name for i in interfaces))
- if interfaces
- else ""
- )
-
- return ("type {}{} {{\n" "{}\n" "}}").format(
- type.name, implemented_interfaces, schema_printer._print_fields(type)
- )
diff --git a/saleor/graphql/core/federation/schema.py b/saleor/graphql/core/federation/schema.py
index 227870c831..2263960e9f 100644
--- a/saleor/graphql/core/federation/schema.py
+++ b/saleor/graphql/core/federation/schema.py
@@ -7,6 +7,7 @@ from graphene.utils.str_converters import to_snake_case
from graphql import GraphQLArgument, GraphQLError, GraphQLField, GraphQLList
from ...channel import ChannelContext
+from ...schema_printer import print_schema
from .entities import federated_entities
@@ -134,7 +135,7 @@ def resolve_entities(_, info, *, representations):
def create_service_sdl_resolver(schema):
# Render schema to string
- federated_schema_sdl = str(schema)
+ federated_schema_sdl = print_schema(schema)
# Remove "schema { ... }"
schema_start = federated_schema_sdl.find("schema {")
diff --git a/saleor/graphql/core/types/sort_input.py b/saleor/graphql/core/types/sort_input.py
index 2abda7ba3b..2696e24879 100644
--- a/saleor/graphql/core/types/sort_input.py
+++ b/saleor/graphql/core/types/sort_input.py
@@ -42,7 +42,7 @@ class ChannelSortInputObjectType(SortInputObjectType):
channel = graphene.Argument(
graphene.String,
description=(
- "Specifies the channel in which to sort the data. "
+ "Specifies the channel in which to sort the data."
f"{DEPRECATED_IN_3X_INPUT} Use root-level channel argument instead."
),
)
diff --git a/saleor/graphql/discount/mutations.py b/saleor/graphql/discount/mutations.py
index 861df98ebd..5a690673dc 100644
--- a/saleor/graphql/discount/mutations.py
+++ b/saleor/graphql/discount/mutations.py
@@ -145,7 +145,7 @@ class BaseDiscountCatalogueMutation(BaseMutation):
class VoucherInput(graphene.InputObjectType):
type = VoucherTypeEnum(
- description=("Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER.")
+ description="Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER."
)
name = graphene.String(description="Voucher name.")
code = graphene.String(description="Code to use the voucher.")
@@ -290,7 +290,7 @@ class VoucherBaseCatalogueMutation(BaseDiscountCatalogueMutation):
id = graphene.ID(required=True, description="ID of a voucher.")
input = CatalogueInput(
required=True,
- description=("Fields required to modify catalogue IDs of voucher."),
+ description="Fields required to modify catalogue IDs of voucher.",
)
class Meta:
diff --git a/saleor/graphql/management/commands/get_graphql_schema.py b/saleor/graphql/management/commands/get_graphql_schema.py
index 3d779e8b5d..f37e5f6f80 100644
--- a/saleor/graphql/management/commands/get_graphql_schema.py
+++ b/saleor/graphql/management/commands/get_graphql_schema.py
@@ -1,10 +1,11 @@
from django.core.management.base import BaseCommand
from ...api import schema
+from ...schema_printer import print_schema
class Command(BaseCommand):
help = "Writes SDL for GraphQL API schema to stdout"
def handle(self, *args, **options):
- self.stdout.write(str(schema))
+ self.stdout.write(print_schema(schema))
diff --git a/saleor/graphql/meta/mutations.py b/saleor/graphql/meta/mutations.py
index cdf02e412c..bbe335db6f 100644
--- a/saleor/graphql/meta/mutations.py
+++ b/saleor/graphql/meta/mutations.py
@@ -332,7 +332,7 @@ class UpdatePrivateMetadata(BaseMetadataMutation):
)
input = graphene.List(
graphene.NonNull(MetadataInput),
- description=("Fields required to update the object's metadata."),
+ description="Fields required to update the object's metadata.",
required=True,
)
diff --git a/saleor/graphql/notifications/mutations/external_notification_trigger.py b/saleor/graphql/notifications/mutations/external_notification_trigger.py
index 6b0089f973..d3960766a8 100644
--- a/saleor/graphql/notifications/mutations/external_notification_trigger.py
+++ b/saleor/graphql/notifications/mutations/external_notification_trigger.py
@@ -44,7 +44,7 @@ class ExternalNotificationTriggerInput(graphene.InputObjectType):
class ExternalNotificationTrigger(BaseMutation):
class Arguments:
input = ExternalNotificationTriggerInput(
- required=True, description="Input for External Notification Trigger. "
+ required=True, description="Input for External Notification Trigger."
)
plugin_id = graphene.String(description="The ID of notification plugin.")
channel = graphene.String(
diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.py
index 4d5c531462..8c7ce4508d 100644
--- a/saleor/graphql/order/types.py
+++ b/saleor/graphql/order/types.py
@@ -398,7 +398,7 @@ class Fulfillment(ModelObjectType):
warehouse = graphene.Field(
Warehouse,
required=False,
- description=("Warehouse from fulfillment was fulfilled."),
+ description="Warehouse from fulfillment was fulfilled.",
)
class Meta:
diff --git a/saleor/graphql/payment/types.py b/saleor/graphql/payment/types.py
index 5c1ddffbff..1e82571179 100644
--- a/saleor/graphql/payment/types.py
+++ b/saleor/graphql/payment/types.py
@@ -48,11 +48,11 @@ class CreditCard(graphene.ObjectType):
description="Last 4 digits of the card number.", required=True
)
exp_month = graphene.Int(
- description=("Two-digit number representing the card’s expiration month."),
+ description="Two-digit number representing the card’s expiration month.",
required=False,
)
exp_year = graphene.Int(
- description=("Four-digit number representing the card’s expiration year."),
+ description="Four-digit number representing the card’s expiration year.",
required=False,
)
diff --git a/saleor/graphql/product/bulk_mutations/products.py b/saleor/graphql/product/bulk_mutations/products.py
index 7cf98357f7..9c5a694ab9 100644
--- a/saleor/graphql/product/bulk_mutations/products.py
+++ b/saleor/graphql/product/bulk_mutations/products.py
@@ -221,7 +221,7 @@ class ProductVariantBulkCreateInput(ProductVariantInput):
)
stocks = graphene.List(
graphene.NonNull(StockInput),
- description=("Stocks of a product available for sale."),
+ description="Stocks of a product available for sale.",
required=False,
)
channel_listings = graphene.List(
diff --git a/saleor/graphql/product/mutations/digital_contents.py b/saleor/graphql/product/mutations/digital_contents.py
index fa3d3b1a25..c912e849f7 100644
--- a/saleor/graphql/product/mutations/digital_contents.py
+++ b/saleor/graphql/product/mutations/digital_contents.py
@@ -125,7 +125,7 @@ class DigitalContentDelete(BaseMutation):
class Arguments:
variant_id = graphene.ID(
- description=("ID of a product variant with digital content to remove."),
+ description="ID of a product variant with digital content to remove.",
required=True,
)
@@ -161,7 +161,7 @@ class DigitalContentUpdate(BaseMutation):
class Arguments:
variant_id = graphene.ID(
- description=("ID of a product variant with digital content to update."),
+ description="ID of a product variant with digital content to update.",
required=True,
)
input = DigitalContentInput(
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.py
index 4f88fc3d22..0407203ede 100644
--- a/saleor/graphql/product/mutations/products.py
+++ b/saleor/graphql/product/mutations/products.py
@@ -831,7 +831,7 @@ class ProductVariantCreateInput(ProductVariantInput):
)
stocks = graphene.List(
graphene.NonNull(StockInput),
- description=("Stocks of a product available for sale."),
+ description="Stocks of a product available for sale.",
required=False,
)
diff --git a/saleor/graphql/product/types/digital_contents.py b/saleor/graphql/product/types/digital_contents.py
index 5bb3a0fddb..7f8ac431e8 100644
--- a/saleor/graphql/product/types/digital_contents.py
+++ b/saleor/graphql/product/types/digital_contents.py
@@ -16,9 +16,7 @@ class DigitalContentUrl(ModelObjectType):
created = graphene.DateTime(required=True)
download_num = graphene.Int(required=True)
url = graphene.String(description="URL for digital content.")
- token = graphene.Field(
- UUID, description=("UUID of digital content."), required=True
- )
+ token = graphene.Field(UUID, description="UUID of digital content.", required=True)
class Meta:
model = models.DigitalContentUrl
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.py
index a603bc306c..0e124ee979 100644
--- a/saleor/graphql/product/types/products.py
+++ b/saleor/graphql/product/types/products.py
@@ -813,7 +813,7 @@ class Product(ChannelContextTypeWithMetadata, ModelObjectType):
resolver=ChannelContextType.resolve_translation,
)
available_for_purchase = graphene.Date(
- description="Date when product is available for purchase. "
+ description="Date when product is available for purchase."
)
is_available_for_purchase = graphene.Boolean(
description="Whether the product is available for purchase."
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 7559a7e537..3007f80cad 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3,2952 +3,2083 @@ schema {
mutation: Mutation
}
-type AccountAddressCreate {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- address: Address
-}
+type Query {
+ """Look up a webhook by ID."""
+ webhook(
+ """ID of the webhook."""
+ id: ID!
+ ): Webhook
-type AccountAddressDelete {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- address: Address
-}
+ """List of all available webhook events."""
+ webhookEvents: [WebhookEvent] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types.")
-type AccountAddressUpdate {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- address: Address
-}
+ """
+ Retrieve a sample payload for a given webhook event based on real data. It can be useful for some integrations where sample payload is required.
+ """
+ webhookSamplePayload(
+ """Name of the requested event type."""
+ eventType: WebhookSampleEventTypeEnum!
+ ): JSONString
-type AccountDelete {
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- user: User
-}
+ """Look up a warehouse by ID."""
+ warehouse(
+ """ID of an warehouse"""
+ id: ID!
+ ): Warehouse
-type AccountError {
- field: String
- message: String
- code: AccountErrorCode!
- addressType: AddressTypeEnum
-}
+ """List of warehouses."""
+ warehouses(
+ filter: WarehouseFilterInput
+ sortBy: WarehouseSortingInput
-enum AccountErrorCode {
- ACTIVATE_OWN_ACCOUNT
- ACTIVATE_SUPERUSER_ACCOUNT
- DUPLICATED_INPUT_ITEM
- DEACTIVATE_OWN_ACCOUNT
- DEACTIVATE_SUPERUSER_ACCOUNT
- DELETE_NON_STAFF_USER
- DELETE_OWN_ACCOUNT
- DELETE_STAFF_ACCOUNT
- DELETE_SUPERUSER_ACCOUNT
- GRAPHQL_ERROR
- INACTIVE
- INVALID
- INVALID_PASSWORD
- LEFT_NOT_MANAGEABLE_PERMISSION
- INVALID_CREDENTIALS
- NOT_FOUND
- OUT_OF_SCOPE_USER
- OUT_OF_SCOPE_GROUP
- OUT_OF_SCOPE_PERMISSION
- PASSWORD_ENTIRELY_NUMERIC
- PASSWORD_TOO_COMMON
- PASSWORD_TOO_SHORT
- PASSWORD_TOO_SIMILAR
- REQUIRED
- UNIQUE
- JWT_SIGNATURE_EXPIRED
- JWT_INVALID_TOKEN
- JWT_DECODE_ERROR
- JWT_MISSING_TOKEN
- JWT_INVALID_CSRF_TOKEN
- CHANNEL_INACTIVE
- MISSING_CHANNEL_SLUG
- ACCOUNT_NOT_CONFIRMED
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input AccountInput {
- firstName: String
- lastName: String
- languageCode: LanguageCodeEnum
- defaultBillingAddress: AddressInput
- defaultShippingAddress: AddressInput
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type AccountRegister {
- requiresConfirmation: Boolean
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- user: User
-}
+ """Return the first n elements from the list."""
+ first: Int
-input AccountRegisterInput {
- firstName: String
- lastName: String
- languageCode: LanguageCodeEnum
- email: String!
- password: String!
- redirectUrl: String
- metadata: [MetadataInput!]
- channel: String
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): WarehouseCountableConnection
-type AccountRequestDeletion {
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """Returns a list of all translatable items of a given kind."""
+ translations(
+ """Kind of objects to retrieve."""
+ kind: TranslatableKinds!
-type AccountSetDefaultAddress {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type AccountUpdate {
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- user: User
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type Address implements Node {
- id: ID!
- firstName: String!
- lastName: String!
- companyName: String!
- streetAddress1: String!
- streetAddress2: String!
- city: String!
- cityArea: String!
- postalCode: String!
- country: CountryDisplay!
- countryArea: String!
- phone: String
- isDefaultShippingAddress: Boolean
- isDefaultBillingAddress: Boolean
-}
+ """Return the first n elements from the list."""
+ first: Int
-type AddressCreate {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- address: Address
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): TranslatableItemConnection
+ translation(
+ """ID of the object to retrieve."""
+ id: ID!
-type AddressDelete {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- address: Address
-}
+ """Kind of the object to retrieve."""
+ kind: TranslatableKinds!
+ ): TranslatableItem
-input AddressInput {
- firstName: String
- lastName: String
- companyName: String
- streetAddress1: String
- streetAddress2: String
- city: String
- cityArea: String
- postalCode: String
- country: CountryCode
- countryArea: String
- phone: String
-}
+ """Look up a stock by ID"""
+ stock(
+ """ID of an warehouse"""
+ id: ID!
+ ): Stock
-type AddressSetDefault {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """List of stocks."""
+ stocks(
+ filter: StockFilterInput
-enum AddressTypeEnum {
- BILLING
- SHIPPING
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type AddressUpdate {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- address: Address
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type AddressValidationData {
- countryCode: String
- countryName: String
- addressFormat: String
- addressLatinFormat: String
- allowedFields: [String]
- requiredFields: [String]
- upperFields: [String]
- countryAreaType: String
- countryAreaChoices: [ChoiceValue]
- cityType: String
- cityChoices: [ChoiceValue]
- cityAreaType: String
- cityAreaChoices: [ChoiceValue]
- postalCodeType: String
- postalCodeMatchers: [String]
- postalCodeExamples: [String]
- postalCodePrefix: String
-}
+ """Return the first n elements from the list."""
+ first: Int
-type Allocation implements Node {
- id: ID!
- quantity: Int!
- warehouse: Warehouse!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): StockCountableConnection
-type App implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- permissions: [Permission]
- created: DateTime
- isActive: Boolean
- name: String
- type: AppTypeEnum
- tokens: [AppToken]
- webhooks: [Webhook]
- aboutApp: String
- dataPrivacy: String
- dataPrivacyUrl: String
- homepageUrl: String
- supportUrl: String
- configurationUrl: String
- appUrl: String
- version: String
- accessToken: String
- extensions: [AppExtension!]!
-}
+ """Return information about the shop."""
+ shop: Shop!
-type AppActivate {
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- app: App
-}
+ """Order related settings from site settings."""
+ orderSettings: OrderSettings
-type AppCountableConnection {
- pageInfo: PageInfo!
- edges: [AppCountableEdge!]!
- totalCount: Int
-}
+ """Gift card related settings from site settings."""
+ giftCardSettings: GiftCardSettings!
-type AppCountableEdge {
- node: App!
- cursor: String!
-}
+ """Look up a shipping zone by ID."""
+ shippingZone(
+ """ID of the shipping zone."""
+ id: ID!
-type AppCreate {
- authToken: String
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- app: App
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): ShippingZone
-type AppDeactivate {
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- app: App
-}
+ """List of the shop's shipping zones."""
+ shippingZones(
+ """Filtering options for shipping zones."""
+ filter: ShippingZoneFilterInput
-type AppDelete {
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- app: App
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-type AppDeleteFailedInstallation {
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- appInstallation: AppInstallation
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type AppError {
- field: String
- message: String
- code: AppErrorCode!
- permissions: [PermissionEnum!]
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-enum AppErrorCode {
- FORBIDDEN
- GRAPHQL_ERROR
- INVALID
- INVALID_STATUS
- INVALID_PERMISSION
- INVALID_URL_FORMAT
- INVALID_MANIFEST_FORMAT
- MANIFEST_URL_CANT_CONNECT
- NOT_FOUND
- REQUIRED
- UNIQUE
- OUT_OF_SCOPE_APP
- OUT_OF_SCOPE_PERMISSION
-}
+ """Return the first n elements from the list."""
+ first: Int
-type AppExtension implements Node {
- id: ID!
- permissions: [Permission!]!
- label: String!
- url: String!
- mount: AppExtensionMountEnum!
- target: AppExtensionTargetEnum!
- app: App!
- accessToken: String
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): ShippingZoneCountableConnection
-type AppExtensionCountableConnection {
- pageInfo: PageInfo!
- edges: [AppExtensionCountableEdge!]!
- totalCount: Int
-}
+ """Look up digital content by ID."""
+ digitalContent(
+ """ID of the digital content."""
+ id: ID!
+ ): DigitalContent
-type AppExtensionCountableEdge {
- node: AppExtension!
- cursor: String!
-}
+ """List of digital content."""
+ digitalContents(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input AppExtensionFilterInput {
- mount: [AppExtensionMountEnum]
- target: AppExtensionTargetEnum
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-enum AppExtensionMountEnum {
- PRODUCT_OVERVIEW_CREATE
- PRODUCT_OVERVIEW_MORE_ACTIONS
- PRODUCT_DETAILS_MORE_ACTIONS
- NAVIGATION_CATALOG
- NAVIGATION_ORDERS
- NAVIGATION_CUSTOMERS
- NAVIGATION_DISCOUNTS
- NAVIGATION_TRANSLATIONS
- NAVIGATION_PAGES
-}
+ """Return the first n elements from the list."""
+ first: Int
-enum AppExtensionTargetEnum {
- POPUP
- APP_PAGE
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): DigitalContentCountableConnection
-type AppFetchManifest {
- manifest: Manifest
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
-}
+ """List of the shop's categories."""
+ categories(
+ """Filtering options for categories."""
+ filter: CategoryFilterInput
-input AppFilterInput {
- search: String
- isActive: Boolean
- type: AppTypeEnum
-}
+ """Sort categories."""
+ sortBy: CategorySortingInput
-input AppInput {
- name: String
- permissions: [PermissionEnum]
-}
+ """Filter categories by the nesting level in the category tree."""
+ level: Int
-type AppInstall {
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- appInstallation: AppInstallation
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input AppInstallInput {
- appName: String
- manifestUrl: String
- activateAfterInstallation: Boolean = true
- permissions: [PermissionEnum]
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type AppInstallation implements Node & Job {
- id: ID!
- status: JobStatusEnum!
- createdAt: DateTime!
- updatedAt: DateTime!
- message: String
- appName: String!
- manifestUrl: String!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type AppManifestExtension {
- permissions: [Permission!]!
- label: String!
- url: String!
- mount: AppExtensionMountEnum!
- target: AppExtensionTargetEnum!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): CategoryCountableConnection
-type AppRetryInstall {
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- appInstallation: AppInstallation
-}
+ """Look up a category by ID or slug."""
+ category(
+ """ID of the category."""
+ id: ID
-enum AppSortField {
- NAME
- CREATION_DATE
-}
+ """Slug of the category"""
+ slug: String
+ ): Category
-input AppSortingInput {
- direction: OrderDirection!
- field: AppSortField!
-}
+ """Look up a collection by ID."""
+ collection(
+ """ID of the collection."""
+ id: ID
-type AppToken implements Node {
- id: ID!
- name: String
- authToken: String
-}
+ """Slug of the category"""
+ slug: String
-type AppTokenCreate {
- authToken: String
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- appToken: AppToken
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): Collection
-type AppTokenDelete {
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- appToken: AppToken
-}
+ """List of the shop's collections."""
+ collections(
+ """Filtering options for collections."""
+ filter: CollectionFilterInput
-input AppTokenInput {
- name: String
- app: ID!
-}
+ """Sort collections."""
+ sortBy: CollectionSortingInput
-type AppTokenVerify {
- valid: Boolean!
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-enum AppTypeEnum {
- LOCAL
- THIRDPARTY
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type AppUpdate {
- appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AppError!]!
- app: App
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-enum AreaUnitsEnum {
- SQ_CM
- SQ_M
- SQ_KM
- SQ_FT
- SQ_YD
- SQ_INCH
-}
+ """Return the first n elements from the list."""
+ first: Int
-type AssignNavigation {
- menu: Menu
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): CollectionCountableConnection
-type AssignedVariantAttribute {
- attribute: Attribute!
- variantSelection: Boolean!
-}
+ """Look up a product by ID."""
+ product(
+ """ID of the product."""
+ id: ID
-type Attribute implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- inputType: AttributeInputTypeEnum
- entityType: AttributeEntityTypeEnum
- name: String
- slug: String
- type: AttributeTypeEnum
- unit: MeasurementUnitsEnum
- choices(sortBy: AttributeChoicesSortingInput, filter: AttributeValueFilterInput, before: String, after: String, first: Int, last: Int): AttributeValueCountableConnection
- valueRequired: Boolean!
- visibleInStorefront: Boolean!
- filterableInStorefront: Boolean!
- filterableInDashboard: Boolean!
- availableInGrid: Boolean!
- translation(languageCode: LanguageCodeEnum!): AttributeTranslation
- storefrontSearchPosition: Int!
- withChoices: Boolean!
- productTypes(before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection!
- productVariantTypes(before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection!
-}
+ """Slug of the product."""
+ slug: String
-type AttributeBulkDelete {
- count: Int!
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): Product
-enum AttributeChoicesSortField {
- NAME
- SLUG
-}
+ """List of the shop's products."""
+ products(
+ """Filtering options for products."""
+ filter: ProductFilterInput
-input AttributeChoicesSortingInput {
- direction: OrderDirection!
- field: AttributeChoicesSortField!
-}
+ """Sort products."""
+ sortBy: ProductOrder
-type AttributeCountableConnection {
- pageInfo: PageInfo!
- edges: [AttributeCountableEdge!]!
- totalCount: Int
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-type AttributeCountableEdge {
- node: Attribute!
- cursor: String!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type AttributeCreate {
- attribute: Attribute
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-input AttributeCreateInput {
- inputType: AttributeInputTypeEnum
- entityType: AttributeEntityTypeEnum
- name: String!
- slug: String
- type: AttributeTypeEnum!
- unit: MeasurementUnitsEnum
- values: [AttributeValueCreateInput]
- valueRequired: Boolean
- isVariantOnly: Boolean
- visibleInStorefront: Boolean
- filterableInStorefront: Boolean
- filterableInDashboard: Boolean
- storefrontSearchPosition: Int
- availableInGrid: Boolean
-}
+ """Return the first n elements from the list."""
+ first: Int
-type AttributeDelete {
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
- attribute: Attribute
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductCountableConnection
-enum AttributeEntityTypeEnum {
- PAGE
- PRODUCT
-}
+ """Look up a product type by ID."""
+ productType(
+ """ID of the product type."""
+ id: ID!
+ ): ProductType
-type AttributeError {
- field: String
- message: String
- code: AttributeErrorCode!
-}
+ """List of the shop's product types."""
+ productTypes(
+ """Filtering options for product types."""
+ filter: ProductTypeFilterInput
-enum AttributeErrorCode {
- ALREADY_EXISTS
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- UNIQUE
-}
+ """Sort product types."""
+ sortBy: ProductTypeSortingInput
-input AttributeFilterInput {
- valueRequired: Boolean
- isVariantOnly: Boolean
- visibleInStorefront: Boolean
- filterableInStorefront: Boolean
- filterableInDashboard: Boolean
- availableInGrid: Boolean
- metadata: [MetadataFilter]
- search: String
- ids: [ID]
- type: AttributeTypeEnum
- inCollection: ID
- inCategory: ID
- channel: String
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input AttributeInput {
- slug: String!
- values: [String]
- valuesRange: IntRangeInput
- dateTime: DateTimeRangeInput
- date: DateRangeInput
- boolean: Boolean
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-enum AttributeInputTypeEnum {
- DROPDOWN
- MULTISELECT
- FILE
- REFERENCE
- NUMERIC
- RICH_TEXT
- SWATCH
- BOOLEAN
- DATE
- DATE_TIME
-}
+ """Return the first n elements from the list."""
+ first: Int
-type AttributeReorderValues {
- attribute: Attribute
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductTypeCountableConnection
-enum AttributeSortField {
- NAME
- SLUG
- VALUE_REQUIRED
- IS_VARIANT_ONLY
- VISIBLE_IN_STOREFRONT
- FILTERABLE_IN_STOREFRONT
- FILTERABLE_IN_DASHBOARD
- STOREFRONT_SEARCH_POSITION
- AVAILABLE_IN_GRID
-}
+ """Look up a product variant by ID or SKU."""
+ productVariant(
+ """ID of the product variant."""
+ id: ID
-input AttributeSortingInput {
- direction: OrderDirection!
- field: AttributeSortField!
-}
+ """Sku of the product variant."""
+ sku: String
-type AttributeTranslatableContent implements Node {
- id: ID!
- name: String!
- translation(languageCode: LanguageCodeEnum!): AttributeTranslation
- attribute: Attribute @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): ProductVariant
-type AttributeTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- attribute: Attribute
-}
+ """List of product variants."""
+ productVariants(
+ """Filter product variants by given IDs."""
+ ids: [ID]
-type AttributeTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- name: String!
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-enum AttributeTypeEnum {
- PRODUCT_TYPE
- PAGE_TYPE
-}
+ """Filtering options for product variant."""
+ filter: ProductVariantFilterInput
-type AttributeUpdate {
- attribute: Attribute
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
-}
+ """Sort products variants."""
+ sortBy: ProductVariantSortingInput
-input AttributeUpdateInput {
- name: String
- slug: String
- unit: MeasurementUnitsEnum
- removeValues: [ID]
- addValues: [AttributeValueUpdateInput]
- valueRequired: Boolean
- isVariantOnly: Boolean
- visibleInStorefront: Boolean
- filterableInStorefront: Boolean
- filterableInDashboard: Boolean
- storefrontSearchPosition: Int
- availableInGrid: Boolean
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type AttributeValue implements Node {
- id: ID!
- name: String
- slug: String
- value: String
- translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation
- inputType: AttributeInputTypeEnum
- reference: ID
- file: File
- richText: JSONString
- boolean: Boolean
- date: Date
- dateTime: DateTime
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type AttributeValueBulkDelete {
- count: Int!
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type AttributeValueCountableConnection {
- pageInfo: PageInfo!
- edges: [AttributeValueCountableEdge!]!
- totalCount: Int
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductVariantCountableConnection
-type AttributeValueCountableEdge {
- node: AttributeValue!
- cursor: String!
-}
+ """List of top selling products."""
+ reportProductSales(
+ """Span of time."""
+ period: ReportingPeriod!
-type AttributeValueCreate {
- attribute: Attribute
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
- attributeValue: AttributeValue
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String!
-input AttributeValueCreateInput {
- value: String
- richText: JSONString
- fileUrl: String
- contentType: String
- name: String!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type AttributeValueDelete {
- attribute: Attribute
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
- attributeValue: AttributeValue
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-input AttributeValueFilterInput {
- search: String
-}
+ """Return the first n elements from the list."""
+ first: Int
-input AttributeValueInput {
- id: ID
- values: [String!]
- file: String
- contentType: String
- references: [ID!]
- richText: JSONString
- boolean: Boolean
- date: Date
- dateTime: DateTime
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductVariantCountableConnection
-type AttributeValueTranslatableContent implements Node {
- id: ID!
- name: String!
- richText: JSONString
- translation(languageCode: LanguageCodeEnum!): AttributeValueTranslation
- attributeValue: AttributeValue @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
-}
+ """Look up a payment by ID."""
+ payment(
+ """ID of the payment."""
+ id: ID!
+ ): Payment
-type AttributeValueTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- attributeValue: AttributeValue
-}
+ """List of payments."""
+ payments(
+ """Filtering options for payments."""
+ filter: PaymentFilterInput
-type AttributeValueTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- name: String!
- richText: JSONString
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input AttributeValueTranslationInput {
- name: String
- richText: JSONString
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type AttributeValueUpdate {
- attribute: Attribute
- attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AttributeError!]!
- attributeValue: AttributeValue
-}
+ """Return the first n elements from the list."""
+ first: Int
-input AttributeValueUpdateInput {
- value: String
- richText: JSONString
- fileUrl: String
- contentType: String
- name: String
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): PaymentCountableConnection
-input BulkAttributeValueInput {
- id: ID
- values: [String!]
- boolean: Boolean
-}
+ """Look up a page by ID or slug."""
+ page(
+ """ID of the page."""
+ id: ID
-type BulkProductError {
- field: String
- message: String
- code: ProductErrorCode!
- attributes: [ID!]
- values: [ID!]
- index: Int
- warehouses: [ID!]
- channels: [ID!]
-}
+ """The slug of the page."""
+ slug: String
+ ): Page
-type BulkStockError {
- field: String
- message: String
- code: ProductErrorCode!
- attributes: [ID!]
- values: [ID!]
- index: Int
-}
+ """List of the shop's pages."""
+ pages(
+ """Sort pages."""
+ sortBy: PageSortingInput
-input CardInput {
- code: String!
- cvc: String
- money: MoneyInput!
-}
+ """Filtering options for pages."""
+ filter: PageFilterInput
-input CatalogueInput {
- products: [ID]
- categories: [ID]
- collections: [ID]
- variants: [ID]
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type Category implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- seoTitle: String
- seoDescription: String
- name: String!
- description: JSONString
- slug: String!
- parent: Category
- level: Int!
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
- ancestors(before: String, after: String, first: Int, last: Int): CategoryCountableConnection
- products(channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection
- children(before: String, after: String, first: Int, last: Int): CategoryCountableConnection
- backgroundImage(size: Int): Image
- translation(languageCode: LanguageCodeEnum!): CategoryTranslation
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type CategoryBulkDelete {
- count: Int!
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CategoryCountableConnection {
- pageInfo: PageInfo!
- edges: [CategoryCountableEdge!]!
- totalCount: Int
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): PageCountableConnection
-type CategoryCountableEdge {
- node: Category!
- cursor: String!
-}
+ """Look up a page type by ID."""
+ pageType(
+ """ID of the page type."""
+ id: ID!
+ ): PageType
-type CategoryCreate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- category: Category
-}
+ """List of the page types."""
+ pageTypes(
+ """Sort page types."""
+ sortBy: PageTypeSortingInput
-type CategoryDelete {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- category: Category
-}
+ """Filtering options for page types."""
+ filter: PageTypeFilterInput
-input CategoryFilterInput {
- search: String
- metadata: [MetadataFilter]
- ids: [ID]
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input CategoryInput {
- description: JSONString
- name: String
- slug: String
- seo: SeoInput
- backgroundImage: Upload
- backgroundImageAlt: String
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-enum CategorySortField {
- NAME
- PRODUCT_COUNT
- SUBCATEGORY_COUNT
-}
+ """Return the first n elements from the list."""
+ first: Int
-input CategorySortingInput {
- direction: OrderDirection!
- channel: String
- field: CategorySortField!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): PageTypeCountableConnection
-type CategoryTranslatableContent implements Node {
- id: ID!
- seoTitle: String
- seoDescription: String
- name: String!
- description: JSONString
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
- translation(languageCode: LanguageCodeEnum!): CategoryTranslation
- category: Category @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
-}
+ """
+ List of activity events to display on homepage (at the moment it only contains order-events).
+ """
+ homepageEvents(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type CategoryTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- category: Category
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type CategoryTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- seoTitle: String
- seoDescription: String
- name: String
- description: JSONString
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CategoryUpdate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- category: Category
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): OrderEventCountableConnection
-type Channel implements Node {
- id: ID!
- name: String!
- isActive: Boolean!
- currencyCode: String!
- slug: String!
- hasOrders: Boolean!
- defaultCountry: CountryDisplay!
-}
+ """Look up an order by ID."""
+ order(
+ """ID of an order."""
+ id: ID!
+ ): Order
-type ChannelActivate {
- channel: Channel
- channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ChannelError!]!
-}
+ """List of orders."""
+ orders(
+ """Sort orders."""
+ sortBy: OrderSortingInput
-type ChannelCreate {
- channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ChannelError!]!
- channel: Channel
-}
+ """Filtering options for orders."""
+ filter: OrderFilterInput
-input ChannelCreateInput {
- isActive: Boolean
- name: String!
- slug: String!
- currencyCode: String!
- defaultCountry: CountryCode!
- addShippingZones: [ID!]
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-type ChannelDeactivate {
- channel: Channel
- channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ChannelError!]!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type ChannelDelete {
- channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ChannelError!]!
- channel: Channel
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-input ChannelDeleteInput {
- channelId: ID!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type ChannelError {
- field: String
- message: String
- code: ChannelErrorCode!
- shippingZones: [ID!]
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): OrderCountableConnection
-enum ChannelErrorCode {
- ALREADY_EXISTS
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- UNIQUE
- CHANNELS_CURRENCY_MUST_BE_THE_SAME
- CHANNEL_WITH_ORDERS
- DUPLICATED_INPUT_ITEM
-}
+ """List of draft orders."""
+ draftOrders(
+ """Sort draft orders."""
+ sortBy: OrderSortingInput
-type ChannelUpdate {
- channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ChannelError!]!
- channel: Channel
-}
+ """Filtering options for draft orders."""
+ filter: OrderDraftFilterInput
-input ChannelUpdateInput {
- isActive: Boolean
- name: String
- slug: String
- defaultCountry: CountryCode
- addShippingZones: [ID!]
- removeShippingZones: [ID!]
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type Checkout implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- created: DateTime!
- lastChange: DateTime!
- user: User
- channel: Channel!
- billingAddress: Address
- shippingAddress: Address
- note: String!
- discount: Money
- discountName: String
- translatedDiscountName: String
- voucherCode: String
- availableShippingMethods: [ShippingMethod]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `shippingMethods` instead.")
- shippingMethods: [ShippingMethod]!
- availableCollectionPoints: [Warehouse!]!
- availablePaymentGateways: [PaymentGateway!]!
- email: String
- giftCards: [GiftCard]
- isShippingRequired: Boolean!
- quantity: Int!
- stockReservationExpires: DateTime
- lines: [CheckoutLine]
- shippingPrice: TaxedMoney
- shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.")
- deliveryMethod: DeliveryMethod
- subtotalPrice: TaxedMoney
- token: UUID!
- totalPrice: TaxedMoney
- languageCode: LanguageCodeEnum!
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type CheckoutAddPromoCode {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CheckoutBillingAddressUpdate {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): OrderCountableConnection
-type CheckoutComplete {
- order: Order
- confirmationNeeded: Boolean!
- confirmationData: JSONString
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Return the total sales amount from a specific period."""
+ ordersTotal(
+ """A period of time."""
+ period: ReportingPeriod
-type CheckoutCountableConnection {
- pageInfo: PageInfo!
- edges: [CheckoutCountableEdge!]!
- totalCount: Int
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): TaxedMoney
-type CheckoutCountableEdge {
- node: Checkout!
- cursor: String!
-}
+ """Look up an order by token."""
+ orderByToken(
+ """The order's token."""
+ token: UUID!
+ ): Order
-type CheckoutCreate {
- created: Boolean @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `true`.")
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
- checkout: Checkout
-}
+ """Look up a navigation menu by ID or name."""
+ menu(
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-input CheckoutCreateInput {
- channel: String
- lines: [CheckoutLineInput]!
- email: String
- shippingAddress: AddressInput
- billingAddress: AddressInput
- languageCode: LanguageCodeEnum
-}
+ """ID of the menu."""
+ id: ID
-type CheckoutCustomerAttach {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """The menu's name."""
+ name: String
-type CheckoutCustomerDetach {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """The menu's slug."""
+ slug: String
+ ): Menu
-type CheckoutDeliveryMethodUpdate {
- checkout: Checkout
- errors: [CheckoutError!]!
-}
+ """List of the storefront's menus."""
+ menus(
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-type CheckoutEmailUpdate {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Sort menus."""
+ sortBy: MenuSortingInput
-type CheckoutError {
- field: String
- message: String
- code: CheckoutErrorCode!
- variants: [ID!]
- lines: [ID!]
- addressType: AddressTypeEnum
-}
+ """Filtering options for menus."""
+ filter: MenuFilterInput
-enum CheckoutErrorCode {
- BILLING_ADDRESS_NOT_SET
- CHECKOUT_NOT_FULLY_PAID
- GRAPHQL_ERROR
- PRODUCT_NOT_PUBLISHED
- PRODUCT_UNAVAILABLE_FOR_PURCHASE
- INSUFFICIENT_STOCK
- INVALID
- INVALID_SHIPPING_METHOD
- NOT_FOUND
- PAYMENT_ERROR
- QUANTITY_GREATER_THAN_LIMIT
- REQUIRED
- SHIPPING_ADDRESS_NOT_SET
- SHIPPING_METHOD_NOT_APPLICABLE
- DELIVERY_METHOD_NOT_APPLICABLE
- SHIPPING_METHOD_NOT_SET
- SHIPPING_NOT_REQUIRED
- TAX_ERROR
- UNIQUE
- VOUCHER_NOT_APPLICABLE
- GIFT_CARD_NOT_APPLICABLE
- ZERO_QUANTITY
- MISSING_CHANNEL_SLUG
- CHANNEL_INACTIVE
- UNAVAILABLE_VARIANT_IN_CHANNEL
- EMAIL_NOT_SET
- NO_LINES
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input CheckoutFilterInput {
- customer: String
- created: DateRangeInput
- search: String
- metadata: [MetadataFilter]
- channels: [ID]
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type CheckoutLanguageCodeUpdate {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CheckoutLine implements Node {
- id: ID!
- variant: ProductVariant!
- quantity: Int!
- totalPrice: TaxedMoney
- requiresShipping: Boolean
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): MenuCountableConnection
-type CheckoutLineCountableConnection {
- pageInfo: PageInfo!
- edges: [CheckoutLineCountableEdge!]!
- totalCount: Int
-}
+ """Look up a menu item by ID."""
+ menuItem(
+ """ID of the menu item."""
+ id: ID!
-type CheckoutLineCountableEdge {
- node: CheckoutLine!
- cursor: String!
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): MenuItem
-type CheckoutLineDelete {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """List of the storefronts's menu items."""
+ menuItems(
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-input CheckoutLineInput {
- quantity: Int!
- variantId: ID!
-}
+ """Sort menus items."""
+ sortBy: MenuItemSortingInput
-type CheckoutLinesAdd {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Filtering options for menu items."""
+ filter: MenuItemFilterInput
-type CheckoutLinesDelete {
- checkout: Checkout
- errors: [CheckoutError!]!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type CheckoutLinesUpdate {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type CheckoutPaymentCreate {
- checkout: Checkout
- payment: Payment
- paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PaymentError!]!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CheckoutRemovePromoCode {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): MenuItemCountableConnection
-type CheckoutShippingAddressUpdate {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """Look up a gift card by ID."""
+ giftCard(
+ """ID of the gift card."""
+ id: ID!
+ ): GiftCard
-type CheckoutShippingMethodUpdate {
- checkout: Checkout
- checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CheckoutError!]!
-}
+ """List of gift cards."""
+ giftCards(
+ """
+ New in Saleor 3.1. Sort gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ sortBy: GiftCardSortingInput
-enum CheckoutSortField {
- CREATION_DATE
- CUSTOMER
- PAYMENT
-}
+ """
+ New in Saleor 3.1. Filtering options for gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ filter: GiftCardFilterInput
-input CheckoutSortingInput {
- direction: OrderDirection!
- field: CheckoutSortField!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type ChoiceValue {
- raw: String
- verbose: String
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type Collection implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- seoTitle: String
- seoDescription: String
- name: String!
- description: JSONString
- slug: String!
- channel: String
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
- products(filter: ProductFilterInput, sortBy: ProductOrder, before: String, after: String, first: Int, last: Int): ProductCountableConnection
- backgroundImage(size: Int): Image
- translation(languageCode: LanguageCodeEnum!): CollectionTranslation
- channelListings: [CollectionChannelListing!]
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CollectionAddProducts {
- collection: Collection
- collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CollectionError!]!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): GiftCardCountableConnection
-type CollectionBulkDelete {
- count: Int!
- collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CollectionError!]!
-}
+ """
+ New in Saleor 3.1. List of gift card currencies. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardCurrencies: [String!]!
-type CollectionChannelListing implements Node {
- id: ID!
- publicationDate: Date
- isPublished: Boolean!
- channel: Channel!
-}
+ """
+ New in Saleor 3.1. List of gift card tags. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardTags(
+ """Filtering options for gift card tags."""
+ filter: GiftCardTagFilterInput
-type CollectionChannelListingError {
- field: String
- message: String
- code: ProductErrorCode!
- attributes: [ID!]
- values: [ID!]
- channels: [ID!]
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type CollectionChannelListingUpdate {
- collection: Collection
- collectionChannelListingErrors: [CollectionChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CollectionChannelListingError!]!
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-input CollectionChannelListingUpdateInput {
- addChannels: [PublishableChannelListingInput!]
- removeChannels: [ID!]
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CollectionCountableConnection {
- pageInfo: PageInfo!
- edges: [CollectionCountableEdge!]!
- totalCount: Int
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): GiftCardTagCountableConnection
-type CollectionCountableEdge {
- node: Collection!
- cursor: String!
-}
+ """Look up a plugin by ID."""
+ plugin(
+ """ID of the plugin."""
+ id: ID!
+ ): Plugin
-type CollectionCreate {
- collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CollectionError!]!
- collection: Collection
-}
+ """List of plugins."""
+ plugins(
+ """Filtering options for plugins."""
+ filter: PluginFilterInput
-input CollectionCreateInput {
- isPublished: Boolean
- name: String
- slug: String
- description: JSONString
- backgroundImage: Upload
- backgroundImageAlt: String
- seo: SeoInput
- publicationDate: Date
- products: [ID]
-}
+ """Sort plugins."""
+ sortBy: PluginSortingInput
-type CollectionDelete {
- collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CollectionError!]!
- collection: Collection
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type CollectionError {
- field: String
- message: String
- products: [ID!]
- code: CollectionErrorCode!
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-enum CollectionErrorCode {
- DUPLICATED_INPUT_ITEM
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- UNIQUE
- CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT
-}
+ """Return the first n elements from the list."""
+ first: Int
-input CollectionFilterInput {
- published: CollectionPublished
- search: String
- metadata: [MetadataFilter]
- ids: [ID]
- channel: String
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): PluginCountableConnection
-input CollectionInput {
- isPublished: Boolean
- name: String
- slug: String
- description: JSONString
- backgroundImage: Upload
- backgroundImageAlt: String
- seo: SeoInput
- publicationDate: Date
-}
+ """Look up a sale by ID."""
+ sale(
+ """ID of the sale."""
+ id: ID!
-enum CollectionPublished {
- PUBLISHED
- HIDDEN
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): Sale
-type CollectionRemoveProducts {
- collection: Collection
- collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CollectionError!]!
-}
+ """List of the shop's sales."""
+ sales(
+ """Filtering options for sales."""
+ filter: SaleFilterInput
-type CollectionReorderProducts {
- collection: Collection
- collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CollectionError!]!
-}
+ """Sort sales."""
+ sortBy: SaleSortingInput
-enum CollectionSortField {
- NAME
- AVAILABILITY
- PRODUCT_COUNT
- PUBLICATION_DATE
-}
+ """
+ Search sales by name, value or type.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead.
+ """
+ query: String
-input CollectionSortingInput {
- direction: OrderDirection!
- channel: String
- field: CollectionSortField!
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-type CollectionTranslatableContent implements Node {
- id: ID!
- seoTitle: String
- seoDescription: String
- name: String!
- description: JSONString
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
- translation(languageCode: LanguageCodeEnum!): CollectionTranslation
- collection: Collection @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type CollectionTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- collection: Collection
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type CollectionTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- seoTitle: String
- seoDescription: String
- name: String
- description: JSONString
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CollectionUpdate {
- collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [CollectionError!]!
- collection: Collection
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): SaleCountableConnection
-type ConfigurationItem {
- name: String!
- value: String
- type: ConfigurationTypeFieldEnum
- helpText: String
- label: String
-}
+ """Look up a voucher by ID."""
+ voucher(
+ """ID of the voucher."""
+ id: ID!
-input ConfigurationItemInput {
- name: String!
- value: String
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): Voucher
-enum ConfigurationTypeFieldEnum {
- STRING
- MULTILINE
- BOOLEAN
- SECRET
- PASSWORD
- SECRETMULTILINE
- OUTPUT
-}
+ """List of the shop's vouchers."""
+ vouchers(
+ """Filtering options for vouchers."""
+ filter: VoucherFilterInput
-type ConfirmAccount {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """Sort voucher."""
+ sortBy: VoucherSortingInput
-type ConfirmEmailChange {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """
+ Search vouchers by name or code.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `filter.search` input instead.
+ """
+ query: String
-enum CountryCode {
- AF
- AX
- AL
- DZ
- AS
- AD
- AO
- AI
- AQ
- AG
- AR
- AM
- AW
- AU
- AT
- AZ
- BS
- BH
- BD
- BB
- BY
- BE
- BZ
- BJ
- BM
- BT
- BO
- BQ
- BA
- BW
- BV
- BR
- IO
- BN
- BG
- BF
- BI
- CV
- KH
- CM
- CA
- KY
- CF
- TD
- CL
- CN
- CX
- CC
- CO
- KM
- CG
- CD
- CK
- CR
- CI
- HR
- CU
- CW
- CY
- CZ
- DK
- DJ
- DM
- DO
- EC
- EG
- SV
- GQ
- ER
- EE
- SZ
- ET
- EU
- FK
- FO
- FJ
- FI
- FR
- GF
- PF
- TF
- GA
- GM
- GE
- DE
- GH
- GI
- GR
- GL
- GD
- GP
- GU
- GT
- GG
- GN
- GW
- GY
- HT
- HM
- VA
- HN
- HK
- HU
- IS
- IN
- ID
- IR
- IQ
- IE
- IM
- IL
- IT
- JM
- JP
- JE
- JO
- KZ
- KE
- KI
- KW
- KG
- LA
- LV
- LB
- LS
- LR
- LY
- LI
- LT
- LU
- MO
- MG
- MW
- MY
- MV
- ML
- MT
- MH
- MQ
- MR
- MU
- YT
- MX
- FM
- MD
- MC
- MN
- ME
- MS
- MA
- MZ
- MM
- NA
- NR
- NP
- NL
- NC
- NZ
- NI
- NE
- NG
- NU
- NF
- KP
- MK
- MP
- NO
- OM
- PK
- PW
- PS
- PA
- PG
- PY
- PE
- PH
- PN
- PL
- PT
- PR
- QA
- RE
- RO
- RU
- RW
- BL
- SH
- KN
- LC
- MF
- PM
- VC
- WS
- SM
- ST
- SA
- SN
- RS
- SC
- SL
- SG
- SX
- SK
- SI
- SB
- SO
- ZA
- GS
- KR
- SS
- ES
- LK
- SD
- SR
- SJ
- SE
- CH
- SY
- TW
- TJ
- TZ
- TH
- TL
- TG
- TK
- TO
- TT
- TN
- TR
- TM
- TC
- TV
- UG
- UA
- AE
- GB
- UM
- US
- UY
- UZ
- VU
- VE
- VN
- VG
- VI
- WF
- EH
- YE
- ZM
- ZW
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-type CountryDisplay {
- code: String!
- country: String!
- vat: VAT
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input CountryFilterInput {
- attachedToShippingZones: Boolean
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type CreateToken {
- token: String
- refreshToken: String
- csrfToken: String
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type CreditCard {
- brand: String!
- firstDigits: String
- lastDigits: String!
- expMonth: Int
- expYear: Int
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): VoucherCountableConnection
-type CustomerBulkDelete {
- count: Int!
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """Look up a export file by ID."""
+ exportFile(
+ """ID of the export file job."""
+ id: ID!
+ ): ExportFile
-type CustomerCreate {
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- user: User
-}
+ """List of export files."""
+ exportFiles(
+ """Filtering options for export files."""
+ filter: ExportFileFilterInput
-type CustomerDelete {
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- user: User
-}
+ """Sort export files."""
+ sortBy: ExportFileSortingInput
-type CustomerEvent implements Node {
- id: ID!
- date: DateTime
- type: CustomerEventsEnum
- user: User
- app: App
- message: String
- count: Int
- order: Order
- orderLine: OrderLine
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-enum CustomerEventsEnum {
- ACCOUNT_CREATED
- PASSWORD_RESET_LINK_SENT
- PASSWORD_RESET
- EMAIL_CHANGED_REQUEST
- PASSWORD_CHANGED
- EMAIL_CHANGED
- PLACED_ORDER
- NOTE_ADDED_TO_ORDER
- DIGITAL_LINK_DOWNLOADED
- CUSTOMER_DELETED
- NAME_ASSIGNED
- EMAIL_ASSIGNED
- NOTE_ADDED
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-input CustomerFilterInput {
- dateJoined: DateRangeInput
- numberOfOrders: IntRangeInput
- placedOrders: DateRangeInput
- search: String
- metadata: [MetadataFilter]
- updatedAt: DateTimeRangeInput
-}
+ """Return the first n elements from the list."""
+ first: Int
-input CustomerInput {
- defaultBillingAddress: AddressInput
- defaultShippingAddress: AddressInput
- firstName: String
- lastName: String
- email: String
- isActive: Boolean
- note: String
- languageCode: LanguageCodeEnum
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): ExportFileCountableConnection
-type CustomerUpdate {
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
- user: User
-}
+ """List of all tax rates available from tax gateway."""
+ taxTypes: [TaxType]
-scalar Date
+ """Look up a checkout by token and slug of channel."""
+ checkout(
+ """The checkout's token."""
+ token: UUID
+ ): Checkout
-input DateRangeInput {
- gte: Date
- lte: Date
-}
+ """List of checkouts."""
+ checkouts(
+ """New in Saleor 3.1. Sort checkouts."""
+ sortBy: CheckoutSortingInput
-scalar DateTime
+ """New in Saleor 3.1. Filtering options for checkouts."""
+ filter: CheckoutFilterInput
-input DateTimeRangeInput {
- gte: DateTime
- lte: DateTime
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-type DeactivateAllUserTokens {
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type DeleteMetadata {
- metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MetadataError!]!
- item: ObjectWithMetadata
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type DeletePrivateMetadata {
- metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MetadataError!]!
- item: ObjectWithMetadata
-}
+ """Return the first n elements from the list."""
+ first: Int
-union DeliveryMethod = Warehouse | ShippingMethod
+ """Return the last n elements from the list."""
+ last: Int
+ ): CheckoutCountableConnection
-type DigitalContent implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- useDefaultSettings: Boolean!
- automaticFulfillment: Boolean!
- contentFile: String!
- maxDownloads: Int
- urlValidDays: Int
- urls: [DigitalContentUrl]
- productVariant: ProductVariant!
-}
+ """List of checkout lines."""
+ checkoutLines(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type DigitalContentCountableConnection {
- pageInfo: PageInfo!
- edges: [DigitalContentCountableEdge!]!
- totalCount: Int
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type DigitalContentCountableEdge {
- node: DigitalContent!
- cursor: String!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type DigitalContentCreate {
- variant: ProductVariant
- content: DigitalContent
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): CheckoutLineCountableConnection
-type DigitalContentDelete {
- variant: ProductVariant
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
-}
+ """Look up a channel by ID."""
+ channel(
+ """ID of the channel."""
+ id: ID
+ ): Channel
-input DigitalContentInput {
- useDefaultSettings: Boolean!
- maxDownloads: Int
- urlValidDays: Int
- automaticFulfillment: Boolean
-}
+ """List of all channels."""
+ channels: [Channel!]
-type DigitalContentUpdate {
- variant: ProductVariant
- content: DigitalContent
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
-}
+ """List of the shop's attributes."""
+ attributes(
+ """Filtering options for attributes."""
+ filter: AttributeFilterInput
-input DigitalContentUploadInput {
- useDefaultSettings: Boolean!
- maxDownloads: Int
- urlValidDays: Int
- automaticFulfillment: Boolean
- contentFile: Upload!
-}
+ """Sorting options for attributes."""
+ sortBy: AttributeSortingInput
-type DigitalContentUrl implements Node {
- id: ID!
- content: DigitalContent!
- created: DateTime!
- downloadNum: Int!
- url: String
- token: UUID!
-}
+ """Slug of a channel for which the data should be returned."""
+ channel: String
-type DigitalContentUrlCreate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- digitalContentUrl: DigitalContentUrl
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input DigitalContentUrlCreateInput {
- content: ID!
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type DiscountError {
- field: String
- message: String
- products: [ID!]
- code: DiscountErrorCode!
- channels: [ID!]
-}
+ """Return the first n elements from the list."""
+ first: Int
-enum DiscountErrorCode {
- ALREADY_EXISTS
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- UNIQUE
- CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT
- DUPLICATED_INPUT_ITEM
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): AttributeCountableConnection
-enum DiscountStatusEnum {
- ACTIVE
- EXPIRED
- SCHEDULED
-}
+ """Look up an attribute by ID."""
+ attribute(
+ """ID of the attribute."""
+ id: ID
-enum DiscountValueTypeEnum {
- FIXED
- PERCENTAGE
-}
+ """Slug of the attribute."""
+ slug: String
+ ): Attribute
-enum DistanceUnitsEnum {
- CM
- M
- KM
- FT
- YD
- INCH
-}
+ """List of all apps installations"""
+ appsInstallations: [AppInstallation!]!
-type Domain {
- host: String!
- sslEnabled: Boolean!
- url: String!
-}
+ """List of the apps."""
+ apps(
+ """Filtering options for apps."""
+ filter: AppFilterInput
-type DraftOrderBulkDelete {
- count: Int!
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
-}
+ """Sort apps."""
+ sortBy: AppSortingInput
-type DraftOrderComplete {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type DraftOrderCreate {
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
- order: Order
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-input DraftOrderCreateInput {
- billingAddress: AddressInput
- user: ID
- userEmail: String
- discount: PositiveDecimal
- shippingAddress: AddressInput
- shippingMethod: ID
- voucher: ID
- customerNote: String
- channelId: ID
- redirectUrl: String
- lines: [OrderLineCreateInput]
-}
+ """Return the first n elements from the list."""
+ first: Int
-type DraftOrderDelete {
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
- order: Order
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): AppCountableConnection
-input DraftOrderInput {
- billingAddress: AddressInput
- user: ID
- userEmail: String
- discount: PositiveDecimal
- shippingAddress: AddressInput
- shippingMethod: ID
- voucher: ID
- customerNote: String
- channelId: ID
- redirectUrl: String
-}
+ """
+ Look up an app by ID. If ID is not provided, return the currently authenticated app.
+ """
+ app(
+ """ID of the app."""
+ id: ID
+ ): App
-type DraftOrderLinesBulkDelete {
- count: Int!
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
-}
+ """
+ New in Saleor 3.1. List of all extensions. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ appExtensions(
+ """Filtering options for apps extensions."""
+ filter: AppExtensionFilterInput
-type DraftOrderUpdate {
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
- order: Order
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type EventDelivery implements Node {
- id: ID!
- createdAt: DateTime!
- status: EventDeliveryStatusEnum!
- eventType: WebhookEventTypeEnum!
- attempts(sortBy: EventDeliveryAttemptSortingInput, before: String, after: String, first: Int, last: Int): EventDeliveryAttemptCountableConnection
- payload: String
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type EventDeliveryAttempt implements Node {
- id: ID!
- createdAt: DateTime!
- taskId: String
- duration: Float
- response: String
- responseHeaders: String
- requestHeaders: String
- status: EventDeliveryStatusEnum!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type EventDeliveryAttemptCountableConnection {
- pageInfo: PageInfo!
- edges: [EventDeliveryAttemptCountableEdge!]!
- totalCount: Int
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): AppExtensionCountableConnection
-type EventDeliveryAttemptCountableEdge {
- node: EventDeliveryAttempt!
- cursor: String!
-}
+ """
+ New in Saleor 3.1. Look up an app extension by ID. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ appExtension(
+ """ID of the app extension."""
+ id: ID!
+ ): AppExtension
-enum EventDeliveryAttemptSortField {
- CREATED_AT
-}
+ """Returns address validation rules."""
+ addressValidationRules(
+ """Two-letter ISO 3166-1 country code."""
+ countryCode: CountryCode!
-input EventDeliveryAttemptSortingInput {
- direction: OrderDirection!
- field: EventDeliveryAttemptSortField!
-}
+ """Designation of a region, province or state."""
+ countryArea: String
-type EventDeliveryCountableConnection {
- pageInfo: PageInfo!
- edges: [EventDeliveryCountableEdge!]!
- totalCount: Int
-}
+ """City or a town name."""
+ city: String
-type EventDeliveryCountableEdge {
- node: EventDelivery!
- cursor: String!
-}
+ """Sublocality like a district."""
+ cityArea: String
+ ): AddressValidationData
-input EventDeliveryFilterInput {
- status: EventDeliveryStatusEnum
- eventType: WebhookEventTypeEnum
-}
+ """Look up an address by ID."""
+ address(
+ """ID of an address."""
+ id: ID!
+ ): Address
-type EventDeliveryRetry {
- delivery: EventDelivery
- errors: [WebhookError!]!
-}
+ """List of the shop's customers."""
+ customers(
+ """Filtering options for customers."""
+ filter: CustomerFilterInput
-enum EventDeliverySortField {
- CREATED_AT
-}
+ """Sort customers."""
+ sortBy: UserSortingInput
-input EventDeliverySortingInput {
- direction: OrderDirection!
- field: EventDeliverySortField!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-enum EventDeliveryStatusEnum {
- PENDING
- SUCCESS
- FAILED
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type ExportError {
- field: String
- message: String
- code: ExportErrorCode!
-}
+ """Return the first n elements from the list."""
+ first: Int
-enum ExportErrorCode {
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): UserCountableConnection
-type ExportEvent implements Node {
- id: ID!
- date: DateTime!
- type: ExportEventsEnum!
- user: User
- app: App
- message: String!
-}
+ """List of permission groups."""
+ permissionGroups(
+ """Filtering options for permission groups."""
+ filter: PermissionGroupFilterInput
-enum ExportEventsEnum {
- EXPORT_PENDING
- EXPORT_SUCCESS
- EXPORT_FAILED
- EXPORT_DELETED
- EXPORTED_FILE_SENT
- EXPORT_FAILED_INFO_SENT
-}
+ """Sort permission groups."""
+ sortBy: PermissionGroupSortingInput
-type ExportFile implements Node & Job {
- id: ID!
- status: JobStatusEnum!
- createdAt: DateTime!
- updatedAt: DateTime!
- message: String
- url: String
- events: [ExportEvent!]
- user: User
- app: App
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type ExportFileCountableConnection {
- pageInfo: PageInfo!
- edges: [ExportFileCountableEdge!]!
- totalCount: Int
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type ExportFileCountableEdge {
- node: ExportFile!
- cursor: String!
-}
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): GroupCountableConnection
+
+ """Look up permission group by ID."""
+ permissionGroup(
+ """ID of the group."""
+ id: ID!
+ ): Group
-input ExportFileFilterInput {
- createdAt: DateTimeRangeInput
- updatedAt: DateTimeRangeInput
- status: JobStatusEnum
- user: String
- app: String
-}
+ """Return the currently authenticated user."""
+ me: User
-enum ExportFileSortField {
- STATUS
- CREATED_AT
- UPDATED_AT
- LAST_MODIFIED_AT
-}
+ """List of the shop's staff users."""
+ staffUsers(
+ """Filtering options for staff users."""
+ filter: StaffUserInput
-input ExportFileSortingInput {
- direction: OrderDirection!
- field: ExportFileSortField!
-}
+ """Sort staff users."""
+ sortBy: UserSortingInput
-type ExportGiftCards {
- exportFile: ExportFile
- errors: [ExportError!]!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-input ExportGiftCardsInput {
- scope: ExportScope!
- filter: GiftCardFilterInput
- ids: [ID!]
- fileType: FileTypesEnum!
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-input ExportInfoInput {
- attributes: [ID!]
- warehouses: [ID!]
- channels: [ID!]
- fields: [ProductFieldEnum!]
-}
+ """Return the first n elements from the list."""
+ first: Int
-type ExportProducts {
- exportFile: ExportFile
- exportErrors: [ExportError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ExportError!]!
-}
+ """Return the last n elements from the list."""
+ last: Int
+ ): UserCountableConnection
-input ExportProductsInput {
- scope: ExportScope!
- filter: ProductFilterInput
- ids: [ID!]
- exportInfo: ExportInfoInput
- fileType: FileTypesEnum!
-}
+ """Look up a user by ID or email address."""
+ user(
+ """ID of the user."""
+ id: ID
-enum ExportScope {
- ALL
- IDS
- FILTER
+ """Email address of the user."""
+ email: String
+ ): User
+ _entities(representations: [_Any]): [_Entity]
+ _service: _Service
}
-type ExternalAuthentication {
- id: String!
- name: String
-}
+"""Webhook."""
+type Webhook implements Node {
+ id: ID!
+ name: String!
-type ExternalAuthenticationUrl {
- authenticationData: JSONString
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """List of webhook events."""
+ events: [WebhookEvent!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead.")
-type ExternalLogout {
- logoutData: JSONString
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """List of synchronous webhook events."""
+ syncEvents: [WebhookEventSync!]!
-type ExternalNotificationError {
- field: String
- message: String
- code: ExternalNotificationErrorCodes!
-}
+ """List of asynchronous webhook events."""
+ asyncEvents: [WebhookEventAsync!]!
+ app: App!
-enum ExternalNotificationErrorCodes {
- REQUIRED
- INVALID_MODEL_TYPE
- NOT_FOUND
- CHANNEL_INACTIVE
-}
+ """Event deliveries."""
+ eventDeliveries(
+ """Event delivery sorter."""
+ sortBy: EventDeliverySortingInput
-type ExternalNotificationTrigger {
- errors: [ExternalNotificationError!]!
-}
+ """Event delivery filter options."""
+ filter: EventDeliveryFilterInput
-input ExternalNotificationTriggerInput {
- ids: [ID]!
- extraPayload: JSONString
- externalEventType: String!
-}
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
-type ExternalObtainAccessTokens {
- token: String
- refreshToken: String
- csrfToken: String
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
-type ExternalRefresh {
- token: String
- refreshToken: String
- csrfToken: String
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """Return the first n elements from the list."""
+ first: Int
-type ExternalVerify {
- user: User
- isValid: Boolean!
- verifyData: JSONString
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
+ """Return the last n elements from the list."""
+ last: Int
+ ): EventDeliveryCountableConnection
+ targetUrl: String!
+ isActive: Boolean!
+ secretKey: String
}
-type File {
- url: String!
- contentType: String
+"""An object with an ID"""
+interface Node {
+ """The ID of the object."""
+ id: ID!
}
-enum FileTypesEnum {
- CSV
- XLSX
-}
+"""Webhook event."""
+type WebhookEvent {
+ """Display name of the event."""
+ name: String!
-type FileUpload {
- uploadedFile: File
- uploadErrors: [UploadError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [UploadError!]!
+ """Internal name of the event type."""
+ eventType: WebhookEventTypeEnum!
}
-type Fulfillment implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- fulfillmentOrder: Int!
- status: FulfillmentStatus!
- trackingNumber: String!
- created: DateTime!
- lines: [FulfillmentLine]
- statusDisplay: String
- warehouse: Warehouse
-}
-
-type FulfillmentApprove {
- fulfillment: Fulfillment
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""Enum determining type of webhook."""
+enum WebhookEventTypeEnum {
+ ANY_EVENTS
+ ORDER_CREATED
+ ORDER_CONFIRMED
+ ORDER_FULLY_PAID
+ ORDER_UPDATED
+ ORDER_CANCELLED
+ ORDER_FULFILLED
+ DRAFT_ORDER_CREATED
+ DRAFT_ORDER_UPDATED
+ DRAFT_ORDER_DELETED
+ SALE_CREATED
+ SALE_UPDATED
+ SALE_DELETED
+ INVOICE_REQUESTED
+ INVOICE_DELETED
+ INVOICE_SENT
+ CUSTOMER_CREATED
+ CUSTOMER_UPDATED
+ COLLECTION_CREATED
+ COLLECTION_UPDATED
+ COLLECTION_DELETED
+ PRODUCT_CREATED
+ PRODUCT_UPDATED
+ PRODUCT_DELETED
+ PRODUCT_VARIANT_CREATED
+ PRODUCT_VARIANT_UPDATED
+ PRODUCT_VARIANT_DELETED
+ PRODUCT_VARIANT_OUT_OF_STOCK
+ PRODUCT_VARIANT_BACK_IN_STOCK
+ CHECKOUT_CREATED
+ CHECKOUT_UPDATED
+ FULFILLMENT_CREATED
+ FULFILLMENT_CANCELED
+ NOTIFY_USER
+ PAGE_CREATED
+ PAGE_UPDATED
+ PAGE_DELETED
+ TRANSLATION_CREATED
+ TRANSLATION_UPDATED
+ PAYMENT_AUTHORIZE
+ PAYMENT_CAPTURE
+ PAYMENT_CONFIRM
+ PAYMENT_LIST_GATEWAYS
+ PAYMENT_PROCESS
+ PAYMENT_REFUND
+ PAYMENT_VOID
+ SHIPPING_LIST_METHODS_FOR_CHECKOUT
+ ORDER_FILTER_SHIPPING_METHODS
+ CHECKOUT_FILTER_SHIPPING_METHODS
}
-type FulfillmentCancel {
- fulfillment: Fulfillment
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
-}
+"""Synchronous webhook event."""
+type WebhookEventSync {
+ """Display name of the event."""
+ name: String!
-input FulfillmentCancelInput {
- warehouseId: ID
+ """Internal name of the event type."""
+ eventType: WebhookEventTypeSyncEnum!
}
-type FulfillmentLine implements Node {
- id: ID!
- quantity: Int!
- orderLine: OrderLine
+"""Enum determining type of webhook."""
+enum WebhookEventTypeSyncEnum {
+ PAYMENT_AUTHORIZE
+ PAYMENT_CAPTURE
+ PAYMENT_CONFIRM
+ PAYMENT_LIST_GATEWAYS
+ PAYMENT_PROCESS
+ PAYMENT_REFUND
+ PAYMENT_VOID
+ SHIPPING_LIST_METHODS_FOR_CHECKOUT
+ ORDER_FILTER_SHIPPING_METHODS
+ CHECKOUT_FILTER_SHIPPING_METHODS
}
-type FulfillmentRefundProducts {
- fulfillment: Fulfillment
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
-}
+"""Asynchronous webhook event."""
+type WebhookEventAsync {
+ """Display name of the event."""
+ name: String!
-type FulfillmentReturnProducts {
- returnFulfillment: Fulfillment
- replaceFulfillment: Fulfillment
- order: Order
- replaceOrder: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+ """Internal name of the event type."""
+ eventType: WebhookEventTypeAsyncEnum!
}
-enum FulfillmentStatus {
- FULFILLED
- REFUNDED
- RETURNED
- REPLACED
- REFUNDED_AND_RETURNED
- CANCELED
- WAITING_FOR_APPROVAL
-}
+"""Enum determining type of webhook."""
+enum WebhookEventTypeAsyncEnum {
+ """All the events."""
+ ANY_EVENTS
-type FulfillmentUpdateTracking {
- fulfillment: Fulfillment
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
-}
+ """A new order is placed."""
+ ORDER_CREATED
-input FulfillmentUpdateTrackingInput {
- trackingNumber: String
- notifyCustomer: Boolean = false
-}
+ """
+ An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled.
+ """
+ ORDER_CONFIRMED
-type GatewayConfigLine {
- field: String!
- value: String
-}
+ """Payment is made and an order is fully paid."""
+ ORDER_FULLY_PAID
-scalar GenericScalar
+ """
+ An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED.
+ """
+ ORDER_UPDATED
-type GiftCard implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- displayCode: String!
- last4CodeChars: String!
- code: String!
- created: DateTime!
- createdBy: User
- usedBy: User
- createdByEmail: String
- usedByEmail: String
- lastUsedOn: DateTime
- expiryDate: Date
- app: App
- product: Product
- events(filter: GiftCardEventFilterInput): [GiftCardEvent!]!
- tags: [GiftCardTag!]!
- boughtInChannel: String
- isActive: Boolean!
- initialBalance: Money
- currentBalance: Money
- user: User @deprecated(reason: "This field will be removed in Saleor 4.0. Use `createdBy` field instead.")
- endDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0. Use `expiryDate` field instead.")
- startDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0.")
-}
+ """An order is cancelled."""
+ ORDER_CANCELLED
-type GiftCardActivate {
- giftCard: GiftCard
- giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [GiftCardError!]!
-}
+ """An order is fulfilled."""
+ ORDER_FULFILLED
+ DRAFT_ORDER_CREATED
+ DRAFT_ORDER_UPDATED
+ DRAFT_ORDER_DELETED
+ SALE_CREATED
+ SALE_UPDATED
+ SALE_DELETED
-type GiftCardAddNote {
- giftCard: GiftCard
- event: GiftCardEvent
- errors: [GiftCardError!]!
-}
+ """An invoice for order requested."""
+ INVOICE_REQUESTED
-input GiftCardAddNoteInput {
- message: String!
-}
+ """An invoice is deleted."""
+ INVOICE_DELETED
-type GiftCardBulkActivate {
- count: Int!
- errors: [GiftCardError!]!
-}
+ """Invoice has been sent."""
+ INVOICE_SENT
-type GiftCardBulkCreate {
- count: Int!
- giftCards: [GiftCard!]!
- errors: [GiftCardError!]!
-}
+ """A new customer account is created."""
+ CUSTOMER_CREATED
-input GiftCardBulkCreateInput {
- count: Int!
- balance: PriceInput!
- tags: [String!]
- expiryDate: Date
- isActive: Boolean!
-}
+ """A customer account is updated."""
+ CUSTOMER_UPDATED
-type GiftCardBulkDeactivate {
- count: Int!
- errors: [GiftCardError!]!
-}
+ """A new collection is created."""
+ COLLECTION_CREATED
-type GiftCardBulkDelete {
- count: Int!
- errors: [GiftCardError!]!
-}
+ """A collection is updated."""
+ COLLECTION_UPDATED
-type GiftCardCountableConnection {
- pageInfo: PageInfo!
- edges: [GiftCardCountableEdge!]!
- totalCount: Int
-}
+ """A collection is deleted."""
+ COLLECTION_DELETED
-type GiftCardCountableEdge {
- node: GiftCard!
- cursor: String!
-}
+ """A new product is created."""
+ PRODUCT_CREATED
-type GiftCardCreate {
- giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [GiftCardError!]!
- giftCard: GiftCard
-}
+ """A product is updated."""
+ PRODUCT_UPDATED
-input GiftCardCreateInput {
- addTags: [String!]
- expiryDate: Date
- startDate: Date
- endDate: Date
- balance: PriceInput!
- userEmail: String
- channel: String
- isActive: Boolean!
- code: String
- note: String
-}
+ """A product is deleted."""
+ PRODUCT_DELETED
-type GiftCardDeactivate {
- giftCard: GiftCard
- giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [GiftCardError!]!
-}
+ """A new product variant is created."""
+ PRODUCT_VARIANT_CREATED
-type GiftCardDelete {
- giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [GiftCardError!]!
- giftCard: GiftCard
-}
+ """A product variant is updated."""
+ PRODUCT_VARIANT_UPDATED
-type GiftCardError {
- field: String
- message: String
- code: GiftCardErrorCode!
- tags: [String!]
-}
+ """A product variant is deleted."""
+ PRODUCT_VARIANT_DELETED
+ PRODUCT_VARIANT_OUT_OF_STOCK
+ PRODUCT_VARIANT_BACK_IN_STOCK
-enum GiftCardErrorCode {
- ALREADY_EXISTS
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- UNIQUE
- EXPIRED_GIFT_CARD
- DUPLICATED_INPUT_ITEM
-}
+ """A new checkout is created."""
+ CHECKOUT_CREATED
-type GiftCardEvent implements Node {
- id: ID!
- date: DateTime
- type: GiftCardEventsEnum
- user: User
- app: App
- message: String
- email: String
- orderId: ID
- orderNumber: String
- tags: [String!]
- oldTags: [String!]
- balance: GiftCardEventBalance
- expiryDate: Date
- oldExpiryDate: Date
-}
+ """
+ A checkout is updated. It also triggers all updates related to the checkout.
+ """
+ CHECKOUT_UPDATED
-type GiftCardEventBalance {
- initialBalance: Money
- currentBalance: Money!
- oldInitialBalance: Money
- oldCurrentBalance: Money
-}
+ """A new fulfillment is created."""
+ FULFILLMENT_CREATED
-input GiftCardEventFilterInput {
- type: GiftCardEventsEnum
- orders: [ID!]
-}
+ """A fulfillment is cancelled."""
+ FULFILLMENT_CANCELED
-enum GiftCardEventsEnum {
- ISSUED
- BOUGHT
- UPDATED
- ACTIVATED
- DEACTIVATED
- BALANCE_RESET
- EXPIRY_DATE_UPDATED
- TAGS_UPDATED
- SENT_TO_CUSTOMER
- RESENT
- NOTE_ADDED
- USED_IN_ORDER
-}
+ """User notification triggered."""
+ NOTIFY_USER
-input GiftCardFilterInput {
- isActive: Boolean
- metadata: [MetadataFilter]
- tags: [String]
- products: [ID]
- usedBy: [ID]
- used: Boolean
- currency: String
- currentBalance: PriceRangeInput
- initialBalance: PriceRangeInput
- code: String
-}
+ """A new page is created."""
+ PAGE_CREATED
-type GiftCardResend {
- giftCard: GiftCard
- errors: [GiftCardError!]!
+ """A page is updated."""
+ PAGE_UPDATED
+
+ """A page is deleted."""
+ PAGE_DELETED
+ TRANSLATION_CREATED
+ TRANSLATION_UPDATED
}
-input GiftCardResendInput {
+"""Represents app data."""
+type App implements Node & ObjectWithMetadata {
id: ID!
- email: String
- channel: String!
-}
-type GiftCardSettings {
- expiryType: GiftCardSettingsExpiryTypeEnum!
- expiryPeriod: TimePeriod
-}
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
-type GiftCardSettingsError {
- field: String
- message: String
- code: GiftCardSettingsErrorCode!
-}
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
-enum GiftCardSettingsErrorCode {
- INVALID
- REQUIRED
- GRAPHQL_ERROR
-}
+ """List of the app's permissions."""
+ permissions: [Permission]
-enum GiftCardSettingsExpiryTypeEnum {
- NEVER_EXPIRE
- EXPIRY_PERIOD
-}
+ """The date and time when the app was created."""
+ created: DateTime
-type GiftCardSettingsUpdate {
- giftCardSettings: GiftCardSettings
- errors: [GiftCardSettingsError!]!
-}
+ """Determine if app will be set active or not."""
+ isActive: Boolean
-input GiftCardSettingsUpdateInput {
- expiryType: GiftCardSettingsExpiryTypeEnum
- expiryPeriod: TimePeriodInputType
-}
+ """Name of the app."""
+ name: String
-enum GiftCardSortField {
- PRODUCT
- USED_BY
- CURRENT_BALANCE
-}
+ """Type of the app."""
+ type: AppTypeEnum
-input GiftCardSortingInput {
- direction: OrderDirection!
- field: GiftCardSortField!
-}
+ """Last 4 characters of the tokens."""
+ tokens: [AppToken]
-type GiftCardTag implements Node {
- id: ID!
- name: String!
-}
+ """List of webhooks assigned to this app."""
+ webhooks: [Webhook]
-type GiftCardTagCountableConnection {
- pageInfo: PageInfo!
- edges: [GiftCardTagCountableEdge!]!
- totalCount: Int
-}
+ """Description of this app."""
+ aboutApp: String
-type GiftCardTagCountableEdge {
- node: GiftCardTag!
- cursor: String!
-}
+ """Description of the data privacy defined for this app."""
+ dataPrivacy: String
-input GiftCardTagFilterInput {
- search: String
-}
+ """Url to details about the privacy policy on the app owner page."""
+ dataPrivacyUrl: String
-type GiftCardUpdate {
- giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [GiftCardError!]!
- giftCard: GiftCard
-}
+ """Homepage of the app."""
+ homepageUrl: String
-input GiftCardUpdateInput {
- addTags: [String!]
- expiryDate: Date
- startDate: Date
- endDate: Date
- removeTags: [String!]
- balanceAmount: PositiveDecimal
-}
+ """Support page for the app."""
+ supportUrl: String
-type Group implements Node {
- id: ID!
- name: String!
- users: [User]
- permissions: [Permission]
- userCanManage: Boolean!
-}
+ """Url to iframe with the configuration for the app."""
+ configurationUrl: String
-type GroupCountableConnection {
- pageInfo: PageInfo!
- edges: [GroupCountableEdge!]!
- totalCount: Int
-}
+ """Url to iframe with the app."""
+ appUrl: String
-type GroupCountableEdge {
- node: Group!
- cursor: String!
-}
+ """Version number of the app."""
+ version: String
-type Image {
- url: String!
- alt: String
-}
+ """JWT token used to authenticate by thridparty app."""
+ accessToken: String
-input IntRangeInput {
- gte: Int
- lte: Int
+ """
+ New in Saleor 3.1. App's dashboard extensions. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ extensions: [AppExtension!]!
}
-type Invoice implements ObjectWithMetadata & Job & Node {
+interface ObjectWithMetadata {
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
metadata: [MetadataItem]!
- status: JobStatusEnum!
- createdAt: DateTime!
- updatedAt: DateTime!
- message: String
- id: ID!
- number: String
- externalUrl: String
- url: String
}
-type InvoiceCreate {
- invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [InvoiceError!]!
- invoice: Invoice
+type MetadataItem {
+ """Key of a metadata item."""
+ key: String!
+
+ """Value of a metadata item."""
+ value: String!
}
-input InvoiceCreateInput {
- number: String!
- url: String!
+"""Represents a permission object in a friendly form."""
+type Permission {
+ """Internal code for permission."""
+ code: PermissionEnum!
+
+ """Describe action(s) allowed to do by permission."""
+ name: String!
}
-type InvoiceDelete {
- invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [InvoiceError!]!
- invoice: Invoice
+"""An enumeration."""
+enum PermissionEnum {
+ MANAGE_USERS
+ MANAGE_STAFF
+ IMPERSONATE_USER
+ MANAGE_APPS
+ MANAGE_CHANNELS
+ MANAGE_DISCOUNTS
+ MANAGE_PLUGINS
+ MANAGE_GIFT_CARD
+ MANAGE_MENUS
+ MANAGE_ORDERS
+ MANAGE_PAGES
+ MANAGE_PAGE_TYPES_AND_ATTRIBUTES
+ HANDLE_PAYMENTS
+ MANAGE_PRODUCTS
+ MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES
+ MANAGE_SHIPPING
+ MANAGE_SETTINGS
+ MANAGE_TRANSLATIONS
+ MANAGE_CHECKOUTS
}
-type InvoiceError {
- field: String
- message: String
- code: InvoiceErrorCode!
+"""
+The `DateTime` scalar type represents a DateTime
+value as specified by
+[iso8601](https://en.wikipedia.org/wiki/ISO_8601).
+"""
+scalar DateTime
+
+"""Enum determining type of your App."""
+enum AppTypeEnum {
+ """
+ Local Saleor App. The app is fully manageable from dashboard. You can change assigned permissions, add webhooks, or authentication token
+ """
+ LOCAL
+
+ """
+ Third party external App. Installation is fully automated. Saleor uses a defined App manifest to gather all required information.
+ """
+ THIRDPARTY
}
-enum InvoiceErrorCode {
- REQUIRED
- NOT_READY
- URL_NOT_SET
- EMAIL_NOT_SET
- NUMBER_NOT_SET
- NOT_FOUND
- INVALID_STATUS
- NO_INVOICE_PLUGIN
+"""Represents token data."""
+type AppToken implements Node {
+ id: ID!
+
+ """Name of the authenticated token."""
+ name: String
+
+ """Last 4 characters of the token."""
+ authToken: String
}
-type InvoiceRequest {
- order: Order
- invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [InvoiceError!]!
- invoice: Invoice
+"""Represents app data."""
+type AppExtension implements Node {
+ id: ID!
+
+ """List of the app extension's permissions."""
+ permissions: [Permission!]!
+
+ """Label of the extension to show in the dashboard."""
+ label: String!
+
+ """URL of a view where extension's iframe is placed."""
+ url: String!
+
+ """Place where given extension will be mounted."""
+ mount: AppExtensionMountEnum!
+
+ """Type of way how app extension will be opened."""
+ target: AppExtensionTargetEnum!
+ app: App!
+
+ """JWT token used to authenticate by thridparty app extension."""
+ accessToken: String
}
-type InvoiceRequestDelete {
- invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [InvoiceError!]!
- invoice: Invoice
+"""All places where app extension can be mounted."""
+enum AppExtensionMountEnum {
+ PRODUCT_OVERVIEW_CREATE
+ PRODUCT_OVERVIEW_MORE_ACTIONS
+ PRODUCT_DETAILS_MORE_ACTIONS
+ NAVIGATION_CATALOG
+ NAVIGATION_ORDERS
+ NAVIGATION_CUSTOMERS
+ NAVIGATION_DISCOUNTS
+ NAVIGATION_TRANSLATIONS
+ NAVIGATION_PAGES
}
-type InvoiceSendNotification {
- invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [InvoiceError!]!
- invoice: Invoice
+"""
+All available ways of opening an app extension.
+
+ POPUP - app's extension will be mounted as a popup window
+ APP_PAGE - redirect to app's page
+"""
+enum AppExtensionTargetEnum {
+ POPUP
+ APP_PAGE
}
-type InvoiceUpdate {
- invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [InvoiceError!]!
- invoice: Invoice
+type EventDeliveryCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [EventDeliveryCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
}
-scalar JSONString
+"""
+The Relay compliant `PageInfo` type, containing data necessary to paginate this connection.
+"""
+type PageInfo {
+ """When paginating forwards, are there more items?"""
+ hasNextPage: Boolean!
-interface Job {
- status: JobStatusEnum!
+ """When paginating backwards, are there more items?"""
+ hasPreviousPage: Boolean!
+
+ """When paginating backwards, the cursor to continue."""
+ startCursor: String
+
+ """When paginating forwards, the cursor to continue."""
+ endCursor: String
+}
+
+type EventDeliveryCountableEdge {
+ """The item at the end of the edge."""
+ node: EventDelivery!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+"""Event delivery."""
+type EventDelivery implements Node {
+ id: ID!
createdAt: DateTime!
- updatedAt: DateTime!
- message: String
+
+ """Event delivery status."""
+ status: EventDeliveryStatusEnum!
+
+ """Webhook event type."""
+ eventType: WebhookEventTypeEnum!
+
+ """Event delivery attempts."""
+ attempts(
+ """Event delivery sorter"""
+ sortBy: EventDeliveryAttemptSortingInput
+
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): EventDeliveryAttemptCountableConnection
+
+ """Event payload."""
+ payload: String
}
-enum JobStatusEnum {
+enum EventDeliveryStatusEnum {
PENDING
SUCCESS
FAILED
- DELETED
}
-enum LanguageCodeEnum {
- AF
- AF_NA
- AF_ZA
- AGQ
- AGQ_CM
- AK
- AK_GH
- AM
- AM_ET
- AR
- AR_AE
- AR_BH
- AR_DJ
- AR_DZ
- AR_EG
- AR_EH
- AR_ER
- AR_IL
- AR_IQ
- AR_JO
- AR_KM
- AR_KW
- AR_LB
- AR_LY
- AR_MA
- AR_MR
- AR_OM
- AR_PS
- AR_QA
- AR_SA
- AR_SD
- AR_SO
- AR_SS
- AR_SY
- AR_TD
- AR_TN
- AR_YE
- AS
- AS_IN
- ASA
- ASA_TZ
- AST
- AST_ES
- AZ
- AZ_CYRL
- AZ_CYRL_AZ
- AZ_LATN
- AZ_LATN_AZ
- BAS
- BAS_CM
- BE
- BE_BY
- BEM
- BEM_ZM
- BEZ
- BEZ_TZ
- BG
- BG_BG
- BM
- BM_ML
- BN
- BN_BD
- BN_IN
- BO
- BO_CN
- BO_IN
- BR
- BR_FR
- BRX
- BRX_IN
- BS
- BS_CYRL
- BS_CYRL_BA
- BS_LATN
- BS_LATN_BA
- CA
- CA_AD
- CA_ES
- CA_ES_VALENCIA
- CA_FR
- CA_IT
- CCP
- CCP_BD
- CCP_IN
- CE
- CE_RU
- CEB
- CEB_PH
- CGG
- CGG_UG
- CHR
- CHR_US
- CKB
- CKB_IQ
- CKB_IR
- CS
- CS_CZ
- CU
- CU_RU
- CY
- CY_GB
- DA
- DA_DK
- DA_GL
- DAV
- DAV_KE
- DE
- DE_AT
- DE_BE
- DE_CH
- DE_DE
- DE_IT
- DE_LI
- DE_LU
- DJE
- DJE_NE
- DSB
- DSB_DE
- DUA
- DUA_CM
- DYO
- DYO_SN
- DZ
- DZ_BT
- EBU
- EBU_KE
- EE
- EE_GH
- EE_TG
- EL
- EL_CY
- EL_GR
- EN
- EN_AE
- EN_AG
- EN_AI
- EN_AS
- EN_AT
- EN_AU
- EN_BB
- EN_BE
- EN_BI
- EN_BM
- EN_BS
- EN_BW
- EN_BZ
- EN_CA
- EN_CC
- EN_CH
- EN_CK
- EN_CM
- EN_CX
- EN_CY
+type EventDeliveryAttemptCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [EventDeliveryAttemptCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type EventDeliveryAttemptCountableEdge {
+ """The item at the end of the edge."""
+ node: EventDeliveryAttempt!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+"""Event delivery attempts."""
+type EventDeliveryAttempt implements Node {
+ id: ID!
+
+ """Event delivery creation date and time."""
+ createdAt: DateTime!
+ taskId: String
+ duration: Float
+ response: String
+ responseHeaders: String
+ requestHeaders: String
+
+ """Event delivery status."""
+ status: EventDeliveryStatusEnum!
+}
+
+input EventDeliveryAttemptSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort attempts by the selected field."""
+ field: EventDeliveryAttemptSortField!
+}
+
+enum OrderDirection {
+ """Specifies an ascending sort order."""
+ ASC
+
+ """Specifies a descending sort order."""
+ DESC
+}
+
+enum EventDeliveryAttemptSortField {
+ """Sort event delivery attempts by created at."""
+ CREATED_AT
+}
+
+input EventDeliverySortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort deliveries by the selected field."""
+ field: EventDeliverySortField!
+}
+
+enum EventDeliverySortField {
+ """Sort event deliveries by created at."""
+ CREATED_AT
+}
+
+input EventDeliveryFilterInput {
+ status: EventDeliveryStatusEnum
+ eventType: WebhookEventTypeEnum
+}
+
+scalar JSONString
+
+"""An enumeration."""
+enum WebhookSampleEventTypeEnum {
+ ORDER_CREATED
+ ORDER_CONFIRMED
+ ORDER_FULLY_PAID
+ ORDER_UPDATED
+ ORDER_CANCELLED
+ ORDER_FULFILLED
+ DRAFT_ORDER_CREATED
+ DRAFT_ORDER_UPDATED
+ DRAFT_ORDER_DELETED
+ SALE_CREATED
+ SALE_UPDATED
+ SALE_DELETED
+ INVOICE_REQUESTED
+ INVOICE_DELETED
+ INVOICE_SENT
+ CUSTOMER_CREATED
+ CUSTOMER_UPDATED
+ COLLECTION_CREATED
+ COLLECTION_UPDATED
+ COLLECTION_DELETED
+ PRODUCT_CREATED
+ PRODUCT_UPDATED
+ PRODUCT_DELETED
+ PRODUCT_VARIANT_CREATED
+ PRODUCT_VARIANT_UPDATED
+ PRODUCT_VARIANT_DELETED
+ PRODUCT_VARIANT_OUT_OF_STOCK
+ PRODUCT_VARIANT_BACK_IN_STOCK
+ CHECKOUT_CREATED
+ CHECKOUT_UPDATED
+ FULFILLMENT_CREATED
+ FULFILLMENT_CANCELED
+ NOTIFY_USER
+ PAGE_CREATED
+ PAGE_UPDATED
+ PAGE_DELETED
+ TRANSLATION_CREATED
+ TRANSLATION_UPDATED
+}
+
+"""Represents warehouse."""
+type Warehouse implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String!
+ slug: String!
+ email: String!
+ isPrivate: Boolean!
+ address: Address!
+
+ """Warehouse company name."""
+ companyName: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead.")
+
+ """
+ New in Saleor 3.1. Click and collect options: local, all or disabled. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ clickAndCollectOption: WarehouseClickAndCollectOptionEnum!
+ shippingZones(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ShippingZoneCountableConnection!
+}
+
+"""Represents user address data."""
+type Address implements Node {
+ id: ID!
+ firstName: String!
+ lastName: String!
+ companyName: String!
+ streetAddress1: String!
+ streetAddress2: String!
+ city: String!
+ cityArea: String!
+ postalCode: String!
+
+ """Shop's default country."""
+ country: CountryDisplay!
+ countryArea: String!
+ phone: String
+
+ """Address is user's default shipping address."""
+ isDefaultShippingAddress: Boolean
+
+ """Address is user's default billing address."""
+ isDefaultBillingAddress: Boolean
+}
+
+type CountryDisplay {
+ """Country code."""
+ code: String!
+
+ """Country name."""
+ country: String!
+
+ """Country tax."""
+ vat: VAT
+}
+
+"""Represents a VAT rate for a country."""
+type VAT {
+ """Country code."""
+ countryCode: String!
+
+ """Standard VAT rate in percent."""
+ standardRate: Float
+
+ """Country's VAT rate exceptions for specific types of goods."""
+ reducedRates: [ReducedRate]!
+}
+
+"""Represents a reduced VAT rate for a particular type of goods."""
+type ReducedRate {
+ """Reduced VAT rate in percent."""
+ rate: Float!
+
+ """A type of goods."""
+ rateType: String!
+}
+
+"""An enumeration."""
+enum WarehouseClickAndCollectOptionEnum {
+ DISABLED
+ LOCAL
+ ALL
+}
+
+type ShippingZoneCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [ShippingZoneCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type ShippingZoneCountableEdge {
+ """The item at the end of the edge."""
+ node: ShippingZone!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+"""
+Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly.
+"""
+type ShippingZone implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String!
+ default: Boolean!
+
+ """Lowest and highest prices for the shipping."""
+ priceRange: MoneyRange
+
+ """List of countries available for the method."""
+ countries: [CountryDisplay]
+
+ """
+ List of shipping methods available for orders shipped to countries within this shipping zone.
+ """
+ shippingMethods: [ShippingMethodType]
+
+ """List of warehouses for shipping zone."""
+ warehouses: [Warehouse!]!
+
+ """List of channels for shipping zone."""
+ channels: [Channel!]!
+
+ """Description of a shipping zone."""
+ description: String
+}
+
+"""Represents a range of amounts of money."""
+type MoneyRange {
+ """Lower bound of a price range."""
+ start: Money
+
+ """Upper bound of a price range."""
+ stop: Money
+}
+
+"""Represents amount of money in specific currency."""
+type Money {
+ """Currency code."""
+ currency: String!
+
+ """Amount of money."""
+ amount: Float!
+}
+
+"""
+Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers.
+"""
+type ShippingMethodType implements Node & ObjectWithMetadata {
+ """Shipping method ID."""
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+
+ """Shipping method name."""
+ name: String!
+
+ """Shipping method description."""
+ description: JSONString
+
+ """Type of the shipping method."""
+ type: ShippingMethodTypeEnum
+
+ """Returns translated shipping method fields for the given language code."""
+ translation(
+ """A language code to return the translation for shipping method."""
+ languageCode: LanguageCodeEnum!
+ ): ShippingMethodTranslation
+
+ """List of channels available for the method."""
+ channelListings: [ShippingMethodChannelListing!]
+
+ """The price of the cheapest variant (including discounts)."""
+ maximumOrderPrice: Money
+
+ """The price of the cheapest variant (including discounts)."""
+ minimumOrderPrice: Money
+
+ """
+ Postal code ranges rule of exclusion or inclusion of the shipping method.
+ """
+ postalCodeRules: [ShippingMethodPostalCodeRule]
+
+ """List of excluded products for the shipping method."""
+ excludedProducts(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductCountableConnection
+
+ """Minimum order weight to use this shipping method."""
+ minimumOrderWeight: Weight
+
+ """Maximum order weight to use this shipping method."""
+ maximumOrderWeight: Weight
+
+ """Maximum number of days for delivery."""
+ maximumDeliveryDays: Int
+
+ """Minimal number of days for delivery."""
+ minimumDeliveryDays: Int
+}
+
+"""An enumeration."""
+enum ShippingMethodTypeEnum {
+ PRICE
+ WEIGHT
+}
+
+type ShippingMethodTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ name: String
+ description: JSONString
+}
+
+type LanguageDisplay {
+ """ISO 639 representation of the language name."""
+ code: LanguageCodeEnum!
+
+ """Full name of the language."""
+ language: String!
+}
+
+"""An enumeration."""
+enum LanguageCodeEnum {
+ AF
+ AF_NA
+ AF_ZA
+ AGQ
+ AGQ_CM
+ AK
+ AK_GH
+ AM
+ AM_ET
+ AR
+ AR_AE
+ AR_BH
+ AR_DJ
+ AR_DZ
+ AR_EG
+ AR_EH
+ AR_ER
+ AR_IL
+ AR_IQ
+ AR_JO
+ AR_KM
+ AR_KW
+ AR_LB
+ AR_LY
+ AR_MA
+ AR_MR
+ AR_OM
+ AR_PS
+ AR_QA
+ AR_SA
+ AR_SD
+ AR_SO
+ AR_SS
+ AR_SY
+ AR_TD
+ AR_TN
+ AR_YE
+ AS
+ AS_IN
+ ASA
+ ASA_TZ
+ AST
+ AST_ES
+ AZ
+ AZ_CYRL
+ AZ_CYRL_AZ
+ AZ_LATN
+ AZ_LATN_AZ
+ BAS
+ BAS_CM
+ BE
+ BE_BY
+ BEM
+ BEM_ZM
+ BEZ
+ BEZ_TZ
+ BG
+ BG_BG
+ BM
+ BM_ML
+ BN
+ BN_BD
+ BN_IN
+ BO
+ BO_CN
+ BO_IN
+ BR
+ BR_FR
+ BRX
+ BRX_IN
+ BS
+ BS_CYRL
+ BS_CYRL_BA
+ BS_LATN
+ BS_LATN_BA
+ CA
+ CA_AD
+ CA_ES
+ CA_ES_VALENCIA
+ CA_FR
+ CA_IT
+ CCP
+ CCP_BD
+ CCP_IN
+ CE
+ CE_RU
+ CEB
+ CEB_PH
+ CGG
+ CGG_UG
+ CHR
+ CHR_US
+ CKB
+ CKB_IQ
+ CKB_IR
+ CS
+ CS_CZ
+ CU
+ CU_RU
+ CY
+ CY_GB
+ DA
+ DA_DK
+ DA_GL
+ DAV
+ DAV_KE
+ DE
+ DE_AT
+ DE_BE
+ DE_CH
+ DE_DE
+ DE_IT
+ DE_LI
+ DE_LU
+ DJE
+ DJE_NE
+ DSB
+ DSB_DE
+ DUA
+ DUA_CM
+ DYO
+ DYO_SN
+ DZ
+ DZ_BT
+ EBU
+ EBU_KE
+ EE
+ EE_GH
+ EE_TG
+ EL
+ EL_CY
+ EL_GR
+ EN
+ EN_AE
+ EN_AG
+ EN_AI
+ EN_AS
+ EN_AT
+ EN_AU
+ EN_BB
+ EN_BE
+ EN_BI
+ EN_BM
+ EN_BS
+ EN_BW
+ EN_BZ
+ EN_CA
+ EN_CC
+ EN_CH
+ EN_CK
+ EN_CM
+ EN_CX
+ EN_CY
EN_DE
EN_DG
EN_DK
@@ -3062,3615 +2193,12205 @@ enum LanguageCodeEnum {
ES_UY
ES_VE
ET
- ET_EE
+ ET_EE
+ EU
+ EU_ES
+ EWO
+ EWO_CM
+ FA
+ FA_AF
+ FA_IR
+ FF
+ FF_ADLM
+ FF_ADLM_BF
+ FF_ADLM_CM
+ FF_ADLM_GH
+ FF_ADLM_GM
+ FF_ADLM_GN
+ FF_ADLM_GW
+ FF_ADLM_LR
+ FF_ADLM_MR
+ FF_ADLM_NE
+ FF_ADLM_NG
+ FF_ADLM_SL
+ FF_ADLM_SN
+ FF_LATN
+ FF_LATN_BF
+ FF_LATN_CM
+ FF_LATN_GH
+ FF_LATN_GM
+ FF_LATN_GN
+ FF_LATN_GW
+ FF_LATN_LR
+ FF_LATN_MR
+ FF_LATN_NE
+ FF_LATN_NG
+ FF_LATN_SL
+ FF_LATN_SN
+ FI
+ FI_FI
+ FIL
+ FIL_PH
+ FO
+ FO_DK
+ FO_FO
+ FR
+ FR_BE
+ FR_BF
+ FR_BI
+ FR_BJ
+ FR_BL
+ FR_CA
+ FR_CD
+ FR_CF
+ FR_CG
+ FR_CH
+ FR_CI
+ FR_CM
+ FR_DJ
+ FR_DZ
+ FR_FR
+ FR_GA
+ FR_GF
+ FR_GN
+ FR_GP
+ FR_GQ
+ FR_HT
+ FR_KM
+ FR_LU
+ FR_MA
+ FR_MC
+ FR_MF
+ FR_MG
+ FR_ML
+ FR_MQ
+ FR_MR
+ FR_MU
+ FR_NC
+ FR_NE
+ FR_PF
+ FR_PM
+ FR_RE
+ FR_RW
+ FR_SC
+ FR_SN
+ FR_SY
+ FR_TD
+ FR_TG
+ FR_TN
+ FR_VU
+ FR_WF
+ FR_YT
+ FUR
+ FUR_IT
+ FY
+ FY_NL
+ GA
+ GA_GB
+ GA_IE
+ GD
+ GD_GB
+ GL
+ GL_ES
+ GSW
+ GSW_CH
+ GSW_FR
+ GSW_LI
+ GU
+ GU_IN
+ GUZ
+ GUZ_KE
+ GV
+ GV_IM
+ HA
+ HA_GH
+ HA_NE
+ HA_NG
+ HAW
+ HAW_US
+ HE
+ HE_IL
+ HI
+ HI_IN
+ HR
+ HR_BA
+ HR_HR
+ HSB
+ HSB_DE
+ HU
+ HU_HU
+ HY
+ HY_AM
+ IA
+ ID
+ ID_ID
+ IG
+ IG_NG
+ II
+ II_CN
+ IS
+ IS_IS
+ IT
+ IT_CH
+ IT_IT
+ IT_SM
+ IT_VA
+ JA
+ JA_JP
+ JGO
+ JGO_CM
+ JMC
+ JMC_TZ
+ JV
+ JV_ID
+ KA
+ KA_GE
+ KAB
+ KAB_DZ
+ KAM
+ KAM_KE
+ KDE
+ KDE_TZ
+ KEA
+ KEA_CV
+ KHQ
+ KHQ_ML
+ KI
+ KI_KE
+ KK
+ KK_KZ
+ KKJ
+ KKJ_CM
+ KL
+ KL_GL
+ KLN
+ KLN_KE
+ KM
+ KM_KH
+ KN
+ KN_IN
+ KO
+ KO_KP
+ KO_KR
+ KOK
+ KOK_IN
+ KS
+ KS_ARAB
+ KS_ARAB_IN
+ KSB
+ KSB_TZ
+ KSF
+ KSF_CM
+ KSH
+ KSH_DE
+ KU
+ KU_TR
+ KW
+ KW_GB
+ KY
+ KY_KG
+ LAG
+ LAG_TZ
+ LB
+ LB_LU
+ LG
+ LG_UG
+ LKT
+ LKT_US
+ LN
+ LN_AO
+ LN_CD
+ LN_CF
+ LN_CG
+ LO
+ LO_LA
+ LRC
+ LRC_IQ
+ LRC_IR
+ LT
+ LT_LT
+ LU
+ LU_CD
+ LUO
+ LUO_KE
+ LUY
+ LUY_KE
+ LV
+ LV_LV
+ MAI
+ MAI_IN
+ MAS
+ MAS_KE
+ MAS_TZ
+ MER
+ MER_KE
+ MFE
+ MFE_MU
+ MG
+ MG_MG
+ MGH
+ MGH_MZ
+ MGO
+ MGO_CM
+ MI
+ MI_NZ
+ MK
+ MK_MK
+ ML
+ ML_IN
+ MN
+ MN_MN
+ MNI
+ MNI_BENG
+ MNI_BENG_IN
+ MR
+ MR_IN
+ MS
+ MS_BN
+ MS_ID
+ MS_MY
+ MS_SG
+ MT
+ MT_MT
+ MUA
+ MUA_CM
+ MY
+ MY_MM
+ MZN
+ MZN_IR
+ NAQ
+ NAQ_NA
+ NB
+ NB_NO
+ NB_SJ
+ ND
+ ND_ZW
+ NDS
+ NDS_DE
+ NDS_NL
+ NE
+ NE_IN
+ NE_NP
+ NL
+ NL_AW
+ NL_BE
+ NL_BQ
+ NL_CW
+ NL_NL
+ NL_SR
+ NL_SX
+ NMG
+ NMG_CM
+ NN
+ NN_NO
+ NNH
+ NNH_CM
+ NUS
+ NUS_SS
+ NYN
+ NYN_UG
+ OM
+ OM_ET
+ OM_KE
+ OR
+ OR_IN
+ OS
+ OS_GE
+ OS_RU
+ PA
+ PA_ARAB
+ PA_ARAB_PK
+ PA_GURU
+ PA_GURU_IN
+ PCM
+ PCM_NG
+ PL
+ PL_PL
+ PRG
+ PS
+ PS_AF
+ PS_PK
+ PT
+ PT_AO
+ PT_BR
+ PT_CH
+ PT_CV
+ PT_GQ
+ PT_GW
+ PT_LU
+ PT_MO
+ PT_MZ
+ PT_PT
+ PT_ST
+ PT_TL
+ QU
+ QU_BO
+ QU_EC
+ QU_PE
+ RM
+ RM_CH
+ RN
+ RN_BI
+ RO
+ RO_MD
+ RO_RO
+ ROF
+ ROF_TZ
+ RU
+ RU_BY
+ RU_KG
+ RU_KZ
+ RU_MD
+ RU_RU
+ RU_UA
+ RW
+ RW_RW
+ RWK
+ RWK_TZ
+ SAH
+ SAH_RU
+ SAQ
+ SAQ_KE
+ SAT
+ SAT_OLCK
+ SAT_OLCK_IN
+ SBP
+ SBP_TZ
+ SD
+ SD_ARAB
+ SD_ARAB_PK
+ SD_DEVA
+ SD_DEVA_IN
+ SE
+ SE_FI
+ SE_NO
+ SE_SE
+ SEH
+ SEH_MZ
+ SES
+ SES_ML
+ SG
+ SG_CF
+ SHI
+ SHI_LATN
+ SHI_LATN_MA
+ SHI_TFNG
+ SHI_TFNG_MA
+ SI
+ SI_LK
+ SK
+ SK_SK
+ SL
+ SL_SI
+ SMN
+ SMN_FI
+ SN
+ SN_ZW
+ SO
+ SO_DJ
+ SO_ET
+ SO_KE
+ SO_SO
+ SQ
+ SQ_AL
+ SQ_MK
+ SQ_XK
+ SR
+ SR_CYRL
+ SR_CYRL_BA
+ SR_CYRL_ME
+ SR_CYRL_RS
+ SR_CYRL_XK
+ SR_LATN
+ SR_LATN_BA
+ SR_LATN_ME
+ SR_LATN_RS
+ SR_LATN_XK
+ SU
+ SU_LATN
+ SU_LATN_ID
+ SV
+ SV_AX
+ SV_FI
+ SV_SE
+ SW
+ SW_CD
+ SW_KE
+ SW_TZ
+ SW_UG
+ TA
+ TA_IN
+ TA_LK
+ TA_MY
+ TA_SG
+ TE
+ TE_IN
+ TEO
+ TEO_KE
+ TEO_UG
+ TG
+ TG_TJ
+ TH
+ TH_TH
+ TI
+ TI_ER
+ TI_ET
+ TK
+ TK_TM
+ TO
+ TO_TO
+ TR
+ TR_CY
+ TR_TR
+ TT
+ TT_RU
+ TWQ
+ TWQ_NE
+ TZM
+ TZM_MA
+ UG
+ UG_CN
+ UK
+ UK_UA
+ UR
+ UR_IN
+ UR_PK
+ UZ
+ UZ_ARAB
+ UZ_ARAB_AF
+ UZ_CYRL
+ UZ_CYRL_UZ
+ UZ_LATN
+ UZ_LATN_UZ
+ VAI
+ VAI_LATN
+ VAI_LATN_LR
+ VAI_VAII
+ VAI_VAII_LR
+ VI
+ VI_VN
+ VO
+ VUN
+ VUN_TZ
+ WAE
+ WAE_CH
+ WO
+ WO_SN
+ XH
+ XH_ZA
+ XOG
+ XOG_UG
+ YAV
+ YAV_CM
+ YI
+ YO
+ YO_BJ
+ YO_NG
+ YUE
+ YUE_HANS
+ YUE_HANS_CN
+ YUE_HANT
+ YUE_HANT_HK
+ ZGH
+ ZGH_MA
+ ZH
+ ZH_HANS
+ ZH_HANS_CN
+ ZH_HANS_HK
+ ZH_HANS_MO
+ ZH_HANS_SG
+ ZH_HANT
+ ZH_HANT_HK
+ ZH_HANT_MO
+ ZH_HANT_TW
+ ZU
+ ZU_ZA
+}
+
+"""Represents shipping method channel listing."""
+type ShippingMethodChannelListing implements Node {
+ id: ID!
+ channel: Channel!
+ maximumOrderPrice: Money
+ minimumOrderPrice: Money
+ price: Money
+}
+
+"""Represents channel."""
+type Channel implements Node {
+ id: ID!
+ name: String!
+ isActive: Boolean!
+ currencyCode: String!
+ slug: String!
+
+ """Whether a channel has associated orders."""
+ hasOrders: Boolean!
+
+ """
+ New in Saleor 3.1. Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.
+ """
+ defaultCountry: CountryDisplay!
+}
+
+"""Represents shipping method postal code rule."""
+type ShippingMethodPostalCodeRule implements Node {
+ """The ID of the object."""
+ id: ID!
+
+ """Start address range."""
+ start: String
+
+ """End address range."""
+ end: String
+
+ """Inclusion type of the postal code rule."""
+ inclusionType: PostalCodeRuleInclusionTypeEnum
+}
+
+"""An enumeration."""
+enum PostalCodeRuleInclusionTypeEnum {
+ INCLUDE
+ EXCLUDE
+}
+
+type ProductCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [ProductCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type ProductCountableEdge {
+ """The item at the end of the edge."""
+ node: Product!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+"""Represents an individual item for sale in the storefront."""
+type Product implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ seoTitle: String
+ seoDescription: String
+ name: String!
+ description: JSONString
+ productType: ProductType!
+ slug: String!
+ category: Category
+ created: DateTime!
+ updatedAt: DateTime!
+ chargeTaxes: Boolean!
+ weight: Weight
+ defaultVariant: ProductVariant
+ rating: Float
+
+ """
+ Channel given to retrieve this product. Also used by federation gateway to resolve this object in a federated query.
+ """
+ channel: String
+
+ """Description of the product (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+
+ """The main thumbnail for a product."""
+ thumbnail(
+ """Size of thumbnail."""
+ size: Int
+ ): Image
+
+ """
+ Lists the storefront product's pricing, the current price and discounts, only meant for displaying.
+ """
+ pricing(
+ """
+ Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.
+ """
+ address: AddressInput
+ ): ProductPricingInfo
+
+ """Whether the product is in stock and visible or not."""
+ isAvailable(
+ """
+ Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.
+ """
+ address: AddressInput
+ ): Boolean
+
+ """A type of tax. Assigned by enabled tax gateway"""
+ taxType: TaxType
+
+ """List of attributes assigned to this product."""
+ attributes: [SelectedAttribute!]!
+
+ """List of availability in channels for the product."""
+ channelListings: [ProductChannelListing!]
+
+ """Get a single product media by ID."""
+ mediaById(
+ """ID of a product media."""
+ id: ID
+ ): ProductMedia
+
+ """Get a single product image by ID."""
+ imageById(
+ """ID of a product image."""
+ id: ID
+ ): ProductImage @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `mediaById` field instead.")
+
+ """List of variants for the product."""
+ variants: [ProductVariant]
+
+ """List of media for the product."""
+ media: [ProductMedia!]
+
+ """List of images for the product."""
+ images: [ProductImage] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.")
+
+ """List of collections for the product."""
+ collections: [Collection]
+
+ """Returns translated product fields for the given language code."""
+ translation(
+ """A language code to return the translation for product."""
+ languageCode: LanguageCodeEnum!
+ ): ProductTranslation
+
+ """Date when product is available for purchase."""
+ availableForPurchase: Date
+
+ """Whether the product is available for purchase."""
+ isAvailableForPurchase: Boolean
+}
+
+"""
+Represents a type of product. It defines what attributes are available to products of this type.
+"""
+type ProductType implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String!
+ slug: String!
+ hasVariants: Boolean!
+ isShippingRequired: Boolean!
+ isDigital: Boolean!
+ weight: Weight
+
+ """The product type kind."""
+ kind: ProductTypeKindEnum!
+
+ """List of products of this type."""
+ products(
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductCountableConnection @deprecated(reason: "This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter.")
+
+ """A type of tax. Assigned by enabled tax gateway"""
+ taxType: TaxType
+
+ """Variant attributes of that product type."""
+ variantAttributes(
+ """Define scope of returned attributes."""
+ variantSelection: VariantAttributeScope
+ ): [Attribute] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead.")
+
+ """
+ New in Saleor 3.1. Variant attributes of that product type with attached variant selection.
+ """
+ assignedVariantAttributes(
+ """Define scope of returned attributes."""
+ variantSelection: VariantAttributeScope
+ ): [AssignedVariantAttribute]
+
+ """Product attributes of that product type."""
+ productAttributes: [Attribute]
+ availableAttributes(
+ filter: AttributeFilterInput
+
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): AttributeCountableConnection
+}
+
+"""Represents weight value in a specific weight unit."""
+type Weight {
+ """Weight unit."""
+ unit: WeightUnitsEnum!
+
+ """Weight value."""
+ value: Float!
+}
+
+"""An enumeration."""
+enum WeightUnitsEnum {
+ G
+ LB
+ OZ
+ KG
+ TONNE
+}
+
+"""An enumeration."""
+enum ProductTypeKindEnum {
+ NORMAL
+ GIFT_CARD
+}
+
+"""Representation of tax types fetched from tax gateway."""
+type TaxType {
+ """Description of the tax type."""
+ description: String
+
+ """External tax code used to identify given tax group."""
+ taxCode: String
+}
+
+"""
+Custom attribute of a product. Attributes can be assigned to products and variants at the product type level.
+"""
+type Attribute implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+
+ """The input type to use for entering attribute values in the dashboard."""
+ inputType: AttributeInputTypeEnum
+
+ """The entity type which can be used as a reference."""
+ entityType: AttributeEntityTypeEnum
+
+ """Name of an attribute displayed in the interface."""
+ name: String
+
+ """Internal representation of an attribute name."""
+ slug: String
+
+ """The attribute type."""
+ type: AttributeTypeEnum
+
+ """The unit of attribute values."""
+ unit: MeasurementUnitsEnum
+
+ """List of attribute's values."""
+ choices(
+ """Sort attribute choices."""
+ sortBy: AttributeChoicesSortingInput
+
+ """Filtering options for attribute choices."""
+ filter: AttributeValueFilterInput
+
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): AttributeValueCountableConnection
+
+ """Whether the attribute requires values to be passed or not."""
+ valueRequired: Boolean!
+
+ """Whether the attribute should be visible or not in storefront."""
+ visibleInStorefront: Boolean!
+
+ """Whether the attribute can be filtered in storefront."""
+ filterableInStorefront: Boolean!
+
+ """Whether the attribute can be filtered in dashboard."""
+ filterableInDashboard: Boolean!
+
+ """Whether the attribute can be displayed in the admin product list."""
+ availableInGrid: Boolean!
+
+ """Returns translated attribute fields for the given language code."""
+ translation(
+ """A language code to return the translation for attribute."""
+ languageCode: LanguageCodeEnum!
+ ): AttributeTranslation
+
+ """
+ The position of the attribute in the storefront navigation (0 by default).
+ """
+ storefrontSearchPosition: Int!
+
+ """Flag indicating that attribute has predefined choices."""
+ withChoices: Boolean!
+ productTypes(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductTypeCountableConnection!
+ productVariantTypes(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductTypeCountableConnection!
+}
+
+"""An enumeration."""
+enum AttributeInputTypeEnum {
+ DROPDOWN
+ MULTISELECT
+ FILE
+ REFERENCE
+ NUMERIC
+ RICH_TEXT
+ SWATCH
+ BOOLEAN
+ DATE
+ DATE_TIME
+}
+
+"""An enumeration."""
+enum AttributeEntityTypeEnum {
+ PAGE
+ PRODUCT
+}
+
+"""An enumeration."""
+enum AttributeTypeEnum {
+ PRODUCT_TYPE
+ PAGE_TYPE
+}
+
+"""An enumeration."""
+enum MeasurementUnitsEnum {
+ CM
+ M
+ KM
+ FT
+ YD
+ INCH
+ SQ_CM
+ SQ_M
+ SQ_KM
+ SQ_FT
+ SQ_YD
+ SQ_INCH
+ CUBIC_MILLIMETER
+ CUBIC_CENTIMETER
+ CUBIC_DECIMETER
+ CUBIC_METER
+ LITER
+ CUBIC_FOOT
+ CUBIC_INCH
+ CUBIC_YARD
+ QT
+ PINT
+ FL_OZ
+ ACRE_IN
+ ACRE_FT
+ G
+ LB
+ OZ
+ KG
+ TONNE
+}
+
+type AttributeValueCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [AttributeValueCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type AttributeValueCountableEdge {
+ """The item at the end of the edge."""
+ node: AttributeValue!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+"""Represents a value of an attribute."""
+type AttributeValue implements Node {
+ id: ID!
+
+ """Name of a value displayed in the interface."""
+ name: String
+
+ """Internal representation of a value (unique per attribute)."""
+ slug: String
+
+ """
+ Represent value of the attribute value (e.g. color values for swatch attributes).
+ """
+ value: String
+
+ """Returns translated attribute value fields for the given language code."""
+ translation(
+ """A language code to return the translation for attribute value."""
+ languageCode: LanguageCodeEnum!
+ ): AttributeValueTranslation
+
+ """The input type to use for entering attribute values in the dashboard."""
+ inputType: AttributeInputTypeEnum
+
+ """The ID of the attribute reference."""
+ reference: ID
+
+ """Represents file URL and content type (if attribute value is a file)."""
+ file: File
+
+ """Represents the text (JSON) of the attribute value."""
+ richText: JSONString
+
+ """Represents the boolean value of the attribute value."""
+ boolean: Boolean
+
+ """Represents the date value of the attribute value."""
+ date: Date
+
+ """Represents the date time value of the attribute value."""
+ dateTime: DateTime
+}
+
+type AttributeValueTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ name: String!
+ richText: JSONString
+}
+
+type File {
+ """The URL of the file."""
+ url: String!
+
+ """Content type of the file."""
+ contentType: String
+}
+
+"""
+The `Date` scalar type represents a Date
+value as specified by
+[iso8601](https://en.wikipedia.org/wiki/ISO_8601).
+"""
+scalar Date
+
+input AttributeChoicesSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort attribute choices by the selected field."""
+ field: AttributeChoicesSortField!
+}
+
+enum AttributeChoicesSortField {
+ """Sort attribute choice by name."""
+ NAME
+
+ """Sort attribute choice by slug."""
+ SLUG
+}
+
+input AttributeValueFilterInput {
+ search: String
+}
+
+type AttributeTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ name: String!
+}
+
+type ProductTypeCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [ProductTypeCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type ProductTypeCountableEdge {
+ """The item at the end of the edge."""
+ node: ProductType!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+enum VariantAttributeScope {
+ ALL
+ VARIANT_SELECTION
+ NOT_VARIANT_SELECTION
+}
+
+"""
+New in Saleor 3.1. Represents assigned attribute to variant with variant selection attached.
+"""
+type AssignedVariantAttribute {
+ """Attribute assigned to variant."""
+ attribute: Attribute!
+
+ """
+ Determines, whether assigned attribute is allowed for variant selection. Supported variant types for variant selection are: ['dropdown', 'boolean', 'swatch', 'numeric']
+ """
+ variantSelection: Boolean!
+}
+
+type AttributeCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [AttributeCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type AttributeCountableEdge {
+ """The item at the end of the edge."""
+ node: Attribute!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input AttributeFilterInput {
+ valueRequired: Boolean
+ isVariantOnly: Boolean
+ visibleInStorefront: Boolean
+ filterableInStorefront: Boolean
+ filterableInDashboard: Boolean
+ availableInGrid: Boolean
+ metadata: [MetadataFilter]
+ search: String
+ ids: [ID]
+ type: AttributeTypeEnum
+ inCollection: ID
+ inCategory: ID
+
+ """
+ Specifies the channel by which the data should be filtered.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.
+ """
+ channel: String
+}
+
+input MetadataFilter {
+ """Key of a metadata item."""
+ key: String!
+
+ """Value of a metadata item."""
+ value: String
+}
+
+"""
+Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront.
+"""
+type Category implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ seoTitle: String
+ seoDescription: String
+ name: String!
+ description: JSONString
+ slug: String!
+ parent: Category
+ level: Int!
+
+ """Description of the category (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+
+ """List of ancestors of the category."""
+ ancestors(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): CategoryCountableConnection
+
+ """List of products in the category."""
+ products(
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductCountableConnection
+
+ """List of children of the category."""
+ children(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): CategoryCountableConnection
+ backgroundImage(
+ """Size of the image."""
+ size: Int
+ ): Image
+
+ """Returns translated category fields for the given language code."""
+ translation(
+ """A language code to return the translation for category."""
+ languageCode: LanguageCodeEnum!
+ ): CategoryTranslation
+}
+
+type CategoryCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [CategoryCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type CategoryCountableEdge {
+ """The item at the end of the edge."""
+ node: Category!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+"""Represents an image."""
+type Image {
+ """The URL of the image."""
+ url: String!
+
+ """Alt text for an image."""
+ alt: String
+}
+
+type CategoryTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ seoTitle: String
+ seoDescription: String
+ name: String
+ description: JSONString
+
+ """Translated description of the product (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+}
+
+"""Represents a version of a product such as different size or color."""
+type ProductVariant implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String!
+ sku: String
+ product: Product!
+ trackInventory: Boolean!
+ quantityLimitPerCustomer: Int
+ weight: Weight
+
+ """
+ Channel given to retrieve this product variant. Also used by federation gateway to resolve this object in a federated query.
+ """
+ channel: String
+
+ """List of price information in channels for the product."""
+ channelListings: [ProductVariantChannelListing!]
+
+ """
+ Lists the storefront variant's pricing, the current price and discounts, only meant for displaying.
+ """
+ pricing(
+ """
+ Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.
+ """
+ address: AddressInput
+ ): VariantPricingInfo
+
+ """List of attributes assigned to this variant."""
+ attributes(
+ """Define scope of returned attributes."""
+ variantSelection: VariantAttributeScope
+ ): [SelectedAttribute!]!
+
+ """Gross margin percentage value."""
+ margin: Int
+
+ """Total quantity ordered."""
+ quantityOrdered: Int
+
+ """
+ Total revenue generated by a variant in given period of time. Note: this field should be queried using `reportProductSales` query as it uses optimizations suitable for such calculations.
+ """
+ revenue(period: ReportingPeriod): TaxedMoney
+
+ """List of images for the product variant."""
+ images: [ProductImage] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.")
+
+ """List of media for the product variant."""
+ media: [ProductMedia!]
+
+ """Returns translated product variant fields for the given language code."""
+ translation(
+ """A language code to return the translation for product variant."""
+ languageCode: LanguageCodeEnum!
+ ): ProductVariantTranslation
+
+ """Digital content for the product variant."""
+ digitalContent: DigitalContent
+
+ """Stocks for the product variant."""
+ stocks(
+ """
+ Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.
+ """
+ address: AddressInput
+
+ """
+ Two-letter ISO 3166-1 country code.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead.
+ """
+ countryCode: CountryCode
+ ): [Stock]
+
+ """
+ Quantity of a product available for sale in one checkout. Field value will be `null` when no `limitQuantityPerCheckout` in global settings has been set, and `productVariant` stocks are not tracked.
+ """
+ quantityAvailable(
+ """
+ Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.
+ """
+ address: AddressInput
+
+ """
+ Two-letter ISO 3166-1 country code. When provided, the exact quantity from a warehouse operating in shipping zones that contain this country will be returned. Otherwise, it will return the maximum quantity from all shipping zones.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `address` argument instead.
+ """
+ countryCode: CountryCode
+ ): Int
+
+ """
+ New in Saleor 3.1. Preorder data for product variant. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ preorder: PreorderData
+ created: DateTime!
+ updatedAt: DateTime!
+}
+
+"""Represents product varaint channel listing."""
+type ProductVariantChannelListing implements Node {
+ id: ID!
+ channel: Channel!
+ price: Money
+
+ """Cost price of the variant."""
+ costPrice: Money
+
+ """Gross margin percentage value."""
+ margin: Int
+
+ """
+ New in Saleor 3.1. Preorder variant data. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ preorderThreshold: PreorderThreshold
+}
+
+"""Represents preorder variant data for channel."""
+type PreorderThreshold {
+ """Preorder threshold for product variant in this channel."""
+ quantity: Int
+
+ """Number of sold product variant in this channel."""
+ soldUnits: Int!
+}
+
+"""Represents availability of a variant in the storefront."""
+type VariantPricingInfo {
+ """Whether it is in sale or not."""
+ onSale: Boolean
+
+ """The discount amount if in sale (null otherwise)."""
+ discount: TaxedMoney
+
+ """The discount amount in the local currency."""
+ discountLocalCurrency: TaxedMoney
+
+ """The price, with any discount subtracted."""
+ price: TaxedMoney
+
+ """The price without any discount."""
+ priceUndiscounted: TaxedMoney
+
+ """The discounted price in the local currency."""
+ priceLocalCurrency: TaxedMoney
+}
+
+"""
+Represents a monetary value with taxes. In cases where taxes were not applied, net and gross values will be equal.
+"""
+type TaxedMoney {
+ """Currency code."""
+ currency: String!
+
+ """Amount of money including taxes."""
+ gross: Money!
+
+ """Amount of money without taxes."""
+ net: Money!
+
+ """Amount of taxes."""
+ tax: Money!
+}
+
+input AddressInput {
+ """Given name."""
+ firstName: String
+
+ """Family name."""
+ lastName: String
+
+ """Company or organization."""
+ companyName: String
+
+ """Address."""
+ streetAddress1: String
+
+ """Address."""
+ streetAddress2: String
+
+ """City."""
+ city: String
+
+ """District."""
+ cityArea: String
+
+ """Postal code."""
+ postalCode: String
+
+ """Country."""
+ country: CountryCode
+
+ """State or province."""
+ countryArea: String
+
+ """Phone number."""
+ phone: String
+}
+
+"""An enumeration."""
+enum CountryCode {
+ AF
+ AX
+ AL
+ DZ
+ AS
+ AD
+ AO
+ AI
+ AQ
+ AG
+ AR
+ AM
+ AW
+ AU
+ AT
+ AZ
+ BS
+ BH
+ BD
+ BB
+ BY
+ BE
+ BZ
+ BJ
+ BM
+ BT
+ BO
+ BQ
+ BA
+ BW
+ BV
+ BR
+ IO
+ BN
+ BG
+ BF
+ BI
+ CV
+ KH
+ CM
+ CA
+ KY
+ CF
+ TD
+ CL
+ CN
+ CX
+ CC
+ CO
+ KM
+ CG
+ CD
+ CK
+ CR
+ CI
+ HR
+ CU
+ CW
+ CY
+ CZ
+ DK
+ DJ
+ DM
+ DO
+ EC
+ EG
+ SV
+ GQ
+ ER
+ EE
+ SZ
+ ET
EU
- EU_ES
- EWO
- EWO_CM
- FA
- FA_AF
- FA_IR
- FF
- FF_ADLM
- FF_ADLM_BF
- FF_ADLM_CM
- FF_ADLM_GH
- FF_ADLM_GM
- FF_ADLM_GN
- FF_ADLM_GW
- FF_ADLM_LR
- FF_ADLM_MR
- FF_ADLM_NE
- FF_ADLM_NG
- FF_ADLM_SL
- FF_ADLM_SN
- FF_LATN
- FF_LATN_BF
- FF_LATN_CM
- FF_LATN_GH
- FF_LATN_GM
- FF_LATN_GN
- FF_LATN_GW
- FF_LATN_LR
- FF_LATN_MR
- FF_LATN_NE
- FF_LATN_NG
- FF_LATN_SL
- FF_LATN_SN
- FI
- FI_FI
- FIL
- FIL_PH
+ FK
FO
- FO_DK
- FO_FO
+ FJ
+ FI
FR
- FR_BE
- FR_BF
- FR_BI
- FR_BJ
- FR_BL
- FR_CA
- FR_CD
- FR_CF
- FR_CG
- FR_CH
- FR_CI
- FR_CM
- FR_DJ
- FR_DZ
- FR_FR
- FR_GA
- FR_GF
- FR_GN
- FR_GP
- FR_GQ
- FR_HT
- FR_KM
- FR_LU
- FR_MA
- FR_MC
- FR_MF
- FR_MG
- FR_ML
- FR_MQ
- FR_MR
- FR_MU
- FR_NC
- FR_NE
- FR_PF
- FR_PM
- FR_RE
- FR_RW
- FR_SC
- FR_SN
- FR_SY
- FR_TD
- FR_TG
- FR_TN
- FR_VU
- FR_WF
- FR_YT
- FUR
- FUR_IT
- FY
- FY_NL
+ GF
+ PF
+ TF
GA
- GA_GB
- GA_IE
- GD
- GD_GB
+ GM
+ GE
+ DE
+ GH
+ GI
+ GR
GL
- GL_ES
- GSW
- GSW_CH
- GSW_FR
- GSW_LI
+ GD
+ GP
GU
- GU_IN
- GUZ
- GUZ_KE
- GV
- GV_IM
- HA
- HA_GH
- HA_NE
- HA_NG
- HAW
- HAW_US
- HE
- HE_IL
- HI
- HI_IN
- HR
- HR_BA
- HR_HR
- HSB
- HSB_DE
+ GT
+ GG
+ GN
+ GW
+ GY
+ HT
+ HM
+ VA
+ HN
+ HK
HU
- HU_HU
- HY
- HY_AM
- IA
- ID
- ID_ID
- IG
- IG_NG
- II
- II_CN
IS
- IS_IS
+ IN
+ ID
+ IR
+ IQ
+ IE
+ IM
+ IL
IT
- IT_CH
- IT_IT
- IT_SM
- IT_VA
- JA
- JA_JP
- JGO
- JGO_CM
- JMC
- JMC_TZ
- JV
- JV_ID
- KA
- KA_GE
- KAB
- KAB_DZ
- KAM
- KAM_KE
- KDE
- KDE_TZ
- KEA
- KEA_CV
- KHQ
- KHQ_ML
+ JM
+ JP
+ JE
+ JO
+ KZ
+ KE
KI
- KI_KE
- KK
- KK_KZ
- KKJ
- KKJ_CM
- KL
- KL_GL
- KLN
- KLN_KE
- KM
- KM_KH
- KN
- KN_IN
- KO
- KO_KP
- KO_KR
- KOK
- KOK_IN
- KS
- KS_ARAB
- KS_ARAB_IN
- KSB
- KSB_TZ
- KSF
- KSF_CM
- KSH
- KSH_DE
- KU
- KU_TR
KW
- KW_GB
- KY
- KY_KG
- LAG
- LAG_TZ
+ KG
+ LA
+ LV
LB
- LB_LU
- LG
- LG_UG
- LKT
- LKT_US
- LN
- LN_AO
- LN_CD
- LN_CF
- LN_CG
- LO
- LO_LA
- LRC
- LRC_IQ
- LRC_IR
+ LS
+ LR
+ LY
+ LI
LT
- LT_LT
LU
- LU_CD
- LUO
- LUO_KE
- LUY
- LUY_KE
- LV
- LV_LV
- MAI
- MAI_IN
- MAS
- MAS_KE
- MAS_TZ
- MER
- MER_KE
- MFE
- MFE_MU
+ MO
MG
- MG_MG
- MGH
- MGH_MZ
- MGO
- MGO_CM
- MI
- MI_NZ
- MK
- MK_MK
+ MW
+ MY
+ MV
ML
- ML_IN
- MN
- MN_MN
- MNI
- MNI_BENG
- MNI_BENG_IN
+ MT
+ MH
+ MQ
MR
- MR_IN
+ MU
+ YT
+ MX
+ FM
+ MD
+ MC
+ MN
+ ME
MS
- MS_BN
- MS_ID
- MS_MY
- MS_SG
- MT
- MT_MT
- MUA
- MUA_CM
- MY
- MY_MM
- MZN
- MZN_IR
- NAQ
- NAQ_NA
- NB
- NB_NO
- NB_SJ
- ND
- ND_ZW
- NDS
- NDS_DE
- NDS_NL
- NE
- NE_IN
- NE_NP
+ MA
+ MZ
+ MM
+ NA
+ NR
+ NP
NL
- NL_AW
- NL_BE
- NL_BQ
- NL_CW
- NL_NL
- NL_SR
- NL_SX
- NMG
- NMG_CM
- NN
- NN_NO
- NNH
- NNH_CM
- NUS
- NUS_SS
- NYN
- NYN_UG
- OM
- OM_ET
- OM_KE
- OR
- OR_IN
- OS
- OS_GE
- OS_RU
+ NC
+ NZ
+ NI
+ NE
+ NG
+ NU
+ NF
+ KP
+ MK
+ MP
+ NO
+ OM
+ PK
+ PW
+ PS
PA
- PA_ARAB
- PA_ARAB_PK
- PA_GURU
- PA_GURU_IN
- PCM
- PCM_NG
+ PG
+ PY
+ PE
+ PH
+ PN
PL
- PL_PL
- PRG
- PS
- PS_AF
- PS_PK
PT
- PT_AO
- PT_BR
- PT_CH
- PT_CV
- PT_GQ
- PT_GW
- PT_LU
- PT_MO
- PT_MZ
- PT_PT
- PT_ST
- PT_TL
- QU
- QU_BO
- QU_EC
- QU_PE
- RM
- RM_CH
- RN
- RN_BI
+ PR
+ QA
+ RE
RO
- RO_MD
- RO_RO
- ROF
- ROF_TZ
RU
- RU_BY
- RU_KG
- RU_KZ
- RU_MD
- RU_RU
- RU_UA
RW
- RW_RW
- RWK
- RWK_TZ
- SAH
- SAH_RU
- SAQ
- SAQ_KE
- SAT
- SAT_OLCK
- SAT_OLCK_IN
- SBP
- SBP_TZ
- SD
- SD_ARAB
- SD_ARAB_PK
- SD_DEVA
- SD_DEVA_IN
- SE
- SE_FI
- SE_NO
- SE_SE
- SEH
- SEH_MZ
- SES
- SES_ML
+ BL
+ SH
+ KN
+ LC
+ MF
+ PM
+ VC
+ WS
+ SM
+ ST
+ SA
+ SN
+ RS
+ SC
+ SL
SG
- SG_CF
- SHI
- SHI_LATN
- SHI_LATN_MA
- SHI_TFNG
- SHI_TFNG_MA
- SI
- SI_LK
+ SX
SK
- SK_SK
- SL
- SL_SI
- SMN
- SMN_FI
- SN
- SN_ZW
+ SI
+ SB
SO
- SO_DJ
- SO_ET
- SO_KE
- SO_SO
- SQ
- SQ_AL
- SQ_MK
- SQ_XK
+ ZA
+ GS
+ KR
+ SS
+ ES
+ LK
+ SD
SR
- SR_CYRL
- SR_CYRL_BA
- SR_CYRL_ME
- SR_CYRL_RS
- SR_CYRL_XK
- SR_LATN
- SR_LATN_BA
- SR_LATN_ME
- SR_LATN_RS
- SR_LATN_XK
- SU
- SU_LATN
- SU_LATN_ID
- SV
- SV_AX
- SV_FI
- SV_SE
- SW
- SW_CD
- SW_KE
- SW_TZ
- SW_UG
- TA
- TA_IN
- TA_LK
- TA_MY
- TA_SG
- TE
- TE_IN
- TEO
- TEO_KE
- TEO_UG
- TG
- TG_TJ
+ SJ
+ SE
+ CH
+ SY
+ TW
+ TJ
+ TZ
TH
- TH_TH
- TI
- TI_ER
- TI_ET
+ TL
+ TG
TK
- TK_TM
TO
- TO_TO
- TR
- TR_CY
- TR_TR
TT
- TT_RU
- TWQ
- TWQ_NE
- TZM
- TZM_MA
+ TN
+ TR
+ TM
+ TC
+ TV
UG
- UG_CN
- UK
- UK_UA
- UR
- UR_IN
- UR_PK
+ UA
+ AE
+ GB
+ UM
+ US
+ UY
UZ
- UZ_ARAB
- UZ_ARAB_AF
- UZ_CYRL
- UZ_CYRL_UZ
- UZ_LATN
- UZ_LATN_UZ
- VAI
- VAI_LATN
- VAI_LATN_LR
- VAI_VAII
- VAI_VAII_LR
+ VU
+ VE
+ VN
+ VG
VI
- VI_VN
- VO
- VUN
- VUN_TZ
- WAE
- WAE_CH
- WO
- WO_SN
- XH
- XH_ZA
- XOG
- XOG_UG
- YAV
- YAV_CM
- YI
- YO
- YO_BJ
- YO_NG
- YUE
- YUE_HANS
- YUE_HANS_CN
- YUE_HANT
- YUE_HANT_HK
- ZGH
- ZGH_MA
- ZH
- ZH_HANS
- ZH_HANS_CN
- ZH_HANS_HK
- ZH_HANS_MO
- ZH_HANS_SG
- ZH_HANT
- ZH_HANT_HK
- ZH_HANT_MO
- ZH_HANT_TW
- ZU
- ZU_ZA
+ WF
+ EH
+ YE
+ ZM
+ ZW
+}
+
+"""Represents a custom attribute."""
+type SelectedAttribute {
+ """Name of an attribute displayed in the interface."""
+ attribute: Attribute!
+
+ """Values of an attribute."""
+ values: [AttributeValue]!
+}
+
+enum ReportingPeriod {
+ TODAY
+ THIS_MONTH
+}
+
+"""Represents a product image."""
+type ProductImage {
+ """The ID of the image."""
+ id: ID!
+
+ """The alt text of the image."""
+ alt: String
+
+ """
+ The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.
+ """
+ sortOrder: Int
+
+ """The URL of the image."""
+ url(
+ """Size of the image."""
+ size: Int
+ ): String!
+}
+
+"""Represents a product media."""
+type ProductMedia implements Node {
+ id: ID!
+ sortOrder: Int
+ alt: String!
+ type: ProductMediaType!
+ oembedData: JSONString!
+
+ """The URL of the media."""
+ url(
+ """Size of the image."""
+ size: Int
+ ): String!
+}
+
+"""An enumeration."""
+enum ProductMediaType {
+ IMAGE
+ VIDEO
+}
+
+type ProductVariantTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ name: String!
+}
+
+type DigitalContent implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ useDefaultSettings: Boolean!
+ automaticFulfillment: Boolean!
+ contentFile: String!
+ maxDownloads: Int
+ urlValidDays: Int
+
+ """List of URLs for the digital variant."""
+ urls: [DigitalContentUrl]
+
+ """Product variant assigned to digital content."""
+ productVariant: ProductVariant!
+}
+
+type DigitalContentUrl implements Node {
+ id: ID!
+ content: DigitalContent!
+ created: DateTime!
+ downloadNum: Int!
+
+ """URL for digital content."""
+ url: String
+
+ """UUID of digital content."""
+ token: UUID!
+}
+
+scalar UUID
+
+"""Represents stock."""
+type Stock implements Node {
+ id: ID!
+ warehouse: Warehouse!
+ productVariant: ProductVariant!
+
+ """
+ Quantity of a product in the warehouse's possession, including the allocated stock that is waiting for shipment.
+ """
+ quantity: Int!
+
+ """Quantity allocated for orders"""
+ quantityAllocated: Int!
+
+ """Quantity reserved for checkouts"""
+ quantityReserved: Int!
+}
+
+"""Represents preorder settings for product variant."""
+type PreorderData {
+ """The global preorder threshold for product variant."""
+ globalThreshold: Int
+
+ """Total number of sold product variant during preorder."""
+ globalSoldUnits: Int!
+
+ """Preorder end date."""
+ endDate: DateTime
+}
+
+"""Represents availability of a product in the storefront."""
+type ProductPricingInfo {
+ """Whether it is in sale or not."""
+ onSale: Boolean
+
+ """The discount amount if in sale (null otherwise)."""
+ discount: TaxedMoney
+
+ """The discount amount in the local currency."""
+ discountLocalCurrency: TaxedMoney
+
+ """The discounted price range of the product variants."""
+ priceRange: TaxedMoneyRange
+
+ """The undiscounted price range of the product variants."""
+ priceRangeUndiscounted: TaxedMoneyRange
+
+ """
+ The discounted price range of the product variants in the local currency.
+ """
+ priceRangeLocalCurrency: TaxedMoneyRange
+}
+
+"""Represents a range of monetary values."""
+type TaxedMoneyRange {
+ """Lower bound of a price range."""
+ start: TaxedMoney
+
+ """Upper bound of a price range."""
+ stop: TaxedMoney
+}
+
+"""Represents product channel listing."""
+type ProductChannelListing implements Node {
+ id: ID!
+ publicationDate: Date
+ isPublished: Boolean!
+ channel: Channel!
+ visibleInListings: Boolean!
+ availableForPurchase: Date
+
+ """The price of the cheapest variant (including discounts)."""
+ discountedPrice: Money
+
+ """Purchase cost of product."""
+ purchaseCost: MoneyRange
+
+ """Range of margin percentage value."""
+ margin: Margin
+
+ """Whether the product is available for purchase."""
+ isAvailableForPurchase: Boolean
+
+ """
+ Lists the storefront product's pricing, the current price and discounts, only meant for displaying.
+ """
+ pricing(
+ """
+ Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.
+ """
+ address: AddressInput
+ ): ProductPricingInfo
+}
+
+type Margin {
+ start: Int
+ stop: Int
+}
+
+"""Represents a collection of products."""
+type Collection implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ seoTitle: String
+ seoDescription: String
+ name: String!
+ description: JSONString
+ slug: String!
+
+ """
+ Channel given to retrieve this collection. Also used by federation gateway to resolve this object in a federated query.
+ """
+ channel: String
+
+ """Description of the collection (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+
+ """List of products in this collection."""
+ products(
+ """Filtering options for products."""
+ filter: ProductFilterInput
+
+ """Sort products."""
+ sortBy: ProductOrder
+
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductCountableConnection
+ backgroundImage(
+ """Size of the image."""
+ size: Int
+ ): Image
+
+ """Returns translated collection fields for the given language code."""
+ translation(
+ """A language code to return the translation for collection."""
+ languageCode: LanguageCodeEnum!
+ ): CollectionTranslation
+
+ """List of channels in which the collection is available."""
+ channelListings: [CollectionChannelListing!]
+}
+
+input ProductFilterInput {
+ isPublished: Boolean
+ collections: [ID]
+ categories: [ID]
+ hasCategory: Boolean
+ attributes: [AttributeInput]
+ stockAvailability: StockAvailability
+ stocks: ProductStockFilterInput
+ search: String
+ metadata: [MetadataFilter]
+ price: PriceRangeInput
+ minimalPrice: PriceRangeInput
+ updatedAt: DateTimeRangeInput
+ productTypes: [ID]
+ giftCard: Boolean
+ ids: [ID]
+ hasPreorderedVariants: Boolean
+
+ """
+ Specifies the channel by which the data should be filtered.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.
+ """
+ channel: String
+}
+
+input AttributeInput {
+ """Internal representation of an attribute name."""
+ slug: String!
+
+ """Internal representation of a value (unique per attribute)."""
+ values: [String]
+
+ """The range that the returned values should be in."""
+ valuesRange: IntRangeInput
+
+ """The date time range that the returned values should be in."""
+ dateTime: DateTimeRangeInput
+
+ """The date range that the returned values should be in."""
+ date: DateRangeInput
+
+ """The boolean value of the attribute."""
+ boolean: Boolean
+}
+
+input IntRangeInput {
+ """Value greater than or equal to."""
+ gte: Int
+
+ """Value less than or equal to."""
+ lte: Int
+}
+
+input DateTimeRangeInput {
+ """Start date."""
+ gte: DateTime
+
+ """End date."""
+ lte: DateTime
+}
+
+input DateRangeInput {
+ """Start date."""
+ gte: Date
+
+ """End date."""
+ lte: Date
+}
+
+enum StockAvailability {
+ IN_STOCK
+ OUT_OF_STOCK
+}
+
+input ProductStockFilterInput {
+ warehouseIds: [ID!]
+ quantity: IntRangeInput
+}
+
+input PriceRangeInput {
+ """Price greater than or equal to."""
+ gte: Float
+
+ """Price less than or equal to."""
+ lte: Float
+}
+
+input ProductOrder {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """
+ Specifies the channel in which to sort the data.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.
+ """
+ channel: String
+
+ """
+ Sort product by the selected attribute's values.
+ Note: this doesn't take translations into account yet.
+ """
+ attributeId: ID
+
+ """Sort products by the selected field."""
+ field: ProductOrderField
+}
+
+enum ProductOrderField {
+ """Sort products by name."""
+ NAME
+
+ """Sort products by name."""
+ RANK
+
+ """Sort products by price."""
+ PRICE
+
+ """Sort products by a minimal price of a product's variant."""
+ MINIMAL_PRICE
+
+ """Sort products by update date."""
+ LAST_MODIFIED
+
+ """Sort products by update date."""
+ DATE
+
+ """Sort products by type."""
+ TYPE
+
+ """Sort products by publication status."""
+ PUBLISHED
+
+ """Sort products by publication date."""
+ PUBLICATION_DATE
+
+ """Sort products by publication date."""
+ PUBLISHED_AT
+
+ """Sort products by update date."""
+ LAST_MODIFIED_AT
+
+ """
+ Sort products by collection. Note: This option is available only for the `Collection.products` query.
+ """
+ COLLECTION
+
+ """Sort products by rating."""
+ RATING
+}
+
+type CollectionTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ seoTitle: String
+ seoDescription: String
+ name: String
+ description: JSONString
+
+ """Translated description of the product (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+}
+
+"""Represents collection channel listing."""
+type CollectionChannelListing implements Node {
+ id: ID!
+ publicationDate: Date
+ isPublished: Boolean!
+ channel: Channel!
+}
+
+type ProductTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ seoTitle: String
+ seoDescription: String
+ name: String
+ description: JSONString
+
+ """Translated description of the product (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+}
+
+type WarehouseCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [WarehouseCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type WarehouseCountableEdge {
+ """The item at the end of the edge."""
+ node: Warehouse!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input WarehouseFilterInput {
+ clickAndCollectOption: WarehouseClickAndCollectOptionEnum
+ search: String
+ ids: [ID]
+ isPrivate: Boolean
+}
+
+input WarehouseSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort warehouses by the selected field."""
+ field: WarehouseSortField!
+}
+
+enum WarehouseSortField {
+ """Sort warehouses by name."""
+ NAME
+}
+
+type TranslatableItemConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [TranslatableItemEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type TranslatableItemEdge {
+ """The item at the end of the edge."""
+ node: TranslatableItem!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+union TranslatableItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent
+
+type ProductTranslatableContent implements Node {
+ id: ID!
+ seoTitle: String
+ seoDescription: String
+ name: String!
+ description: JSONString
+
+ """Description of the product (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+
+ """Returns translated product fields for the given language code."""
+ translation(
+ """A language code to return the translation for product."""
+ languageCode: LanguageCodeEnum!
+ ): ProductTranslation
+
+ """Represents an individual item for sale in the storefront."""
+ product: Product @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+
+ """List of product attribute values that can be translated."""
+ attributeValues: [AttributeValueTranslatableContent!]!
+}
+
+type AttributeValueTranslatableContent implements Node {
+ id: ID!
+ name: String!
+ richText: JSONString
+
+ """Returns translated attribute value fields for the given language code."""
+ translation(
+ """A language code to return the translation for attribute value."""
+ languageCode: LanguageCodeEnum!
+ ): AttributeValueTranslation
+
+ """Represents a value of an attribute."""
+ attributeValue: AttributeValue @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+}
+
+type CollectionTranslatableContent implements Node {
+ id: ID!
+ seoTitle: String
+ seoDescription: String
+ name: String!
+ description: JSONString
+
+ """Description of the collection (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+
+ """Returns translated collection fields for the given language code."""
+ translation(
+ """A language code to return the translation for collection."""
+ languageCode: LanguageCodeEnum!
+ ): CollectionTranslation
+
+ """Represents a collection of products."""
+ collection: Collection @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+}
+
+type CategoryTranslatableContent implements Node {
+ id: ID!
+ seoTitle: String
+ seoDescription: String
+ name: String!
+ description: JSONString
+
+ """Description of the category (JSON)."""
+ descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+
+ """Returns translated category fields for the given language code."""
+ translation(
+ """A language code to return the translation for category."""
+ languageCode: LanguageCodeEnum!
+ ): CategoryTranslation
+
+ """Represents a single category of products."""
+ category: Category @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+}
+
+type AttributeTranslatableContent implements Node {
+ id: ID!
+ name: String!
+
+ """Returns translated attribute fields for the given language code."""
+ translation(
+ """A language code to return the translation for attribute."""
+ languageCode: LanguageCodeEnum!
+ ): AttributeTranslation
+
+ """Custom attribute of a product."""
+ attribute: Attribute @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+}
+
+type ProductVariantTranslatableContent implements Node {
+ id: ID!
+ name: String!
+
+ """Returns translated product variant fields for the given language code."""
+ translation(
+ """A language code to return the translation for product variant."""
+ languageCode: LanguageCodeEnum!
+ ): ProductVariantTranslation
+
+ """Represents a version of a product such as different size or color."""
+ productVariant: ProductVariant @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+
+ """List of product variant attribute values that can be translated."""
+ attributeValues: [AttributeValueTranslatableContent!]!
+}
+
+type PageTranslatableContent implements Node {
+ id: ID!
+ seoTitle: String
+ seoDescription: String
+ title: String!
+ content: JSONString
+
+ """Content of the page (JSON)."""
+ contentJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.")
+
+ """Returns translated page fields for the given language code."""
+ translation(
+ """A language code to return the translation for page."""
+ languageCode: LanguageCodeEnum!
+ ): PageTranslation
+
+ """
+ A static page that can be manually added by a shop operator through the dashboard.
+ """
+ page: Page @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+
+ """List of page content attribute values that can be translated."""
+ attributeValues: [AttributeValueTranslatableContent!]!
+}
+
+type PageTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ seoTitle: String
+ seoDescription: String
+ title: String
+ content: JSONString
+
+ """Translated description of the page (JSON)."""
+ contentJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.")
+}
+
+"""
+A static page that can be manually added by a shop operator through the dashboard.
+"""
+type Page implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ seoTitle: String
+ seoDescription: String
+ title: String!
+
+ """Content of the page (JSON)."""
+ content: JSONString
+ publicationDate: Date
+ isPublished: Boolean!
+ slug: String!
+ pageType: PageType!
+ created: DateTime!
+
+ """Content of the page (JSON)."""
+ contentJson: JSONString! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.")
+
+ """Returns translated page fields for the given language code."""
+ translation(
+ """A language code to return the translation for page."""
+ languageCode: LanguageCodeEnum!
+ ): PageTranslation
+
+ """List of attributes assigned to this product."""
+ attributes: [SelectedAttribute!]!
+}
+
+"""
+Represents a type of page. It defines what attributes are available to pages of this type.
+"""
+type PageType implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String!
+ slug: String!
+
+ """Page attributes of that page type."""
+ attributes: [Attribute]
+
+ """Attributes that can be assigned to the page type."""
+ availableAttributes(
+ filter: AttributeFilterInput
+
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): AttributeCountableConnection
+
+ """Whether page type has pages assigned."""
+ hasPages: Boolean
+}
+
+type ShippingMethodTranslatableContent implements Node {
+ id: ID!
+ name: String!
+ description: JSONString
+
+ """Returns translated shipping method fields for the given language code."""
+ translation(
+ """A language code to return the translation for shipping method."""
+ languageCode: LanguageCodeEnum!
+ ): ShippingMethodTranslation
+
+ """
+ Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers.
+ """
+ shippingMethod: ShippingMethodType @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+}
+
+type SaleTranslatableContent implements Node {
+ id: ID!
+ name: String!
+
+ """Returns translated sale fields for the given language code."""
+ translation(
+ """A language code to return the translation for sale."""
+ languageCode: LanguageCodeEnum!
+ ): SaleTranslation
+
+ """
+ Sales allow creating discounts for categories, collections or products and are visible to all the customers.
+ """
+ sale: Sale @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+}
+
+type SaleTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ name: String
+}
+
+"""
+Sales allow creating discounts for categories, collections or products and are visible to all the customers.
+"""
+type Sale implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String!
+ type: SaleType!
+ startDate: DateTime!
+ endDate: DateTime
+ created: DateTime!
+ updatedAt: DateTime!
+
+ """List of categories this sale applies to."""
+ categories(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): CategoryCountableConnection
+
+ """List of collections this sale applies to."""
+ collections(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): CollectionCountableConnection
+
+ """List of products this sale applies to."""
+ products(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductCountableConnection
+
+ """New in Saleor 3.1. List of product variants this sale applies to."""
+ variants(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductVariantCountableConnection
+
+ """Returns translated sale fields for the given language code."""
+ translation(
+ """A language code to return the translation for sale."""
+ languageCode: LanguageCodeEnum!
+ ): SaleTranslation
+
+ """List of channels available for the sale."""
+ channelListings: [SaleChannelListing!]
+
+ """Sale value."""
+ discountValue: Float
+
+ """Currency code for sale."""
+ currency: String
+}
+
+enum SaleType {
+ FIXED
+ PERCENTAGE
+}
+
+type CollectionCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [CollectionCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type CollectionCountableEdge {
+ """The item at the end of the edge."""
+ node: Collection!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+type ProductVariantCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [ProductVariantCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type ProductVariantCountableEdge {
+ """The item at the end of the edge."""
+ node: ProductVariant!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+"""Represents sale channel listing."""
+type SaleChannelListing implements Node {
+ id: ID!
+ channel: Channel!
+ discountValue: Float!
+ currency: String!
+}
+
+type VoucherTranslatableContent implements Node {
+ id: ID!
+ name: String
+
+ """Returns translated voucher fields for the given language code."""
+ translation(
+ """A language code to return the translation for voucher."""
+ languageCode: LanguageCodeEnum!
+ ): VoucherTranslation
+
+ """
+ Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes.
+ """
+ voucher: Voucher @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+}
+
+type VoucherTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ name: String
+}
+
+"""
+Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes.
+"""
+type Voucher implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String
+ code: String!
+ usageLimit: Int
+ used: Int!
+ startDate: DateTime!
+ endDate: DateTime
+ applyOncePerOrder: Boolean!
+ applyOncePerCustomer: Boolean!
+ onlyForStaff: Boolean!
+ minCheckoutItemsQuantity: Int
+
+ """List of categories this voucher applies to."""
+ categories(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): CategoryCountableConnection
+
+ """List of collections this voucher applies to."""
+ collections(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): CollectionCountableConnection
+
+ """List of products this voucher applies to."""
+ products(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductCountableConnection
+
+ """New in Saleor 3.1. List of product variants this voucher applies to."""
+ variants(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): ProductVariantCountableConnection
+
+ """List of countries available for the shipping voucher."""
+ countries: [CountryDisplay]
+
+ """Returns translated voucher fields for the given language code."""
+ translation(
+ """A language code to return the translation for voucher."""
+ languageCode: LanguageCodeEnum!
+ ): VoucherTranslation
+
+ """Determines a type of discount for voucher - value or percentage"""
+ discountValueType: DiscountValueTypeEnum!
+
+ """Voucher value."""
+ discountValue: Float
+
+ """Currency code for voucher."""
+ currency: String
+
+ """Minimum order value to apply voucher."""
+ minSpent: Money
+
+ """Determines a type of voucher."""
+ type: VoucherTypeEnum!
+
+ """List of availability in channels for the voucher."""
+ channelListings: [VoucherChannelListing!]
+}
+
+enum DiscountValueTypeEnum {
+ FIXED
+ PERCENTAGE
+}
+
+enum VoucherTypeEnum {
+ SHIPPING
+ ENTIRE_ORDER
+ SPECIFIC_PRODUCT
+}
+
+"""Represents voucher channel listing."""
+type VoucherChannelListing implements Node {
+ id: ID!
+ channel: Channel!
+ discountValue: Float!
+ currency: String!
+ minSpent: Money
+}
+
+type MenuItemTranslatableContent implements Node {
+ id: ID!
+ name: String!
+
+ """Returns translated menu item fields for the given language code."""
+ translation(
+ """A language code to return the translation for menu item."""
+ languageCode: LanguageCodeEnum!
+ ): MenuItemTranslation
+
+ """
+ Represents a single item of the related menu. Can store categories, collection or pages.
+ """
+ menuItem: MenuItem @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+}
+
+type MenuItemTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ name: String!
+}
+
+"""
+Represents a single item of the related menu. Can store categories, collection or pages.
+"""
+type MenuItem implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String!
+ menu: Menu!
+ parent: MenuItem
+ category: Category
+ collection: Collection
+ page: Page
+ level: Int!
+ children: [MenuItem]
+
+ """URL to the menu item."""
+ url: String
+
+ """Returns translated menu item fields for the given language code."""
+ translation(
+ """A language code to return the translation for menu item."""
+ languageCode: LanguageCodeEnum!
+ ): MenuItemTranslation
+}
+
+"""
+Represents a single menu - an object that is used to help navigate through the store.
+"""
+type Menu implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ name: String!
+ slug: String!
+ items: [MenuItem]
+}
+
+enum TranslatableKinds {
+ ATTRIBUTE
+ ATTRIBUTE_VALUE
+ CATEGORY
+ COLLECTION
+ MENU_ITEM
+ PAGE
+ PRODUCT
+ SALE
+ SHIPPING_METHOD
+ VARIANT
+ VOUCHER
+}
+
+type StockCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [StockCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type StockCountableEdge {
+ """The item at the end of the edge."""
+ node: Stock!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input StockFilterInput {
+ """"""
+ quantity: Float
+ search: String
+}
+
+"""
+Represents a shop resource containing general shop data and configuration.
+"""
+type Shop {
+ """List of available payment gateways."""
+ availablePaymentGateways(
+ """
+ A currency for which gateways will be returned.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `channel` argument instead.
+ """
+ currency: String
+
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): [PaymentGateway!]!
+
+ """List of available external authentications."""
+ availableExternalAuthentications: [ExternalAuthentication!]!
+
+ """Shipping methods that are available for the shop."""
+ availableShippingMethods(
+ """Slug of a channel for which the data should be returned."""
+ channel: String!
+
+ """Address for which available shipping methods should be returned."""
+ address: AddressInput
+ ): [ShippingMethod]
+
+ """
+ New in Saleor 3.1. List of all currencies supported by shop's channels.
+ """
+ channelCurrencies: [String!]!
+
+ """List of countries available in the shop."""
+ countries(
+ """
+ A language code to return the translation for.
+
+ DEPRECATED: this field will be removed in Saleor 4.0.
+ """
+ languageCode: LanguageCodeEnum
+
+ """Filtering options for countries"""
+ filter: CountryFilterInput
+ ): [CountryDisplay!]!
+
+ """Shop's default country."""
+ defaultCountry: CountryDisplay
+
+ """Default shop's email sender's name."""
+ defaultMailSenderName: String
+
+ """Default shop's email sender's address."""
+ defaultMailSenderAddress: String
+
+ """Shop's description."""
+ description: String
+
+ """Shop's domain data."""
+ domain: Domain!
+
+ """List of the shops's supported languages."""
+ languages: [LanguageDisplay]!
+
+ """Shop's name."""
+ name: String!
+
+ """List of available permissions."""
+ permissions: [Permission]!
+
+ """List of possible phone prefixes."""
+ phonePrefixes: [String]!
+
+ """Header text."""
+ headerText: String
+
+ """Include taxes in prices."""
+ includeTaxesInPrices: Boolean!
+
+ """New in Saleor 3.1. Automatically approve all new fulfillments."""
+ fulfillmentAutoApprove: Boolean!
+
+ """New in Saleor 3.1. Allow to approve fulfillments which are unpaid."""
+ fulfillmentAllowUnpaid: Boolean!
+
+ """Display prices with tax in store."""
+ displayGrossPrices: Boolean!
+
+ """Charge taxes on shipping."""
+ chargeTaxesOnShipping: Boolean!
+
+ """Enable inventory tracking."""
+ trackInventoryByDefault: Boolean
+
+ """Default weight unit."""
+ defaultWeightUnit: WeightUnitsEnum
+
+ """Returns translated shop fields for the given language code."""
+ translation(
+ """A language code to return the translation for shop."""
+ languageCode: LanguageCodeEnum!
+ ): ShopTranslation
+
+ """Enable automatic fulfillment for all digital products."""
+ automaticFulfillmentDigitalProducts: Boolean
+
+ """
+ New in Saleor 3.1. Default number of minutes stock will be reserved for anonymous checkout or null when stock reservation is disabled.
+ """
+ reserveStockDurationAnonymousUser: Int
+
+ """
+ New in Saleor 3.1. Default number of minutes stock will be reserved for authenticated checkout or null when stock reservation is disabled.
+ """
+ reserveStockDurationAuthenticatedUser: Int
+
+ """
+ New in Saleor 3.1. Default number of maximum line quantity in single checkout (per single checkout line). Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ limitQuantityPerCheckout: Int
+
+ """Default number of max downloads per digital content URL."""
+ defaultDigitalMaxDownloads: Int
+
+ """Default number of days which digital content URL will be valid."""
+ defaultDigitalUrlValidDays: Int
+
+ """Company address."""
+ companyAddress: Address
+
+ """URL of a view where customers can set their password."""
+ customerSetPasswordUrl: String
+
+ """List of staff notification recipients."""
+ staffNotificationRecipients: [StaffNotificationRecipient]
+
+ """Resource limitations and current usage if any set for a shop"""
+ limits: LimitInfo!
+
+ """Saleor API version."""
+ version: String!
+}
+
+"""
+Available payment gateway backend with configuration necessary to setup client.
+"""
+type PaymentGateway {
+ """Payment gateway name."""
+ name: String!
+
+ """Payment gateway ID."""
+ id: ID!
+
+ """Payment gateway client configuration."""
+ config: [GatewayConfigLine!]!
+
+ """Payment gateway supported currencies."""
+ currencies: [String]!
+}
+
+"""Payment gateway client configuration key and value pair."""
+type GatewayConfigLine {
+ """Gateway config key."""
+ field: String!
+
+ """Gateway config value for key."""
+ value: String
+}
+
+type ExternalAuthentication {
+ """ID of external authentication plugin."""
+ id: String!
+
+ """Name of external authentication plugin."""
+ name: String
+}
+
+"""
+Shipping methods that can be used as means of shipping for orders and checkouts.
+"""
+type ShippingMethod implements Node & ObjectWithMetadata {
+ """Unique ID of ShippingMethod available for Order."""
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+
+ """Type of the shipping method."""
+ type: ShippingMethodTypeEnum @deprecated(reason: "This field will be removed in Saleor 4.0.")
+
+ """Shipping method name."""
+ name: String!
+
+ """Shipping method description (JSON)."""
+ description: JSONString
+
+ """Maximum delivery days for this shipping method."""
+ maximumDeliveryDays: Int
+
+ """Minimum delivery days for this shipping method."""
+ minimumDeliveryDays: Int
+
+ """Maximum order weight for this shipping method."""
+ maximumOrderWeight: Weight @deprecated(reason: "This field will be removed in Saleor 4.0.")
+
+ """Minimum order weight for this shipping method."""
+ minimumOrderWeight: Weight @deprecated(reason: "This field will be removed in Saleor 4.0.")
+
+ """Returns translated shipping method fields for the given language code."""
+ translation(
+ """A language code to return the translation for shipping method."""
+ languageCode: LanguageCodeEnum!
+ ): ShippingMethodTranslation
+
+ """The price of selected shipping method."""
+ price: Money!
+
+ """Maximum order price for this shipping method."""
+ maximumOrderPrice: Money
+
+ """Minimal order price for this shipping method."""
+ minimumOrderPrice: Money
+
+ """Describes if this shipping method is active and can be selected."""
+ active: Boolean!
+
+ """Message connected to this shipping method."""
+ message: String
+}
+
+input CountryFilterInput {
+ """
+ Boolean for filtering countries by having shipping zone assigned.If 'true', return countries with shipping zone assigned.If 'false', return countries without any shipping zone assigned.If the argument is not provided (null), return all countries.
+ """
+ attachedToShippingZones: Boolean
+}
+
+"""Represents shop's domain."""
+type Domain {
+ """The host name of the domain."""
+ host: String!
+
+ """Inform if SSL is enabled."""
+ sslEnabled: Boolean!
+
+ """Shop's absolute URL."""
+ url: String!
+}
+
+type ShopTranslation implements Node {
+ id: ID!
+
+ """Translation language."""
+ language: LanguageDisplay!
+ headerText: String!
+ description: String!
+}
+
+"""
+Represents a recipient of email notifications send by Saleor, such as notifications about new orders. Notifications can be assigned to staff users or arbitrary email addresses.
+"""
+type StaffNotificationRecipient implements Node {
+ id: ID!
+
+ """Returns a user subscribed to email notifications."""
+ user: User
+
+ """Returns email address of a user subscribed to email notifications."""
+ email: String
+
+ """Determines if a notification active."""
+ active: Boolean
+}
+
+"""Represents user data."""
+type User implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ email: String!
+ firstName: String!
+ lastName: String!
+ isStaff: Boolean!
+ isActive: Boolean!
+
+ """List of all user's addresses."""
+ addresses: [Address]
+
+ """Returns the last open checkout of this user."""
+ checkout: Checkout @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts.")
+
+ """Returns the checkout UUID's assigned to this user."""
+ checkoutTokens(
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): [UUID!]
+
+ """List of the user gift cards."""
+ giftCards(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): GiftCardCountableConnection
+
+ """A note about the customer."""
+ note: String
+
+ """List of user's orders."""
+ orders(
+ """Return the elements in the list that come before the specified cursor."""
+ before: String
+
+ """Return the elements in the list that come after the specified cursor."""
+ after: String
+
+ """Return the first n elements from the list."""
+ first: Int
+
+ """Return the last n elements from the list."""
+ last: Int
+ ): OrderCountableConnection
+
+ """List of user's permissions."""
+ userPermissions: [UserPermission]
+
+ """List of user's permission groups."""
+ permissionGroups: [Group]
+
+ """List of user's permission groups which user can manage."""
+ editableGroups: [Group]
+ avatar(
+ """Size of the avatar."""
+ size: Int
+ ): Image
+
+ """List of events associated with the user."""
+ events: [CustomerEvent]
+
+ """List of stored payment sources."""
+ storedPaymentSources(
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+ ): [PaymentSource]
+
+ """User language code."""
+ languageCode: LanguageCodeEnum!
+ defaultShippingAddress: Address
+ defaultBillingAddress: Address
+ lastLogin: DateTime
+ dateJoined: DateTime!
+ updatedAt: DateTime!
+}
+
+"""Checkout object."""
+type Checkout implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ created: DateTime!
+ lastChange: DateTime!
+ user: User
+ channel: Channel!
+ billingAddress: Address
+ shippingAddress: Address
+ note: String!
+ discount: Money
+ discountName: String
+ translatedDiscountName: String
+ voucherCode: String
+
+ """Shipping methods that can be used with this checkout."""
+ availableShippingMethods: [ShippingMethod]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `shippingMethods` instead.")
+
+ """Shipping methods that can be used with this checkout."""
+ shippingMethods: [ShippingMethod]!
+
+ """
+ New in Saleor 3.1. Collection points that can be used for this order. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ availableCollectionPoints: [Warehouse!]!
+
+ """List of available payment gateways."""
+ availablePaymentGateways: [PaymentGateway!]!
+
+ """Email of a customer."""
+ email: String
+
+ """List of gift cards associated with this checkout."""
+ giftCards: [GiftCard]
+
+ """Returns True, if checkout requires shipping."""
+ isShippingRequired: Boolean!
+
+ """The number of items purchased."""
+ quantity: Int!
+
+ """
+ New in Saleor 3.1. Date when oldest stock reservation for this checkout expires or null if no stock is reserved.
+ """
+ stockReservationExpires: DateTime
+
+ """
+ A list of checkout lines, each containing information about an item in the checkout.
+ """
+ lines: [CheckoutLine]
+
+ """The price of the shipping, with all the taxes included."""
+ shippingPrice: TaxedMoney
+
+ """The shipping method related with checkout."""
+ shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.")
+
+ """
+ New in Saleor 3.1. The delivery method selected for this checkout. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ deliveryMethod: DeliveryMethod
+
+ """The price of the checkout before shipping, with taxes included."""
+ subtotalPrice: TaxedMoney
+
+ """The checkout's token."""
+ token: UUID!
+
+ """
+ The sum of the the checkout line prices, with all the taxes,shipping costs, and discounts included.
+ """
+ totalPrice: TaxedMoney
+
+ """Checkout language code."""
+ languageCode: LanguageCodeEnum!
+}
+
+"""
+A gift card is a prepaid electronic payment card accepted in stores. They can be used during checkout by providing a valid gift card codes.
+"""
+type GiftCard implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+
+ """Code in format which allows displaying in a user interface."""
+ displayCode: String!
+
+ """Last 4 characters of gift card code."""
+ last4CodeChars: String!
+
+ """
+ Gift card code. Can be fetched by staff member with manage gift card permission when gift card wasn't used yet and by the gift card owner.
+ """
+ code: String!
+ created: DateTime!
+
+ """
+ New in Saleor 3.1. The user who bought or issued a gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ createdBy: User
+
+ """
+ New in Saleor 3.1. The customer who used a gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ usedBy: User
+
+ """
+ New in Saleor 3.1. Email address of the user who bought or issued gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ createdByEmail: String
+
+ """
+ New in Saleor 3.1. Email address of the customer who used a gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ usedByEmail: String
+ lastUsedOn: DateTime
+ expiryDate: Date
+
+ """
+ New in Saleor 3.1. App which created the gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ app: App
+
+ """
+ New in Saleor 3.1. Related gift card product. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ product: Product
+
+ """
+ New in Saleor 3.1. List of events associated with the gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ events(
+ """Filtering options for gift card events."""
+ filter: GiftCardEventFilterInput
+ ): [GiftCardEvent!]!
+
+ """
+ New in Saleor 3.1. The gift card tag. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ tags: [GiftCardTag!]!
+
+ """
+ New in Saleor 3.1. Slug of the channel where the gift card was bought. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ boughtInChannel: String
+ isActive: Boolean!
+ initialBalance: Money
+ currentBalance: Money
+
+ """The customer who bought a gift card."""
+ user: User @deprecated(reason: "This field will be removed in Saleor 4.0. Use `createdBy` field instead.")
+
+ """End date of gift card."""
+ endDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0. Use `expiryDate` field instead.")
+
+ """Start date of gift card."""
+ startDate: DateTime @deprecated(reason: "This field will be removed in Saleor 4.0.")
+}
+
+"""
+New in Saleor 3.1. History log of the gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardEvent implements Node {
+ id: ID!
+
+ """Date when event happened at in ISO 8601 format."""
+ date: DateTime
+
+ """Gift card event type."""
+ type: GiftCardEventsEnum
+
+ """User who performed the action."""
+ user: User
+
+ """App that performed the action."""
+ app: App
+
+ """Content of the event."""
+ message: String
+
+ """Email of the customer."""
+ email: String
+
+ """The order ID where gift card was used or bought."""
+ orderId: ID
+
+ """User-friendly number of an order where gift card was used or bought."""
+ orderNumber: String
+
+ """The list of gift card tags."""
+ tags: [String!]
+
+ """The list of old gift card tags."""
+ oldTags: [String!]
+
+ """The gift card balance."""
+ balance: GiftCardEventBalance
+
+ """The gift card expiry date."""
+ expiryDate: Date
+
+ """Previous gift card expiry date."""
+ oldExpiryDate: Date
+}
+
+"""An enumeration."""
+enum GiftCardEventsEnum {
+ ISSUED
+ BOUGHT
+ UPDATED
+ ACTIVATED
+ DEACTIVATED
+ BALANCE_RESET
+ EXPIRY_DATE_UPDATED
+ TAGS_UPDATED
+ SENT_TO_CUSTOMER
+ RESENT
+ NOTE_ADDED
+ USED_IN_ORDER
+}
+
+type GiftCardEventBalance {
+ """Initial balance of the gift card."""
+ initialBalance: Money
+
+ """Current balance of the gift card."""
+ currentBalance: Money!
+
+ """Previous initial balance of the gift card."""
+ oldInitialBalance: Money
+
+ """Previous current balance of the gift card."""
+ oldCurrentBalance: Money
+}
+
+input GiftCardEventFilterInput {
+ type: GiftCardEventsEnum
+ orders: [ID!]
+}
+
+"""
+New in Saleor 3.1. The gift card tag. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardTag implements Node {
+ id: ID!
+ name: String!
+}
+
+"""Represents an item in the checkout."""
+type CheckoutLine implements Node {
+ id: ID!
+ variant: ProductVariant!
+ quantity: Int!
+
+ """The sum of the checkout line price, taxes and discounts."""
+ totalPrice: TaxedMoney
+
+ """Indicates whether the item need to be delivered."""
+ requiresShipping: Boolean
+}
+
+"""
+New in Saleor 3.1. Represents a delivery method chosen for the checkout. `Warehouse` type is used when checkout is marked as "click and collect" and `ShippingMethod` otherwise. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+union DeliveryMethod = Warehouse | ShippingMethod
+
+type GiftCardCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [GiftCardCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type GiftCardCountableEdge {
+ """The item at the end of the edge."""
+ node: GiftCard!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+type OrderCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [OrderCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type OrderCountableEdge {
+ """The item at the end of the edge."""
+ node: Order!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+"""Represents an order in the shop."""
+type Order implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ created: DateTime!
+ updatedAt: DateTime!
+ status: OrderStatus!
+ user: User
+ trackingClientId: String!
+ billingAddress: Address
+ shippingAddress: Address
+ shippingMethodName: String
+ collectionPointName: String
+ channel: Channel!
+
+ """List of shipments for the order."""
+ fulfillments: [Fulfillment]!
+
+ """List of order lines."""
+ lines: [OrderLine]!
+
+ """
+ List of actions that can be performed in the current state of an order.
+ """
+ actions: [OrderAction]!
+
+ """Shipping methods that can be used with this order."""
+ availableShippingMethods: [ShippingMethod] @deprecated(reason: "Use `shippingMethods`, this field will be removed in 4.0")
+
+ """Shipping methods related to this order."""
+ shippingMethods: [ShippingMethod]
+
+ """
+ New in Saleor 3.1. Collection points that can be used for this order. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ availableCollectionPoints: [Warehouse!]!
+
+ """List of order invoices."""
+ invoices: [Invoice]
+
+ """User-friendly number of an order."""
+ number: String
+
+ """The ID of the order that was the base for this order."""
+ original: ID
+
+ """The order origin."""
+ origin: OrderOriginEnum!
+
+ """Informs if an order is fully paid."""
+ isPaid: Boolean!
+
+ """Internal payment status."""
+ paymentStatus: PaymentChargeStatusEnum!
+
+ """User-friendly payment status."""
+ paymentStatusDisplay: String!
+
+ """List of payments for the order."""
+ payments: [Payment]
+
+ """Total amount of the order."""
+ total: TaxedMoney!
+
+ """Undiscounted total amount of the order."""
+ undiscountedTotal: TaxedMoney!
+
+ """Shipping method for this order."""
+ shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.")
+
+ """Total price of shipping."""
+ shippingPrice: TaxedMoney!
+ shippingTaxRate: Float!
+ token: String!
+ voucher: Voucher
+
+ """List of user gift cards."""
+ giftCards: [GiftCard]
+ displayGrossPrices: Boolean!
+ customerNote: String!
+ weight: Weight
+ redirectUrl: String
+
+ """The sum of line prices not including shipping."""
+ subtotal: TaxedMoney!
+
+ """User-friendly order status."""
+ statusDisplay: String
+
+ """
+ Informs whether a draft order can be finalized(turned into a regular order).
+ """
+ canFinalize: Boolean!
+
+ """Amount authorized for the order."""
+ totalAuthorized: Money!
+
+ """Amount captured by payment."""
+ totalCaptured: Money!
+
+ """List of events associated with the order."""
+ events: [OrderEvent]
+
+ """The difference between the paid and the order total amount."""
+ totalBalance: Money!
+
+ """Email address of the customer."""
+ userEmail: String
+
+ """Returns True, if order requires shipping."""
+ isShippingRequired: Boolean!
+
+ """
+ New in Saleor 3.1. The delivery method selected for this checkout. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ deliveryMethod: DeliveryMethod
+ languageCode: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. ")
+
+ """Order language code."""
+ languageCodeEnum: LanguageCodeEnum!
+
+ """Returns applied discount."""
+ discount: Money @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.")
+
+ """Discount name."""
+ discountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.")
+
+ """Translated discount name."""
+ translatedDiscountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead. ")
+
+ """List of all discounts assigned to the order."""
+ discounts: [OrderDiscount!]
+
+ """List of errors that occurred during order validation."""
+ errors: [OrderError!]!
+}
+
+"""An enumeration."""
+enum OrderStatus {
+ DRAFT
+ UNCONFIRMED
+ UNFULFILLED
+ PARTIALLY_FULFILLED
+ PARTIALLY_RETURNED
+ RETURNED
+ FULFILLED
+ CANCELED
+}
+
+"""Represents order fulfillment."""
+type Fulfillment implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ fulfillmentOrder: Int!
+ status: FulfillmentStatus!
+ trackingNumber: String!
+ created: DateTime!
+
+ """List of lines for the fulfillment."""
+ lines: [FulfillmentLine]
+
+ """User-friendly fulfillment status."""
+ statusDisplay: String
+
+ """Warehouse from fulfillment was fulfilled."""
+ warehouse: Warehouse
+}
+
+"""An enumeration."""
+enum FulfillmentStatus {
+ FULFILLED
+ REFUNDED
+ RETURNED
+ REPLACED
+ REFUNDED_AND_RETURNED
+ CANCELED
+ WAITING_FOR_APPROVAL
+}
+
+"""Represents line of the fulfillment."""
+type FulfillmentLine implements Node {
+ id: ID!
+ quantity: Int!
+ orderLine: OrderLine
+}
+
+"""Represents order line of particular order."""
+type OrderLine implements Node {
+ id: ID!
+ productName: String!
+ variantName: String!
+ productSku: String
+ productVariantId: String
+ isShippingRequired: Boolean!
+ quantity: Int!
+ quantityFulfilled: Int!
+ unitDiscountReason: String
+ taxRate: Float!
+ digitalContentUrl: DigitalContentUrl
+
+ """The main thumbnail for the ordered product."""
+ thumbnail(
+ """Size of thumbnail."""
+ size: Int
+ ): Image
+
+ """Price of the single item in the order line."""
+ unitPrice: TaxedMoney!
+
+ """
+ Price of the single item in the order line without applied an order line discount.
+ """
+ undiscountedUnitPrice: TaxedMoney!
+
+ """The discount applied to the single order line."""
+ unitDiscount: Money!
+
+ """Value of the discount. Can store fixed value or percent value"""
+ unitDiscountValue: PositiveDecimal!
+
+ """Price of the order line."""
+ totalPrice: TaxedMoney!
+
+ """
+ A purchased product variant. Note: this field may be null if the variant has been removed from stock at all.
+ """
+ variant: ProductVariant
+
+ """Product name in the customer's language"""
+ translatedProductName: String!
+
+ """Variant name in the customer's language"""
+ translatedVariantName: String!
+
+ """List of allocations across warehouses."""
+ allocations: [Allocation!]
+
+ """New in Saleor 3.1. A quantity of items remaining to be fulfilled."""
+ quantityToFulfill: Int!
+
+ """Type of the discount: fixed or percent"""
+ unitDiscountType: DiscountValueTypeEnum
+}
+
+"""
+Positive Decimal scalar implementation.
+
+Should be used in places where value must be positive.
+"""
+scalar PositiveDecimal
+
+"""Represents allocation."""
+type Allocation implements Node {
+ id: ID!
+
+ """Quantity allocated for orders."""
+ quantity: Int!
+
+ """The warehouse were items were allocated."""
+ warehouse: Warehouse!
+}
+
+enum OrderAction {
+ """Represents the capture action."""
+ CAPTURE
+
+ """Represents a mark-as-paid action."""
+ MARK_AS_PAID
+
+ """Represents a refund action."""
+ REFUND
+
+ """Represents a void action."""
+ VOID
+}
+
+"""Represents an Invoice."""
+type Invoice implements ObjectWithMetadata & Job & Node {
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+
+ """Job status."""
+ status: JobStatusEnum!
+ createdAt: DateTime!
+ updatedAt: DateTime!
+ message: String
+
+ """The ID of the object."""
+ id: ID!
+ number: String
+ externalUrl: String
+
+ """URL to download an invoice."""
+ url: String
+}
+
+interface Job {
+ """Job status."""
+ status: JobStatusEnum!
+
+ """Created date time of job in ISO 8601 format."""
+ createdAt: DateTime!
+
+ """Date time of job last update in ISO 8601 format."""
+ updatedAt: DateTime!
+
+ """Job message."""
+ message: String
+}
+
+"""An enumeration."""
+enum JobStatusEnum {
+ PENDING
+ SUCCESS
+ FAILED
+ DELETED
+}
+
+"""An enumeration."""
+enum OrderOriginEnum {
+ CHECKOUT
+ DRAFT
+ REISSUE
+}
+
+"""An enumeration."""
+enum PaymentChargeStatusEnum {
+ NOT_CHARGED
+ PENDING
+ PARTIALLY_CHARGED
+ FULLY_CHARGED
+ PARTIALLY_REFUNDED
+ FULLY_REFUNDED
+ REFUSED
+ CANCELLED
+}
+
+"""Represents a payment of a given type."""
+type Payment implements Node & ObjectWithMetadata {
+ id: ID!
+
+ """
+ List of private metadata items.Requires proper staff permissions to access.
+ """
+ privateMetadata: [MetadataItem]!
+
+ """List of public metadata items. Can be accessed without permissions."""
+ metadata: [MetadataItem]!
+ gateway: String!
+ isActive: Boolean!
+ created: DateTime!
+ modified: DateTime!
+ token: String!
+ checkout: Checkout
+ order: Order
+ paymentMethodType: String!
+ customerIpAddress: String
+
+ """Internal payment status."""
+ chargeStatus: PaymentChargeStatusEnum!
+
+ """
+ List of actions that can be performed in the current state of a payment.
+ """
+ actions: [OrderAction]!
+
+ """Total amount of the payment."""
+ total: Money
+
+ """Total amount captured for this payment."""
+ capturedAmount: Money
+
+ """List of all transactions within this payment."""
+ transactions: [Transaction]
+
+ """Maximum amount of money that can be captured."""
+ availableCaptureAmount: Money
+
+ """Maximum amount of money that can be refunded."""
+ availableRefundAmount: Money
+
+ """The details of the card used for this payment."""
+ creditCard: CreditCard
+}
+
+"""An object representing a single payment."""
+type Transaction implements Node {
+ id: ID!
+ created: DateTime!
+ payment: Payment!
+ token: String!
+ kind: TransactionKind!
+ isSuccess: Boolean!
+ error: String
+ gatewayResponse: JSONString!
+
+ """Total amount of the transaction."""
+ amount: Money
+}
+
+"""An enumeration."""
+enum TransactionKind {
+ EXTERNAL
+ AUTH
+ PENDING
+ ACTION_TO_CONFIRM
+ REFUND
+ REFUND_ONGOING
+ CAPTURE
+ VOID
+ CONFIRM
+ CANCEL
+}
+
+type CreditCard {
+ """Card brand."""
+ brand: String!
+
+ """First 4 digits of the card number."""
+ firstDigits: String
+
+ """Last 4 digits of the card number."""
+ lastDigits: String!
+
+ """Two-digit number representing the card’s expiration month."""
+ expMonth: Int
+
+ """Four-digit number representing the card’s expiration year."""
+ expYear: Int
+}
+
+"""History log of the order."""
+type OrderEvent implements Node {
+ id: ID!
+
+ """Date when event happened at in ISO 8601 format."""
+ date: DateTime
+
+ """Order event type."""
+ type: OrderEventsEnum
+
+ """User who performed the action."""
+ user: User
+
+ """App that performed the action."""
+ app: App
+
+ """Content of the event."""
+ message: String
+
+ """Email of the customer."""
+ email: String
+
+ """Type of an email sent to the customer."""
+ emailType: OrderEventsEmailsEnum
+
+ """Amount of money."""
+ amount: Float
+
+ """The payment ID from the payment gateway."""
+ paymentId: String
+
+ """The payment gateway of the payment."""
+ paymentGateway: String
+
+ """Number of items."""
+ quantity: Int
+
+ """Composed ID of the Fulfillment."""
+ composedId: String
+
+ """User-friendly number of an order."""
+ orderNumber: String
+
+ """Number of an invoice related to the order."""
+ invoiceNumber: String
+
+ """List of oversold lines names."""
+ oversoldItems: [String]
+
+ """The concerned lines."""
+ lines: [OrderEventOrderLineObject]
+
+ """The lines fulfilled."""
+ fulfilledItems: [FulfillmentLine]
+
+ """The warehouse were items were restocked."""
+ warehouse: Warehouse
+
+ """The transaction reference of captured payment."""
+ transactionReference: String
+
+ """Define if shipping costs were included to the refund."""
+ shippingCostsIncluded: Boolean
+
+ """The order which is related to this order."""
+ relatedOrder: Order
+
+ """The discount applied to the order."""
+ discount: OrderEventDiscountObject
+}
+
+"""An enumeration."""
+enum OrderEventsEnum {
+ DRAFT_CREATED
+ DRAFT_CREATED_FROM_REPLACE
+ ADDED_PRODUCTS
+ REMOVED_PRODUCTS
+ PLACED
+ PLACED_FROM_DRAFT
+ OVERSOLD_ITEMS
+ CANCELED
+ ORDER_MARKED_AS_PAID
+ ORDER_FULLY_PAID
+ ORDER_REPLACEMENT_CREATED
+ ORDER_DISCOUNT_ADDED
+ ORDER_DISCOUNT_AUTOMATICALLY_UPDATED
+ ORDER_DISCOUNT_UPDATED
+ ORDER_DISCOUNT_DELETED
+ ORDER_LINE_DISCOUNT_UPDATED
+ ORDER_LINE_DISCOUNT_REMOVED
+ ORDER_LINE_PRODUCT_DELETED
+ ORDER_LINE_VARIANT_DELETED
+ UPDATED_ADDRESS
+ EMAIL_SENT
+ CONFIRMED
+ PAYMENT_AUTHORIZED
+ PAYMENT_CAPTURED
+ EXTERNAL_SERVICE_NOTIFICATION
+ PAYMENT_REFUNDED
+ PAYMENT_VOIDED
+ PAYMENT_FAILED
+ INVOICE_REQUESTED
+ INVOICE_GENERATED
+ INVOICE_UPDATED
+ INVOICE_SENT
+ FULFILLMENT_CANCELED
+ FULFILLMENT_RESTOCKED_ITEMS
+ FULFILLMENT_FULFILLED_ITEMS
+ FULFILLMENT_REFUNDED
+ FULFILLMENT_RETURNED
+ FULFILLMENT_REPLACED
+ FULFILLMENT_AWAITS_APPROVAL
+ TRACKING_UPDATED
+ NOTE_ADDED
+ OTHER
+}
+
+"""An enumeration."""
+enum OrderEventsEmailsEnum {
+ PAYMENT_CONFIRMATION
+ CONFIRMED
+ SHIPPING_CONFIRMATION
+ TRACKING_UPDATED
+ ORDER_CONFIRMATION
+ ORDER_CANCEL
+ ORDER_REFUND
+ FULFILLMENT_CONFIRMATION
+ DIGITAL_LINKS
+}
+
+type OrderEventOrderLineObject {
+ """The variant quantity."""
+ quantity: Int
+
+ """The order line."""
+ orderLine: OrderLine
+
+ """The variant name."""
+ itemName: String
+
+ """The discount applied to the order line."""
+ discount: OrderEventDiscountObject
+}
+
+type OrderEventDiscountObject {
+ """Type of the discount: fixed or percent."""
+ valueType: DiscountValueTypeEnum!
+
+ """Value of the discount. Can store fixed value or percent value."""
+ value: PositiveDecimal!
+
+ """Explanation for the applied discount."""
+ reason: String
+
+ """Returns amount of discount."""
+ amount: Money
+
+ """Type of the discount: fixed or percent."""
+ oldValueType: DiscountValueTypeEnum
+
+ """Value of the discount. Can store fixed value or percent value."""
+ oldValue: PositiveDecimal
+
+ """Returns amount of discount."""
+ oldAmount: Money
+}
+
+"""Contains all details related to the applied discount to the order."""
+type OrderDiscount implements Node {
+ id: ID!
+ type: OrderDiscountType!
+ name: String
+ translatedName: String
+
+ """Type of the discount: fixed or percent"""
+ valueType: DiscountValueTypeEnum!
+
+ """Value of the discount. Can store fixed value or percent value"""
+ value: PositiveDecimal!
+
+ """Explanation for the applied discount."""
+ reason: String
+
+ """Returns amount of discount."""
+ amount: Money!
+}
+
+"""An enumeration."""
+enum OrderDiscountType {
+ VOUCHER
+ MANUAL
+}
+
+type OrderError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: OrderErrorCode!
+
+ """Warehouse ID which causes the error."""
+ warehouse: ID
+
+ """List of order line IDs that cause the error."""
+ orderLines: [ID!]
+
+ """List of product variants that are associated with the error"""
+ variants: [ID!]
+
+ """A type of address that causes the error."""
+ addressType: AddressTypeEnum
+}
+
+"""An enumeration."""
+enum OrderErrorCode {
+ BILLING_ADDRESS_NOT_SET
+ CANNOT_CANCEL_FULFILLMENT
+ CANNOT_CANCEL_ORDER
+ CANNOT_DELETE
+ CANNOT_DISCOUNT
+ CANNOT_REFUND
+ CANNOT_FULFILL_UNPAID_ORDER
+ CAPTURE_INACTIVE_PAYMENT
+ GIFT_CARD_LINE
+ NOT_EDITABLE
+ FULFILL_ORDER_LINE
+ GRAPHQL_ERROR
+ INVALID
+ PRODUCT_NOT_PUBLISHED
+ PRODUCT_UNAVAILABLE_FOR_PURCHASE
+ NOT_FOUND
+ ORDER_NO_SHIPPING_ADDRESS
+ PAYMENT_ERROR
+ PAYMENT_MISSING
+ REQUIRED
+ SHIPPING_METHOD_NOT_APPLICABLE
+ SHIPPING_METHOD_REQUIRED
+ TAX_ERROR
+ UNIQUE
+ VOID_INACTIVE_PAYMENT
+ ZERO_QUANTITY
+ INVALID_QUANTITY
+ INSUFFICIENT_STOCK
+ DUPLICATED_INPUT_ITEM
+ NOT_AVAILABLE_IN_CHANNEL
+ CHANNEL_INACTIVE
+}
+
+"""An enumeration."""
+enum AddressTypeEnum {
+ BILLING
+ SHIPPING
+}
+
+type UserPermission {
+ """Internal code for permission."""
+ code: PermissionEnum!
+
+ """Describe action(s) allowed to do by permission."""
+ name: String!
+
+ """List of user permission groups which contains this permission."""
+ sourcePermissionGroups(
+ """ID of user whose groups should be returned."""
+ userId: ID!
+ ): [Group!]
+}
+
+"""Represents permission group data."""
+type Group implements Node {
+ id: ID!
+ name: String!
+
+ """List of group users"""
+ users: [User]
+
+ """List of group permissions"""
+ permissions: [Permission]
+
+ """
+ True, if the currently authenticated user has rights to manage a group.
+ """
+ userCanManage: Boolean!
+}
+
+"""History log of the customer."""
+type CustomerEvent implements Node {
+ id: ID!
+
+ """Date when event happened at in ISO 8601 format."""
+ date: DateTime
+
+ """Customer event type."""
+ type: CustomerEventsEnum
+
+ """User who performed the action."""
+ user: User
+
+ """App that performed the action."""
+ app: App
+
+ """Content of the event."""
+ message: String
+
+ """Number of objects concerned by the event."""
+ count: Int
+
+ """The concerned order."""
+ order: Order
+
+ """The concerned order line."""
+ orderLine: OrderLine
+}
+
+"""An enumeration."""
+enum CustomerEventsEnum {
+ ACCOUNT_CREATED
+ PASSWORD_RESET_LINK_SENT
+ PASSWORD_RESET
+ EMAIL_CHANGED_REQUEST
+ PASSWORD_CHANGED
+ EMAIL_CHANGED
+ PLACED_ORDER
+ NOTE_ADDED_TO_ORDER
+ DIGITAL_LINK_DOWNLOADED
+ CUSTOMER_DELETED
+ NAME_ASSIGNED
+ EMAIL_ASSIGNED
+ NOTE_ADDED
+}
+
+"""
+Represents a payment source stored for user in payment gateway, such as credit card.
+"""
+type PaymentSource {
+ """Payment gateway name."""
+ gateway: String!
+
+ """ID of stored payment method."""
+ paymentMethodId: String
+
+ """Stored credit card details if available."""
+ creditCardInfo: CreditCard
+
+ """
+ New in Saleor 3.1. List of public metadata items. Can be accessed without permissions.
+ """
+ metadata: [MetadataItem]!
+}
+
+type LimitInfo {
+ """Defines the current resource usage."""
+ currentUsage: Limits!
+
+ """Defines the allowed maximum resource usage, null means unlimited."""
+ allowedUsage: Limits!
+}
+
+type Limits {
+ channels: Int
+ orders: Int
+ productVariants: Int
+ staffUsers: Int
+ warehouses: Int
+}
+
+"""Order related settings from site settings."""
+type OrderSettings {
+ automaticallyConfirmAllNewOrders: Boolean!
+ automaticallyFulfillNonShippableGiftCard: Boolean!
+}
+
+"""Gift card related settings from site settings."""
+type GiftCardSettings {
+ """The gift card expiry type settings."""
+ expiryType: GiftCardSettingsExpiryTypeEnum!
+
+ """The gift card expiry period settings."""
+ expiryPeriod: TimePeriod
+}
+
+"""An enumeration."""
+enum GiftCardSettingsExpiryTypeEnum {
+ NEVER_EXPIRE
+ EXPIRY_PERIOD
+}
+
+type TimePeriod {
+ """The length of the period."""
+ amount: Int!
+
+ """The type of the period."""
+ type: TimePeriodTypeEnum!
+}
+
+"""An enumeration."""
+enum TimePeriodTypeEnum {
+ DAY
+ WEEK
+ MONTH
+ YEAR
+}
+
+input ShippingZoneFilterInput {
+ search: String
+ channels: [ID]
+}
+
+type DigitalContentCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [DigitalContentCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type DigitalContentCountableEdge {
+ """The item at the end of the edge."""
+ node: DigitalContent!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input CategoryFilterInput {
+ search: String
+ metadata: [MetadataFilter]
+ ids: [ID]
+}
+
+input CategorySortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """
+ Specifies the channel in which to sort the data.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.
+ """
+ channel: String
+
+ """Sort categories by the selected field."""
+ field: CategorySortField!
+}
+
+enum CategorySortField {
+ """Sort categories by name."""
+ NAME
+
+ """Sort categories by product count."""
+ PRODUCT_COUNT
+
+ """Sort categories by subcategory count."""
+ SUBCATEGORY_COUNT
+}
+
+input CollectionFilterInput {
+ published: CollectionPublished
+ search: String
+ metadata: [MetadataFilter]
+ ids: [ID]
+
+ """
+ Specifies the channel by which the data should be filtered.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.
+ """
+ channel: String
+}
+
+enum CollectionPublished {
+ PUBLISHED
+ HIDDEN
+}
+
+input CollectionSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """
+ Specifies the channel in which to sort the data.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.
+ """
+ channel: String
+
+ """Sort collections by the selected field."""
+ field: CollectionSortField!
+}
+
+enum CollectionSortField {
+ """Sort collections by name."""
+ NAME
+
+ """Sort collections by availability."""
+ AVAILABILITY
+
+ """Sort collections by product count."""
+ PRODUCT_COUNT
+
+ """Sort collections by publication date."""
+ PUBLICATION_DATE
+}
+
+input ProductTypeFilterInput {
+ search: String
+ configurable: ProductTypeConfigurable
+ productType: ProductTypeEnum
+ metadata: [MetadataFilter]
+ kind: ProductTypeKindEnum
+ ids: [ID]
+}
+
+enum ProductTypeConfigurable {
+ CONFIGURABLE
+ SIMPLE
+}
+
+enum ProductTypeEnum {
+ DIGITAL
+ SHIPPABLE
+}
+
+input ProductTypeSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort product types by the selected field."""
+ field: ProductTypeSortField!
+}
+
+enum ProductTypeSortField {
+ """Sort products by name."""
+ NAME
+
+ """Sort products by type."""
+ DIGITAL
+
+ """Sort products by shipping."""
+ SHIPPING_REQUIRED
+}
+
+input ProductVariantFilterInput {
+ search: String
+ sku: [String]
+ metadata: [MetadataFilter]
+ isPreorder: Boolean
+ updatedAt: DateTimeRangeInput
+}
+
+input ProductVariantSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort productVariants by the selected field."""
+ field: ProductVariantSortField!
+}
+
+enum ProductVariantSortField {
+ """Sort products variants by last modified at."""
+ LAST_MODIFIED_AT
+}
+
+type PaymentCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [PaymentCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type PaymentCountableEdge {
+ """The item at the end of the edge."""
+ node: Payment!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input PaymentFilterInput {
+ checkouts: [ID]
+}
+
+type PageCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [PageCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type PageCountableEdge {
+ """The item at the end of the edge."""
+ node: Page!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input PageSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort pages by the selected field."""
+ field: PageSortField!
+}
+
+enum PageSortField {
+ """Sort pages by title."""
+ TITLE
+
+ """Sort pages by slug."""
+ SLUG
+
+ """Sort pages by visibility."""
+ VISIBILITY
+
+ """Sort pages by creation date."""
+ CREATION_DATE
+
+ """Sort pages by publication date."""
+ PUBLICATION_DATE
+}
+
+input PageFilterInput {
+ search: String
+ metadata: [MetadataFilter]
+ pageTypes: [ID]
+ ids: [ID]
+}
+
+type PageTypeCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [PageTypeCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type PageTypeCountableEdge {
+ """The item at the end of the edge."""
+ node: PageType!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input PageTypeSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort page types by the selected field."""
+ field: PageTypeSortField!
+}
+
+enum PageTypeSortField {
+ """Sort page types by name."""
+ NAME
+
+ """Sort page types by slug."""
+ SLUG
+}
+
+input PageTypeFilterInput {
+ search: String
+}
+
+type OrderEventCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [OrderEventCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type OrderEventCountableEdge {
+ """The item at the end of the edge."""
+ node: OrderEvent!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input OrderSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort orders by the selected field."""
+ field: OrderSortField!
+}
+
+enum OrderSortField {
+ """Sort orders by number."""
+ NUMBER
+
+ """
+ Sort orders by creation date.
+
+ DEPRECATED: this field will be removed in Saleor 4.0.
+ """
+ CREATION_DATE
+
+ """
+ Sort orders by creation date.
+
+ DEPRECATED: this field will be removed in Saleor 4.0.
+ """
+ CREATED_AT
+
+ """Sort orders by last modified at."""
+ LAST_MODIFIED_AT
+
+ """Sort orders by customer."""
+ CUSTOMER
+
+ """Sort orders by payment."""
+ PAYMENT
+
+ """Sort orders by fulfillment status."""
+ FULFILLMENT_STATUS
+}
+
+input OrderFilterInput {
+ paymentStatus: [PaymentChargeStatusEnum]
+ status: [OrderStatusFilter]
+ customer: String
+ created: DateRangeInput
+ search: String
+ metadata: [MetadataFilter]
+ channels: [ID]
+ updatedAt: DateTimeRangeInput
+ isClickAndCollect: Boolean
+ isPreorder: Boolean
+ ids: [ID]
+ giftCardUsed: Boolean
+ giftCardBought: Boolean
+}
+
+enum OrderStatusFilter {
+ READY_TO_FULFILL
+ READY_TO_CAPTURE
+ UNFULFILLED
+ UNCONFIRMED
+ PARTIALLY_FULFILLED
+ FULFILLED
+ CANCELED
+}
+
+input OrderDraftFilterInput {
+ customer: String
+ created: DateRangeInput
+ search: String
+ metadata: [MetadataFilter]
+ channels: [ID]
+}
+
+type MenuCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [MenuCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type MenuCountableEdge {
+ """The item at the end of the edge."""
+ node: Menu!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input MenuSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort menus by the selected field."""
+ field: MenuSortField!
+}
+
+enum MenuSortField {
+ """Sort menus by name."""
+ NAME
+
+ """Sort menus by items count."""
+ ITEMS_COUNT
+}
+
+input MenuFilterInput {
+ search: String
+ slug: [String]
+ metadata: [MetadataFilter]
+}
+
+type MenuItemCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [MenuItemCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type MenuItemCountableEdge {
+ """The item at the end of the edge."""
+ node: MenuItem!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input MenuItemSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort menu items by the selected field."""
+ field: MenuItemsSortField!
+}
+
+enum MenuItemsSortField {
+ """Sort menu items by name."""
+ NAME
+}
+
+input MenuItemFilterInput {
+ search: String
+ metadata: [MetadataFilter]
+}
+
+input GiftCardSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort gift cards by the selected field."""
+ field: GiftCardSortField!
+}
+
+enum GiftCardSortField {
+ """Sort orders by product."""
+ PRODUCT
+
+ """Sort orders by used by."""
+ USED_BY
+
+ """Sort orders by current balance."""
+ CURRENT_BALANCE
+}
+
+input GiftCardFilterInput {
+ isActive: Boolean
+ metadata: [MetadataFilter]
+ tags: [String]
+ products: [ID]
+ usedBy: [ID]
+ used: Boolean
+ currency: String
+ currentBalance: PriceRangeInput
+ initialBalance: PriceRangeInput
+ code: String
+}
+
+type GiftCardTagCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [GiftCardTagCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type GiftCardTagCountableEdge {
+ """The item at the end of the edge."""
+ node: GiftCardTag!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input GiftCardTagFilterInput {
+ search: String
+}
+
+"""Plugin."""
+type Plugin {
+ """Identifier of the plugin."""
+ id: ID!
+
+ """Name of the plugin."""
+ name: String!
+
+ """Description of the plugin."""
+ description: String!
+
+ """Global configuration of the plugin (not channel-specific)."""
+ globalConfiguration: PluginConfiguration
+
+ """Channel-specific plugin configuration."""
+ channelConfigurations: [PluginConfiguration!]!
+}
+
+"""Stores information about a configuration of plugin."""
+type PluginConfiguration {
+ """Determines if plugin is active or not."""
+ active: Boolean!
+
+ """The channel to which the plugin configuration is assigned to."""
+ channel: Channel
+
+ """Configuration of the plugin."""
+ configuration: [ConfigurationItem]
+}
+
+"""Stores information about a single configuration field."""
+type ConfigurationItem {
+ """Name of the field."""
+ name: String!
+
+ """Current value of the field."""
+ value: String
+
+ """Type of the field."""
+ type: ConfigurationTypeFieldEnum
+
+ """Help text for the field."""
+ helpText: String
+
+ """Label for the field."""
+ label: String
+}
+
+"""An enumeration."""
+enum ConfigurationTypeFieldEnum {
+ STRING
+ MULTILINE
+ BOOLEAN
+ SECRET
+ PASSWORD
+ SECRETMULTILINE
+ OUTPUT
+}
+
+type PluginCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [PluginCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type PluginCountableEdge {
+ """The item at the end of the edge."""
+ node: Plugin!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input PluginFilterInput {
+ statusInChannels: PluginStatusInChannelsInput
+ search: String
+ type: PluginConfigurationType
+}
+
+input PluginStatusInChannelsInput {
+ active: Boolean!
+ channels: [ID!]!
+}
+
+enum PluginConfigurationType {
+ PER_CHANNEL
+ GLOBAL
+}
+
+input PluginSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort plugins by the selected field."""
+ field: PluginSortField!
+}
+
+enum PluginSortField {
+ NAME
+ IS_ACTIVE
+}
+
+type SaleCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [SaleCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type SaleCountableEdge {
+ """The item at the end of the edge."""
+ node: Sale!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input SaleFilterInput {
+ status: [DiscountStatusEnum]
+ saleType: DiscountValueTypeEnum
+ started: DateTimeRangeInput
+ search: String
+ metadata: [MetadataFilter]
+ updatedAt: DateTimeRangeInput
+}
+
+enum DiscountStatusEnum {
+ ACTIVE
+ EXPIRED
+ SCHEDULED
+}
+
+input SaleSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """
+ Specifies the channel in which to sort the data.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.
+ """
+ channel: String
+
+ """Sort sales by the selected field."""
+ field: SaleSortField!
+}
+
+enum SaleSortField {
+ """Sort sales by name."""
+ NAME
+
+ """Sort sales by start date."""
+ START_DATE
+
+ """Sort sales by end date."""
+ END_DATE
+
+ """Sort sales by value."""
+ VALUE
+
+ """Sort sales by type."""
+ TYPE
+
+ """Sort sales by created at."""
+ CREATED_AT
+
+ """Sort sales by last modified at."""
+ LAST_MODIFIED_AT
+}
+
+type VoucherCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [VoucherCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type VoucherCountableEdge {
+ """The item at the end of the edge."""
+ node: Voucher!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input VoucherFilterInput {
+ status: [DiscountStatusEnum]
+ timesUsed: IntRangeInput
+ discountType: [VoucherDiscountType]
+ started: DateTimeRangeInput
+ search: String
+ metadata: [MetadataFilter]
+}
+
+enum VoucherDiscountType {
+ FIXED
+ PERCENTAGE
+ SHIPPING
+}
+
+input VoucherSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """
+ Specifies the channel in which to sort the data.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use root-level channel argument instead.
+ """
+ channel: String
+
+ """Sort vouchers by the selected field."""
+ field: VoucherSortField!
+}
+
+enum VoucherSortField {
+ """Sort vouchers by code."""
+ CODE
+
+ """Sort vouchers by start date."""
+ START_DATE
+
+ """Sort vouchers by end date."""
+ END_DATE
+
+ """Sort vouchers by value."""
+ VALUE
+
+ """Sort vouchers by type."""
+ TYPE
+
+ """Sort vouchers by usage limit."""
+ USAGE_LIMIT
+
+ """Sort vouchers by minimum spent amount."""
+ MINIMUM_SPENT_AMOUNT
+}
+
+"""Represents a job data of exported file."""
+type ExportFile implements Node & Job {
+ id: ID!
+
+ """Job status."""
+ status: JobStatusEnum!
+
+ """Created date time of job in ISO 8601 format."""
+ createdAt: DateTime!
+
+ """Date time of job last update in ISO 8601 format."""
+ updatedAt: DateTime!
+
+ """Job message."""
+ message: String
+
+ """The URL of field to download."""
+ url: String
+
+ """List of events associated with the export."""
+ events: [ExportEvent!]
+ user: User
+ app: App
+}
+
+"""History log of export file."""
+type ExportEvent implements Node {
+ """The ID of the object."""
+ id: ID!
+
+ """Date when event happened at in ISO 8601 format."""
+ date: DateTime!
+
+ """Export event type."""
+ type: ExportEventsEnum!
+
+ """User who performed the action."""
+ user: User
+
+ """App which performed the action."""
+ app: App
+
+ """Content of the event."""
+ message: String!
+}
+
+"""An enumeration."""
+enum ExportEventsEnum {
+ EXPORT_PENDING
+ EXPORT_SUCCESS
+ EXPORT_FAILED
+ EXPORT_DELETED
+ EXPORTED_FILE_SENT
+ EXPORT_FAILED_INFO_SENT
+}
+
+type ExportFileCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [ExportFileCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type ExportFileCountableEdge {
+ """The item at the end of the edge."""
+ node: ExportFile!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input ExportFileFilterInput {
+ createdAt: DateTimeRangeInput
+ updatedAt: DateTimeRangeInput
+ status: JobStatusEnum
+ user: String
+ app: String
+}
+
+input ExportFileSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort export file by the selected field."""
+ field: ExportFileSortField!
+}
+
+enum ExportFileSortField {
+ STATUS
+ CREATED_AT
+ UPDATED_AT
+ LAST_MODIFIED_AT
+}
+
+type CheckoutCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [CheckoutCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type CheckoutCountableEdge {
+ """The item at the end of the edge."""
+ node: Checkout!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input CheckoutSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort checkouts by the selected field."""
+ field: CheckoutSortField!
+}
+
+enum CheckoutSortField {
+ """Sort checkouts by creation date."""
+ CREATION_DATE
+
+ """Sort checkouts by customer."""
+ CUSTOMER
+
+ """Sort checkouts by payment."""
+ PAYMENT
+}
+
+input CheckoutFilterInput {
+ customer: String
+ created: DateRangeInput
+ search: String
+ metadata: [MetadataFilter]
+ channels: [ID]
+}
+
+type CheckoutLineCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [CheckoutLineCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type CheckoutLineCountableEdge {
+ """The item at the end of the edge."""
+ node: CheckoutLine!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input AttributeSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort attributes by the selected field."""
+ field: AttributeSortField!
+}
+
+enum AttributeSortField {
+ """Sort attributes by name"""
+ NAME
+
+ """Sort attributes by slug"""
+ SLUG
+
+ """Sort attributes by the value required flag"""
+ VALUE_REQUIRED
+
+ """Sort attributes by the variant only flag"""
+ IS_VARIANT_ONLY
+
+ """Sort attributes by visibility in the storefront"""
+ VISIBLE_IN_STOREFRONT
+
+ """Sort attributes by the filterable in storefront flag"""
+ FILTERABLE_IN_STOREFRONT
+
+ """Sort attributes by the filterable in dashboard flag"""
+ FILTERABLE_IN_DASHBOARD
+
+ """Sort attributes by their position in storefront"""
+ STOREFRONT_SEARCH_POSITION
+
+ """
+ Sort attributes based on whether they can be displayed or not in a product grid.
+ """
+ AVAILABLE_IN_GRID
+}
+
+"""Represents ongoing installation of app."""
+type AppInstallation implements Node & Job {
+ id: ID!
+
+ """Job status."""
+ status: JobStatusEnum!
+
+ """Created date time of job in ISO 8601 format."""
+ createdAt: DateTime!
+
+ """Date time of job last update in ISO 8601 format."""
+ updatedAt: DateTime!
+
+ """Job message."""
+ message: String
+ appName: String!
+ manifestUrl: String!
+}
+
+type AppCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [AppCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type AppCountableEdge {
+ """The item at the end of the edge."""
+ node: App!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input AppFilterInput {
+ search: String
+ isActive: Boolean
+ type: AppTypeEnum
+}
+
+input AppSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort apps by the selected field."""
+ field: AppSortField!
+}
+
+enum AppSortField {
+ """Sort apps by name."""
+ NAME
+
+ """Sort apps by creation date."""
+ CREATION_DATE
+}
+
+type AppExtensionCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [AppExtensionCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type AppExtensionCountableEdge {
+ """The item at the end of the edge."""
+ node: AppExtension!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input AppExtensionFilterInput {
+ mount: [AppExtensionMountEnum]
+ target: AppExtensionTargetEnum
+}
+
+type AddressValidationData {
+ countryCode: String
+ countryName: String
+ addressFormat: String
+ addressLatinFormat: String
+ allowedFields: [String]
+ requiredFields: [String]
+ upperFields: [String]
+ countryAreaType: String
+ countryAreaChoices: [ChoiceValue]
+ cityType: String
+ cityChoices: [ChoiceValue]
+ cityAreaType: String
+ cityAreaChoices: [ChoiceValue]
+ postalCodeType: String
+ postalCodeMatchers: [String]
+ postalCodeExamples: [String]
+ postalCodePrefix: String
+}
+
+type ChoiceValue {
+ raw: String
+ verbose: String
+}
+
+type UserCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [UserCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type UserCountableEdge {
+ """The item at the end of the edge."""
+ node: User!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input CustomerFilterInput {
+ dateJoined: DateRangeInput
+ numberOfOrders: IntRangeInput
+ placedOrders: DateRangeInput
+ search: String
+ metadata: [MetadataFilter]
+ updatedAt: DateTimeRangeInput
+}
+
+input UserSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort users by the selected field."""
+ field: UserSortField!
+}
+
+enum UserSortField {
+ """Sort users by first name."""
+ FIRST_NAME
+
+ """Sort users by last name."""
+ LAST_NAME
+
+ """Sort users by email."""
+ EMAIL
+
+ """Sort users by order count."""
+ ORDER_COUNT
+
+ """Sort users by created at."""
+ CREATED_AT
+
+ """Sort users by last modified at."""
+ LAST_MODIFIED_AT
+}
+
+type GroupCountableConnection {
+ """Pagination data for this connection."""
+ pageInfo: PageInfo!
+ edges: [GroupCountableEdge!]!
+
+ """A total count of items in the collection."""
+ totalCount: Int
+}
+
+type GroupCountableEdge {
+ """The item at the end of the edge."""
+ node: Group!
+
+ """A cursor for use in pagination."""
+ cursor: String!
+}
+
+input PermissionGroupFilterInput {
+ search: String
+ ids: [ID]
+}
+
+input PermissionGroupSortingInput {
+ """Specifies the direction in which to sort products."""
+ direction: OrderDirection!
+
+ """Sort permission group by the selected field."""
+ field: PermissionGroupSortField!
+}
+
+enum PermissionGroupSortField {
+ """Sort permission group accounts by name."""
+ NAME
+}
+
+input StaffUserInput {
+ status: StaffMemberStatus
+ search: String
+ ids: [ID]
+}
+
+enum StaffMemberStatus {
+ """User account has been activated."""
+ ACTIVE
+
+ """User account has not been activated yet."""
+ DEACTIVATED
+}
+
+type Mutation {
+ """Creates a new webhook subscription."""
+ webhookCreate(
+ """Fields required to create a webhook."""
+ input: WebhookCreateInput!
+ ): WebhookCreate
+
+ """Deletes a webhook subscription."""
+ webhookDelete(
+ """ID of a webhook to delete."""
+ id: ID!
+ ): WebhookDelete
+
+ """Updates a webhook subscription."""
+ webhookUpdate(
+ """ID of a webhook to update."""
+ id: ID!
+
+ """Fields required to update a webhook."""
+ input: WebhookUpdateInput!
+ ): WebhookUpdate
+
+ """Retries event delivery."""
+ eventDeliveryRetry(
+ """ID of the event delivery to retry."""
+ id: ID!
+ ): EventDeliveryRetry
+
+ """Creates new warehouse."""
+ createWarehouse(
+ """Fields required to create warehouse."""
+ input: WarehouseCreateInput!
+ ): WarehouseCreate
+
+ """Updates given warehouse."""
+ updateWarehouse(
+ """ID of a warehouse to update."""
+ id: ID!
+
+ """Fields required to update warehouse."""
+ input: WarehouseUpdateInput!
+ ): WarehouseUpdate
+
+ """Deletes selected warehouse."""
+ deleteWarehouse(
+ """ID of a warehouse to delete."""
+ id: ID!
+ ): WarehouseDelete
+
+ """Add shipping zone to given warehouse."""
+ assignWarehouseShippingZone(
+ """ID of a warehouse to update."""
+ id: ID!
+
+ """List of shipping zone IDs."""
+ shippingZoneIds: [ID!]!
+ ): WarehouseShippingZoneAssign
+
+ """Remove shipping zone from given warehouse."""
+ unassignWarehouseShippingZone(
+ """ID of a warehouse to update."""
+ id: ID!
+
+ """List of shipping zone IDs."""
+ shippingZoneIds: [ID!]!
+ ): WarehouseShippingZoneUnassign
+
+ """Creates a new staff notification recipient."""
+ staffNotificationRecipientCreate(
+ """Fields required to create a staff notification recipient."""
+ input: StaffNotificationRecipientInput!
+ ): StaffNotificationRecipientCreate
+
+ """Updates a staff notification recipient."""
+ staffNotificationRecipientUpdate(
+ """ID of a staff notification recipient to update."""
+ id: ID!
+
+ """Fields required to update a staff notification recipient."""
+ input: StaffNotificationRecipientInput!
+ ): StaffNotificationRecipientUpdate
+
+ """Delete staff notification recipient."""
+ staffNotificationRecipientDelete(
+ """ID of a staff notification recipient to delete."""
+ id: ID!
+ ): StaffNotificationRecipientDelete
+
+ """Updates site domain of the shop."""
+ shopDomainUpdate(
+ """Fields required to update site."""
+ input: SiteDomainInput
+ ): ShopDomainUpdate
+
+ """Updates shop settings."""
+ shopSettingsUpdate(
+ """Fields required to update shop settings."""
+ input: ShopSettingsInput!
+ ): ShopSettingsUpdate
+
+ """Fetch tax rates."""
+ shopFetchTaxRates: ShopFetchTaxRates
+
+ """Creates/updates translations for shop settings."""
+ shopSettingsTranslate(
+ """Fields required to update shop settings translations."""
+ input: ShopSettingsTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): ShopSettingsTranslate
+
+ """
+ Update the shop's address. If the `null` value is passed, the currently selected address will be deleted.
+ """
+ shopAddressUpdate(
+ """Fields required to update shop address."""
+ input: AddressInput
+ ): ShopAddressUpdate
+
+ """Update shop order settings."""
+ orderSettingsUpdate(
+ """Fields required to update shop order settings."""
+ input: OrderSettingsUpdateInput!
+ ): OrderSettingsUpdate
+
+ """Update gift card settings."""
+ giftCardSettingsUpdate(
+ """Fields required to update gift card settings."""
+ input: GiftCardSettingsUpdateInput!
+ ): GiftCardSettingsUpdate
+
+ """Manage shipping method's availability in channels."""
+ shippingMethodChannelListingUpdate(
+ """ID of a shipping method to update."""
+ id: ID!
+
+ """Fields required to update shipping method channel listings."""
+ input: ShippingMethodChannelListingInput!
+ ): ShippingMethodChannelListingUpdate
+
+ """Creates a new shipping price."""
+ shippingPriceCreate(
+ """Fields required to create a shipping price."""
+ input: ShippingPriceInput!
+ ): ShippingPriceCreate
+
+ """Deletes a shipping price."""
+ shippingPriceDelete(
+ """ID of a shipping price to delete."""
+ id: ID!
+ ): ShippingPriceDelete
+
+ """Deletes shipping prices."""
+ shippingPriceBulkDelete(
+ """List of shipping price IDs to delete."""
+ ids: [ID]!
+ ): ShippingPriceBulkDelete
+
+ """Updates a new shipping price."""
+ shippingPriceUpdate(
+ """ID of a shipping price to update."""
+ id: ID!
+
+ """Fields required to update a shipping price."""
+ input: ShippingPriceInput!
+ ): ShippingPriceUpdate
+
+ """Creates/updates translations for a shipping method."""
+ shippingPriceTranslate(
+ """ShippingMethodType ID or ShippingMethodTranslatableContent ID."""
+ id: ID!
+ input: ShippingPriceTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): ShippingPriceTranslate
+
+ """Exclude products from shipping price."""
+ shippingPriceExcludeProducts(
+ """ID of a shipping price."""
+ id: ID!
+
+ """Exclude products input."""
+ input: ShippingPriceExcludeProductsInput!
+ ): ShippingPriceExcludeProducts
+
+ """Remove product from excluded list for shipping price."""
+ shippingPriceRemoveProductFromExclude(
+ """ID of a shipping price."""
+ id: ID!
+
+ """List of products which will be removed from excluded list."""
+ products: [ID]!
+ ): ShippingPriceRemoveProductFromExclude
+
+ """Creates a new shipping zone."""
+ shippingZoneCreate(
+ """Fields required to create a shipping zone."""
+ input: ShippingZoneCreateInput!
+ ): ShippingZoneCreate
+
+ """Deletes a shipping zone."""
+ shippingZoneDelete(
+ """ID of a shipping zone to delete."""
+ id: ID!
+ ): ShippingZoneDelete
+
+ """Deletes shipping zones."""
+ shippingZoneBulkDelete(
+ """List of shipping zone IDs to delete."""
+ ids: [ID]!
+ ): ShippingZoneBulkDelete
+
+ """Updates a new shipping zone."""
+ shippingZoneUpdate(
+ """ID of a shipping zone to update."""
+ id: ID!
+
+ """Fields required to update a shipping zone."""
+ input: ShippingZoneUpdateInput!
+ ): ShippingZoneUpdate
+
+ """Assign attributes to a given product type."""
+ productAttributeAssign(
+ """The operations to perform."""
+ operations: [ProductAttributeAssignInput]!
+
+ """ID of the product type to assign the attributes into."""
+ productTypeId: ID!
+ ): ProductAttributeAssign
+
+ """
+ New in Saleor 3.1. Update attributes assigned to product variant for given product type.
+ """
+ productAttributeAssignmentUpdate(
+ """The operations to perform."""
+ operations: [ProductAttributeAssignmentUpdateInput]!
+
+ """ID of the product type to assign the attributes into."""
+ productTypeId: ID!
+ ): ProductAttributeAssignmentUpdate
+
+ """Un-assign attributes from a given product type."""
+ productAttributeUnassign(
+ """The IDs of the attributes to unassign."""
+ attributeIds: [ID]!
+
+ """ID of the product type from which the attributes should be unassigned."""
+ productTypeId: ID!
+ ): ProductAttributeUnassign
+
+ """Creates a new category."""
+ categoryCreate(
+ """Fields required to create a category."""
+ input: CategoryInput!
+
+ """
+ ID of the parent category. If empty, category will be top level category.
+ """
+ parent: ID
+ ): CategoryCreate
+
+ """Deletes a category."""
+ categoryDelete(
+ """ID of a category to delete."""
+ id: ID!
+ ): CategoryDelete
+
+ """Deletes categories."""
+ categoryBulkDelete(
+ """List of category IDs to delete."""
+ ids: [ID]!
+ ): CategoryBulkDelete
+
+ """Updates a category."""
+ categoryUpdate(
+ """ID of a category to update."""
+ id: ID!
+
+ """Fields required to update a category."""
+ input: CategoryInput!
+ ): CategoryUpdate
+
+ """Creates/updates translations for a category."""
+ categoryTranslate(
+ """Category ID or CategoryTranslatableContent ID."""
+ id: ID!
+ input: TranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): CategoryTranslate
+
+ """Adds products to a collection."""
+ collectionAddProducts(
+ """ID of a collection."""
+ collectionId: ID!
+
+ """List of product IDs."""
+ products: [ID]!
+ ): CollectionAddProducts
+
+ """Creates a new collection."""
+ collectionCreate(
+ """Fields required to create a collection."""
+ input: CollectionCreateInput!
+ ): CollectionCreate
+
+ """Deletes a collection."""
+ collectionDelete(
+ """ID of a collection to delete."""
+ id: ID!
+ ): CollectionDelete
+
+ """Reorder the products of a collection."""
+ collectionReorderProducts(
+ """ID of a collection."""
+ collectionId: ID!
+
+ """The collection products position operations."""
+ moves: [MoveProductInput]!
+ ): CollectionReorderProducts
+
+ """Deletes collections."""
+ collectionBulkDelete(
+ """List of collection IDs to delete."""
+ ids: [ID]!
+ ): CollectionBulkDelete
+
+ """Remove products from a collection."""
+ collectionRemoveProducts(
+ """ID of a collection."""
+ collectionId: ID!
+
+ """List of product IDs."""
+ products: [ID]!
+ ): CollectionRemoveProducts
+
+ """Updates a collection."""
+ collectionUpdate(
+ """ID of a collection to update."""
+ id: ID!
+
+ """Fields required to update a collection."""
+ input: CollectionInput!
+ ): CollectionUpdate
+
+ """Creates/updates translations for a collection."""
+ collectionTranslate(
+ """Collection ID or CollectionTranslatableContent ID."""
+ id: ID!
+ input: TranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): CollectionTranslate
+
+ """Manage collection's availability in channels."""
+ collectionChannelListingUpdate(
+ """ID of a collection to update."""
+ id: ID!
+
+ """Fields required to create or update collection channel listings."""
+ input: CollectionChannelListingUpdateInput!
+ ): CollectionChannelListingUpdate
+
+ """Creates a new product."""
+ productCreate(
+ """Fields required to create a product."""
+ input: ProductCreateInput!
+ ): ProductCreate
+
+ """Deletes a product."""
+ productDelete(
+ """ID of a product to delete."""
+ id: ID!
+ ): ProductDelete
+
+ """Deletes products."""
+ productBulkDelete(
+ """List of product IDs to delete."""
+ ids: [ID]!
+ ): ProductBulkDelete
+
+ """Updates an existing product."""
+ productUpdate(
+ """ID of a product to update."""
+ id: ID!
+
+ """Fields required to update a product."""
+ input: ProductInput!
+ ): ProductUpdate
+
+ """Creates/updates translations for a product."""
+ productTranslate(
+ """Product ID or ProductTranslatableContent ID."""
+ id: ID!
+ input: TranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): ProductTranslate
+
+ """Manage product's availability in channels."""
+ productChannelListingUpdate(
+ """ID of a product to update."""
+ id: ID!
+
+ """Fields required to create or update product channel listings."""
+ input: ProductChannelListingUpdateInput!
+ ): ProductChannelListingUpdate
+
+ """
+ Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
+ """
+ productMediaCreate(
+ """Fields required to create a product media."""
+ input: ProductMediaCreateInput!
+ ): ProductMediaCreate
+
+ """
+ Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook.
+ """
+ productVariantReorder(
+ """The list of variant reordering operations."""
+ moves: [ReorderInput]!
+
+ """Id of product that variants order will be altered."""
+ productId: ID!
+ ): ProductVariantReorder
+
+ """Deletes a product media."""
+ productMediaDelete(
+ """ID of a product media to delete."""
+ id: ID!
+ ): ProductMediaDelete
+
+ """Deletes product media."""
+ productMediaBulkDelete(
+ """List of product media IDs to delete."""
+ ids: [ID]!
+ ): ProductMediaBulkDelete
+
+ """Changes ordering of the product media."""
+ productMediaReorder(
+ """IDs of a product media in the desired order."""
+ mediaIds: [ID]!
+
+ """ID of product that media order will be altered."""
+ productId: ID!
+ ): ProductMediaReorder
+
+ """Updates a product media."""
+ productMediaUpdate(
+ """ID of a product media to update."""
+ id: ID!
+
+ """Fields required to update a product media."""
+ input: ProductMediaUpdateInput!
+ ): ProductMediaUpdate
+
+ """Creates a new product type."""
+ productTypeCreate(
+ """Fields required to create a product type."""
+ input: ProductTypeInput!
+ ): ProductTypeCreate
+
+ """Deletes a product type."""
+ productTypeDelete(
+ """ID of a product type to delete."""
+ id: ID!
+ ): ProductTypeDelete
+
+ """Deletes product types."""
+ productTypeBulkDelete(
+ """List of product type IDs to delete."""
+ ids: [ID]!
+ ): ProductTypeBulkDelete
+
+ """Updates an existing product type."""
+ productTypeUpdate(
+ """ID of a product type to update."""
+ id: ID!
+
+ """Fields required to update a product type."""
+ input: ProductTypeInput!
+ ): ProductTypeUpdate
+
+ """Reorder the attributes of a product type."""
+ productTypeReorderAttributes(
+ """The list of attribute reordering operations."""
+ moves: [ReorderInput]!
+
+ """ID of a product type."""
+ productTypeId: ID!
+
+ """The attribute type to reorder."""
+ type: ProductAttributeType!
+ ): ProductTypeReorderAttributes
+
+ """Reorder product attribute values."""
+ productReorderAttributeValues(
+ """ID of an attribute."""
+ attributeId: ID!
+
+ """The list of reordering operations for given attribute values."""
+ moves: [ReorderInput]!
+
+ """ID of a product."""
+ productId: ID!
+ ): ProductReorderAttributeValues
+
+ """
+ Create new digital content. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
+ """
+ digitalContentCreate(
+ """Fields required to create a digital content."""
+ input: DigitalContentUploadInput!
+
+ """ID of a product variant to upload digital content."""
+ variantId: ID!
+ ): DigitalContentCreate
+
+ """Remove digital content assigned to given variant."""
+ digitalContentDelete(
+ """ID of a product variant with digital content to remove."""
+ variantId: ID!
+ ): DigitalContentDelete
+
+ """Update digital content."""
+ digitalContentUpdate(
+ """Fields required to update a digital content."""
+ input: DigitalContentInput!
+
+ """ID of a product variant with digital content to update."""
+ variantId: ID!
+ ): DigitalContentUpdate
+
+ """Generate new URL to digital content."""
+ digitalContentUrlCreate(
+ """Fields required to create a new url."""
+ input: DigitalContentUrlCreateInput!
+ ): DigitalContentUrlCreate
+
+ """Creates a new variant for a product."""
+ productVariantCreate(
+ """Fields required to create a product variant."""
+ input: ProductVariantCreateInput!
+ ): ProductVariantCreate
+
+ """Deletes a product variant."""
+ productVariantDelete(
+ """ID of a product variant to delete."""
+ id: ID!
+ ): ProductVariantDelete
+
+ """Creates product variants for a given product."""
+ productVariantBulkCreate(
+ """ID of the product to create the variants for."""
+ product: ID!
+
+ """Input list of product variants to create."""
+ variants: [ProductVariantBulkCreateInput]!
+ ): ProductVariantBulkCreate
+
+ """Deletes product variants."""
+ productVariantBulkDelete(
+ """List of product variant IDs to delete."""
+ ids: [ID]!
+ ): ProductVariantBulkDelete
+
+ """Creates stocks for product variant."""
+ productVariantStocksCreate(
+ """Input list of stocks to create."""
+ stocks: [StockInput!]!
+
+ """ID of a product variant for which stocks will be created."""
+ variantId: ID!
+ ): ProductVariantStocksCreate
+
+ """Delete stocks from product variant."""
+ productVariantStocksDelete(
+ """ID of product variant for which stocks will be deleted."""
+ variantId: ID!
+ warehouseIds: [ID!]
+ ): ProductVariantStocksDelete
+
+ """Update stocks for product variant."""
+ productVariantStocksUpdate(
+ """Input list of stocks to create."""
+ stocks: [StockInput!]!
+
+ """ID of a product variant for which stocks will be created."""
+ variantId: ID!
+ ): ProductVariantStocksUpdate
+
+ """Updates an existing variant for product."""
+ productVariantUpdate(
+ """ID of a product variant to update."""
+ id: ID!
+
+ """Fields required to update a product variant."""
+ input: ProductVariantInput!
+ ): ProductVariantUpdate
+
+ """
+ Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook.
+ """
+ productVariantSetDefault(
+ """Id of a product that will have the default variant set."""
+ productId: ID!
+
+ """Id of a variant that will be set as default."""
+ variantId: ID!
+ ): ProductVariantSetDefault
+
+ """Creates/updates translations for a product variant."""
+ productVariantTranslate(
+ """ProductVariant ID or ProductVariantTranslatableContent ID."""
+ id: ID!
+ input: NameTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): ProductVariantTranslate
+
+ """Manage product variant prices in channels."""
+ productVariantChannelListingUpdate(
+ """ID of a product variant to update."""
+ id: ID!
+
+ """
+ List of fields required to create or upgrade product variant channel listings.
+ """
+ input: [ProductVariantChannelListingAddInput!]!
+ ): ProductVariantChannelListingUpdate
+
+ """Reorder product variant attribute values."""
+ productVariantReorderAttributeValues(
+ """ID of an attribute."""
+ attributeId: ID!
+
+ """The list of reordering operations for given attribute values."""
+ moves: [ReorderInput]!
+
+ """ID of a product variant."""
+ variantId: ID!
+ ): ProductVariantReorderAttributeValues
+
+ """
+ New in Saleor 3.1. Deactivates product variant preorder. It changes all preorder allocation into regular allocation. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ productVariantPreorderDeactivate(
+ """ID of a variant which preorder should be deactivated."""
+ id: ID!
+ ): ProductVariantPreorderDeactivate
+
+ """Assign an media to a product variant."""
+ variantMediaAssign(
+ """ID of a product media to assign to a variant."""
+ mediaId: ID!
+
+ """ID of a product variant."""
+ variantId: ID!
+ ): VariantMediaAssign
+
+ """Unassign an media from a product variant."""
+ variantMediaUnassign(
+ """ID of a product media to unassign from a variant."""
+ mediaId: ID!
+
+ """ID of a product variant."""
+ variantId: ID!
+ ): VariantMediaUnassign
+
+ """Captures the authorized payment amount."""
+ paymentCapture(
+ """Transaction amount."""
+ amount: PositiveDecimal
+
+ """Payment ID."""
+ paymentId: ID!
+ ): PaymentCapture
+
+ """Refunds the captured payment amount."""
+ paymentRefund(
+ """Transaction amount."""
+ amount: PositiveDecimal
+
+ """Payment ID."""
+ paymentId: ID!
+ ): PaymentRefund
+
+ """Voids the authorized payment."""
+ paymentVoid(
+ """Payment ID."""
+ paymentId: ID!
+ ): PaymentVoid
+
+ """Initializes payment process when it is required by gateway."""
+ paymentInitialize(
+ """Slug of a channel for which the data should be returned."""
+ channel: String
+
+ """A gateway name used to initialize the payment."""
+ gateway: String!
+
+ """Client-side generated data required to initialize the payment."""
+ paymentData: JSONString
+ ): PaymentInitialize
+
+ """Check payment balance."""
+ paymentCheckBalance(
+ """Fields required to check payment balance."""
+ input: PaymentCheckBalanceInput!
+ ): PaymentCheckBalance
+
+ """Creates a new page."""
+ pageCreate(
+ """Fields required to create a page."""
+ input: PageCreateInput!
+ ): PageCreate
+
+ """Deletes a page."""
+ pageDelete(
+ """ID of a page to delete."""
+ id: ID!
+ ): PageDelete
+
+ """Deletes pages."""
+ pageBulkDelete(
+ """List of page IDs to delete."""
+ ids: [ID]!
+ ): PageBulkDelete
+
+ """Publish pages."""
+ pageBulkPublish(
+ """List of page IDs to (un)publish."""
+ ids: [ID]!
+
+ """Determine if pages will be published or not."""
+ isPublished: Boolean!
+ ): PageBulkPublish
+
+ """Updates an existing page."""
+ pageUpdate(
+ """ID of a page to update."""
+ id: ID!
+
+ """Fields required to update a page."""
+ input: PageInput!
+ ): PageUpdate
+
+ """Creates/updates translations for a page."""
+ pageTranslate(
+ """Page ID or PageTranslatableContent ID."""
+ id: ID!
+ input: PageTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): PageTranslate
+
+ """Create a new page type."""
+ pageTypeCreate(
+ """Fields required to create page type."""
+ input: PageTypeCreateInput!
+ ): PageTypeCreate
+
+ """Update page type."""
+ pageTypeUpdate(
+ """ID of the page type to update."""
+ id: ID
+
+ """Fields required to update page type."""
+ input: PageTypeUpdateInput!
+ ): PageTypeUpdate
+
+ """Delete a page type."""
+ pageTypeDelete(
+ """ID of the page type to delete."""
+ id: ID!
+ ): PageTypeDelete
+
+ """Delete page types."""
+ pageTypeBulkDelete(
+ """List of page type IDs to delete"""
+ ids: [ID!]!
+ ): PageTypeBulkDelete
+
+ """Assign attributes to a given page type."""
+ pageAttributeAssign(
+ """The IDs of the attributes to assign."""
+ attributeIds: [ID!]!
+
+ """ID of the page type to assign the attributes into."""
+ pageTypeId: ID!
+ ): PageAttributeAssign
+
+ """Unassign attributes from a given page type."""
+ pageAttributeUnassign(
+ """The IDs of the attributes to unassign."""
+ attributeIds: [ID!]!
+
+ """ID of the page type from which the attributes should be unassign."""
+ pageTypeId: ID!
+ ): PageAttributeUnassign
+
+ """Reorder the attributes of a page type."""
+ pageTypeReorderAttributes(
+ """The list of attribute reordering operations."""
+ moves: [ReorderInput!]!
+
+ """ID of a page type."""
+ pageTypeId: ID!
+ ): PageTypeReorderAttributes
+
+ """Reorder page attribute values."""
+ pageReorderAttributeValues(
+ """ID of an attribute."""
+ attributeId: ID!
+
+ """The list of reordering operations for given attribute values."""
+ moves: [ReorderInput]!
+
+ """ID of a page."""
+ pageId: ID!
+ ): PageReorderAttributeValues
+
+ """Completes creating an order."""
+ draftOrderComplete(
+ """ID of the order that will be completed."""
+ id: ID!
+ ): DraftOrderComplete
+
+ """Creates a new draft order."""
+ draftOrderCreate(
+ """Fields required to create an order."""
+ input: DraftOrderCreateInput!
+ ): DraftOrderCreate
+
+ """Deletes a draft order."""
+ draftOrderDelete(
+ """ID of a draft order to delete."""
+ id: ID!
+ ): DraftOrderDelete
+
+ """Deletes draft orders."""
+ draftOrderBulkDelete(
+ """List of draft order IDs to delete."""
+ ids: [ID]!
+ ): DraftOrderBulkDelete
+
+ """Deletes order lines."""
+ draftOrderLinesBulkDelete(
+ """List of order lines IDs to delete."""
+ ids: [ID]!
+ ): DraftOrderLinesBulkDelete @deprecated(reason: "This field will be removed in Saleor 4.0.")
+
+ """Updates a draft order."""
+ draftOrderUpdate(
+ """ID of a draft order to update."""
+ id: ID!
+
+ """Fields required to update an order."""
+ input: DraftOrderInput!
+ ): DraftOrderUpdate
+
+ """Adds note to the order."""
+ orderAddNote(
+ """ID of the order to add a note for."""
+ order: ID!
+
+ """Fields required to create a note for the order."""
+ input: OrderAddNoteInput!
+ ): OrderAddNote
+
+ """Cancel an order."""
+ orderCancel(
+ """ID of the order to cancel."""
+ id: ID!
+ ): OrderCancel
+
+ """Capture an order."""
+ orderCapture(
+ """Amount of money to capture."""
+ amount: PositiveDecimal!
+
+ """ID of the order to capture."""
+ id: ID!
+ ): OrderCapture
+
+ """Confirms an unconfirmed order by changing status to unfulfilled."""
+ orderConfirm(
+ """ID of an order to confirm."""
+ id: ID!
+ ): OrderConfirm
+
+ """Creates new fulfillments for an order."""
+ orderFulfill(
+ """Fields required to create a fulfillment."""
+ input: OrderFulfillInput!
+
+ """ID of the order to be fulfilled."""
+ order: ID
+ ): OrderFulfill
+
+ """Cancels existing fulfillment and optionally restocks items."""
+ orderFulfillmentCancel(
+ """ID of a fulfillment to cancel."""
+ id: ID!
+
+ """Fields required to cancel a fulfillment."""
+ input: FulfillmentCancelInput
+ ): FulfillmentCancel
+
+ """New in Saleor 3.1. Approve existing fulfillment."""
+ orderFulfillmentApprove(
+ """True if stock could be exceeded."""
+ allowStockToBeExceeded: Boolean = false
+
+ """ID of a fulfillment to approve."""
+ id: ID!
+
+ """True if confirmation email should be send."""
+ notifyCustomer: Boolean!
+ ): FulfillmentApprove
+
+ """Updates a fulfillment for an order."""
+ orderFulfillmentUpdateTracking(
+ """ID of a fulfillment to update."""
+ id: ID!
+
+ """Fields required to update a fulfillment."""
+ input: FulfillmentUpdateTrackingInput!
+ ): FulfillmentUpdateTracking
+
+ """Refund products."""
+ orderFulfillmentRefundProducts(
+ """Fields required to create an refund fulfillment."""
+ input: OrderRefundProductsInput!
+
+ """ID of the order to be refunded."""
+ order: ID!
+ ): FulfillmentRefundProducts
+
+ """Return products."""
+ orderFulfillmentReturnProducts(
+ """Fields required to return products."""
+ input: OrderReturnProductsInput!
+
+ """ID of the order to be returned."""
+ order: ID!
+ ): FulfillmentReturnProducts
+
+ """Create order lines for an order."""
+ orderLinesCreate(
+ """ID of the order to add the lines to."""
+ id: ID!
+
+ """Fields required to add order lines."""
+ input: [OrderLineCreateInput]!
+ ): OrderLinesCreate
+
+ """Deletes an order line from an order."""
+ orderLineDelete(
+ """ID of the order line to delete."""
+ id: ID!
+ ): OrderLineDelete
+
+ """Updates an order line of an order."""
+ orderLineUpdate(
+ """ID of the order line to update."""
+ id: ID!
+
+ """Fields required to update an order line."""
+ input: OrderLineInput!
+ ): OrderLineUpdate
+
+ """Adds discount to the order."""
+ orderDiscountAdd(
+ """Fields required to create a discount for the order."""
+ input: OrderDiscountCommonInput!
+
+ """ID of an order to discount."""
+ orderId: ID!
+ ): OrderDiscountAdd
+
+ """Update discount for the order."""
+ orderDiscountUpdate(
+ """ID of a discount to update."""
+ discountId: ID!
+
+ """Fields required to update a discount for the order."""
+ input: OrderDiscountCommonInput!
+ ): OrderDiscountUpdate
+
+ """Remove discount from the order."""
+ orderDiscountDelete(
+ """ID of a discount to remove."""
+ discountId: ID!
+ ): OrderDiscountDelete
+
+ """Update discount for the order line."""
+ orderLineDiscountUpdate(
+ """Fields required to update price for the order line."""
+ input: OrderDiscountCommonInput!
+
+ """ID of a order line to update price"""
+ orderLineId: ID!
+ ): OrderLineDiscountUpdate
+
+ """Remove discount applied to the order line."""
+ orderLineDiscountRemove(
+ """ID of a order line to remove its discount"""
+ orderLineId: ID!
+ ): OrderLineDiscountRemove
+
+ """Mark order as manually paid."""
+ orderMarkAsPaid(
+ """ID of the order to mark paid."""
+ id: ID!
+
+ """The external transaction reference."""
+ transactionReference: String
+ ): OrderMarkAsPaid
+
+ """Refund an order."""
+ orderRefund(
+ """Amount of money to refund."""
+ amount: PositiveDecimal!
+
+ """ID of the order to refund."""
+ id: ID!
+ ): OrderRefund
+
+ """Updates an order."""
+ orderUpdate(
+ """ID of an order to update."""
+ id: ID!
+
+ """Fields required to update an order."""
+ input: OrderUpdateInput!
+ ): OrderUpdate
+
+ """
+ Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed.
+ """
+ orderUpdateShipping(
+ """ID of the order to update a shipping method."""
+ order: ID!
+
+ """Fields required to change shipping method of the order."""
+ input: OrderUpdateShippingInput!
+ ): OrderUpdateShipping
+
+ """Void an order."""
+ orderVoid(
+ """ID of the order to void."""
+ id: ID!
+ ): OrderVoid
+
+ """Cancels orders."""
+ orderBulkCancel(
+ """List of orders IDs to cancel."""
+ ids: [ID]!
+ ): OrderBulkCancel
+
+ """Delete metadata of an object."""
+ deleteMetadata(
+ """ID or token (for Order and Checkout) of an object to update."""
+ id: ID!
+
+ """Metadata keys to delete."""
+ keys: [String!]!
+ ): DeleteMetadata
+
+ """Delete object's private metadata."""
+ deletePrivateMetadata(
+ """ID or token (for Order and Checkout) of an object to update."""
+ id: ID!
+
+ """Metadata keys to delete."""
+ keys: [String!]!
+ ): DeletePrivateMetadata
+
+ """Updates metadata of an object."""
+ updateMetadata(
+ """ID or token (for Order and Checkout) of an object to update."""
+ id: ID!
+
+ """Fields required to update the object's metadata."""
+ input: [MetadataInput!]!
+ ): UpdateMetadata
+
+ """Updates private metadata of an object."""
+ updatePrivateMetadata(
+ """ID or token (for Order and Checkout) of an object to update."""
+ id: ID!
+
+ """Fields required to update the object's metadata."""
+ input: [MetadataInput!]!
+ ): UpdatePrivateMetadata
+
+ """Assigns storefront's navigation menus."""
+ assignNavigation(
+ """ID of the menu."""
+ menu: ID
+
+ """Type of the navigation bar to assign the menu to."""
+ navigationType: NavigationType!
+ ): AssignNavigation
+
+ """Creates a new Menu."""
+ menuCreate(
+ """Fields required to create a menu."""
+ input: MenuCreateInput!
+ ): MenuCreate
+
+ """Deletes a menu."""
+ menuDelete(
+ """ID of a menu to delete."""
+ id: ID!
+ ): MenuDelete
+
+ """Deletes menus."""
+ menuBulkDelete(
+ """List of menu IDs to delete."""
+ ids: [ID]!
+ ): MenuBulkDelete
+
+ """Updates a menu."""
+ menuUpdate(
+ """ID of a menu to update."""
+ id: ID!
+
+ """Fields required to update a menu."""
+ input: MenuInput!
+ ): MenuUpdate
+
+ """Creates a new menu item."""
+ menuItemCreate(
+ """
+ Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item.
+ """
+ input: MenuItemCreateInput!
+ ): MenuItemCreate
+
+ """Deletes a menu item."""
+ menuItemDelete(
+ """ID of a menu item to delete."""
+ id: ID!
+ ): MenuItemDelete
+
+ """Deletes menu items."""
+ menuItemBulkDelete(
+ """List of menu item IDs to delete."""
+ ids: [ID]!
+ ): MenuItemBulkDelete
+
+ """Updates a menu item."""
+ menuItemUpdate(
+ """ID of a menu item to update."""
+ id: ID!
+
+ """
+ Fields required to update a menu item. Only one of `url`, `category`, `page`, `collection` is allowed per item.
+ """
+ input: MenuItemInput!
+ ): MenuItemUpdate
+
+ """Creates/updates translations for a menu item."""
+ menuItemTranslate(
+ """MenuItem ID or MenuItemTranslatableContent ID."""
+ id: ID!
+ input: NameTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): MenuItemTranslate
+
+ """Moves items of menus."""
+ menuItemMove(
+ """ID of the menu."""
+ menu: ID!
+
+ """The menu position data."""
+ moves: [MenuItemMoveInput]!
+ ): MenuItemMove
+
+ """Request an invoice for the order using plugin."""
+ invoiceRequest(
+ """Invoice number, if not provided it will be generated."""
+ number: String
+
+ """ID of the order related to invoice."""
+ orderId: ID!
+ ): InvoiceRequest
+
+ """Requests deletion of an invoice."""
+ invoiceRequestDelete(
+ """ID of an invoice to request the deletion."""
+ id: ID!
+ ): InvoiceRequestDelete
+
+ """Creates a ready to send invoice."""
+ invoiceCreate(
+ """Fields required when creating an invoice."""
+ input: InvoiceCreateInput!
+
+ """ID of the order related to invoice."""
+ orderId: ID!
+ ): InvoiceCreate
+
+ """Deletes an invoice."""
+ invoiceDelete(
+ """ID of an invoice to delete."""
+ id: ID!
+ ): InvoiceDelete
+
+ """Updates an invoice."""
+ invoiceUpdate(
+ """ID of an invoice to update."""
+ id: ID!
+
+ """Fields to use when updating an invoice."""
+ input: UpdateInvoiceInput!
+ ): InvoiceUpdate
+
+ """Send an invoice notification to the customer."""
+ invoiceSendNotification(
+ """ID of an invoice to be sent."""
+ id: ID!
+ ): InvoiceSendNotification
+
+ """Activate a gift card."""
+ giftCardActivate(
+ """ID of a gift card to activate."""
+ id: ID!
+ ): GiftCardActivate
+
+ """Creates a new gift card."""
+ giftCardCreate(
+ """Fields required to create a gift card."""
+ input: GiftCardCreateInput!
+ ): GiftCardCreate
+
+ """
+ New in Saleor 3.1. Delete gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardDelete(
+ """ID of the gift card to delete."""
+ id: ID!
+ ): GiftCardDelete
+
+ """Deactivate a gift card."""
+ giftCardDeactivate(
+ """ID of a gift card to deactivate."""
+ id: ID!
+ ): GiftCardDeactivate
+
+ """Update a gift card."""
+ giftCardUpdate(
+ """ID of a gift card to update."""
+ id: ID!
+
+ """Fields required to update a gift card."""
+ input: GiftCardUpdateInput!
+ ): GiftCardUpdate
+
+ """
+ New in Saleor 3.1. Resend a gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardResend(
+ """Fields required to resend a gift card."""
+ input: GiftCardResendInput!
+ ): GiftCardResend
+
+ """
+ New in Saleor 3.1. Adds note to the gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardAddNote(
+ """ID of the gift card to add a note for."""
+ id: ID!
+
+ """Fields required to create a note for the gift card."""
+ input: GiftCardAddNoteInput!
+ ): GiftCardAddNote
+
+ """
+ New in Saleor 3.1. Create gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardBulkCreate(
+ """Fields required to create gift cards."""
+ input: GiftCardBulkCreateInput!
+ ): GiftCardBulkCreate
+
+ """
+ New in Saleor 3.1. Delete gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardBulkDelete(
+ """List of gift card IDs to delete."""
+ ids: [ID]!
+ ): GiftCardBulkDelete
+
+ """
+ New in Saleor 3.1. Activate gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardBulkActivate(
+ """List of gift card IDs to activate."""
+ ids: [ID]!
+ ): GiftCardBulkActivate
+
+ """
+ New in Saleor 3.1. Deactivate gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ giftCardBulkDeactivate(
+ """List of gift card IDs to deactivate."""
+ ids: [ID]!
+ ): GiftCardBulkDeactivate
+
+ """Update plugin configuration."""
+ pluginUpdate(
+ """ID of a channel for which the data should be modified."""
+ channelId: ID
+
+ """ID of plugin to update."""
+ id: ID!
+
+ """Fields required to update a plugin configuration."""
+ input: PluginUpdateInput!
+ ): PluginUpdate
+
+ """
+ New in Saleor 3.1. Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload.
+ """
+ externalNotificationTrigger(
+ """
+ Channel slug. Saleor will send a notification within a provided channel. Please, make sure that necessary plugins are active.
+ """
+ channel: String!
+
+ """Input for External Notification Trigger."""
+ input: ExternalNotificationTriggerInput!
+
+ """The ID of notification plugin."""
+ pluginId: String
+ ): ExternalNotificationTrigger
+
+ """Creates a new sale."""
+ saleCreate(
+ """Fields required to create a sale."""
+ input: SaleInput!
+ ): SaleCreate
+
+ """Deletes a sale."""
+ saleDelete(
+ """ID of a sale to delete."""
+ id: ID!
+ ): SaleDelete
+
+ """Deletes sales."""
+ saleBulkDelete(
+ """List of sale IDs to delete."""
+ ids: [ID]!
+ ): SaleBulkDelete
+
+ """Updates a sale."""
+ saleUpdate(
+ """ID of a sale to update."""
+ id: ID!
+
+ """Fields required to update a sale."""
+ input: SaleInput!
+ ): SaleUpdate
+
+ """Adds products, categories, collections to a voucher."""
+ saleCataloguesAdd(
+ """ID of a sale."""
+ id: ID!
+
+ """Fields required to modify catalogue IDs of sale."""
+ input: CatalogueInput!
+ ): SaleAddCatalogues
+
+ """Removes products, categories, collections from a sale."""
+ saleCataloguesRemove(
+ """ID of a sale."""
+ id: ID!
+
+ """Fields required to modify catalogue IDs of sale."""
+ input: CatalogueInput!
+ ): SaleRemoveCatalogues
+
+ """Creates/updates translations for a sale."""
+ saleTranslate(
+ """Sale ID or SaleTranslatableContent ID."""
+ id: ID!
+ input: NameTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): SaleTranslate
+
+ """Manage sale's availability in channels."""
+ saleChannelListingUpdate(
+ """ID of a sale to update."""
+ id: ID!
+
+ """Fields required to update sale channel listings."""
+ input: SaleChannelListingInput!
+ ): SaleChannelListingUpdate
+
+ """Creates a new voucher."""
+ voucherCreate(
+ """Fields required to create a voucher."""
+ input: VoucherInput!
+ ): VoucherCreate
+
+ """Deletes a voucher."""
+ voucherDelete(
+ """ID of a voucher to delete."""
+ id: ID!
+ ): VoucherDelete
+
+ """Deletes vouchers."""
+ voucherBulkDelete(
+ """List of voucher IDs to delete."""
+ ids: [ID]!
+ ): VoucherBulkDelete
+
+ """Updates a voucher."""
+ voucherUpdate(
+ """ID of a voucher to update."""
+ id: ID!
+
+ """Fields required to update a voucher."""
+ input: VoucherInput!
+ ): VoucherUpdate
+
+ """Adds products, categories, collections to a voucher."""
+ voucherCataloguesAdd(
+ """ID of a voucher."""
+ id: ID!
+
+ """Fields required to modify catalogue IDs of voucher."""
+ input: CatalogueInput!
+ ): VoucherAddCatalogues
+
+ """Removes products, categories, collections from a voucher."""
+ voucherCataloguesRemove(
+ """ID of a voucher."""
+ id: ID!
+
+ """Fields required to modify catalogue IDs of voucher."""
+ input: CatalogueInput!
+ ): VoucherRemoveCatalogues
+
+ """Creates/updates translations for a voucher."""
+ voucherTranslate(
+ """Voucher ID or VoucherTranslatableContent ID."""
+ id: ID!
+ input: NameTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): VoucherTranslate
+
+ """Manage voucher's availability in channels."""
+ voucherChannelListingUpdate(
+ """ID of a voucher to update."""
+ id: ID!
+
+ """Fields required to update voucher channel listings."""
+ input: VoucherChannelListingInput!
+ ): VoucherChannelListingUpdate
+
+ """Export products to csv file."""
+ exportProducts(
+ """Fields required to export product data."""
+ input: ExportProductsInput!
+ ): ExportProducts
+
+ """
+ New in Saleor 3.1. Export gift cards to csv file. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ exportGiftCards(
+ """Fields required to export gift cards data."""
+ input: ExportGiftCardsInput!
+ ): ExportGiftCards
+
+ """
+ Upload a file. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
+ """
+ fileUpload(
+ """Represents a file in a multipart request."""
+ file: Upload!
+ ): FileUpload
+
+ """Adds a gift card or a voucher to a checkout."""
+ checkoutAddPromoCode(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """Gift card code or voucher code."""
+ promoCode: String!
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutAddPromoCode
+
+ """Update billing address in the existing checkout."""
+ checkoutBillingAddressUpdate(
+ """The billing address of the checkout."""
+ billingAddress: AddressInput!
+
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutBillingAddressUpdate
+
+ """
+ Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation.
+ """
+ checkoutComplete(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """Client-side generated data required to finalize the payment."""
+ paymentData: JSONString
+
+ """
+ URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.
+ """
+ redirectUrl: String
+
+ """
+ Determines whether to store the payment source for future usage.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use checkoutPaymentCreate for this action.
+ """
+ storeSource: Boolean = false
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutComplete
+
+ """Create a new checkout."""
+ checkoutCreate(
+ """Fields required to create checkout."""
+ input: CheckoutCreateInput!
+ ): CheckoutCreate
+
+ """Sets the customer as the owner of the checkout."""
+ checkoutCustomerAttach(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """
+ ID of customer to attach to checkout. Can be used to attach customer to checkout by staff or app. Requires IMPERSONATE_USER permission.
+ """
+ customerId: ID
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutCustomerAttach
+
+ """Removes the user assigned as the owner of the checkout."""
+ checkoutCustomerDetach(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutCustomerDetach
+
+ """Updates email address in the existing checkout object."""
+ checkoutEmailUpdate(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """email."""
+ email: String!
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutEmailUpdate
+
+ """Deletes a CheckoutLine."""
+ checkoutLineDelete(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """ID of the checkout line to delete."""
+ lineId: ID
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutLineDelete @deprecated(reason: "DEPRECATED: Will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead.")
+
+ """Deletes checkout lines."""
+ checkoutLinesDelete(
+ """A list of checkout lines."""
+ linesIds: [ID]!
+
+ """Checkout token."""
+ token: UUID!
+ ): CheckoutLinesDelete
+
+ """
+ Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased.
+ """
+ checkoutLinesAdd(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """
+ A list of checkout lines, each containing information about an item in the checkout.
+ """
+ lines: [CheckoutLineInput]!
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutLinesAdd
+
+ """Updates checkout line in the existing checkout."""
+ checkoutLinesUpdate(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """
+ A list of checkout lines, each containing information about an item in the checkout.
+ """
+ lines: [CheckoutLineInput]!
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutLinesUpdate
+
+ """Remove a gift card or a voucher from a checkout."""
+ checkoutRemovePromoCode(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """Gift card code or voucher code."""
+ promoCode: String
+
+ """Gift card or voucher ID."""
+ promoCodeId: ID
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutRemovePromoCode
+
+ """Create a new payment for given checkout."""
+ checkoutPaymentCreate(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """Data required to create a new payment."""
+ input: PaymentInput!
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutPaymentCreate
+
+ """Update shipping address in the existing checkout."""
+ checkoutShippingAddressUpdate(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """The mailing address to where the checkout will be shipped."""
+ shippingAddress: AddressInput!
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutShippingAddressUpdate
+
+ """Updates the shipping method of the checkout."""
+ checkoutShippingMethodUpdate(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """Shipping method."""
+ shippingMethodId: ID!
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutShippingMethodUpdate @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead.")
+
+ """
+ New in Saleor 3.1. Updates the delivery method (shipping method or pick up point) of the checkout. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ checkoutDeliveryMethodUpdate(
+ """Delivery Method ID (`Warehouse` ID or `ShippingMethod` ID)."""
+ deliveryMethodId: ID
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutDeliveryMethodUpdate
+
+ """Update language code in the existing checkout."""
+ checkoutLanguageCodeUpdate(
+ """
+ The ID of the checkout.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use token instead.
+ """
+ checkoutId: ID
+
+ """New language code."""
+ languageCode: LanguageCodeEnum!
+
+ """Checkout token."""
+ token: UUID
+ ): CheckoutLanguageCodeUpdate
+
+ """Creates new channel."""
+ channelCreate(
+ """Fields required to create channel."""
+ input: ChannelCreateInput!
+ ): ChannelCreate
+
+ """Update a channel."""
+ channelUpdate(
+ """ID of a channel to update."""
+ id: ID!
+
+ """Fields required to update a channel."""
+ input: ChannelUpdateInput!
+ ): ChannelUpdate
+
+ """
+ Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed.
+ """
+ channelDelete(
+ """ID of a channel to delete."""
+ id: ID!
+
+ """Fields required to delete a channel."""
+ input: ChannelDeleteInput
+ ): ChannelDelete
+
+ """Activate a channel."""
+ channelActivate(
+ """ID of the channel to activate."""
+ id: ID!
+ ): ChannelActivate
+
+ """Deactivate a channel."""
+ channelDeactivate(
+ """ID of the channel to deactivate."""
+ id: ID!
+ ): ChannelDeactivate
+
+ """Creates an attribute."""
+ attributeCreate(
+ """Fields required to create an attribute."""
+ input: AttributeCreateInput!
+ ): AttributeCreate
+
+ """Deletes an attribute."""
+ attributeDelete(
+ """ID of an attribute to delete."""
+ id: ID!
+ ): AttributeDelete
+
+ """Updates attribute."""
+ attributeUpdate(
+ """ID of an attribute to update."""
+ id: ID!
+
+ """Fields required to update an attribute."""
+ input: AttributeUpdateInput!
+ ): AttributeUpdate
+
+ """Creates/updates translations for an attribute."""
+ attributeTranslate(
+ """Attribute ID or AttributeTranslatableContent ID."""
+ id: ID!
+ input: NameTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): AttributeTranslate
+
+ """Deletes attributes."""
+ attributeBulkDelete(
+ """List of attribute IDs to delete."""
+ ids: [ID]!
+ ): AttributeBulkDelete
+
+ """Deletes values of attributes."""
+ attributeValueBulkDelete(
+ """List of attribute value IDs to delete."""
+ ids: [ID]!
+ ): AttributeValueBulkDelete
+
+ """Creates a value for an attribute."""
+ attributeValueCreate(
+ """Attribute to which value will be assigned."""
+ attribute: ID!
+
+ """Fields required to create an AttributeValue."""
+ input: AttributeValueCreateInput!
+ ): AttributeValueCreate
+
+ """Deletes a value of an attribute."""
+ attributeValueDelete(
+ """ID of a value to delete."""
+ id: ID!
+ ): AttributeValueDelete
+
+ """Updates value of an attribute."""
+ attributeValueUpdate(
+ """ID of an AttributeValue to update."""
+ id: ID!
+
+ """Fields required to update an AttributeValue."""
+ input: AttributeValueUpdateInput!
+ ): AttributeValueUpdate
+
+ """Creates/updates translations for an attribute value."""
+ attributeValueTranslate(
+ """AttributeValue ID or AttributeValueTranslatableContent ID."""
+ id: ID!
+ input: AttributeValueTranslationInput!
+
+ """Translation language code."""
+ languageCode: LanguageCodeEnum!
+ ): AttributeValueTranslate
+
+ """Reorder the values of an attribute."""
+ attributeReorderValues(
+ """ID of an attribute."""
+ attributeId: ID!
+
+ """The list of reordering operations for given attribute values."""
+ moves: [ReorderInput]!
+ ): AttributeReorderValues
+
+ """Creates a new app."""
+ appCreate(
+ """Fields required to create a new app."""
+ input: AppInput!
+ ): AppCreate
+
+ """Updates an existing app."""
+ appUpdate(
+ """ID of an app to update."""
+ id: ID!
+
+ """Fields required to update an existing app."""
+ input: AppInput!
+ ): AppUpdate
+
+ """Deletes an app."""
+ appDelete(
+ """ID of an app to delete."""
+ id: ID!
+ ): AppDelete
+
+ """Creates a new token."""
+ appTokenCreate(
+ """Fields required to create a new auth token."""
+ input: AppTokenInput!
+ ): AppTokenCreate
+
+ """Deletes an authentication token assigned to app."""
+ appTokenDelete(
+ """ID of an auth token to delete."""
+ id: ID!
+ ): AppTokenDelete
+
+ """Verify provided app token."""
+ appTokenVerify(
+ """App token to verify."""
+ token: String!
+ ): AppTokenVerify
+
+ """Install new app by using app manifest."""
+ appInstall(
+ """Fields required to install a new app."""
+ input: AppInstallInput!
+ ): AppInstall
+
+ """Retry failed installation of new app."""
+ appRetryInstall(
+ """Determine if app will be set active or not."""
+ activateAfterInstallation: Boolean = true
+
+ """ID of failed installation."""
+ id: ID!
+ ): AppRetryInstall
+
+ """Delete failed installation."""
+ appDeleteFailedInstallation(
+ """ID of failed installation to delete."""
+ id: ID!
+ ): AppDeleteFailedInstallation
+
+ """Fetch and validate manifest."""
+ appFetchManifest(manifestUrl: String!): AppFetchManifest
+
+ """Activate the app."""
+ appActivate(
+ """ID of app to activate."""
+ id: ID!
+ ): AppActivate
+
+ """Deactivate the app."""
+ appDeactivate(
+ """ID of app to deactivate."""
+ id: ID!
+ ): AppDeactivate
+
+ """Create JWT token."""
+ tokenCreate(
+ """Email of a user."""
+ email: String!
+
+ """Password of a user."""
+ password: String!
+ ): CreateToken
+
+ """
+ Refresh JWT token. Mutation tries to take refreshToken from the input.If it fails it will try to take refreshToken from the http-only cookie -refreshToken. csrfToken is required when refreshToken is provided as a cookie.
+ """
+ tokenRefresh(
+ """
+ CSRF token required to refresh token. This argument is required when refreshToken is provided as a cookie.
+ """
+ csrfToken: String
+
+ """Refresh token."""
+ refreshToken: String
+ ): RefreshToken
+
+ """Verify JWT token."""
+ tokenVerify(
+ """JWT token to validate."""
+ token: String!
+ ): VerifyToken
+
+ """Deactivate all JWT tokens of the currently authenticated user."""
+ tokensDeactivateAll: DeactivateAllUserTokens
+
+ """Prepare external authentication url for user by custom plugin."""
+ externalAuthenticationUrl(
+ """The data required by plugin to create external authentication url."""
+ input: JSONString!
+
+ """The ID of the authentication plugin."""
+ pluginId: String!
+ ): ExternalAuthenticationUrl
+
+ """Obtain external access tokens for user by custom plugin."""
+ externalObtainAccessTokens(
+ """The data required by plugin to create authentication data."""
+ input: JSONString!
+
+ """The ID of the authentication plugin."""
+ pluginId: String!
+ ): ExternalObtainAccessTokens
+
+ """Refresh user's access by custom plugin."""
+ externalRefresh(
+ """The data required by plugin to proceed the refresh process."""
+ input: JSONString!
+
+ """The ID of the authentication plugin."""
+ pluginId: String!
+ ): ExternalRefresh
+
+ """Logout user by custom plugin."""
+ externalLogout(
+ """The data required by plugin to proceed the logout process."""
+ input: JSONString!
+
+ """The ID of the authentication plugin."""
+ pluginId: String!
+ ): ExternalLogout
+
+ """Verify external authentication data by plugin."""
+ externalVerify(
+ """The data required by plugin to proceed the verification."""
+ input: JSONString!
+
+ """The ID of the authentication plugin."""
+ pluginId: String!
+ ): ExternalVerify
+
+ """Sends an email with the account password modification link."""
+ requestPasswordReset(
+ """
+ Slug of a channel which will be used for notify user. Optional when only one channel exists.
+ """
+ channel: String
+
+ """Email of the user that will be used for password recovery."""
+ email: String!
+
+ """
+ URL of a view where users should be redirected to reset the password. URL in RFC 1808 format.
+ """
+ redirectUrl: String!
+ ): RequestPasswordReset
+
+ """Confirm user account with token sent by email during registration."""
+ confirmAccount(
+ """E-mail of the user performing account confirmation."""
+ email: String!
+
+ """A one-time token required to confirm the account."""
+ token: String!
+ ): ConfirmAccount
+
+ """
+ Sets the user's password from the token sent by email using the RequestPasswordReset mutation.
+ """
+ setPassword(
+ """Email of a user."""
+ email: String!
+
+ """Password of a user."""
+ password: String!
+
+ """A one-time token required to set the password."""
+ token: String!
+ ): SetPassword
+
+ """Change the password of the logged in user."""
+ passwordChange(
+ """New user password."""
+ newPassword: String!
+
+ """Current user password."""
+ oldPassword: String!
+ ): PasswordChange
+
+ """Request email change of the logged in user."""
+ requestEmailChange(
+ """
+ Slug of a channel which will be used to notify users. Optional when only one channel exists.
+ """
+ channel: String
+
+ """New user email."""
+ newEmail: String!
+
+ """User password."""
+ password: String!
+
+ """
+ URL of a view where users should be redirected to update the email address. URL in RFC 1808 format.
+ """
+ redirectUrl: String!
+ ): RequestEmailChange
+
+ """Confirm the email change of the logged-in user."""
+ confirmEmailChange(
+ """
+ Slug of a channel which will be used to notify users. Optional when only one channel exists.
+ """
+ channel: String
+
+ """A one-time token required to change the email."""
+ token: String!
+ ): ConfirmEmailChange
+
+ """Create a new address for the customer."""
+ accountAddressCreate(
+ """Fields required to create address."""
+ input: AddressInput!
+
+ """
+ A type of address. If provided, the new address will be automatically assigned as the customer's default address of that type.
+ """
+ type: AddressTypeEnum
+ ): AccountAddressCreate
+
+ """Updates an address of the logged-in user."""
+ accountAddressUpdate(
+ """ID of the address to update."""
+ id: ID!
+
+ """Fields required to update the address."""
+ input: AddressInput!
+ ): AccountAddressUpdate
+
+ """Delete an address of the logged-in user."""
+ accountAddressDelete(
+ """ID of the address to delete."""
+ id: ID!
+ ): AccountAddressDelete
+
+ """Sets a default address for the authenticated user."""
+ accountSetDefaultAddress(
+ """ID of the address to set as default."""
+ id: ID!
+
+ """The type of address."""
+ type: AddressTypeEnum!
+ ): AccountSetDefaultAddress
+
+ """Register a new user."""
+ accountRegister(
+ """Fields required to create a user."""
+ input: AccountRegisterInput!
+ ): AccountRegister
+
+ """Updates the account of the logged-in user."""
+ accountUpdate(
+ """Fields required to update the account of the logged-in user."""
+ input: AccountInput!
+ ): AccountUpdate
+
+ """Sends an email with the account removal link for the logged-in user."""
+ accountRequestDeletion(
+ """
+ Slug of a channel which will be used to notify users. Optional when only one channel exists.
+ """
+ channel: String
+
+ """
+ URL of a view where users should be redirected to delete their account. URL in RFC 1808 format.
+ """
+ redirectUrl: String!
+ ): AccountRequestDeletion
+
+ """Remove user account."""
+ accountDelete(
+ """
+ A one-time token required to remove account. Sent by email using AccountRequestDeletion mutation.
+ """
+ token: String!
+ ): AccountDelete
+
+ """Creates user address."""
+ addressCreate(
+ """Fields required to create address."""
+ input: AddressInput!
+
+ """ID of a user to create address for."""
+ userId: ID!
+ ): AddressCreate
+
+ """Updates an address."""
+ addressUpdate(
+ """ID of the address to update."""
+ id: ID!
+
+ """Fields required to update the address."""
+ input: AddressInput!
+ ): AddressUpdate
+
+ """Deletes an address."""
+ addressDelete(
+ """ID of the address to delete."""
+ id: ID!
+ ): AddressDelete
+
+ """Sets a default address for the given user."""
+ addressSetDefault(
+ """ID of the address."""
+ addressId: ID!
+
+ """The type of address."""
+ type: AddressTypeEnum!
+
+ """ID of the user to change the address for."""
+ userId: ID!
+ ): AddressSetDefault
+
+ """Creates a new customer."""
+ customerCreate(
+ """Fields required to create a customer."""
+ input: UserCreateInput!
+ ): CustomerCreate
+
+ """Updates an existing customer."""
+ customerUpdate(
+ """ID of a customer to update."""
+ id: ID!
+
+ """Fields required to update a customer."""
+ input: CustomerInput!
+ ): CustomerUpdate
+
+ """Deletes a customer."""
+ customerDelete(
+ """ID of a customer to delete."""
+ id: ID!
+ ): CustomerDelete
+
+ """Deletes customers."""
+ customerBulkDelete(
+ """List of user IDs to delete."""
+ ids: [ID]!
+ ): CustomerBulkDelete
+
+ """Creates a new staff user."""
+ staffCreate(
+ """Fields required to create a staff user."""
+ input: StaffCreateInput!
+ ): StaffCreate
+
+ """Updates an existing staff user."""
+ staffUpdate(
+ """ID of a staff user to update."""
+ id: ID!
+
+ """Fields required to update a staff user."""
+ input: StaffUpdateInput!
+ ): StaffUpdate
+
+ """Deletes a staff user."""
+ staffDelete(
+ """ID of a staff user to delete."""
+ id: ID!
+ ): StaffDelete
+
+ """Deletes staff users."""
+ staffBulkDelete(
+ """List of user IDs to delete."""
+ ids: [ID]!
+ ): StaffBulkDelete
+
+ """
+ Create a user avatar. Only for staff members. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
+ """
+ userAvatarUpdate(
+ """Represents an image file in a multipart request."""
+ image: Upload!
+ ): UserAvatarUpdate
+
+ """Deletes a user avatar. Only for staff members."""
+ userAvatarDelete: UserAvatarDelete
+
+ """Activate or deactivate users."""
+ userBulkSetActive(
+ """List of user IDs to (de)activate)."""
+ ids: [ID]!
+
+ """Determine if users will be set active or not."""
+ isActive: Boolean!
+ ): UserBulkSetActive
+
+ """Create new permission group."""
+ permissionGroupCreate(
+ """Input fields to create permission group."""
+ input: PermissionGroupCreateInput!
+ ): PermissionGroupCreate
+
+ """Update permission group."""
+ permissionGroupUpdate(
+ """ID of the group to update."""
+ id: ID!
+
+ """Input fields to create permission group."""
+ input: PermissionGroupUpdateInput!
+ ): PermissionGroupUpdate
+
+ """Delete permission group."""
+ permissionGroupDelete(
+ """ID of the group to delete."""
+ id: ID!
+ ): PermissionGroupDelete
+}
+
+"""Creates a new webhook subscription."""
+type WebhookCreate {
+ webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [WebhookError!]!
+ webhook: Webhook
+}
+
+type WebhookError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: WebhookErrorCode!
+}
+
+"""An enumeration."""
+enum WebhookErrorCode {
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+}
+
+input WebhookCreateInput {
+ """The name of the webhook."""
+ name: String
+
+ """The url to receive the payload."""
+ targetUrl: String
+
+ """
+ The events that webhook wants to subscribe.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead.
+ """
+ events: [WebhookEventTypeEnum]
+
+ """The asynchronous events that webhook wants to subscribe."""
+ asyncEvents: [WebhookEventTypeAsyncEnum!]
+
+ """The synchronous events that webhook wants to subscribe."""
+ syncEvents: [WebhookEventTypeSyncEnum!]
+
+ """ID of the app to which webhook belongs."""
+ app: ID
+
+ """Determine if webhook will be set active or not."""
+ isActive: Boolean
+
+ """The secret key used to create a hash signature with each payload."""
+ secretKey: String
+}
+
+"""Deletes a webhook subscription."""
+type WebhookDelete {
+ webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [WebhookError!]!
+ webhook: Webhook
+}
+
+"""Updates a webhook subscription."""
+type WebhookUpdate {
+ webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [WebhookError!]!
+ webhook: Webhook
+}
+
+input WebhookUpdateInput {
+ """The new name of the webhook."""
+ name: String
+
+ """The url to receive the payload."""
+ targetUrl: String
+
+ """
+ The events that webhook wants to subscribe.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead.
+ """
+ events: [WebhookEventTypeEnum]
+
+ """The asynchronous events that webhook wants to subscribe."""
+ asyncEvents: [WebhookEventTypeAsyncEnum!]
+
+ """The synchronous events that webhook wants to subscribe."""
+ syncEvents: [WebhookEventTypeSyncEnum!]
+
+ """ID of the app to which webhook belongs."""
+ app: ID
+
+ """Determine if webhook will be set active or not."""
+ isActive: Boolean
+
+ """Use to create a hash signature with each payload."""
+ secretKey: String
+}
+
+"""Retries event delivery."""
+type EventDeliveryRetry {
+ """Event delivery."""
+ delivery: EventDelivery
+ errors: [WebhookError!]!
+}
+
+"""Creates new warehouse."""
+type WarehouseCreate {
+ warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [WarehouseError!]!
+ warehouse: Warehouse
+}
+
+type WarehouseError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: WarehouseErrorCode!
+}
+
+"""An enumeration."""
+enum WarehouseErrorCode {
+ ALREADY_EXISTS
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+}
+
+input WarehouseCreateInput {
+ """Warehouse slug."""
+ slug: String
+
+ """The email address of the warehouse."""
+ email: String
+
+ """Warehouse name."""
+ name: String!
+
+ """Address of the warehouse."""
+ address: AddressInput!
+
+ """Shipping zones supported by the warehouse."""
+ shippingZones: [ID]
+}
+
+"""Updates given warehouse."""
+type WarehouseUpdate {
+ warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [WarehouseError!]!
+ warehouse: Warehouse
+}
+
+input WarehouseUpdateInput {
+ """Warehouse slug."""
+ slug: String
+
+ """The email address of the warehouse."""
+ email: String
+
+ """Warehouse name."""
+ name: String
+
+ """Address of the warehouse."""
+ address: AddressInput
+
+ """
+ New in Saleor 3.1. Click and collect options: local, all or disabled. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ clickAndCollectOption: WarehouseClickAndCollectOptionEnum
+
+ """
+ New in Saleor 3.1. Visibility of warehouse stocks. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ isPrivate: Boolean
+}
+
+"""Deletes selected warehouse."""
+type WarehouseDelete {
+ warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [WarehouseError!]!
+ warehouse: Warehouse
+}
+
+"""Add shipping zone to given warehouse."""
+type WarehouseShippingZoneAssign {
+ warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [WarehouseError!]!
+ warehouse: Warehouse
+}
+
+"""Remove shipping zone from given warehouse."""
+type WarehouseShippingZoneUnassign {
+ warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [WarehouseError!]!
+ warehouse: Warehouse
+}
+
+"""Creates a new staff notification recipient."""
+type StaffNotificationRecipientCreate {
+ shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShopError!]!
+ staffNotificationRecipient: StaffNotificationRecipient
+}
+
+type ShopError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ShopErrorCode!
+}
+
+"""An enumeration."""
+enum ShopErrorCode {
+ ALREADY_EXISTS
+ CANNOT_FETCH_TAX_RATES
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+}
+
+input StaffNotificationRecipientInput {
+ """The ID of the user subscribed to email notifications.."""
+ user: ID
+
+ """Email address of a user subscribed to email notifications."""
+ email: String
+
+ """Determines if a notification active."""
+ active: Boolean
+}
+
+"""Updates a staff notification recipient."""
+type StaffNotificationRecipientUpdate {
+ shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShopError!]!
+ staffNotificationRecipient: StaffNotificationRecipient
+}
+
+"""Delete staff notification recipient."""
+type StaffNotificationRecipientDelete {
+ shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShopError!]!
+ staffNotificationRecipient: StaffNotificationRecipient
+}
+
+"""Updates site domain of the shop."""
+type ShopDomainUpdate {
+ """Updated shop."""
+ shop: Shop
+ shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShopError!]!
+}
+
+input SiteDomainInput {
+ """Domain name for shop."""
+ domain: String
+
+ """Shop site name."""
+ name: String
+}
+
+"""Updates shop settings."""
+type ShopSettingsUpdate {
+ """Updated shop."""
+ shop: Shop
+ shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShopError!]!
+}
+
+input ShopSettingsInput {
+ """Header text."""
+ headerText: String
+
+ """SEO description."""
+ description: String
+
+ """Include taxes in prices."""
+ includeTaxesInPrices: Boolean
+
+ """Display prices with tax in store."""
+ displayGrossPrices: Boolean
+
+ """Charge taxes on shipping."""
+ chargeTaxesOnShipping: Boolean
+
+ """Enable inventory tracking."""
+ trackInventoryByDefault: Boolean
+
+ """Default weight unit."""
+ defaultWeightUnit: WeightUnitsEnum
+
+ """Enable automatic fulfillment for all digital products."""
+ automaticFulfillmentDigitalProducts: Boolean
+
+ """New in Saleor 3.1. Enable automatic approval of all new fulfillments."""
+ fulfillmentAutoApprove: Boolean
+
+ """
+ New in Saleor 3.1. Enable ability to approve fulfillments which are unpaid.
+ """
+ fulfillmentAllowUnpaid: Boolean
+
+ """Default number of max downloads per digital content URL."""
+ defaultDigitalMaxDownloads: Int
+
+ """Default number of days which digital content URL will be valid."""
+ defaultDigitalUrlValidDays: Int
+
+ """Default email sender's name."""
+ defaultMailSenderName: String
+
+ """Default email sender's address."""
+ defaultMailSenderAddress: String
+
+ """URL of a view where customers can set their password."""
+ customerSetPasswordUrl: String
+
+ """
+ New in Saleor 3.1. Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable.
+ """
+ reserveStockDurationAnonymousUser: Int
+
+ """
+ New in Saleor 3.1. Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable.
+ """
+ reserveStockDurationAuthenticatedUser: Int
+
+ """
+ New in Saleor 3.1. Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ limitQuantityPerCheckout: Int
+}
+
+"""Fetch tax rates."""
+type ShopFetchTaxRates {
+ """Updated shop."""
+ shop: Shop
+ shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShopError!]!
+}
+
+"""Creates/updates translations for shop settings."""
+type ShopSettingsTranslate {
+ """Updated shop settings."""
+ shop: Shop
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+}
+
+type TranslationError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: TranslationErrorCode!
+}
+
+"""An enumeration."""
+enum TranslationErrorCode {
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+}
+
+input ShopSettingsTranslationInput {
+ headerText: String
+ description: String
+}
+
+"""
+Update the shop's address. If the `null` value is passed, the currently selected address will be deleted.
+"""
+type ShopAddressUpdate {
+ """Updated shop."""
+ shop: Shop
+ shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShopError!]!
+}
+
+"""Update shop order settings."""
+type OrderSettingsUpdate {
+ """Order settings."""
+ orderSettings: OrderSettings
+ orderSettingsErrors: [OrderSettingsError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderSettingsError!]!
+}
+
+type OrderSettingsError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: OrderSettingsErrorCode!
+}
+
+"""An enumeration."""
+enum OrderSettingsErrorCode {
+ INVALID
+}
+
+input OrderSettingsUpdateInput {
+ """
+ When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately.
+ """
+ automaticallyConfirmAllNewOrders: Boolean
+
+ """
+ When enabled, all non-shippable gift card orders will be fulfilled automatically.
+ """
+ automaticallyFulfillNonShippableGiftCard: Boolean
+}
+
+"""Update gift card settings."""
+type GiftCardSettingsUpdate {
+ """Gift card settings."""
+ giftCardSettings: GiftCardSettings
+ errors: [GiftCardSettingsError!]!
+}
+
+type GiftCardSettingsError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: GiftCardSettingsErrorCode!
+}
+
+"""An enumeration."""
+enum GiftCardSettingsErrorCode {
+ INVALID
+ REQUIRED
+ GRAPHQL_ERROR
+}
+
+input GiftCardSettingsUpdateInput {
+ """Defines gift card default expiry settings."""
+ expiryType: GiftCardSettingsExpiryTypeEnum
+
+ """Defines gift card expiry period."""
+ expiryPeriod: TimePeriodInputType
+}
+
+input TimePeriodInputType {
+ """The length of the period."""
+ amount: Int!
+
+ """The type of the period."""
+ type: TimePeriodTypeEnum!
+}
+
+"""Manage shipping method's availability in channels."""
+type ShippingMethodChannelListingUpdate {
+ """An updated shipping method instance."""
+ shippingMethod: ShippingMethodType
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+}
+
+type ShippingError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ShippingErrorCode!
+
+ """List of warehouse IDs which causes the error."""
+ warehouses: [ID!]
+
+ """List of channels IDs which causes the error."""
+ channels: [ID!]
+}
+
+"""An enumeration."""
+enum ShippingErrorCode {
+ ALREADY_EXISTS
+ GRAPHQL_ERROR
+ INVALID
+ MAX_LESS_THAN_MIN
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+ DUPLICATED_INPUT_ITEM
+}
+
+input ShippingMethodChannelListingInput {
+ """List of channels to which the shipping method should be assigned."""
+ addChannels: [ShippingMethodChannelListingAddInput!]
+
+ """List of channels from which the shipping method should be unassigned."""
+ removeChannels: [ID!]
+}
+
+input ShippingMethodChannelListingAddInput {
+ """ID of a channel."""
+ channelId: ID!
+
+ """Shipping price of the shipping method in this channel."""
+ price: PositiveDecimal
+
+ """Minimum order price to use this shipping method."""
+ minimumOrderPrice: PositiveDecimal
+
+ """Maximum order price to use this shipping method."""
+ maximumOrderPrice: PositiveDecimal
+}
+
+"""Creates a new shipping price."""
+type ShippingPriceCreate {
+ """A shipping zone to which the shipping method belongs."""
+ shippingZone: ShippingZone
+ shippingMethod: ShippingMethodType
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+}
+
+input ShippingPriceInput {
+ """Name of the shipping method."""
+ name: String
+
+ """Shipping method description."""
+ description: JSONString
+
+ """Minimum order weight to use this shipping method."""
+ minimumOrderWeight: WeightScalar
+
+ """Maximum order weight to use this shipping method."""
+ maximumOrderWeight: WeightScalar
+
+ """Maximum number of days for delivery."""
+ maximumDeliveryDays: Int
+
+ """Minimal number of days for delivery."""
+ minimumDeliveryDays: Int
+
+ """Shipping type: price or weight based."""
+ type: ShippingMethodTypeEnum
+
+ """Shipping zone this method belongs to."""
+ shippingZone: ID
+
+ """Postal code rules to add."""
+ addPostalCodeRules: [ShippingPostalCodeRulesCreateInputRange!]
+
+ """Postal code rules to delete."""
+ deletePostalCodeRules: [ID!]
+
+ """Inclusion type for currently assigned postal code rules."""
+ inclusionType: PostalCodeRuleInclusionTypeEnum
+}
+
+scalar WeightScalar
+
+input ShippingPostalCodeRulesCreateInputRange {
+ """Start range of the postal code."""
+ start: String!
+
+ """End range of the postal code."""
+ end: String
+}
+
+"""Deletes a shipping price."""
+type ShippingPriceDelete {
+ """A shipping method to delete."""
+ shippingMethod: ShippingMethodType
+
+ """A shipping zone to which the shipping method belongs."""
+ shippingZone: ShippingZone
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+}
+
+"""Deletes shipping prices."""
+type ShippingPriceBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+}
+
+"""Updates a new shipping price."""
+type ShippingPriceUpdate {
+ """A shipping zone to which the shipping method belongs."""
+ shippingZone: ShippingZone
+ shippingMethod: ShippingMethodType
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+}
+
+"""Creates/updates translations for a shipping method."""
+type ShippingPriceTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ shippingMethod: ShippingMethodType
+}
+
+input ShippingPriceTranslationInput {
+ name: String
+
+ """Translated shipping method description (JSON)."""
+ description: JSONString
+}
+
+"""Exclude products from shipping price."""
+type ShippingPriceExcludeProducts {
+ """A shipping method with new list of excluded products."""
+ shippingMethod: ShippingMethodType
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+}
+
+input ShippingPriceExcludeProductsInput {
+ """List of products which will be excluded."""
+ products: [ID]!
+}
+
+"""Remove product from excluded list for shipping price."""
+type ShippingPriceRemoveProductFromExclude {
+ """A shipping method with new list of excluded products."""
+ shippingMethod: ShippingMethodType
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+}
+
+"""Creates a new shipping zone."""
+type ShippingZoneCreate {
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+ shippingZone: ShippingZone
+}
+
+input ShippingZoneCreateInput {
+ """Shipping zone's name. Visible only to the staff."""
+ name: String
+
+ """Description of the shipping zone."""
+ description: String
+
+ """List of countries in this shipping zone."""
+ countries: [String]
+
+ """
+ Default shipping zone will be used for countries not covered by other zones.
+ """
+ default: Boolean
+
+ """List of warehouses to assign to a shipping zone"""
+ addWarehouses: [ID]
+
+ """List of channels to assign to the shipping zone."""
+ addChannels: [ID!]
+}
+
+"""Deletes a shipping zone."""
+type ShippingZoneDelete {
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+ shippingZone: ShippingZone
+}
+
+"""Deletes shipping zones."""
+type ShippingZoneBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+}
+
+"""Updates a new shipping zone."""
+type ShippingZoneUpdate {
+ shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ShippingError!]!
+ shippingZone: ShippingZone
+}
+
+input ShippingZoneUpdateInput {
+ """Shipping zone's name. Visible only to the staff."""
+ name: String
+
+ """Description of the shipping zone."""
+ description: String
+
+ """List of countries in this shipping zone."""
+ countries: [String]
+
+ """
+ Default shipping zone will be used for countries not covered by other zones.
+ """
+ default: Boolean
+
+ """List of warehouses to assign to a shipping zone"""
+ addWarehouses: [ID]
+
+ """List of channels to assign to the shipping zone."""
+ addChannels: [ID!]
+
+ """List of warehouses to unassign from a shipping zone"""
+ removeWarehouses: [ID]
+
+ """List of channels to unassign from the shipping zone."""
+ removeChannels: [ID!]
+}
+
+"""Assign attributes to a given product type."""
+type ProductAttributeAssign {
+ """The updated product type."""
+ productType: ProductType
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+}
+
+type ProductError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ProductErrorCode!
+
+ """List of attributes IDs which causes the error."""
+ attributes: [ID!]
+
+ """List of attribute values IDs which causes the error."""
+ values: [ID!]
+}
+
+"""An enumeration."""
+enum ProductErrorCode {
+ ALREADY_EXISTS
+ ATTRIBUTE_ALREADY_ASSIGNED
+ ATTRIBUTE_CANNOT_BE_ASSIGNED
+ ATTRIBUTE_VARIANTS_DISABLED
+ DUPLICATED_INPUT_ITEM
+ GRAPHQL_ERROR
+ INVALID
+ PRODUCT_WITHOUT_CATEGORY
+ NOT_PRODUCTS_IMAGE
+ NOT_PRODUCTS_VARIANT
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+ VARIANT_NO_DIGITAL_CONTENT
+ CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT
+ PRODUCT_NOT_ASSIGNED_TO_CHANNEL
+ UNSUPPORTED_MEDIA_PROVIDER
+ PREORDER_VARIANT_CANNOT_BE_DEACTIVATED
+}
+
+input ProductAttributeAssignInput {
+ """The ID of the attribute to assign."""
+ id: ID!
+
+ """The attribute type to be assigned as."""
+ type: ProductAttributeType!
+
+ """
+ New in Saleor 3.1. Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric'].
+ """
+ variantSelection: Boolean
+}
+
+enum ProductAttributeType {
+ PRODUCT
+ VARIANT
+}
+
+"""
+New in Saleor 3.1. Update attributes assigned to product variant for given product type.
+"""
+type ProductAttributeAssignmentUpdate {
+ """The updated product type."""
+ productType: ProductType
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+}
+
+input ProductAttributeAssignmentUpdateInput {
+ """The ID of the attribute to assign."""
+ id: ID!
+
+ """
+ New in Saleor 3.1. Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric'].
+ """
+ variantSelection: Boolean!
+}
+
+"""Un-assign attributes from a given product type."""
+type ProductAttributeUnassign {
+ """The updated product type."""
+ productType: ProductType
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+}
+
+"""Creates a new category."""
+type CategoryCreate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ category: Category
+}
+
+input CategoryInput {
+ """Category description (JSON)."""
+ description: JSONString
+
+ """Category name."""
+ name: String
+
+ """Category slug."""
+ slug: String
+
+ """Search engine optimization fields."""
+ seo: SeoInput
+
+ """Background image file."""
+ backgroundImage: Upload
+
+ """Alt text for a product media."""
+ backgroundImageAlt: String
+}
+
+input SeoInput {
+ """SEO title."""
+ title: String
+
+ """SEO description."""
+ description: String
+}
+
+"""
+Variables of this type must be set to null in mutations. They will be replaced with a filename from a following multipart part containing a binary file. See: https://github.com/jaydenseric/graphql-multipart-request-spec.
+"""
+scalar Upload
+
+"""Deletes a category."""
+type CategoryDelete {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ category: Category
+}
+
+"""Deletes categories."""
+type CategoryBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+}
+
+"""Updates a category."""
+type CategoryUpdate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ category: Category
+}
+
+"""Creates/updates translations for a category."""
+type CategoryTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ category: Category
+}
+
+input TranslationInput {
+ seoTitle: String
+ seoDescription: String
+ name: String
+ description: JSONString
+}
+
+"""Adds products to a collection."""
+type CollectionAddProducts {
+ """Collection to which products will be added."""
+ collection: Collection
+ collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CollectionError!]!
}
-type LanguageDisplay {
- code: LanguageCodeEnum!
- language: String!
+type CollectionError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """List of products IDs which causes the error."""
+ products: [ID!]
+
+ """The error code."""
+ code: CollectionErrorCode!
}
-type LimitInfo {
- currentUsage: Limits!
- allowedUsage: Limits!
+"""An enumeration."""
+enum CollectionErrorCode {
+ DUPLICATED_INPUT_ITEM
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+ CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT
}
-type Limits {
- channels: Int
- orders: Int
- productVariants: Int
- staffUsers: Int
- warehouses: Int
+"""Creates a new collection."""
+type CollectionCreate {
+ collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CollectionError!]!
+ collection: Collection
}
-type Manifest {
- identifier: String!
- version: String!
- name: String!
- about: String
- permissions: [Permission]
- appUrl: String
- configurationUrl: String
- tokenTargetUrl: String
- dataPrivacy: String
- dataPrivacyUrl: String
- homepageUrl: String
- supportUrl: String
- extensions: [AppManifestExtension!]!
+input CollectionCreateInput {
+ """Informs whether a collection is published."""
+ isPublished: Boolean
+
+ """Name of the collection."""
+ name: String
+
+ """Slug of the collection."""
+ slug: String
+
+ """Description of the collection (JSON)."""
+ description: JSONString
+
+ """Background image file."""
+ backgroundImage: Upload
+
+ """Alt text for an image."""
+ backgroundImageAlt: String
+
+ """Search engine optimization fields."""
+ seo: SeoInput
+
+ """Publication date. ISO 8601 standard."""
+ publicationDate: Date
+
+ """List of products to be added to the collection."""
+ products: [ID]
}
-type Margin {
- start: Int
- stop: Int
+"""Deletes a collection."""
+type CollectionDelete {
+ collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CollectionError!]!
+ collection: Collection
}
-enum MeasurementUnitsEnum {
- CM
- M
- KM
- FT
- YD
- INCH
- SQ_CM
- SQ_M
- SQ_KM
- SQ_FT
- SQ_YD
- SQ_INCH
- CUBIC_MILLIMETER
- CUBIC_CENTIMETER
- CUBIC_DECIMETER
- CUBIC_METER
- LITER
- CUBIC_FOOT
- CUBIC_INCH
- CUBIC_YARD
- QT
- PINT
- FL_OZ
- ACRE_IN
- ACRE_FT
- G
- LB
- OZ
- KG
- TONNE
+"""Reorder the products of a collection."""
+type CollectionReorderProducts {
+ """Collection from which products are reordered."""
+ collection: Collection
+ collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CollectionError!]!
}
-type Menu implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String!
- slug: String!
- items: [MenuItem]
+input MoveProductInput {
+ """The ID of the product to move."""
+ productId: ID!
+
+ """
+ The relative sorting position of the product (from -inf to +inf) starting from the first given product's actual position.1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.
+ """
+ sortOrder: Int
}
-type MenuBulkDelete {
+"""Deletes collections."""
+type CollectionBulkDelete {
+ """Returns how many objects were affected."""
count: Int!
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
+ collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CollectionError!]!
}
-type MenuCountableConnection {
- pageInfo: PageInfo!
- edges: [MenuCountableEdge!]!
- totalCount: Int
+"""Remove products from a collection."""
+type CollectionRemoveProducts {
+ """Collection from which products will be removed."""
+ collection: Collection
+ collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CollectionError!]!
+}
+
+"""Updates a collection."""
+type CollectionUpdate {
+ collectionErrors: [CollectionError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CollectionError!]!
+ collection: Collection
+}
+
+input CollectionInput {
+ """Informs whether a collection is published."""
+ isPublished: Boolean
+
+ """Name of the collection."""
+ name: String
+
+ """Slug of the collection."""
+ slug: String
+
+ """Description of the collection (JSON)."""
+ description: JSONString
+
+ """Background image file."""
+ backgroundImage: Upload
+
+ """Alt text for an image."""
+ backgroundImageAlt: String
+
+ """Search engine optimization fields."""
+ seo: SeoInput
+
+ """Publication date. ISO 8601 standard."""
+ publicationDate: Date
+}
+
+"""Creates/updates translations for a collection."""
+type CollectionTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ collection: Collection
+}
+
+"""Manage collection's availability in channels."""
+type CollectionChannelListingUpdate {
+ """An updated collection instance."""
+ collection: Collection
+ collectionChannelListingErrors: [CollectionChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CollectionChannelListingError!]!
+}
+
+type CollectionChannelListingError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ProductErrorCode!
+
+ """List of attributes IDs which causes the error."""
+ attributes: [ID!]
+
+ """List of attribute values IDs which causes the error."""
+ values: [ID!]
+
+ """List of channels IDs which causes the error."""
+ channels: [ID!]
+}
+
+input CollectionChannelListingUpdateInput {
+ """List of channels to which the collection should be assigned."""
+ addChannels: [PublishableChannelListingInput!]
+
+ """List of channels from which the collection should be unassigned."""
+ removeChannels: [ID!]
+}
+
+input PublishableChannelListingInput {
+ """ID of a channel."""
+ channelId: ID!
+
+ """Determines if object is visible to customers."""
+ isPublished: Boolean
+
+ """Publication date. ISO 8601 standard."""
+ publicationDate: Date
+}
+
+"""Creates a new product."""
+type ProductCreate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ product: Product
+}
+
+input ProductCreateInput {
+ """List of attributes."""
+ attributes: [AttributeValueInput!]
+
+ """ID of the product's category."""
+ category: ID
+
+ """Determine if taxes are being charged for the product."""
+ chargeTaxes: Boolean
+
+ """List of IDs of collections that the product belongs to."""
+ collections: [ID!]
+
+ """Product description (JSON)."""
+ description: JSONString
+
+ """Product name."""
+ name: String
+
+ """Product slug."""
+ slug: String
+
+ """Tax rate for enabled tax gateway."""
+ taxCode: String
+
+ """Search engine optimization fields."""
+ seo: SeoInput
+
+ """Weight of the Product."""
+ weight: WeightScalar
+
+ """Defines the product rating value."""
+ rating: Float
+
+ """ID of the type that product belongs to."""
+ productType: ID!
+}
+
+input AttributeValueInput {
+ """ID of the selected attribute."""
+ id: ID
+
+ """
+ The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.
+ """
+ values: [String!]
+
+ """URL of the file attribute. Every time, a new value is created."""
+ file: String
+
+ """File content type."""
+ contentType: String
+
+ """List of entity IDs that will be used as references."""
+ references: [ID!]
+
+ """Text content in JSON format."""
+ richText: JSONString
+
+ """Represents the boolean value of the attribute value."""
+ boolean: Boolean
+
+ """Represents the date value of the attribute value."""
+ date: Date
+
+ """Represents the date time value of the attribute value."""
+ dateTime: DateTime
+}
+
+"""Deletes a product."""
+type ProductDelete {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ product: Product
}
-type MenuCountableEdge {
- node: Menu!
- cursor: String!
+"""Deletes products."""
+type ProductBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type MenuCreate {
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
- menu: Menu
+"""Updates an existing product."""
+type ProductUpdate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ product: Product
}
-input MenuCreateInput {
- name: String!
+input ProductInput {
+ """List of attributes."""
+ attributes: [AttributeValueInput!]
+
+ """ID of the product's category."""
+ category: ID
+
+ """Determine if taxes are being charged for the product."""
+ chargeTaxes: Boolean
+
+ """List of IDs of collections that the product belongs to."""
+ collections: [ID!]
+
+ """Product description (JSON)."""
+ description: JSONString
+
+ """Product name."""
+ name: String
+
+ """Product slug."""
slug: String
- items: [MenuItemInput]
+
+ """Tax rate for enabled tax gateway."""
+ taxCode: String
+
+ """Search engine optimization fields."""
+ seo: SeoInput
+
+ """Weight of the Product."""
+ weight: WeightScalar
+
+ """Defines the product rating value."""
+ rating: Float
}
-type MenuDelete {
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
- menu: Menu
+"""Creates/updates translations for a product."""
+type ProductTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ product: Product
}
-type MenuError {
+"""Manage product's availability in channels."""
+type ProductChannelListingUpdate {
+ """An updated product instance."""
+ product: Product
+ productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductChannelListingError!]!
+}
+
+type ProductChannelListingError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: MenuErrorCode!
-}
-enum MenuErrorCode {
- CANNOT_ASSIGN_NODE
- GRAPHQL_ERROR
- INVALID
- INVALID_MENU_ITEM
- NO_MENU_ITEM_PROVIDED
- NOT_FOUND
- REQUIRED
- TOO_MANY_MENU_ITEMS
- UNIQUE
-}
+ """The error code."""
+ code: ProductErrorCode!
-input MenuFilterInput {
- search: String
- slug: [String]
- metadata: [MetadataFilter]
-}
+ """List of attributes IDs which causes the error."""
+ attributes: [ID!]
-input MenuInput {
- name: String
- slug: String
-}
+ """List of attribute values IDs which causes the error."""
+ values: [ID!]
-type MenuItem implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String!
- menu: Menu!
- parent: MenuItem
- category: Category
- collection: Collection
- page: Page
- level: Int!
- children: [MenuItem]
- url: String
- translation(languageCode: LanguageCodeEnum!): MenuItemTranslation
+ """List of channels IDs which causes the error."""
+ channels: [ID!]
+
+ """List of variants IDs which causes the error."""
+ variants: [ID!]
}
-type MenuItemBulkDelete {
- count: Int!
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
+input ProductChannelListingUpdateInput {
+ """List of channels to which the product should be assigned or updated."""
+ updateChannels: [ProductChannelListingAddInput!]
+
+ """List of channels from which the product should be unassigned."""
+ removeChannels: [ID!]
}
-type MenuItemCountableConnection {
- pageInfo: PageInfo!
- edges: [MenuItemCountableEdge!]!
- totalCount: Int
+input ProductChannelListingAddInput {
+ """ID of a channel."""
+ channelId: ID!
+
+ """Determines if object is visible to customers."""
+ isPublished: Boolean
+
+ """Publication date. ISO 8601 standard."""
+ publicationDate: Date
+
+ """
+ Determines if product is visible in product listings (doesn't apply to product collections).
+ """
+ visibleInListings: Boolean
+
+ """Determine if product should be available for purchase."""
+ isAvailableForPurchase: Boolean
+
+ """
+ A start date from which a product will be available for purchase. When not set and isAvailable is set to True, the current day is assumed.
+ """
+ availableForPurchaseDate: Date
+
+ """List of variants to which the channel should be assigned."""
+ addVariants: [ID!]
+
+ """List of variants from which the channel should be unassigned."""
+ removeVariants: [ID!]
}
-type MenuItemCountableEdge {
- node: MenuItem!
- cursor: String!
+"""
+Create a media object (image or video URL) associated with product. For image, this mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
+"""
+type ProductMediaCreate {
+ product: Product
+ media: ProductMedia
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type MenuItemCreate {
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
- menuItem: MenuItem
+input ProductMediaCreateInput {
+ """Alt text for a product media."""
+ alt: String
+
+ """Represents an image file in a multipart request."""
+ image: Upload
+
+ """ID of an product."""
+ product: ID!
+
+ """Represents an URL to an external media."""
+ mediaUrl: String
}
-input MenuItemCreateInput {
- name: String!
- url: String
- category: ID
- collection: ID
- page: ID
- menu: ID!
- parent: ID
+"""
+Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook.
+"""
+type ProductVariantReorder {
+ product: Product
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type MenuItemDelete {
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
- menuItem: MenuItem
+input ReorderInput {
+ """The ID of the item to move."""
+ id: ID!
+
+ """
+ The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.
+ """
+ sortOrder: Int
}
-input MenuItemFilterInput {
- search: String
- metadata: [MetadataFilter]
+"""Deletes a product media."""
+type ProductMediaDelete {
+ product: Product
+ media: ProductMedia
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-input MenuItemInput {
- name: String
- url: String
- category: ID
- collection: ID
- page: ID
+"""Deletes product media."""
+type ProductMediaBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type MenuItemMove {
- menu: Menu
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
+"""Changes ordering of the product media."""
+type ProductMediaReorder {
+ product: Product
+ media: [ProductMedia!]
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-input MenuItemMoveInput {
- itemId: ID!
- parentId: ID
- sortOrder: Int
+"""Updates a product media."""
+type ProductMediaUpdate {
+ product: Product
+ media: ProductMedia
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-input MenuItemSortingInput {
- direction: OrderDirection!
- field: MenuItemsSortField!
+input ProductMediaUpdateInput {
+ """Alt text for a product media."""
+ alt: String
}
-type MenuItemTranslatableContent implements Node {
- id: ID!
- name: String!
- translation(languageCode: LanguageCodeEnum!): MenuItemTranslation
- menuItem: MenuItem @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+"""Creates a new product type."""
+type ProductTypeCreate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ productType: ProductType
}
-type MenuItemTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- menuItem: MenuItem
+input ProductTypeInput {
+ """Name of the product type."""
+ name: String
+
+ """Product type slug."""
+ slug: String
+
+ """The product type kind."""
+ kind: ProductTypeKindEnum
+
+ """
+ Determines if product of this type has multiple variants. This option mainly simplifies product management in the dashboard. There is always at least one variant created under the hood.
+ """
+ hasVariants: Boolean
+
+ """List of attributes shared among all product variants."""
+ productAttributes: [ID]
+
+ """
+ List of attributes used to distinguish between different variants of a product.
+ """
+ variantAttributes: [ID]
+
+ """Determines if shipping is required for products of this variant."""
+ isShippingRequired: Boolean
+
+ """Determines if products are digital."""
+ isDigital: Boolean
+
+ """Weight of the ProductType items."""
+ weight: WeightScalar
+
+ """Tax rate for enabled tax gateway."""
+ taxCode: String
}
-type MenuItemTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- name: String!
+"""Deletes a product type."""
+type ProductTypeDelete {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ productType: ProductType
}
-type MenuItemUpdate {
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
- menuItem: MenuItem
+"""Deletes product types."""
+type ProductTypeBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-enum MenuItemsSortField {
- NAME
+"""Updates an existing product type."""
+type ProductTypeUpdate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ productType: ProductType
}
-enum MenuSortField {
- NAME
- ITEMS_COUNT
+"""Reorder the attributes of a product type."""
+type ProductTypeReorderAttributes {
+ """Product type from which attributes are reordered."""
+ productType: ProductType
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-input MenuSortingInput {
- direction: OrderDirection!
- field: MenuSortField!
+"""Reorder product attribute values."""
+type ProductReorderAttributeValues {
+ """Product from which attribute values are reordered."""
+ product: Product
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type MenuUpdate {
- menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MenuError!]!
- menu: Menu
+"""
+Create new digital content. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
+"""
+type DigitalContentCreate {
+ variant: ProductVariant
+ content: DigitalContent
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type MetadataError {
- field: String
- message: String
- code: MetadataErrorCode!
-}
+input DigitalContentUploadInput {
+ """Use default digital content settings for this product."""
+ useDefaultSettings: Boolean!
-enum MetadataErrorCode {
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- NOT_UPDATED
-}
+ """
+ Determines how many times a download link can be accessed by a customer.
+ """
+ maxDownloads: Int
-input MetadataFilter {
- key: String!
- value: String
-}
+ """
+ Determines for how many days a download link is active since it was generated.
+ """
+ urlValidDays: Int
-input MetadataInput {
- key: String!
- value: String!
-}
+ """Overwrite default automatic_fulfillment setting for variant."""
+ automaticFulfillment: Boolean
-type MetadataItem {
- key: String!
- value: String!
+ """Represents an file in a multipart request."""
+ contentFile: Upload!
}
-type Money {
- currency: String!
- amount: Float!
+"""Remove digital content assigned to given variant."""
+type DigitalContentDelete {
+ variant: ProductVariant
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-input MoneyInput {
- currency: String!
- amount: PositiveDecimal!
+"""Update digital content."""
+type DigitalContentUpdate {
+ variant: ProductVariant
+ content: DigitalContent
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type MoneyRange {
- start: Money
- stop: Money
-}
+input DigitalContentInput {
+ """Use default digital content settings for this product."""
+ useDefaultSettings: Boolean!
-input MoveProductInput {
- productId: ID!
- sortOrder: Int
-}
+ """
+ Determines how many times a download link can be accessed by a customer.
+ """
+ maxDownloads: Int
-type Mutation {
- webhookCreate(input: WebhookCreateInput!): WebhookCreate
- webhookDelete(id: ID!): WebhookDelete
- webhookUpdate(id: ID!, input: WebhookUpdateInput!): WebhookUpdate
- eventDeliveryRetry(id: ID!): EventDeliveryRetry
- createWarehouse(input: WarehouseCreateInput!): WarehouseCreate
- updateWarehouse(id: ID!, input: WarehouseUpdateInput!): WarehouseUpdate
- deleteWarehouse(id: ID!): WarehouseDelete
- assignWarehouseShippingZone(id: ID!, shippingZoneIds: [ID!]!): WarehouseShippingZoneAssign
- unassignWarehouseShippingZone(id: ID!, shippingZoneIds: [ID!]!): WarehouseShippingZoneUnassign
- staffNotificationRecipientCreate(input: StaffNotificationRecipientInput!): StaffNotificationRecipientCreate
- staffNotificationRecipientUpdate(id: ID!, input: StaffNotificationRecipientInput!): StaffNotificationRecipientUpdate
- staffNotificationRecipientDelete(id: ID!): StaffNotificationRecipientDelete
- shopDomainUpdate(input: SiteDomainInput): ShopDomainUpdate
- shopSettingsUpdate(input: ShopSettingsInput!): ShopSettingsUpdate
- shopFetchTaxRates: ShopFetchTaxRates
- shopSettingsTranslate(input: ShopSettingsTranslationInput!, languageCode: LanguageCodeEnum!): ShopSettingsTranslate
- shopAddressUpdate(input: AddressInput): ShopAddressUpdate
- orderSettingsUpdate(input: OrderSettingsUpdateInput!): OrderSettingsUpdate
- giftCardSettingsUpdate(input: GiftCardSettingsUpdateInput!): GiftCardSettingsUpdate
- shippingMethodChannelListingUpdate(id: ID!, input: ShippingMethodChannelListingInput!): ShippingMethodChannelListingUpdate
- shippingPriceCreate(input: ShippingPriceInput!): ShippingPriceCreate
- shippingPriceDelete(id: ID!): ShippingPriceDelete
- shippingPriceBulkDelete(ids: [ID]!): ShippingPriceBulkDelete
- shippingPriceUpdate(id: ID!, input: ShippingPriceInput!): ShippingPriceUpdate
- shippingPriceTranslate(id: ID!, input: ShippingPriceTranslationInput!, languageCode: LanguageCodeEnum!): ShippingPriceTranslate
- shippingPriceExcludeProducts(id: ID!, input: ShippingPriceExcludeProductsInput!): ShippingPriceExcludeProducts
- shippingPriceRemoveProductFromExclude(id: ID!, products: [ID]!): ShippingPriceRemoveProductFromExclude
- shippingZoneCreate(input: ShippingZoneCreateInput!): ShippingZoneCreate
- shippingZoneDelete(id: ID!): ShippingZoneDelete
- shippingZoneBulkDelete(ids: [ID]!): ShippingZoneBulkDelete
- shippingZoneUpdate(id: ID!, input: ShippingZoneUpdateInput!): ShippingZoneUpdate
- productAttributeAssign(operations: [ProductAttributeAssignInput]!, productTypeId: ID!): ProductAttributeAssign
- productAttributeAssignmentUpdate(operations: [ProductAttributeAssignmentUpdateInput]!, productTypeId: ID!): ProductAttributeAssignmentUpdate
- productAttributeUnassign(attributeIds: [ID]!, productTypeId: ID!): ProductAttributeUnassign
- categoryCreate(input: CategoryInput!, parent: ID): CategoryCreate
- categoryDelete(id: ID!): CategoryDelete
- categoryBulkDelete(ids: [ID]!): CategoryBulkDelete
- categoryUpdate(id: ID!, input: CategoryInput!): CategoryUpdate
- categoryTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): CategoryTranslate
- collectionAddProducts(collectionId: ID!, products: [ID]!): CollectionAddProducts
- collectionCreate(input: CollectionCreateInput!): CollectionCreate
- collectionDelete(id: ID!): CollectionDelete
- collectionReorderProducts(collectionId: ID!, moves: [MoveProductInput]!): CollectionReorderProducts
- collectionBulkDelete(ids: [ID]!): CollectionBulkDelete
- collectionRemoveProducts(collectionId: ID!, products: [ID]!): CollectionRemoveProducts
- collectionUpdate(id: ID!, input: CollectionInput!): CollectionUpdate
- collectionTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): CollectionTranslate
- collectionChannelListingUpdate(id: ID!, input: CollectionChannelListingUpdateInput!): CollectionChannelListingUpdate
- productCreate(input: ProductCreateInput!): ProductCreate
- productDelete(id: ID!): ProductDelete
- productBulkDelete(ids: [ID]!): ProductBulkDelete
- productUpdate(id: ID!, input: ProductInput!): ProductUpdate
- productTranslate(id: ID!, input: TranslationInput!, languageCode: LanguageCodeEnum!): ProductTranslate
- productChannelListingUpdate(id: ID!, input: ProductChannelListingUpdateInput!): ProductChannelListingUpdate
- productMediaCreate(input: ProductMediaCreateInput!): ProductMediaCreate
- productVariantReorder(moves: [ReorderInput]!, productId: ID!): ProductVariantReorder
- productMediaDelete(id: ID!): ProductMediaDelete
- productMediaBulkDelete(ids: [ID]!): ProductMediaBulkDelete
- productMediaReorder(mediaIds: [ID]!, productId: ID!): ProductMediaReorder
- productMediaUpdate(id: ID!, input: ProductMediaUpdateInput!): ProductMediaUpdate
- productTypeCreate(input: ProductTypeInput!): ProductTypeCreate
- productTypeDelete(id: ID!): ProductTypeDelete
- productTypeBulkDelete(ids: [ID]!): ProductTypeBulkDelete
- productTypeUpdate(id: ID!, input: ProductTypeInput!): ProductTypeUpdate
- productTypeReorderAttributes(moves: [ReorderInput]!, productTypeId: ID!, type: ProductAttributeType!): ProductTypeReorderAttributes
- productReorderAttributeValues(attributeId: ID!, moves: [ReorderInput]!, productId: ID!): ProductReorderAttributeValues
- digitalContentCreate(input: DigitalContentUploadInput!, variantId: ID!): DigitalContentCreate
- digitalContentDelete(variantId: ID!): DigitalContentDelete
- digitalContentUpdate(input: DigitalContentInput!, variantId: ID!): DigitalContentUpdate
- digitalContentUrlCreate(input: DigitalContentUrlCreateInput!): DigitalContentUrlCreate
- productVariantCreate(input: ProductVariantCreateInput!): ProductVariantCreate
- productVariantDelete(id: ID!): ProductVariantDelete
- productVariantBulkCreate(product: ID!, variants: [ProductVariantBulkCreateInput]!): ProductVariantBulkCreate
- productVariantBulkDelete(ids: [ID]!): ProductVariantBulkDelete
- productVariantStocksCreate(stocks: [StockInput!]!, variantId: ID!): ProductVariantStocksCreate
- productVariantStocksDelete(variantId: ID!, warehouseIds: [ID!]): ProductVariantStocksDelete
- productVariantStocksUpdate(stocks: [StockInput!]!, variantId: ID!): ProductVariantStocksUpdate
- productVariantUpdate(id: ID!, input: ProductVariantInput!): ProductVariantUpdate
- productVariantSetDefault(productId: ID!, variantId: ID!): ProductVariantSetDefault
- productVariantTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): ProductVariantTranslate
- productVariantChannelListingUpdate(id: ID!, input: [ProductVariantChannelListingAddInput!]!): ProductVariantChannelListingUpdate
- productVariantReorderAttributeValues(attributeId: ID!, moves: [ReorderInput]!, variantId: ID!): ProductVariantReorderAttributeValues
- productVariantPreorderDeactivate(id: ID!): ProductVariantPreorderDeactivate
- variantMediaAssign(mediaId: ID!, variantId: ID!): VariantMediaAssign
- variantMediaUnassign(mediaId: ID!, variantId: ID!): VariantMediaUnassign
- paymentCapture(amount: PositiveDecimal, paymentId: ID!): PaymentCapture
- paymentRefund(amount: PositiveDecimal, paymentId: ID!): PaymentRefund
- paymentVoid(paymentId: ID!): PaymentVoid
- paymentInitialize(channel: String, gateway: String!, paymentData: JSONString): PaymentInitialize
- paymentCheckBalance(input: PaymentCheckBalanceInput!): PaymentCheckBalance
- pageCreate(input: PageCreateInput!): PageCreate
- pageDelete(id: ID!): PageDelete
- pageBulkDelete(ids: [ID]!): PageBulkDelete
- pageBulkPublish(ids: [ID]!, isPublished: Boolean!): PageBulkPublish
- pageUpdate(id: ID!, input: PageInput!): PageUpdate
- pageTranslate(id: ID!, input: PageTranslationInput!, languageCode: LanguageCodeEnum!): PageTranslate
- pageTypeCreate(input: PageTypeCreateInput!): PageTypeCreate
- pageTypeUpdate(id: ID, input: PageTypeUpdateInput!): PageTypeUpdate
- pageTypeDelete(id: ID!): PageTypeDelete
- pageTypeBulkDelete(ids: [ID!]!): PageTypeBulkDelete
- pageAttributeAssign(attributeIds: [ID!]!, pageTypeId: ID!): PageAttributeAssign
- pageAttributeUnassign(attributeIds: [ID!]!, pageTypeId: ID!): PageAttributeUnassign
- pageTypeReorderAttributes(moves: [ReorderInput!]!, pageTypeId: ID!): PageTypeReorderAttributes
- pageReorderAttributeValues(attributeId: ID!, moves: [ReorderInput]!, pageId: ID!): PageReorderAttributeValues
- draftOrderComplete(id: ID!): DraftOrderComplete
- draftOrderCreate(input: DraftOrderCreateInput!): DraftOrderCreate
- draftOrderDelete(id: ID!): DraftOrderDelete
- draftOrderBulkDelete(ids: [ID]!): DraftOrderBulkDelete
- draftOrderLinesBulkDelete(ids: [ID]!): DraftOrderLinesBulkDelete @deprecated(reason: "This field will be removed in Saleor 4.0.")
- draftOrderUpdate(id: ID!, input: DraftOrderInput!): DraftOrderUpdate
- orderAddNote(order: ID!, input: OrderAddNoteInput!): OrderAddNote
- orderCancel(id: ID!): OrderCancel
- orderCapture(amount: PositiveDecimal!, id: ID!): OrderCapture
- orderConfirm(id: ID!): OrderConfirm
- orderFulfill(input: OrderFulfillInput!, order: ID): OrderFulfill
- orderFulfillmentCancel(id: ID!, input: FulfillmentCancelInput): FulfillmentCancel
- orderFulfillmentApprove(allowStockToBeExceeded: Boolean = false, id: ID!, notifyCustomer: Boolean!): FulfillmentApprove
- orderFulfillmentUpdateTracking(id: ID!, input: FulfillmentUpdateTrackingInput!): FulfillmentUpdateTracking
- orderFulfillmentRefundProducts(input: OrderRefundProductsInput!, order: ID!): FulfillmentRefundProducts
- orderFulfillmentReturnProducts(input: OrderReturnProductsInput!, order: ID!): FulfillmentReturnProducts
- orderLinesCreate(id: ID!, input: [OrderLineCreateInput]!): OrderLinesCreate
- orderLineDelete(id: ID!): OrderLineDelete
- orderLineUpdate(id: ID!, input: OrderLineInput!): OrderLineUpdate
- orderDiscountAdd(input: OrderDiscountCommonInput!, orderId: ID!): OrderDiscountAdd
- orderDiscountUpdate(discountId: ID!, input: OrderDiscountCommonInput!): OrderDiscountUpdate
- orderDiscountDelete(discountId: ID!): OrderDiscountDelete
- orderLineDiscountUpdate(input: OrderDiscountCommonInput!, orderLineId: ID!): OrderLineDiscountUpdate
- orderLineDiscountRemove(orderLineId: ID!): OrderLineDiscountRemove
- orderMarkAsPaid(id: ID!, transactionReference: String): OrderMarkAsPaid
- orderRefund(amount: PositiveDecimal!, id: ID!): OrderRefund
- orderUpdate(id: ID!, input: OrderUpdateInput!): OrderUpdate
- orderUpdateShipping(order: ID!, input: OrderUpdateShippingInput!): OrderUpdateShipping
- orderVoid(id: ID!): OrderVoid
- orderBulkCancel(ids: [ID]!): OrderBulkCancel
- deleteMetadata(id: ID!, keys: [String!]!): DeleteMetadata
- deletePrivateMetadata(id: ID!, keys: [String!]!): DeletePrivateMetadata
- updateMetadata(id: ID!, input: [MetadataInput!]!): UpdateMetadata
- updatePrivateMetadata(id: ID!, input: [MetadataInput!]!): UpdatePrivateMetadata
- assignNavigation(menu: ID, navigationType: NavigationType!): AssignNavigation
- menuCreate(input: MenuCreateInput!): MenuCreate
- menuDelete(id: ID!): MenuDelete
- menuBulkDelete(ids: [ID]!): MenuBulkDelete
- menuUpdate(id: ID!, input: MenuInput!): MenuUpdate
- menuItemCreate(input: MenuItemCreateInput!): MenuItemCreate
- menuItemDelete(id: ID!): MenuItemDelete
- menuItemBulkDelete(ids: [ID]!): MenuItemBulkDelete
- menuItemUpdate(id: ID!, input: MenuItemInput!): MenuItemUpdate
- menuItemTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): MenuItemTranslate
- menuItemMove(menu: ID!, moves: [MenuItemMoveInput]!): MenuItemMove
- invoiceRequest(number: String, orderId: ID!): InvoiceRequest
- invoiceRequestDelete(id: ID!): InvoiceRequestDelete
- invoiceCreate(input: InvoiceCreateInput!, orderId: ID!): InvoiceCreate
- invoiceDelete(id: ID!): InvoiceDelete
- invoiceUpdate(id: ID!, input: UpdateInvoiceInput!): InvoiceUpdate
- invoiceSendNotification(id: ID!): InvoiceSendNotification
- giftCardActivate(id: ID!): GiftCardActivate
- giftCardCreate(input: GiftCardCreateInput!): GiftCardCreate
- giftCardDelete(id: ID!): GiftCardDelete
- giftCardDeactivate(id: ID!): GiftCardDeactivate
- giftCardUpdate(id: ID!, input: GiftCardUpdateInput!): GiftCardUpdate
- giftCardResend(input: GiftCardResendInput!): GiftCardResend
- giftCardAddNote(id: ID!, input: GiftCardAddNoteInput!): GiftCardAddNote
- giftCardBulkCreate(input: GiftCardBulkCreateInput!): GiftCardBulkCreate
- giftCardBulkDelete(ids: [ID]!): GiftCardBulkDelete
- giftCardBulkActivate(ids: [ID]!): GiftCardBulkActivate
- giftCardBulkDeactivate(ids: [ID]!): GiftCardBulkDeactivate
- pluginUpdate(channelId: ID, id: ID!, input: PluginUpdateInput!): PluginUpdate
- externalNotificationTrigger(channel: String!, input: ExternalNotificationTriggerInput!, pluginId: String): ExternalNotificationTrigger
- saleCreate(input: SaleInput!): SaleCreate
- saleDelete(id: ID!): SaleDelete
- saleBulkDelete(ids: [ID]!): SaleBulkDelete
- saleUpdate(id: ID!, input: SaleInput!): SaleUpdate
- saleCataloguesAdd(id: ID!, input: CatalogueInput!): SaleAddCatalogues
- saleCataloguesRemove(id: ID!, input: CatalogueInput!): SaleRemoveCatalogues
- saleTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): SaleTranslate
- saleChannelListingUpdate(id: ID!, input: SaleChannelListingInput!): SaleChannelListingUpdate
- voucherCreate(input: VoucherInput!): VoucherCreate
- voucherDelete(id: ID!): VoucherDelete
- voucherBulkDelete(ids: [ID]!): VoucherBulkDelete
- voucherUpdate(id: ID!, input: VoucherInput!): VoucherUpdate
- voucherCataloguesAdd(id: ID!, input: CatalogueInput!): VoucherAddCatalogues
- voucherCataloguesRemove(id: ID!, input: CatalogueInput!): VoucherRemoveCatalogues
- voucherTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): VoucherTranslate
- voucherChannelListingUpdate(id: ID!, input: VoucherChannelListingInput!): VoucherChannelListingUpdate
- exportProducts(input: ExportProductsInput!): ExportProducts
- exportGiftCards(input: ExportGiftCardsInput!): ExportGiftCards
- fileUpload(file: Upload!): FileUpload
- checkoutAddPromoCode(checkoutId: ID, promoCode: String!, token: UUID): CheckoutAddPromoCode
- checkoutBillingAddressUpdate(billingAddress: AddressInput!, checkoutId: ID, token: UUID): CheckoutBillingAddressUpdate
- checkoutComplete(checkoutId: ID, paymentData: JSONString, redirectUrl: String, storeSource: Boolean = false, token: UUID): CheckoutComplete
- checkoutCreate(input: CheckoutCreateInput!): CheckoutCreate
- checkoutCustomerAttach(checkoutId: ID, customerId: ID, token: UUID): CheckoutCustomerAttach
- checkoutCustomerDetach(checkoutId: ID, token: UUID): CheckoutCustomerDetach
- checkoutEmailUpdate(checkoutId: ID, email: String!, token: UUID): CheckoutEmailUpdate
- checkoutLineDelete(checkoutId: ID, lineId: ID, token: UUID): CheckoutLineDelete @deprecated(reason: "DEPRECATED: Will be removed in Saleor 4.0. Use `checkoutLinesDelete` instead.")
- checkoutLinesDelete(linesIds: [ID]!, token: UUID!): CheckoutLinesDelete
- checkoutLinesAdd(checkoutId: ID, lines: [CheckoutLineInput]!, token: UUID): CheckoutLinesAdd
- checkoutLinesUpdate(checkoutId: ID, lines: [CheckoutLineInput]!, token: UUID): CheckoutLinesUpdate
- checkoutRemovePromoCode(checkoutId: ID, promoCode: String, promoCodeId: ID, token: UUID): CheckoutRemovePromoCode
- checkoutPaymentCreate(checkoutId: ID, input: PaymentInput!, token: UUID): CheckoutPaymentCreate
- checkoutShippingAddressUpdate(checkoutId: ID, shippingAddress: AddressInput!, token: UUID): CheckoutShippingAddressUpdate
- checkoutShippingMethodUpdate(checkoutId: ID, shippingMethodId: ID!, token: UUID): CheckoutShippingMethodUpdate @deprecated(reason: "This field will be removed in Saleor 4.0. Use `checkoutDeliveryMethodUpdate` instead.")
- checkoutDeliveryMethodUpdate(deliveryMethodId: ID, token: UUID): CheckoutDeliveryMethodUpdate
- checkoutLanguageCodeUpdate(checkoutId: ID, languageCode: LanguageCodeEnum!, token: UUID): CheckoutLanguageCodeUpdate
- channelCreate(input: ChannelCreateInput!): ChannelCreate
- channelUpdate(id: ID!, input: ChannelUpdateInput!): ChannelUpdate
- channelDelete(id: ID!, input: ChannelDeleteInput): ChannelDelete
- channelActivate(id: ID!): ChannelActivate
- channelDeactivate(id: ID!): ChannelDeactivate
- attributeCreate(input: AttributeCreateInput!): AttributeCreate
- attributeDelete(id: ID!): AttributeDelete
- attributeUpdate(id: ID!, input: AttributeUpdateInput!): AttributeUpdate
- attributeTranslate(id: ID!, input: NameTranslationInput!, languageCode: LanguageCodeEnum!): AttributeTranslate
- attributeBulkDelete(ids: [ID]!): AttributeBulkDelete
- attributeValueBulkDelete(ids: [ID]!): AttributeValueBulkDelete
- attributeValueCreate(attribute: ID!, input: AttributeValueCreateInput!): AttributeValueCreate
- attributeValueDelete(id: ID!): AttributeValueDelete
- attributeValueUpdate(id: ID!, input: AttributeValueUpdateInput!): AttributeValueUpdate
- attributeValueTranslate(id: ID!, input: AttributeValueTranslationInput!, languageCode: LanguageCodeEnum!): AttributeValueTranslate
- attributeReorderValues(attributeId: ID!, moves: [ReorderInput]!): AttributeReorderValues
- appCreate(input: AppInput!): AppCreate
- appUpdate(id: ID!, input: AppInput!): AppUpdate
- appDelete(id: ID!): AppDelete
- appTokenCreate(input: AppTokenInput!): AppTokenCreate
- appTokenDelete(id: ID!): AppTokenDelete
- appTokenVerify(token: String!): AppTokenVerify
- appInstall(input: AppInstallInput!): AppInstall
- appRetryInstall(activateAfterInstallation: Boolean = true, id: ID!): AppRetryInstall
- appDeleteFailedInstallation(id: ID!): AppDeleteFailedInstallation
- appFetchManifest(manifestUrl: String!): AppFetchManifest
- appActivate(id: ID!): AppActivate
- appDeactivate(id: ID!): AppDeactivate
- tokenCreate(email: String!, password: String!): CreateToken
- tokenRefresh(csrfToken: String, refreshToken: String): RefreshToken
- tokenVerify(token: String!): VerifyToken
- tokensDeactivateAll: DeactivateAllUserTokens
- externalAuthenticationUrl(input: JSONString!, pluginId: String!): ExternalAuthenticationUrl
- externalObtainAccessTokens(input: JSONString!, pluginId: String!): ExternalObtainAccessTokens
- externalRefresh(input: JSONString!, pluginId: String!): ExternalRefresh
- externalLogout(input: JSONString!, pluginId: String!): ExternalLogout
- externalVerify(input: JSONString!, pluginId: String!): ExternalVerify
- requestPasswordReset(channel: String, email: String!, redirectUrl: String!): RequestPasswordReset
- confirmAccount(email: String!, token: String!): ConfirmAccount
- setPassword(email: String!, password: String!, token: String!): SetPassword
- passwordChange(newPassword: String!, oldPassword: String!): PasswordChange
- requestEmailChange(channel: String, newEmail: String!, password: String!, redirectUrl: String!): RequestEmailChange
- confirmEmailChange(channel: String, token: String!): ConfirmEmailChange
- accountAddressCreate(input: AddressInput!, type: AddressTypeEnum): AccountAddressCreate
- accountAddressUpdate(id: ID!, input: AddressInput!): AccountAddressUpdate
- accountAddressDelete(id: ID!): AccountAddressDelete
- accountSetDefaultAddress(id: ID!, type: AddressTypeEnum!): AccountSetDefaultAddress
- accountRegister(input: AccountRegisterInput!): AccountRegister
- accountUpdate(input: AccountInput!): AccountUpdate
- accountRequestDeletion(channel: String, redirectUrl: String!): AccountRequestDeletion
- accountDelete(token: String!): AccountDelete
- addressCreate(input: AddressInput!, userId: ID!): AddressCreate
- addressUpdate(id: ID!, input: AddressInput!): AddressUpdate
- addressDelete(id: ID!): AddressDelete
- addressSetDefault(addressId: ID!, type: AddressTypeEnum!, userId: ID!): AddressSetDefault
- customerCreate(input: UserCreateInput!): CustomerCreate
- customerUpdate(id: ID!, input: CustomerInput!): CustomerUpdate
- customerDelete(id: ID!): CustomerDelete
- customerBulkDelete(ids: [ID]!): CustomerBulkDelete
- staffCreate(input: StaffCreateInput!): StaffCreate
- staffUpdate(id: ID!, input: StaffUpdateInput!): StaffUpdate
- staffDelete(id: ID!): StaffDelete
- staffBulkDelete(ids: [ID]!): StaffBulkDelete
- userAvatarUpdate(image: Upload!): UserAvatarUpdate
- userAvatarDelete: UserAvatarDelete
- userBulkSetActive(ids: [ID]!, isActive: Boolean!): UserBulkSetActive
- permissionGroupCreate(input: PermissionGroupCreateInput!): PermissionGroupCreate
- permissionGroupUpdate(id: ID!, input: PermissionGroupUpdateInput!): PermissionGroupUpdate
- permissionGroupDelete(id: ID!): PermissionGroupDelete
-}
+ """
+ Determines for how many days a download link is active since it was generated.
+ """
+ urlValidDays: Int
-input NameTranslationInput {
- name: String
+ """Overwrite default automatic_fulfillment setting for variant."""
+ automaticFulfillment: Boolean
}
-enum NavigationType {
- MAIN
- SECONDARY
+"""Generate new URL to digital content."""
+type DigitalContentUrlCreate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ digitalContentUrl: DigitalContentUrl
}
-interface Node {
- id: ID!
+input DigitalContentUrlCreateInput {
+ """Digital content ID which URL will belong to."""
+ content: ID!
}
-interface ObjectWithMetadata {
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
+"""Creates a new variant for a product."""
+type ProductVariantCreate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ productVariant: ProductVariant
}
-type Order implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- created: DateTime!
- updatedAt: DateTime!
- status: OrderStatus!
- user: User
- trackingClientId: String!
- billingAddress: Address
- shippingAddress: Address
- shippingMethodName: String
- collectionPointName: String
- channel: Channel!
- fulfillments: [Fulfillment]!
- lines: [OrderLine]!
- actions: [OrderAction]!
- availableShippingMethods: [ShippingMethod] @deprecated(reason: "Use `shippingMethods`, this field will be removed in 4.0")
- shippingMethods: [ShippingMethod]
- availableCollectionPoints: [Warehouse!]!
- invoices: [Invoice]
- number: String
- original: ID
- origin: OrderOriginEnum!
- isPaid: Boolean!
- paymentStatus: PaymentChargeStatusEnum!
- paymentStatusDisplay: String!
- payments: [Payment]
- total: TaxedMoney!
- undiscountedTotal: TaxedMoney!
- shippingMethod: ShippingMethod @deprecated(reason: "This field will be removed in Saleor 4.0. Use `deliveryMethod` instead.")
- shippingPrice: TaxedMoney!
- shippingTaxRate: Float!
- token: String!
- voucher: Voucher
- giftCards: [GiftCard]
- displayGrossPrices: Boolean!
- customerNote: String!
- weight: Weight
- redirectUrl: String
- subtotal: TaxedMoney!
- statusDisplay: String
- canFinalize: Boolean!
- totalAuthorized: Money!
- totalCaptured: Money!
- events: [OrderEvent]
- totalBalance: Money!
- userEmail: String
- isShippingRequired: Boolean!
- deliveryMethod: DeliveryMethod
- languageCode: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. ")
- languageCodeEnum: LanguageCodeEnum!
- discount: Money @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.")
- discountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.")
- translatedDiscountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead. ")
- discounts: [OrderDiscount!]
- errors: [OrderError!]!
+input ProductVariantCreateInput {
+ """List of attributes specific to this variant."""
+ attributes: [AttributeValueInput!]!
+
+ """Stock keeping unit."""
+ sku: String
+
+ """
+ Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item.
+ """
+ trackInventory: Boolean
+
+ """Weight of the Product Variant."""
+ weight: WeightScalar
+
+ """
+ New in Saleor 3.1. Determines if variant is in preorder. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ preorder: PreorderSettingsInput
+
+ """
+ New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ quantityLimitPerCustomer: Int
+
+ """Product ID of which type is the variant."""
+ product: ID!
+
+ """Stocks of a product available for sale."""
+ stocks: [StockInput!]
}
-enum OrderAction {
- CAPTURE
- MARK_AS_PAID
- REFUND
- VOID
+input PreorderSettingsInput {
+ """The global threshold for preorder variant."""
+ globalThreshold: Int
+
+ """The end date for preorder."""
+ endDate: DateTime
}
-type OrderAddNote {
- order: Order
- event: OrderEvent
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+input StockInput {
+ """Warehouse in which stock is located."""
+ warehouse: ID!
+
+ """Quantity of items available for sell."""
+ quantity: Int!
}
-input OrderAddNoteInput {
- message: String!
+"""Deletes a product variant."""
+type ProductVariantDelete {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ productVariant: ProductVariant
}
-type OrderBulkCancel {
+"""Creates product variants for a given product."""
+type ProductVariantBulkCreate {
+ """Returns how many objects were created."""
count: Int!
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
-}
-type OrderCancel {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+ """List of the created variants."""
+ productVariants: [ProductVariant!]!
+ bulkProductErrors: [BulkProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [BulkProductError!]!
}
-type OrderCapture {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+type BulkProductError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ProductErrorCode!
+
+ """List of attributes IDs which causes the error."""
+ attributes: [ID!]
+
+ """List of attribute values IDs which causes the error."""
+ values: [ID!]
+
+ """Index of an input list item that caused the error."""
+ index: Int
+
+ """List of warehouse IDs which causes the error."""
+ warehouses: [ID!]
+
+ """List of channel IDs which causes the error."""
+ channels: [ID!]
}
-type OrderConfirm {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+input ProductVariantBulkCreateInput {
+ """List of attributes specific to this variant."""
+ attributes: [BulkAttributeValueInput!]!
+
+ """Stock keeping unit."""
+ sku: String
+
+ """
+ Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item.
+ """
+ trackInventory: Boolean
+
+ """Weight of the Product Variant."""
+ weight: WeightScalar
+
+ """
+ New in Saleor 3.1. Determines if variant is in preorder. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ preorder: PreorderSettingsInput
+
+ """
+ New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ quantityLimitPerCustomer: Int
+
+ """Stocks of a product available for sale."""
+ stocks: [StockInput!]
+
+ """List of prices assigned to channels."""
+ channelListings: [ProductVariantChannelListingAddInput!]
}
-type OrderCountableConnection {
- pageInfo: PageInfo!
- edges: [OrderCountableEdge!]!
- totalCount: Int
-}
+input BulkAttributeValueInput {
+ """ID of the selected attribute."""
+ id: ID
-type OrderCountableEdge {
- node: Order!
- cursor: String!
-}
+ """
+ The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.
+ """
+ values: [String!]
-enum OrderDirection {
- ASC
- DESC
+ """
+ The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created.
+ """
+ boolean: Boolean
}
-type OrderDiscount implements Node {
- id: ID!
- type: OrderDiscountType!
- name: String
- translatedName: String
- valueType: DiscountValueTypeEnum!
- value: PositiveDecimal!
- reason: String
- amount: Money!
-}
+input ProductVariantChannelListingAddInput {
+ """ID of a channel."""
+ channelId: ID!
-type OrderDiscountAdd {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
-}
+ """Price of the particular variant in channel."""
+ price: PositiveDecimal!
-input OrderDiscountCommonInput {
- valueType: DiscountValueTypeEnum!
- value: PositiveDecimal!
- reason: String
+ """Cost price of the variant in channel."""
+ costPrice: PositiveDecimal
+
+ """
+ New in Saleor 3.1. The threshold for preorder variant in channel. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ preorderThreshold: Int
}
-type OrderDiscountDelete {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""Deletes product variants."""
+type ProductVariantBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-enum OrderDiscountType {
- VOUCHER
- MANUAL
+"""Creates stocks for product variant."""
+type ProductVariantStocksCreate {
+ """Updated product variant."""
+ productVariant: ProductVariant
+ bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [BulkStockError!]!
}
-type OrderDiscountUpdate {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+type BulkStockError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ProductErrorCode!
+
+ """List of attributes IDs which causes the error."""
+ attributes: [ID!]
+
+ """List of attribute values IDs which causes the error."""
+ values: [ID!]
+
+ """Index of an input list item that caused the error."""
+ index: Int
}
-input OrderDraftFilterInput {
- customer: String
- created: DateRangeInput
- search: String
- metadata: [MetadataFilter]
- channels: [ID]
+"""Delete stocks from product variant."""
+type ProductVariantStocksDelete {
+ """Updated product variant."""
+ productVariant: ProductVariant
+ stockErrors: [StockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [StockError!]!
}
-type OrderError {
+type StockError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: OrderErrorCode!
- warehouse: ID
- orderLines: [ID!]
- variants: [ID!]
- addressType: AddressTypeEnum
+
+ """The error code."""
+ code: StockErrorCode!
}
-enum OrderErrorCode {
- BILLING_ADDRESS_NOT_SET
- CANNOT_CANCEL_FULFILLMENT
- CANNOT_CANCEL_ORDER
- CANNOT_DELETE
- CANNOT_DISCOUNT
- CANNOT_REFUND
- CANNOT_FULFILL_UNPAID_ORDER
- CAPTURE_INACTIVE_PAYMENT
- GIFT_CARD_LINE
- NOT_EDITABLE
- FULFILL_ORDER_LINE
+"""An enumeration."""
+enum StockErrorCode {
+ ALREADY_EXISTS
GRAPHQL_ERROR
INVALID
- PRODUCT_NOT_PUBLISHED
- PRODUCT_UNAVAILABLE_FOR_PURCHASE
NOT_FOUND
- ORDER_NO_SHIPPING_ADDRESS
- PAYMENT_ERROR
- PAYMENT_MISSING
REQUIRED
- SHIPPING_METHOD_NOT_APPLICABLE
- SHIPPING_METHOD_REQUIRED
- TAX_ERROR
UNIQUE
- VOID_INACTIVE_PAYMENT
- ZERO_QUANTITY
- INVALID_QUANTITY
- INSUFFICIENT_STOCK
- DUPLICATED_INPUT_ITEM
- NOT_AVAILABLE_IN_CHANNEL
- CHANNEL_INACTIVE
-}
-
-type OrderEvent implements Node {
- id: ID!
- date: DateTime
- type: OrderEventsEnum
- user: User
- app: App
- message: String
- email: String
- emailType: OrderEventsEmailsEnum
- amount: Float
- paymentId: String
- paymentGateway: String
- quantity: Int
- composedId: String
- orderNumber: String
- invoiceNumber: String
- oversoldItems: [String]
- lines: [OrderEventOrderLineObject]
- fulfilledItems: [FulfillmentLine]
- warehouse: Warehouse
- transactionReference: String
- shippingCostsIncluded: Boolean
- relatedOrder: Order
- discount: OrderEventDiscountObject
-}
-
-type OrderEventCountableConnection {
- pageInfo: PageInfo!
- edges: [OrderEventCountableEdge!]!
- totalCount: Int
-}
-
-type OrderEventCountableEdge {
- node: OrderEvent!
- cursor: String!
-}
-
-type OrderEventDiscountObject {
- valueType: DiscountValueTypeEnum!
- value: PositiveDecimal!
- reason: String
- amount: Money
- oldValueType: DiscountValueTypeEnum
- oldValue: PositiveDecimal
- oldAmount: Money
-}
-
-type OrderEventOrderLineObject {
- quantity: Int
- orderLine: OrderLine
- itemName: String
- discount: OrderEventDiscountObject
}
-enum OrderEventsEmailsEnum {
- PAYMENT_CONFIRMATION
- CONFIRMED
- SHIPPING_CONFIRMATION
- TRACKING_UPDATED
- ORDER_CONFIRMATION
- ORDER_CANCEL
- ORDER_REFUND
- FULFILLMENT_CONFIRMATION
- DIGITAL_LINKS
+"""Update stocks for product variant."""
+type ProductVariantStocksUpdate {
+ """Updated product variant."""
+ productVariant: ProductVariant
+ bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [BulkStockError!]!
}
-enum OrderEventsEnum {
- DRAFT_CREATED
- DRAFT_CREATED_FROM_REPLACE
- ADDED_PRODUCTS
- REMOVED_PRODUCTS
- PLACED
- PLACED_FROM_DRAFT
- OVERSOLD_ITEMS
- CANCELED
- ORDER_MARKED_AS_PAID
- ORDER_FULLY_PAID
- ORDER_REPLACEMENT_CREATED
- ORDER_DISCOUNT_ADDED
- ORDER_DISCOUNT_AUTOMATICALLY_UPDATED
- ORDER_DISCOUNT_UPDATED
- ORDER_DISCOUNT_DELETED
- ORDER_LINE_DISCOUNT_UPDATED
- ORDER_LINE_DISCOUNT_REMOVED
- ORDER_LINE_PRODUCT_DELETED
- ORDER_LINE_VARIANT_DELETED
- UPDATED_ADDRESS
- EMAIL_SENT
- CONFIRMED
- PAYMENT_AUTHORIZED
- PAYMENT_CAPTURED
- EXTERNAL_SERVICE_NOTIFICATION
- PAYMENT_REFUNDED
- PAYMENT_VOIDED
- PAYMENT_FAILED
- INVOICE_REQUESTED
- INVOICE_GENERATED
- INVOICE_UPDATED
- INVOICE_SENT
- FULFILLMENT_CANCELED
- FULFILLMENT_RESTOCKED_ITEMS
- FULFILLMENT_FULFILLED_ITEMS
- FULFILLMENT_REFUNDED
- FULFILLMENT_RETURNED
- FULFILLMENT_REPLACED
- FULFILLMENT_AWAITS_APPROVAL
- TRACKING_UPDATED
- NOTE_ADDED
- OTHER
+"""Updates an existing variant for product."""
+type ProductVariantUpdate {
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
+ productVariant: ProductVariant
}
-input OrderFilterInput {
- paymentStatus: [PaymentChargeStatusEnum]
- status: [OrderStatusFilter]
- customer: String
- created: DateRangeInput
- search: String
- metadata: [MetadataFilter]
- channels: [ID]
- updatedAt: DateTimeRangeInput
- isClickAndCollect: Boolean
- isPreorder: Boolean
- ids: [ID]
- giftCardUsed: Boolean
- giftCardBought: Boolean
-}
+input ProductVariantInput {
+ """List of attributes specific to this variant."""
+ attributes: [AttributeValueInput!]
-type OrderFulfill {
- fulfillments: [Fulfillment]
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+ """Stock keeping unit."""
+ sku: String
+
+ """
+ Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item.
+ """
+ trackInventory: Boolean
+
+ """Weight of the Product Variant."""
+ weight: WeightScalar
+
+ """
+ New in Saleor 3.1. Determines if variant is in preorder. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ preorder: PreorderSettingsInput
+
+ """
+ New in Saleor 3.1. Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ quantityLimitPerCustomer: Int
}
-input OrderFulfillInput {
- lines: [OrderFulfillLineInput!]!
- notifyCustomer: Boolean
- allowStockToBeExceeded: Boolean = false
+"""
+Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook.
+"""
+type ProductVariantSetDefault {
+ product: Product
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-input OrderFulfillLineInput {
- orderLineId: ID
- stocks: [OrderFulfillStockInput!]!
+"""Creates/updates translations for a product variant."""
+type ProductVariantTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ productVariant: ProductVariant
}
-input OrderFulfillStockInput {
- quantity: Int!
- warehouse: ID!
+input NameTranslationInput {
+ name: String
}
-type OrderLine implements Node {
- id: ID!
- productName: String!
- variantName: String!
- productSku: String
- productVariantId: String
- isShippingRequired: Boolean!
- quantity: Int!
- quantityFulfilled: Int!
- unitDiscountReason: String
- taxRate: Float!
- digitalContentUrl: DigitalContentUrl
- thumbnail(size: Int): Image
- unitPrice: TaxedMoney!
- undiscountedUnitPrice: TaxedMoney!
- unitDiscount: Money!
- unitDiscountValue: PositiveDecimal!
- totalPrice: TaxedMoney!
+"""Manage product variant prices in channels."""
+type ProductVariantChannelListingUpdate {
+ """An updated product variant instance."""
variant: ProductVariant
- translatedProductName: String!
- translatedVariantName: String!
- allocations: [Allocation!]
- quantityToFulfill: Int!
- unitDiscountType: DiscountValueTypeEnum
+ productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductChannelListingError!]!
}
-input OrderLineCreateInput {
- quantity: Int!
- variantId: ID!
+"""Reorder product variant attribute values."""
+type ProductVariantReorderAttributeValues {
+ """Product variant from which attribute values are reordered."""
+ productVariant: ProductVariant
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type OrderLineDelete {
- order: Order
- orderLine: OrderLine
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""
+New in Saleor 3.1. Deactivates product variant preorder. It changes all preorder allocation into regular allocation. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type ProductVariantPreorderDeactivate {
+ """Product variant with ended preorder."""
+ productVariant: ProductVariant
+ errors: [ProductError!]!
}
-type OrderLineDiscountRemove {
- orderLine: OrderLine
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""Assign an media to a product variant."""
+type VariantMediaAssign {
+ productVariant: ProductVariant
+ media: ProductMedia
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-type OrderLineDiscountUpdate {
- orderLine: OrderLine
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""Unassign an media from a product variant."""
+type VariantMediaUnassign {
+ productVariant: ProductVariant
+ media: ProductMedia
+ productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ProductError!]!
}
-input OrderLineInput {
- quantity: Int!
+"""Captures the authorized payment amount."""
+type PaymentCapture {
+ """Updated payment."""
+ payment: Payment
+ paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PaymentError!]!
}
-type OrderLineUpdate {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
- orderLine: OrderLine
+type PaymentError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: PaymentErrorCode!
+
+ """List of varint IDs which causes the error."""
+ variants: [ID!]
}
-type OrderLinesCreate {
- order: Order
- orderLines: [OrderLine!]
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""An enumeration."""
+enum PaymentErrorCode {
+ BILLING_ADDRESS_NOT_SET
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+ PARTIAL_PAYMENT_NOT_ALLOWED
+ SHIPPING_ADDRESS_NOT_SET
+ INVALID_SHIPPING_METHOD
+ SHIPPING_METHOD_NOT_SET
+ PAYMENT_ERROR
+ NOT_SUPPORTED_GATEWAY
+ CHANNEL_INACTIVE
+ BALANCE_CHECK_ERROR
+ CHECKOUT_EMAIL_NOT_SET
+ UNAVAILABLE_VARIANT_IN_CHANNEL
+ NO_CHECKOUT_LINES
}
-type OrderMarkAsPaid {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""Refunds the captured payment amount."""
+type PaymentRefund {
+ """Updated payment."""
+ payment: Payment
+ paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PaymentError!]!
}
-enum OrderOriginEnum {
- CHECKOUT
- DRAFT
- REISSUE
+"""Voids the authorized payment."""
+type PaymentVoid {
+ """Updated payment."""
+ payment: Payment
+ paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PaymentError!]!
}
-type OrderRefund {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""Initializes payment process when it is required by gateway."""
+type PaymentInitialize {
+ initializedPayment: PaymentInitialized
+ paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PaymentError!]!
}
-input OrderRefundFulfillmentLineInput {
- fulfillmentLineId: ID!
- quantity: Int!
+"""
+Server-side data generated by a payment gateway. Optional step when the payment provider requires an additional action to initialize payment session.
+"""
+type PaymentInitialized {
+ """ID of a payment gateway."""
+ gateway: String!
+
+ """Payment gateway name."""
+ name: String!
+
+ """Initialized data by gateway."""
+ data: JSONString
}
-input OrderRefundLineInput {
- orderLineId: ID!
- quantity: Int!
+"""Check payment balance."""
+type PaymentCheckBalance {
+ """Response from the gateway."""
+ data: JSONString
+ paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PaymentError!]!
}
-input OrderRefundProductsInput {
- orderLines: [OrderRefundLineInput!]
- fulfillmentLines: [OrderRefundFulfillmentLineInput!]
- amountToRefund: PositiveDecimal
- includeShippingCosts: Boolean = false
+input PaymentCheckBalanceInput {
+ """An ID of a payment gateway to check."""
+ gatewayId: String!
+
+ """Payment method name."""
+ method: String!
+
+ """Slug of a channel for which the data should be returned."""
+ channel: String!
+
+ """Information about card."""
+ card: CardInput!
}
-input OrderReturnFulfillmentLineInput {
- fulfillmentLineId: ID!
- quantity: Int!
- replace: Boolean = false
+input CardInput {
+ """
+ Payment method nonce, a token returned by the appropriate provider's SDK.
+ """
+ code: String!
+
+ """Card security code."""
+ cvc: String
+
+ """Information about currency and amount."""
+ money: MoneyInput!
}
-input OrderReturnLineInput {
- orderLineId: ID!
- quantity: Int!
- replace: Boolean = false
+input MoneyInput {
+ """Currency code."""
+ currency: String!
+
+ """Amount of money."""
+ amount: PositiveDecimal!
}
-input OrderReturnProductsInput {
- orderLines: [OrderReturnLineInput!]
- fulfillmentLines: [OrderReturnFulfillmentLineInput!]
- amountToRefund: PositiveDecimal
- includeShippingCosts: Boolean = false
- refund: Boolean = false
+"""Creates a new page."""
+type PageCreate {
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
+ page: Page
}
-type OrderSettings {
- automaticallyConfirmAllNewOrders: Boolean!
- automaticallyFulfillNonShippableGiftCard: Boolean!
+type PageError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: PageErrorCode!
+
+ """List of attributes IDs which causes the error."""
+ attributes: [ID!]
+
+ """List of attribute values IDs which causes the error."""
+ values: [ID!]
+}
+
+"""An enumeration."""
+enum PageErrorCode {
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+ DUPLICATED_INPUT_ITEM
+ ATTRIBUTE_ALREADY_ASSIGNED
}
-type OrderSettingsError {
- field: String
- message: String
- code: OrderSettingsErrorCode!
+input PageCreateInput {
+ """Page internal name."""
+ slug: String
+
+ """Page title."""
+ title: String
+
+ """Page content in JSON format."""
+ content: JSONString
+
+ """List of attributes."""
+ attributes: [AttributeValueInput!]
+
+ """Determines if page is visible in the storefront."""
+ isPublished: Boolean
+
+ """Publication date. ISO 8601 standard."""
+ publicationDate: String
+
+ """Search engine optimization fields."""
+ seo: SeoInput
+
+ """ID of the page type that page belongs to."""
+ pageType: ID!
}
-enum OrderSettingsErrorCode {
- INVALID
+"""Deletes a page."""
+type PageDelete {
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
+ page: Page
}
-type OrderSettingsUpdate {
- orderSettings: OrderSettings
- orderSettingsErrors: [OrderSettingsError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderSettingsError!]!
+"""Deletes pages."""
+type PageBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
}
-input OrderSettingsUpdateInput {
- automaticallyConfirmAllNewOrders: Boolean
- automaticallyFulfillNonShippableGiftCard: Boolean
+"""Publish pages."""
+type PageBulkPublish {
+ """Returns how many objects were affected."""
+ count: Int!
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
}
-enum OrderSortField {
- NUMBER
- CREATION_DATE
- CREATED_AT
- LAST_MODIFIED_AT
- CUSTOMER
- PAYMENT
- FULFILLMENT_STATUS
+"""Updates an existing page."""
+type PageUpdate {
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
+ page: Page
}
-input OrderSortingInput {
- direction: OrderDirection!
- field: OrderSortField!
+input PageInput {
+ """Page internal name."""
+ slug: String
+
+ """Page title."""
+ title: String
+
+ """Page content in JSON format."""
+ content: JSONString
+
+ """List of attributes."""
+ attributes: [AttributeValueInput!]
+
+ """Determines if page is visible in the storefront."""
+ isPublished: Boolean
+
+ """Publication date. ISO 8601 standard."""
+ publicationDate: String
+
+ """Search engine optimization fields."""
+ seo: SeoInput
}
-enum OrderStatus {
- DRAFT
- UNCONFIRMED
- UNFULFILLED
- PARTIALLY_FULFILLED
- PARTIALLY_RETURNED
- RETURNED
- FULFILLED
- CANCELED
+"""Creates/updates translations for a page."""
+type PageTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ page: PageTranslatableContent
}
-enum OrderStatusFilter {
- READY_TO_FULFILL
- READY_TO_CAPTURE
- UNFULFILLED
- UNCONFIRMED
- PARTIALLY_FULFILLED
- FULFILLED
- CANCELED
+input PageTranslationInput {
+ seoTitle: String
+ seoDescription: String
+ title: String
+ content: JSONString
}
-type OrderUpdate {
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
- order: Order
+"""Create a new page type."""
+type PageTypeCreate {
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
+ pageType: PageType
}
-input OrderUpdateInput {
- billingAddress: AddressInput
- userEmail: String
- shippingAddress: AddressInput
+input PageTypeCreateInput {
+ """Name of the page type."""
+ name: String
+
+ """Page type slug."""
+ slug: String
+
+ """List of attribute IDs to be assigned to the page type."""
+ addAttributes: [ID!]
}
-type OrderUpdateShipping {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""Update page type."""
+type PageTypeUpdate {
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
+ pageType: PageType
}
-input OrderUpdateShippingInput {
- shippingMethod: ID
+input PageTypeUpdateInput {
+ """Name of the page type."""
+ name: String
+
+ """Page type slug."""
+ slug: String
+
+ """List of attribute IDs to be assigned to the page type."""
+ addAttributes: [ID!]
+
+ """List of attribute IDs to be assigned to the page type."""
+ removeAttributes: [ID!]
}
-type OrderVoid {
- order: Order
- orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [OrderError!]!
+"""Delete a page type."""
+type PageTypeDelete {
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
+ pageType: PageType
}
-type Page implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- seoTitle: String
- seoDescription: String
- title: String!
- content: JSONString
- publicationDate: Date
- isPublished: Boolean!
- slug: String!
- pageType: PageType!
- created: DateTime!
- contentJson: JSONString! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.")
- translation(languageCode: LanguageCodeEnum!): PageTranslation
- attributes: [SelectedAttribute!]!
+"""Delete page types."""
+type PageTypeBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PageError!]!
}
+"""Assign attributes to a given page type."""
type PageAttributeAssign {
+ """The updated page type."""
pageType: PageType
pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [PageError!]!
}
+"""Unassign attributes from a given page type."""
type PageAttributeUnassign {
+ """The updated page type."""
pageType: PageType
pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [PageError!]!
}
-type PageBulkDelete {
- count: Int!
+"""Reorder the attributes of a page type."""
+type PageTypeReorderAttributes {
+ """Page type from which attributes are reordered."""
+ pageType: PageType
pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [PageError!]!
}
-type PageBulkPublish {
- count: Int!
+"""Reorder page attribute values."""
+type PageReorderAttributeValues {
+ """Page from which attribute values are reordered."""
+ page: Page
pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [PageError!]!
}
-type PageCountableConnection {
- pageInfo: PageInfo!
- edges: [PageCountableEdge!]!
- totalCount: Int
+"""Completes creating an order."""
+type DraftOrderComplete {
+ """Completed order."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PageCountableEdge {
- node: Page!
- cursor: String!
+"""Creates a new draft order."""
+type DraftOrderCreate {
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
+ order: Order
}
-type PageCreate {
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
- page: Page
+input DraftOrderCreateInput {
+ """Billing address of the customer."""
+ billingAddress: AddressInput
+
+ """Customer associated with the draft order."""
+ user: ID
+
+ """Email address of the customer."""
+ userEmail: String
+
+ """Discount amount for the order."""
+ discount: PositiveDecimal
+
+ """Shipping address of the customer."""
+ shippingAddress: AddressInput
+
+ """ID of a selected shipping method."""
+ shippingMethod: ID
+
+ """ID of the voucher associated with the order."""
+ voucher: ID
+
+ """A note from a customer. Visible by customers in the order summary."""
+ customerNote: String
+
+ """ID of the channel associated with the order."""
+ channelId: ID
+
+ """
+ URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.
+ """
+ redirectUrl: String
+
+ """Variant line input consisting of variant ID and quantity of products."""
+ lines: [OrderLineCreateInput]
}
-input PageCreateInput {
- slug: String
- title: String
- content: JSONString
- attributes: [AttributeValueInput!]
- isPublished: Boolean
- publicationDate: String
- seo: SeoInput
- pageType: ID!
+input OrderLineCreateInput {
+ """Number of variant items ordered."""
+ quantity: Int!
+
+ """Product variant ID."""
+ variantId: ID!
}
-type PageDelete {
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
- page: Page
+"""Deletes a draft order."""
+type DraftOrderDelete {
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
+ order: Order
}
-type PageError {
- field: String
- message: String
- code: PageErrorCode!
- attributes: [ID!]
- values: [ID!]
+"""Deletes draft orders."""
+type DraftOrderBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-enum PageErrorCode {
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- UNIQUE
- DUPLICATED_INPUT_ITEM
- ATTRIBUTE_ALREADY_ASSIGNED
+"""Deletes order lines."""
+type DraftOrderLinesBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
+}
+
+"""Updates a draft order."""
+type DraftOrderUpdate {
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
+ order: Order
}
-input PageFilterInput {
- search: String
- metadata: [MetadataFilter]
- pageTypes: [ID]
- ids: [ID]
-}
+input DraftOrderInput {
+ """Billing address of the customer."""
+ billingAddress: AddressInput
+
+ """Customer associated with the draft order."""
+ user: ID
+
+ """Email address of the customer."""
+ userEmail: String
+
+ """Discount amount for the order."""
+ discount: PositiveDecimal
+
+ """Shipping address of the customer."""
+ shippingAddress: AddressInput
+
+ """ID of a selected shipping method."""
+ shippingMethod: ID
+
+ """ID of the voucher associated with the order."""
+ voucher: ID
-type PageInfo {
- hasNextPage: Boolean!
- hasPreviousPage: Boolean!
- startCursor: String
- endCursor: String
-}
+ """A note from a customer. Visible by customers in the order summary."""
+ customerNote: String
-input PageInput {
- slug: String
- title: String
- content: JSONString
- attributes: [AttributeValueInput!]
- isPublished: Boolean
- publicationDate: String
- seo: SeoInput
-}
+ """ID of the channel associated with the order."""
+ channelId: ID
-type PageReorderAttributeValues {
- page: Page
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
+ """
+ URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.
+ """
+ redirectUrl: String
}
-enum PageSortField {
- TITLE
- SLUG
- VISIBILITY
- CREATION_DATE
- PUBLICATION_DATE
-}
+"""Adds note to the order."""
+type OrderAddNote {
+ """Order with the note added."""
+ order: Order
-input PageSortingInput {
- direction: OrderDirection!
- field: PageSortField!
+ """Order note created."""
+ event: OrderEvent
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PageTranslatableContent implements Node {
- id: ID!
- seoTitle: String
- seoDescription: String
- title: String!
- content: JSONString
- contentJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.")
- translation(languageCode: LanguageCodeEnum!): PageTranslation
- page: Page @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
- attributeValues: [AttributeValueTranslatableContent!]!
+input OrderAddNoteInput {
+ """Note message."""
+ message: String!
}
-type PageTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- page: PageTranslatableContent
+"""Cancel an order."""
+type OrderCancel {
+ """Canceled order."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PageTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- seoTitle: String
- seoDescription: String
- title: String
- content: JSONString
- contentJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `content` field instead.")
+"""Capture an order."""
+type OrderCapture {
+ """Captured order."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-input PageTranslationInput {
- seoTitle: String
- seoDescription: String
- title: String
- content: JSONString
+"""Confirms an unconfirmed order by changing status to unfulfilled."""
+type OrderConfirm {
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PageType implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String!
- slug: String!
- attributes: [Attribute]
- availableAttributes(filter: AttributeFilterInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
- hasPages: Boolean
-}
+"""Creates new fulfillments for an order."""
+type OrderFulfill {
+ """List of created fulfillments."""
+ fulfillments: [Fulfillment]
-type PageTypeBulkDelete {
- count: Int!
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
+ """Fulfilled order."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PageTypeCountableConnection {
- pageInfo: PageInfo!
- edges: [PageTypeCountableEdge!]!
- totalCount: Int
-}
+input OrderFulfillInput {
+ """List of items informing how to fulfill the order."""
+ lines: [OrderFulfillLineInput!]!
-type PageTypeCountableEdge {
- node: PageType!
- cursor: String!
+ """If true, send an email notification to the customer."""
+ notifyCustomer: Boolean
+
+ """If true, then allow proceed fulfillment when stock is exceeded."""
+ allowStockToBeExceeded: Boolean = false
}
-type PageTypeCreate {
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
- pageType: PageType
+input OrderFulfillLineInput {
+ """The ID of the order line."""
+ orderLineId: ID
+
+ """List of stock items to create."""
+ stocks: [OrderFulfillStockInput!]!
}
-input PageTypeCreateInput {
- name: String
- slug: String
- addAttributes: [ID!]
+input OrderFulfillStockInput {
+ """The number of line items to be fulfilled from given warehouse."""
+ quantity: Int!
+
+ """ID of the warehouse from which the item will be fulfilled."""
+ warehouse: ID!
}
-type PageTypeDelete {
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
- pageType: PageType
+"""Cancels existing fulfillment and optionally restocks items."""
+type FulfillmentCancel {
+ """A canceled fulfillment."""
+ fulfillment: Fulfillment
+
+ """Order which fulfillment was cancelled."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-input PageTypeFilterInput {
- search: String
+input FulfillmentCancelInput {
+ """
+ ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state.
+ """
+ warehouseId: ID
}
-type PageTypeReorderAttributes {
- pageType: PageType
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
+"""New in Saleor 3.1. Approve existing fulfillment."""
+type FulfillmentApprove {
+ """An approved fulfillment."""
+ fulfillment: Fulfillment
+
+ """Order which fulfillment was approved."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-enum PageTypeSortField {
- NAME
- SLUG
+"""Updates a fulfillment for an order."""
+type FulfillmentUpdateTracking {
+ """A fulfillment with updated tracking."""
+ fulfillment: Fulfillment
+
+ """Order for which fulfillment was updated."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-input PageTypeSortingInput {
- direction: OrderDirection!
- field: PageTypeSortField!
+input FulfillmentUpdateTrackingInput {
+ """Fulfillment tracking number."""
+ trackingNumber: String
+
+ """If true, send an email notification to the customer."""
+ notifyCustomer: Boolean = false
}
-type PageTypeUpdate {
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
- pageType: PageType
+"""Refund products."""
+type FulfillmentRefundProducts {
+ """A refunded fulfillment."""
+ fulfillment: Fulfillment
+
+ """Order which fulfillment was refunded."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-input PageTypeUpdateInput {
- name: String
- slug: String
- addAttributes: [ID!]
- removeAttributes: [ID!]
+input OrderRefundProductsInput {
+ """List of unfulfilled lines to refund."""
+ orderLines: [OrderRefundLineInput!]
+
+ """List of fulfilled lines to refund."""
+ fulfillmentLines: [OrderRefundFulfillmentLineInput!]
+
+ """The total amount of refund when the value is provided manually."""
+ amountToRefund: PositiveDecimal
+
+ """
+ If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored.
+ """
+ includeShippingCosts: Boolean = false
}
-type PageUpdate {
- pageErrors: [PageError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PageError!]!
- page: Page
+input OrderRefundLineInput {
+ """The ID of the order line to refund."""
+ orderLineId: ID!
+
+ """The number of items to be refunded."""
+ quantity: Int!
}
-type PasswordChange {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
+input OrderRefundFulfillmentLineInput {
+ """The ID of the fulfillment line to refund."""
+ fulfillmentLineId: ID!
+
+ """The number of items to be refunded."""
+ quantity: Int!
}
-type Payment implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- gateway: String!
- isActive: Boolean!
- created: DateTime!
- modified: DateTime!
- token: String!
- checkout: Checkout
+"""Return products."""
+type FulfillmentReturnProducts {
+ """A return fulfillment."""
+ returnFulfillment: Fulfillment
+
+ """A replace fulfillment."""
+ replaceFulfillment: Fulfillment
+
+ """Order which fulfillment was returned."""
order: Order
- paymentMethodType: String!
- customerIpAddress: String
- chargeStatus: PaymentChargeStatusEnum!
- actions: [OrderAction]!
- total: Money
- capturedAmount: Money
- transactions: [Transaction]
- availableCaptureAmount: Money
- availableRefundAmount: Money
- creditCard: CreditCard
+
+ """A draft order which was created for products with replace flag."""
+ replaceOrder: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
+}
+
+input OrderReturnProductsInput {
+ """List of unfulfilled lines to return."""
+ orderLines: [OrderReturnLineInput!]
+
+ """List of fulfilled lines to return."""
+ fulfillmentLines: [OrderReturnFulfillmentLineInput!]
+
+ """The total amount of refund when the value is provided manually."""
+ amountToRefund: PositiveDecimal
+
+ """
+ If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored.
+ """
+ includeShippingCosts: Boolean = false
+
+ """If true, Saleor will call refund action for all lines."""
+ refund: Boolean = false
}
-type PaymentCapture {
- payment: Payment
- paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PaymentError!]!
+input OrderReturnLineInput {
+ """The ID of the order line to return."""
+ orderLineId: ID!
+
+ """The number of items to be returned."""
+ quantity: Int!
+
+ """Determines, if the line should be added to replace order."""
+ replace: Boolean = false
}
-enum PaymentChargeStatusEnum {
- NOT_CHARGED
- PENDING
- PARTIALLY_CHARGED
- FULLY_CHARGED
- PARTIALLY_REFUNDED
- FULLY_REFUNDED
- REFUSED
- CANCELLED
-}
+input OrderReturnFulfillmentLineInput {
+ """The ID of the fulfillment line to return."""
+ fulfillmentLineId: ID!
-type PaymentCheckBalance {
- data: JSONString
- paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PaymentError!]!
-}
+ """The number of items to be returned."""
+ quantity: Int!
-input PaymentCheckBalanceInput {
- gatewayId: String!
- method: String!
- channel: String!
- card: CardInput!
+ """Determines, if the line should be added to replace order."""
+ replace: Boolean = false
}
-type PaymentCountableConnection {
- pageInfo: PageInfo!
- edges: [PaymentCountableEdge!]!
- totalCount: Int
-}
+"""Create order lines for an order."""
+type OrderLinesCreate {
+ """Related order."""
+ order: Order
-type PaymentCountableEdge {
- node: Payment!
- cursor: String!
+ """List of added order lines."""
+ orderLines: [OrderLine!]
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PaymentError {
- field: String
- message: String
- code: PaymentErrorCode!
- variants: [ID!]
-}
+"""Deletes an order line from an order."""
+type OrderLineDelete {
+ """A related order."""
+ order: Order
-enum PaymentErrorCode {
- BILLING_ADDRESS_NOT_SET
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- UNIQUE
- PARTIAL_PAYMENT_NOT_ALLOWED
- SHIPPING_ADDRESS_NOT_SET
- INVALID_SHIPPING_METHOD
- SHIPPING_METHOD_NOT_SET
- PAYMENT_ERROR
- NOT_SUPPORTED_GATEWAY
- CHANNEL_INACTIVE
- BALANCE_CHECK_ERROR
- CHECKOUT_EMAIL_NOT_SET
- UNAVAILABLE_VARIANT_IN_CHANNEL
- NO_CHECKOUT_LINES
+ """An order line that was deleted."""
+ orderLine: OrderLine
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-input PaymentFilterInput {
- checkouts: [ID]
+"""Updates an order line of an order."""
+type OrderLineUpdate {
+ """Related order."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
+ orderLine: OrderLine
}
-type PaymentGateway {
- name: String!
- id: ID!
- config: [GatewayConfigLine!]!
- currencies: [String]!
+input OrderLineInput {
+ """Number of variant items ordered."""
+ quantity: Int!
}
-type PaymentInitialize {
- initializedPayment: PaymentInitialized
- paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PaymentError!]!
+"""Adds discount to the order."""
+type OrderDiscountAdd {
+ """Order which has been discounted."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PaymentInitialized {
- gateway: String!
- name: String!
- data: JSONString
-}
+input OrderDiscountCommonInput {
+ """Type of the discount: fixed or percent"""
+ valueType: DiscountValueTypeEnum!
-input PaymentInput {
- gateway: String!
- token: String
- amount: PositiveDecimal
- returnUrl: String
- storePaymentMethod: StorePaymentMethodEnum = none
- metadata: [MetadataInput!]
+ """Value of the discount. Can store fixed value or percent value"""
+ value: PositiveDecimal!
+
+ """Explanation for the applied discount."""
+ reason: String
}
-type PaymentRefund {
- payment: Payment
- paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PaymentError!]!
+"""Update discount for the order."""
+type OrderDiscountUpdate {
+ """Order which has been discounted."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PaymentSource {
- gateway: String!
- paymentMethodId: String
- creditCardInfo: CreditCard
- metadata: [MetadataItem]!
+"""Remove discount from the order."""
+type OrderDiscountDelete {
+ """Order which has removed discount."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PaymentVoid {
- payment: Payment
- paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PaymentError!]!
+"""Update discount for the order line."""
+type OrderLineDiscountUpdate {
+ """Order line which has been discounted."""
+ orderLine: OrderLine
+
+ """Order which is related to the discounted line."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type Permission {
- code: PermissionEnum!
- name: String!
+"""Remove discount applied to the order line."""
+type OrderLineDiscountRemove {
+ """Order line which has removed discount."""
+ orderLine: OrderLine
+
+ """Order which is related to line which has removed discount."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-enum PermissionEnum {
- MANAGE_USERS
- MANAGE_STAFF
- IMPERSONATE_USER
- MANAGE_APPS
- MANAGE_CHANNELS
- MANAGE_DISCOUNTS
- MANAGE_PLUGINS
- MANAGE_GIFT_CARD
- MANAGE_MENUS
- MANAGE_ORDERS
- MANAGE_PAGES
- MANAGE_PAGE_TYPES_AND_ATTRIBUTES
- HANDLE_PAYMENTS
- MANAGE_PRODUCTS
- MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES
- MANAGE_SHIPPING
- MANAGE_SETTINGS
- MANAGE_TRANSLATIONS
- MANAGE_CHECKOUTS
+"""Mark order as manually paid."""
+type OrderMarkAsPaid {
+ """Order marked as paid."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-type PermissionGroupCreate {
- permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PermissionGroupError!]!
- group: Group
+"""Refund an order."""
+type OrderRefund {
+ """A refunded order."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-input PermissionGroupCreateInput {
- addPermissions: [PermissionEnum!]
- addUsers: [ID!]
- name: String!
+"""Updates an order."""
+type OrderUpdate {
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
+ order: Order
}
-type PermissionGroupDelete {
- permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PermissionGroupError!]!
- group: Group
+input OrderUpdateInput {
+ """Billing address of the customer."""
+ billingAddress: AddressInput
+
+ """Email address of the customer."""
+ userEmail: String
+
+ """Shipping address of the customer."""
+ shippingAddress: AddressInput
}
-type PermissionGroupError {
- field: String
- message: String
- code: PermissionGroupErrorCode!
- permissions: [PermissionEnum!]
- users: [ID!]
+"""
+Updates a shipping method of the order. Requires shipping method ID to update, when null is passed then currently assigned shipping method is removed.
+"""
+type OrderUpdateShipping {
+ """Order with updated shipping method."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-enum PermissionGroupErrorCode {
- ASSIGN_NON_STAFF_MEMBER
- DUPLICATED_INPUT_ITEM
- CANNOT_REMOVE_FROM_LAST_GROUP
- LEFT_NOT_MANAGEABLE_PERMISSION
- OUT_OF_SCOPE_PERMISSION
- OUT_OF_SCOPE_USER
- REQUIRED
- UNIQUE
+input OrderUpdateShippingInput {
+ """
+ ID of the selected shipping method, pass null to remove currently assigned shipping method.
+ """
+ shippingMethod: ID
}
-input PermissionGroupFilterInput {
- search: String
- ids: [ID]
+"""Void an order."""
+type OrderVoid {
+ """A voided order."""
+ order: Order
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-enum PermissionGroupSortField {
- NAME
+"""Cancels orders."""
+type OrderBulkCancel {
+ """Returns how many objects were affected."""
+ count: Int!
+ orderErrors: [OrderError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [OrderError!]!
}
-input PermissionGroupSortingInput {
- direction: OrderDirection!
- field: PermissionGroupSortField!
+"""Delete metadata of an object."""
+type DeleteMetadata {
+ metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MetadataError!]!
+ item: ObjectWithMetadata
}
-type PermissionGroupUpdate {
- permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PermissionGroupError!]!
- group: Group
+type MetadataError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: MetadataErrorCode!
}
-input PermissionGroupUpdateInput {
- addPermissions: [PermissionEnum!]
- addUsers: [ID!]
- name: String
- removePermissions: [PermissionEnum!]
- removeUsers: [ID!]
+"""An enumeration."""
+enum MetadataErrorCode {
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ NOT_UPDATED
}
-type Plugin {
- id: ID!
- name: String!
- description: String!
- globalConfiguration: PluginConfiguration
- channelConfigurations: [PluginConfiguration!]!
+"""Delete object's private metadata."""
+type DeletePrivateMetadata {
+ metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MetadataError!]!
+ item: ObjectWithMetadata
}
-type PluginConfiguration {
- active: Boolean!
- channel: Channel
- configuration: [ConfigurationItem]
+"""Updates metadata of an object."""
+type UpdateMetadata {
+ metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MetadataError!]!
+ item: ObjectWithMetadata
}
-enum PluginConfigurationType {
- PER_CHANNEL
- GLOBAL
+input MetadataInput {
+ """Key of a metadata item."""
+ key: String!
+
+ """Value of a metadata item."""
+ value: String!
}
-type PluginCountableConnection {
- pageInfo: PageInfo!
- edges: [PluginCountableEdge!]!
- totalCount: Int
+"""Updates private metadata of an object."""
+type UpdatePrivateMetadata {
+ metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MetadataError!]!
+ item: ObjectWithMetadata
}
-type PluginCountableEdge {
- node: Plugin!
- cursor: String!
+"""Assigns storefront's navigation menus."""
+type AssignNavigation {
+ """Assigned navigation menu."""
+ menu: Menu
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
}
-type PluginError {
+type MenuError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: PluginErrorCode!
+
+ """The error code."""
+ code: MenuErrorCode!
}
-enum PluginErrorCode {
+"""An enumeration."""
+enum MenuErrorCode {
+ CANNOT_ASSIGN_NODE
GRAPHQL_ERROR
INVALID
- PLUGIN_MISCONFIGURED
+ INVALID_MENU_ITEM
+ NO_MENU_ITEM_PROVIDED
NOT_FOUND
REQUIRED
+ TOO_MANY_MENU_ITEMS
UNIQUE
}
-input PluginFilterInput {
- statusInChannels: PluginStatusInChannelsInput
- search: String
- type: PluginConfigurationType
+enum NavigationType {
+ """Main storefront navigation."""
+ MAIN
+
+ """Secondary storefront navigation."""
+ SECONDARY
}
-enum PluginSortField {
- NAME
- IS_ACTIVE
+"""Creates a new Menu."""
+type MenuCreate {
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
+ menu: Menu
}
-input PluginSortingInput {
- direction: OrderDirection!
- field: PluginSortField!
+input MenuCreateInput {
+ """Name of the menu."""
+ name: String!
+
+ """Slug of the menu. Will be generated if not provided."""
+ slug: String
+
+ """List of menu items."""
+ items: [MenuItemInput]
}
-input PluginStatusInChannelsInput {
- active: Boolean!
- channels: [ID!]!
+input MenuItemInput {
+ """Name of the menu item."""
+ name: String
+
+ """URL of the pointed item."""
+ url: String
+
+ """Category to which item points."""
+ category: ID
+
+ """Collection to which item points."""
+ collection: ID
+
+ """Page to which item points."""
+ page: ID
}
-type PluginUpdate {
- plugin: Plugin
- pluginsErrors: [PluginError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [PluginError!]!
+"""Deletes a menu."""
+type MenuDelete {
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
+ menu: Menu
}
-input PluginUpdateInput {
- active: Boolean
- configuration: [ConfigurationItemInput]
+"""Deletes menus."""
+type MenuBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
}
-scalar PositiveDecimal
+"""Updates a menu."""
+type MenuUpdate {
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
+ menu: Menu
+}
-enum PostalCodeRuleInclusionTypeEnum {
- INCLUDE
- EXCLUDE
+input MenuInput {
+ """Name of the menu."""
+ name: String
+
+ """Slug of the menu."""
+ slug: String
}
-type PreorderData {
- globalThreshold: Int
- globalSoldUnits: Int!
- endDate: DateTime
+"""Creates a new menu item."""
+type MenuItemCreate {
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
+ menuItem: MenuItem
}
-input PreorderSettingsInput {
- globalThreshold: Int
- endDate: DateTime
+input MenuItemCreateInput {
+ """Name of the menu item."""
+ name: String!
+
+ """URL of the pointed item."""
+ url: String
+
+ """Category to which item points."""
+ category: ID
+
+ """Collection to which item points."""
+ collection: ID
+
+ """Page to which item points."""
+ page: ID
+
+ """Menu to which item belongs."""
+ menu: ID!
+
+ """ID of the parent menu. If empty, menu will be top level menu."""
+ parent: ID
}
-type PreorderThreshold {
- quantity: Int
- soldUnits: Int!
+"""Deletes a menu item."""
+type MenuItemDelete {
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
+ menuItem: MenuItem
}
-input PriceInput {
- currency: String!
- amount: PositiveDecimal!
+"""Deletes menu items."""
+type MenuItemBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
}
-input PriceRangeInput {
- gte: Float
- lte: Float
+"""Updates a menu item."""
+type MenuItemUpdate {
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
+ menuItem: MenuItem
}
-type Product implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- seoTitle: String
- seoDescription: String
- name: String!
- description: JSONString
- productType: ProductType!
- slug: String!
- category: Category
- created: DateTime!
- updatedAt: DateTime!
- chargeTaxes: Boolean!
- weight: Weight
- defaultVariant: ProductVariant
- rating: Float
- channel: String
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
- thumbnail(size: Int): Image
- pricing(address: AddressInput): ProductPricingInfo
- isAvailable(address: AddressInput): Boolean
- taxType: TaxType
- attributes: [SelectedAttribute!]!
- channelListings: [ProductChannelListing!]
- mediaById(id: ID): ProductMedia
- imageById(id: ID): ProductImage @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `mediaById` field instead.")
- variants: [ProductVariant]
- media: [ProductMedia!]
- images: [ProductImage] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.")
- collections: [Collection]
- translation(languageCode: LanguageCodeEnum!): ProductTranslation
- availableForPurchase: Date
- isAvailableForPurchase: Boolean
+"""Creates/updates translations for a menu item."""
+type MenuItemTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ menuItem: MenuItem
}
-type ProductAttributeAssign {
- productType: ProductType
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+"""Moves items of menus."""
+type MenuItemMove {
+ """Assigned menu to move within."""
+ menu: Menu
+ menuErrors: [MenuError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [MenuError!]!
}
-input ProductAttributeAssignInput {
- id: ID!
- type: ProductAttributeType!
- variantSelection: Boolean
+input MenuItemMoveInput {
+ """The menu item ID to move."""
+ itemId: ID!
+
+ """ID of the parent menu. If empty, menu will be top level menu."""
+ parentId: ID
+
+ """
+ The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.
+ """
+ sortOrder: Int
}
-type ProductAttributeAssignmentUpdate {
- productType: ProductType
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+"""Request an invoice for the order using plugin."""
+type InvoiceRequest {
+ """Order related to an invoice."""
+ order: Order
+ invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [InvoiceError!]!
+ invoice: Invoice
+}
+
+type InvoiceError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: InvoiceErrorCode!
+}
+
+"""An enumeration."""
+enum InvoiceErrorCode {
+ REQUIRED
+ NOT_READY
+ URL_NOT_SET
+ EMAIL_NOT_SET
+ NUMBER_NOT_SET
+ NOT_FOUND
+ INVALID_STATUS
+ NO_INVOICE_PLUGIN
+}
+
+"""Requests deletion of an invoice."""
+type InvoiceRequestDelete {
+ invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [InvoiceError!]!
+ invoice: Invoice
+}
+
+"""Creates a ready to send invoice."""
+type InvoiceCreate {
+ invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [InvoiceError!]!
+ invoice: Invoice
}
-input ProductAttributeAssignmentUpdateInput {
- id: ID!
- variantSelection: Boolean!
+input InvoiceCreateInput {
+ """Invoice number."""
+ number: String!
+
+ """URL of an invoice to download."""
+ url: String!
}
-enum ProductAttributeType {
- PRODUCT
- VARIANT
+"""Deletes an invoice."""
+type InvoiceDelete {
+ invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [InvoiceError!]!
+ invoice: Invoice
}
-type ProductAttributeUnassign {
- productType: ProductType
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+"""Updates an invoice."""
+type InvoiceUpdate {
+ invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [InvoiceError!]!
+ invoice: Invoice
}
-type ProductBulkDelete {
- count: Int!
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+input UpdateInvoiceInput {
+ """Invoice number"""
+ number: String
+
+ """URL of an invoice to download."""
+ url: String
}
-type ProductChannelListing implements Node {
- id: ID!
- publicationDate: Date
- isPublished: Boolean!
- channel: Channel!
- visibleInListings: Boolean!
- availableForPurchase: Date
- discountedPrice: Money
- purchaseCost: MoneyRange
- margin: Margin
- isAvailableForPurchase: Boolean
- pricing(address: AddressInput): ProductPricingInfo
+"""Send an invoice notification to the customer."""
+type InvoiceSendNotification {
+ invoiceErrors: [InvoiceError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [InvoiceError!]!
+ invoice: Invoice
}
-input ProductChannelListingAddInput {
- channelId: ID!
- isPublished: Boolean
- publicationDate: Date
- visibleInListings: Boolean
- isAvailableForPurchase: Boolean
- availableForPurchaseDate: Date
- addVariants: [ID!]
- removeVariants: [ID!]
+"""Activate a gift card."""
+type GiftCardActivate {
+ """Activated gift card."""
+ giftCard: GiftCard
+ giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [GiftCardError!]!
}
-type ProductChannelListingError {
+type GiftCardError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: ProductErrorCode!
- attributes: [ID!]
- values: [ID!]
- channels: [ID!]
- variants: [ID!]
+
+ """The error code."""
+ code: GiftCardErrorCode!
+
+ """List of tag values that cause the error."""
+ tags: [String!]
}
-type ProductChannelListingUpdate {
- product: Product
- productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductChannelListingError!]!
+"""An enumeration."""
+enum GiftCardErrorCode {
+ ALREADY_EXISTS
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+ EXPIRED_GIFT_CARD
+ DUPLICATED_INPUT_ITEM
}
-input ProductChannelListingUpdateInput {
- updateChannels: [ProductChannelListingAddInput!]
- removeChannels: [ID!]
+"""Creates a new gift card."""
+type GiftCardCreate {
+ giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [GiftCardError!]!
+ giftCard: GiftCard
}
-type ProductCountableConnection {
- pageInfo: PageInfo!
- edges: [ProductCountableEdge!]!
- totalCount: Int
+input GiftCardCreateInput {
+ """
+ New in Saleor 3.1. The gift card tags to add. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ addTags: [String!]
+
+ """
+ New in Saleor 3.1. The gift card expiry date. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ expiryDate: Date
+
+ """
+ Start date of the gift card in ISO 8601 format.
+
+ DEPRECATED: this field will be removed in Saleor 4.0.
+ """
+ startDate: Date
+
+ """
+ End date of the gift card in ISO 8601 format.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead.
+ """
+ endDate: Date
+
+ """Balance of the gift card."""
+ balance: PriceInput!
+
+ """Email of the customer to whom gift card will be sent."""
+ userEmail: String
+
+ """
+ New in Saleor 3.1. Slug of a channel from which the email should be sent. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ channel: String
+
+ """
+ New in Saleor 3.1. Determine if gift card is active. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ isActive: Boolean!
+
+ """
+ Code to use the gift card.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. The code is now auto generated.
+ """
+ code: String
+
+ """
+ New in Saleor 3.1. The gift card note from the staff member. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ note: String
}
-type ProductCountableEdge {
- node: Product!
- cursor: String!
+input PriceInput {
+ """Currency code."""
+ currency: String!
+
+ """Amount of money."""
+ amount: PositiveDecimal!
}
-type ProductCreate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- product: Product
+"""
+New in Saleor 3.1. Delete gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardDelete {
+ giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [GiftCardError!]!
+ giftCard: GiftCard
}
-input ProductCreateInput {
- attributes: [AttributeValueInput!]
- category: ID
- chargeTaxes: Boolean
- collections: [ID!]
- description: JSONString
- name: String
- slug: String
- taxCode: String
- seo: SeoInput
- weight: WeightScalar
- rating: Float
- productType: ID!
+"""Deactivate a gift card."""
+type GiftCardDeactivate {
+ """Deactivated gift card."""
+ giftCard: GiftCard
+ giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [GiftCardError!]!
}
-type ProductDelete {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- product: Product
+"""Update a gift card."""
+type GiftCardUpdate {
+ giftCardErrors: [GiftCardError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [GiftCardError!]!
+ giftCard: GiftCard
}
-type ProductError {
- field: String
- message: String
- code: ProductErrorCode!
- attributes: [ID!]
- values: [ID!]
+input GiftCardUpdateInput {
+ """
+ New in Saleor 3.1. The gift card tags to add. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ addTags: [String!]
+
+ """
+ New in Saleor 3.1. The gift card expiry date. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ expiryDate: Date
+
+ """
+ Start date of the gift card in ISO 8601 format.
+
+ DEPRECATED: this field will be removed in Saleor 4.0.
+ """
+ startDate: Date
+
+ """
+ End date of the gift card in ISO 8601 format.
+
+ DEPRECATED: this field will be removed in Saleor 4.0. Use `expiryDate` from `expirySettings` instead.
+ """
+ endDate: Date
+
+ """
+ New in Saleor 3.1. The gift card tags to remove. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ removeTags: [String!]
+
+ """
+ New in Saleor 3.1. The gift card balance amount. Note: this feature is in a preview state and can be subject to changes at later point.
+ """
+ balanceAmount: PositiveDecimal
}
-enum ProductErrorCode {
- ALREADY_EXISTS
- ATTRIBUTE_ALREADY_ASSIGNED
- ATTRIBUTE_CANNOT_BE_ASSIGNED
- ATTRIBUTE_VARIANTS_DISABLED
- DUPLICATED_INPUT_ITEM
- GRAPHQL_ERROR
- INVALID
- PRODUCT_WITHOUT_CATEGORY
- NOT_PRODUCTS_IMAGE
- NOT_PRODUCTS_VARIANT
- NOT_FOUND
- REQUIRED
- UNIQUE
- VARIANT_NO_DIGITAL_CONTENT
- CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT
- PRODUCT_NOT_ASSIGNED_TO_CHANNEL
- UNSUPPORTED_MEDIA_PROVIDER
- PREORDER_VARIANT_CANNOT_BE_DEACTIVATED
+"""
+New in Saleor 3.1. Resend a gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardResend {
+ """Gift card which has been sent."""
+ giftCard: GiftCard
+ errors: [GiftCardError!]!
}
-enum ProductFieldEnum {
- NAME
- DESCRIPTION
- PRODUCT_TYPE
- CATEGORY
- PRODUCT_WEIGHT
- COLLECTIONS
- CHARGE_TAXES
- PRODUCT_MEDIA
- VARIANT_ID
- VARIANT_SKU
- VARIANT_WEIGHT
- VARIANT_MEDIA
+input GiftCardResendInput {
+ """ID of a gift card to resend."""
+ id: ID!
+
+ """Email to which gift card should be send."""
+ email: String
+
+ """Slug of a channel from which the email should be sent."""
+ channel: String!
}
-input ProductFilterInput {
- isPublished: Boolean
- collections: [ID]
- categories: [ID]
- hasCategory: Boolean
- attributes: [AttributeInput]
- stockAvailability: StockAvailability
- stocks: ProductStockFilterInput
- search: String
- metadata: [MetadataFilter]
- price: PriceRangeInput
- minimalPrice: PriceRangeInput
- updatedAt: DateTimeRangeInput
- productTypes: [ID]
- giftCard: Boolean
- ids: [ID]
- hasPreorderedVariants: Boolean
- channel: String
+"""
+New in Saleor 3.1. Adds note to the gift card. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardAddNote {
+ """Gift card with the note added."""
+ giftCard: GiftCard
+
+ """Gift card note created."""
+ event: GiftCardEvent
+ errors: [GiftCardError!]!
}
-type ProductImage {
- id: ID!
- alt: String
- sortOrder: Int
- url(size: Int): String!
+input GiftCardAddNoteInput {
+ """Note message."""
+ message: String!
}
-input ProductInput {
- attributes: [AttributeValueInput!]
- category: ID
- chargeTaxes: Boolean
- collections: [ID!]
- description: JSONString
- name: String
- slug: String
- taxCode: String
- seo: SeoInput
- weight: WeightScalar
- rating: Float
+"""
+New in Saleor 3.1. Create gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardBulkCreate {
+ """Returns how many objects were created."""
+ count: Int!
+
+ """List of created gift cards."""
+ giftCards: [GiftCard!]!
+ errors: [GiftCardError!]!
}
-type ProductMedia implements Node {
- id: ID!
- sortOrder: Int
- alt: String!
- type: ProductMediaType!
- oembedData: JSONString!
- url(size: Int): String!
+input GiftCardBulkCreateInput {
+ """The number of cards to issue."""
+ count: Int!
+
+ """Balance of the gift card."""
+ balance: PriceInput!
+
+ """The gift card tags."""
+ tags: [String!]
+
+ """The gift card expiry date."""
+ expiryDate: Date
+
+ """Determine if gift card is active."""
+ isActive: Boolean!
}
-type ProductMediaBulkDelete {
+"""
+New in Saleor 3.1. Delete gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardBulkDelete {
+ """Returns how many objects were affected."""
count: Int!
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+ errors: [GiftCardError!]!
}
-type ProductMediaCreate {
- product: Product
- media: ProductMedia
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+"""
+New in Saleor 3.1. Activate gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardBulkActivate {
+ """Returns how many objects were affected."""
+ count: Int!
+ errors: [GiftCardError!]!
}
-input ProductMediaCreateInput {
- alt: String
- image: Upload
- product: ID!
- mediaUrl: String
+"""
+New in Saleor 3.1. Deactivate gift cards. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type GiftCardBulkDeactivate {
+ """Returns how many objects were affected."""
+ count: Int!
+ errors: [GiftCardError!]!
}
-type ProductMediaDelete {
- product: Product
- media: ProductMedia
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+"""Update plugin configuration."""
+type PluginUpdate {
+ plugin: Plugin
+ pluginsErrors: [PluginError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PluginError!]!
}
-type ProductMediaReorder {
- product: Product
- media: [ProductMedia!]
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+type PluginError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: PluginErrorCode!
}
-enum ProductMediaType {
- IMAGE
- VIDEO
+"""An enumeration."""
+enum PluginErrorCode {
+ GRAPHQL_ERROR
+ INVALID
+ PLUGIN_MISCONFIGURED
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
}
-type ProductMediaUpdate {
- product: Product
- media: ProductMedia
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+input PluginUpdateInput {
+ """Indicates whether the plugin should be enabled."""
+ active: Boolean
+
+ """Configuration of the plugin."""
+ configuration: [ConfigurationItemInput]
}
-input ProductMediaUpdateInput {
- alt: String
+input ConfigurationItemInput {
+ """Name of the field to update."""
+ name: String!
+
+ """Value of the given field to update."""
+ value: String
}
-input ProductOrder {
- direction: OrderDirection!
- channel: String
- attributeId: ID
- field: ProductOrderField
+"""
+New in Saleor 3.1. Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload.
+"""
+type ExternalNotificationTrigger {
+ errors: [ExternalNotificationError!]!
}
-enum ProductOrderField {
- NAME
- RANK
- PRICE
- MINIMAL_PRICE
- LAST_MODIFIED
- DATE
- TYPE
- PUBLISHED
- PUBLICATION_DATE
- PUBLISHED_AT
- LAST_MODIFIED_AT
- COLLECTION
- RATING
+type ExternalNotificationError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ExternalNotificationErrorCodes!
}
-type ProductPricingInfo {
- onSale: Boolean
- discount: TaxedMoney
- discountLocalCurrency: TaxedMoney
- priceRange: TaxedMoneyRange
- priceRangeUndiscounted: TaxedMoneyRange
- priceRangeLocalCurrency: TaxedMoneyRange
+"""An enumeration."""
+enum ExternalNotificationErrorCodes {
+ REQUIRED
+ INVALID_MODEL_TYPE
+ NOT_FOUND
+ CHANNEL_INACTIVE
}
-type ProductReorderAttributeValues {
- product: Product
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+input ExternalNotificationTriggerInput {
+ """
+ The list of customers or orders node IDs that will be serialized and included in the notification payload.
+ """
+ ids: [ID]!
+
+ """
+ Additional payload that will be merged with the one based on the bussines object ID.
+ """
+ extraPayload: JSONString
+
+ """
+ External event type. This field is passed to a plugin as an event type.
+ """
+ externalEventType: String!
}
-input ProductStockFilterInput {
- warehouseIds: [ID!]
- quantity: IntRangeInput
+"""Creates a new sale."""
+type SaleCreate {
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
+ sale: Sale
}
-type ProductTranslatableContent implements Node {
- id: ID!
- seoTitle: String
- seoDescription: String
- name: String!
- description: JSONString
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
- translation(languageCode: LanguageCodeEnum!): ProductTranslation
- product: Product @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
- attributeValues: [AttributeValueTranslatableContent!]!
+type DiscountError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """List of products IDs which causes the error."""
+ products: [ID!]
+
+ """The error code."""
+ code: DiscountErrorCode!
+
+ """List of channels IDs which causes the error."""
+ channels: [ID!]
}
-type ProductTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- product: Product
+"""An enumeration."""
+enum DiscountErrorCode {
+ ALREADY_EXISTS
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+ CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT
+ DUPLICATED_INPUT_ITEM
}
-type ProductTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- seoTitle: String
- seoDescription: String
+input SaleInput {
+ """Voucher name."""
name: String
- description: JSONString
- descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
+
+ """Fixed or percentage."""
+ type: DiscountValueTypeEnum
+
+ """Value of the voucher."""
+ value: PositiveDecimal
+
+ """Products related to the discount."""
+ products: [ID]
+ variants: [ID]
+
+ """Categories related to the discount."""
+ categories: [ID]
+
+ """Collections related to the discount."""
+ collections: [ID]
+
+ """Start date of the voucher in ISO 8601 format."""
+ startDate: DateTime
+
+ """End date of the voucher in ISO 8601 format."""
+ endDate: DateTime
}
-type ProductType implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String!
- slug: String!
- hasVariants: Boolean!
- isShippingRequired: Boolean!
- isDigital: Boolean!
- weight: Weight
- kind: ProductTypeKindEnum!
- products(channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection @deprecated(reason: "This field will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter.")
- taxType: TaxType
- variantAttributes(variantSelection: VariantAttributeScope): [Attribute] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `assignedVariantAttributes` instead.")
- assignedVariantAttributes(variantSelection: VariantAttributeScope): [AssignedVariantAttribute]
- productAttributes: [Attribute]
- availableAttributes(filter: AttributeFilterInput, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
+"""Deletes a sale."""
+type SaleDelete {
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
+ sale: Sale
}
-type ProductTypeBulkDelete {
+"""Deletes sales."""
+type SaleBulkDelete {
+ """Returns how many objects were affected."""
count: Int!
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
}
-enum ProductTypeConfigurable {
- CONFIGURABLE
- SIMPLE
+"""Updates a sale."""
+type SaleUpdate {
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
+ sale: Sale
}
-type ProductTypeCountableConnection {
- pageInfo: PageInfo!
- edges: [ProductTypeCountableEdge!]!
- totalCount: Int
+"""Adds products, categories, collections to a voucher."""
+type SaleAddCatalogues {
+ """Sale of which catalogue IDs will be modified."""
+ sale: Sale
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
}
-type ProductTypeCountableEdge {
- node: ProductType!
- cursor: String!
+input CatalogueInput {
+ """Products related to the discount."""
+ products: [ID]
+
+ """Categories related to the discount."""
+ categories: [ID]
+
+ """Collections related to the discount."""
+ collections: [ID]
+
+ """New in Saleor 3.1. Product variant related to the discount."""
+ variants: [ID]
+}
+
+"""Removes products, categories, collections from a sale."""
+type SaleRemoveCatalogues {
+ """Sale of which catalogue IDs will be modified."""
+ sale: Sale
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
+}
+
+"""Creates/updates translations for a sale."""
+type SaleTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ sale: Sale
}
-type ProductTypeCreate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- productType: ProductType
+"""Manage sale's availability in channels."""
+type SaleChannelListingUpdate {
+ """An updated sale instance."""
+ sale: Sale
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
}
-type ProductTypeDelete {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- productType: ProductType
+input SaleChannelListingInput {
+ """List of channels to which the sale should be assigned."""
+ addChannels: [SaleChannelListingAddInput!]
+
+ """List of channels from which the sale should be unassigned."""
+ removeChannels: [ID!]
}
-enum ProductTypeEnum {
- DIGITAL
- SHIPPABLE
+input SaleChannelListingAddInput {
+ """ID of a channel."""
+ channelId: ID!
+
+ """The value of the discount."""
+ discountValue: PositiveDecimal!
}
-input ProductTypeFilterInput {
- search: String
- configurable: ProductTypeConfigurable
- productType: ProductTypeEnum
- metadata: [MetadataFilter]
- kind: ProductTypeKindEnum
- ids: [ID]
+"""Creates a new voucher."""
+type VoucherCreate {
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
+ voucher: Voucher
}
-input ProductTypeInput {
+input VoucherInput {
+ """Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER."""
+ type: VoucherTypeEnum
+
+ """Voucher name."""
name: String
- slug: String
- kind: ProductTypeKindEnum
- hasVariants: Boolean
- productAttributes: [ID]
- variantAttributes: [ID]
- isShippingRequired: Boolean
- isDigital: Boolean
- weight: WeightScalar
- taxCode: String
-}
-enum ProductTypeKindEnum {
- NORMAL
- GIFT_CARD
-}
+ """Code to use the voucher."""
+ code: String
-type ProductTypeReorderAttributes {
- productType: ProductType
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
-}
+ """Start date of the voucher in ISO 8601 format."""
+ startDate: DateTime
-enum ProductTypeSortField {
- NAME
- DIGITAL
- SHIPPING_REQUIRED
-}
+ """End date of the voucher in ISO 8601 format."""
+ endDate: DateTime
-input ProductTypeSortingInput {
- direction: OrderDirection!
- field: ProductTypeSortField!
-}
+ """Choices: fixed or percentage."""
+ discountValueType: DiscountValueTypeEnum
-type ProductTypeUpdate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- productType: ProductType
-}
+ """Products discounted by the voucher."""
+ products: [ID]
-type ProductUpdate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- product: Product
-}
+ """New in Saleor 3.1. Variants discounted by the voucher."""
+ variants: [ID]
-type ProductVariant implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String!
- sku: String
- product: Product!
- trackInventory: Boolean!
- quantityLimitPerCustomer: Int
- weight: Weight
- channel: String
- channelListings: [ProductVariantChannelListing!]
- pricing(address: AddressInput): VariantPricingInfo
- attributes(variantSelection: VariantAttributeScope): [SelectedAttribute!]!
- margin: Int
- quantityOrdered: Int
- revenue(period: ReportingPeriod): TaxedMoney
- images: [ProductImage] @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `media` field instead.")
- media: [ProductMedia!]
- translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation
- digitalContent: DigitalContent
- stocks(address: AddressInput, countryCode: CountryCode): [Stock]
- quantityAvailable(address: AddressInput, countryCode: CountryCode): Int
- preorder: PreorderData
- created: DateTime!
- updatedAt: DateTime!
-}
+ """Collections discounted by the voucher."""
+ collections: [ID]
-type ProductVariantBulkCreate {
- count: Int!
- productVariants: [ProductVariant!]!
- bulkProductErrors: [BulkProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [BulkProductError!]!
+ """Categories discounted by the voucher."""
+ categories: [ID]
+
+ """Minimal quantity of checkout items required to apply the voucher."""
+ minCheckoutItemsQuantity: Int
+
+ """Country codes that can be used with the shipping voucher."""
+ countries: [String]
+
+ """Voucher should be applied to the cheapest item or entire order."""
+ applyOncePerOrder: Boolean
+
+ """Voucher should be applied once per customer."""
+ applyOncePerCustomer: Boolean
+
+ """Voucher can be used only by staff user."""
+ onlyForStaff: Boolean
+
+ """Limit number of times this voucher can be used in total."""
+ usageLimit: Int
}
-input ProductVariantBulkCreateInput {
- attributes: [BulkAttributeValueInput!]!
- sku: String
- trackInventory: Boolean
- weight: WeightScalar
- preorder: PreorderSettingsInput
- quantityLimitPerCustomer: Int
- stocks: [StockInput!]
- channelListings: [ProductVariantChannelListingAddInput!]
+"""Deletes a voucher."""
+type VoucherDelete {
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
+ voucher: Voucher
}
-type ProductVariantBulkDelete {
+"""Deletes vouchers."""
+type VoucherBulkDelete {
+ """Returns how many objects were affected."""
count: Int!
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
}
-type ProductVariantChannelListing implements Node {
- id: ID!
- channel: Channel!
- price: Money
- costPrice: Money
- margin: Int
- preorderThreshold: PreorderThreshold
+"""Updates a voucher."""
+type VoucherUpdate {
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
+ voucher: Voucher
}
-input ProductVariantChannelListingAddInput {
- channelId: ID!
- price: PositiveDecimal!
- costPrice: PositiveDecimal
- preorderThreshold: Int
+"""Adds products, categories, collections to a voucher."""
+type VoucherAddCatalogues {
+ """Voucher of which catalogue IDs will be modified."""
+ voucher: Voucher
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
}
-type ProductVariantChannelListingUpdate {
- variant: ProductVariant
- productChannelListingErrors: [ProductChannelListingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductChannelListingError!]!
+"""Removes products, categories, collections from a voucher."""
+type VoucherRemoveCatalogues {
+ """Voucher of which catalogue IDs will be modified."""
+ voucher: Voucher
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
}
-type ProductVariantCountableConnection {
- pageInfo: PageInfo!
- edges: [ProductVariantCountableEdge!]!
- totalCount: Int
+"""Creates/updates translations for a voucher."""
+type VoucherTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ voucher: Voucher
}
-type ProductVariantCountableEdge {
- node: ProductVariant!
- cursor: String!
+"""Manage voucher's availability in channels."""
+type VoucherChannelListingUpdate {
+ """An updated voucher instance."""
+ voucher: Voucher
+ discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [DiscountError!]!
}
-type ProductVariantCreate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- productVariant: ProductVariant
-}
+input VoucherChannelListingInput {
+ """List of channels to which the voucher should be assigned."""
+ addChannels: [VoucherChannelListingAddInput!]
-input ProductVariantCreateInput {
- attributes: [AttributeValueInput!]!
- sku: String
- trackInventory: Boolean
- weight: WeightScalar
- preorder: PreorderSettingsInput
- quantityLimitPerCustomer: Int
- product: ID!
- stocks: [StockInput!]
+ """List of channels from which the voucher should be unassigned."""
+ removeChannels: [ID!]
}
-type ProductVariantDelete {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- productVariant: ProductVariant
-}
+input VoucherChannelListingAddInput {
+ """ID of a channel."""
+ channelId: ID!
-input ProductVariantFilterInput {
- search: String
- sku: [String]
- metadata: [MetadataFilter]
- isPreorder: Boolean
- updatedAt: DateTimeRangeInput
+ """Value of the voucher."""
+ discountValue: PositiveDecimal
+
+ """Min purchase amount required to apply the voucher."""
+ minAmountSpent: PositiveDecimal
}
-input ProductVariantInput {
- attributes: [AttributeValueInput!]
- sku: String
- trackInventory: Boolean
- weight: WeightScalar
- preorder: PreorderSettingsInput
- quantityLimitPerCustomer: Int
+"""Export products to csv file."""
+type ExportProducts {
+ """
+ The newly created export file job which is responsible for export data.
+ """
+ exportFile: ExportFile
+ exportErrors: [ExportError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ExportError!]!
}
-type ProductVariantPreorderDeactivate {
- productVariant: ProductVariant
- errors: [ProductError!]!
+type ExportError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
+
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ExportErrorCode!
}
-type ProductVariantReorder {
- product: Product
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+"""An enumeration."""
+enum ExportErrorCode {
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
}
-type ProductVariantReorderAttributeValues {
- productVariant: ProductVariant
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
-}
+input ExportProductsInput {
+ """Determine which products should be exported."""
+ scope: ExportScope!
+
+ """Filtering options for products."""
+ filter: ProductFilterInput
+
+ """List of products IDs to export."""
+ ids: [ID!]
+
+ """Input with info about fields which should be exported."""
+ exportInfo: ExportInfoInput
-type ProductVariantSetDefault {
- product: Product
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+ """Type of exported file."""
+ fileType: FileTypesEnum!
}
-enum ProductVariantSortField {
- LAST_MODIFIED_AT
-}
+enum ExportScope {
+ """Export all products."""
+ ALL
-input ProductVariantSortingInput {
- direction: OrderDirection!
- field: ProductVariantSortField!
-}
+ """Export products with given ids."""
+ IDS
-type ProductVariantStocksCreate {
- productVariant: ProductVariant
- bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [BulkStockError!]!
+ """Export the filtered products."""
+ FILTER
}
-type ProductVariantStocksDelete {
- productVariant: ProductVariant
- stockErrors: [StockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [StockError!]!
-}
+input ExportInfoInput {
+ """List of attribute ids witch should be exported."""
+ attributes: [ID!]
-type ProductVariantStocksUpdate {
- productVariant: ProductVariant
- bulkStockErrors: [BulkStockError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [BulkStockError!]!
-}
+ """List of warehouse ids witch should be exported."""
+ warehouses: [ID!]
-type ProductVariantTranslatableContent implements Node {
- id: ID!
- name: String!
- translation(languageCode: LanguageCodeEnum!): ProductVariantTranslation
- productVariant: ProductVariant @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
- attributeValues: [AttributeValueTranslatableContent!]!
-}
+ """List of channels ids which should be exported."""
+ channels: [ID!]
-type ProductVariantTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- productVariant: ProductVariant
+ """List of product fields witch should be exported."""
+ fields: [ProductFieldEnum!]
}
-type ProductVariantTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- name: String!
+enum ProductFieldEnum {
+ NAME
+ DESCRIPTION
+ PRODUCT_TYPE
+ CATEGORY
+ PRODUCT_WEIGHT
+ COLLECTIONS
+ CHARGE_TAXES
+ PRODUCT_MEDIA
+ VARIANT_ID
+ VARIANT_SKU
+ VARIANT_WEIGHT
+ VARIANT_MEDIA
}
-type ProductVariantUpdate {
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
- productVariant: ProductVariant
+"""An enumeration."""
+enum FileTypesEnum {
+ CSV
+ XLSX
}
-input PublishableChannelListingInput {
- channelId: ID!
- isPublished: Boolean
- publicationDate: Date
+"""
+New in Saleor 3.1. Export gift cards to csv file. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type ExportGiftCards {
+ """
+ The newly created export file job which is responsible for export data.
+ """
+ exportFile: ExportFile
+ errors: [ExportError!]!
}
-type Query {
- webhook(id: ID!): Webhook
- webhookEvents: [WebhookEvent] @deprecated(reason: "This field will be removed in Saleor 4.0. Use `WebhookEventTypeAsyncEnum` and `WebhookEventTypeSyncEnum` to get available event types.")
- webhookSamplePayload(eventType: WebhookSampleEventTypeEnum!): JSONString
- warehouse(id: ID!): Warehouse
- warehouses(filter: WarehouseFilterInput, sortBy: WarehouseSortingInput, before: String, after: String, first: Int, last: Int): WarehouseCountableConnection
- translations(kind: TranslatableKinds!, before: String, after: String, first: Int, last: Int): TranslatableItemConnection
- translation(id: ID!, kind: TranslatableKinds!): TranslatableItem
- stock(id: ID!): Stock
- stocks(filter: StockFilterInput, before: String, after: String, first: Int, last: Int): StockCountableConnection
- shop: Shop!
- orderSettings: OrderSettings
- giftCardSettings: GiftCardSettings!
- shippingZone(id: ID!, channel: String): ShippingZone
- shippingZones(filter: ShippingZoneFilterInput, channel: String, before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection
- digitalContent(id: ID!): DigitalContent
- digitalContents(before: String, after: String, first: Int, last: Int): DigitalContentCountableConnection
- categories(filter: CategoryFilterInput, sortBy: CategorySortingInput, level: Int, before: String, after: String, first: Int, last: Int): CategoryCountableConnection
- category(id: ID, slug: String): Category
- collection(id: ID, slug: String, channel: String): Collection
- collections(filter: CollectionFilterInput, sortBy: CollectionSortingInput, channel: String, before: String, after: String, first: Int, last: Int): CollectionCountableConnection
- product(id: ID, slug: String, channel: String): Product
- products(filter: ProductFilterInput, sortBy: ProductOrder, channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection
- productType(id: ID!): ProductType
- productTypes(filter: ProductTypeFilterInput, sortBy: ProductTypeSortingInput, before: String, after: String, first: Int, last: Int): ProductTypeCountableConnection
- productVariant(id: ID, sku: String, channel: String): ProductVariant
- productVariants(ids: [ID], channel: String, filter: ProductVariantFilterInput, sortBy: ProductVariantSortingInput, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
- reportProductSales(period: ReportingPeriod!, channel: String!, before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
- payment(id: ID!): Payment
- payments(filter: PaymentFilterInput, before: String, after: String, first: Int, last: Int): PaymentCountableConnection
- page(id: ID, slug: String): Page
- pages(sortBy: PageSortingInput, filter: PageFilterInput, before: String, after: String, first: Int, last: Int): PageCountableConnection
- pageType(id: ID!): PageType
- pageTypes(sortBy: PageTypeSortingInput, filter: PageTypeFilterInput, before: String, after: String, first: Int, last: Int): PageTypeCountableConnection
- homepageEvents(before: String, after: String, first: Int, last: Int): OrderEventCountableConnection
- order(id: ID!): Order
- orders(sortBy: OrderSortingInput, filter: OrderFilterInput, channel: String, before: String, after: String, first: Int, last: Int): OrderCountableConnection
- draftOrders(sortBy: OrderSortingInput, filter: OrderDraftFilterInput, before: String, after: String, first: Int, last: Int): OrderCountableConnection
- ordersTotal(period: ReportingPeriod, channel: String): TaxedMoney
- orderByToken(token: UUID!): Order
- menu(channel: String, id: ID, name: String, slug: String): Menu
- menus(channel: String, sortBy: MenuSortingInput, filter: MenuFilterInput, before: String, after: String, first: Int, last: Int): MenuCountableConnection
- menuItem(id: ID!, channel: String): MenuItem
- menuItems(channel: String, sortBy: MenuItemSortingInput, filter: MenuItemFilterInput, before: String, after: String, first: Int, last: Int): MenuItemCountableConnection
- giftCard(id: ID!): GiftCard
- giftCards(sortBy: GiftCardSortingInput, filter: GiftCardFilterInput, before: String, after: String, first: Int, last: Int): GiftCardCountableConnection
- giftCardCurrencies: [String!]!
- giftCardTags(filter: GiftCardTagFilterInput, before: String, after: String, first: Int, last: Int): GiftCardTagCountableConnection
- plugin(id: ID!): Plugin
- plugins(filter: PluginFilterInput, sortBy: PluginSortingInput, before: String, after: String, first: Int, last: Int): PluginCountableConnection
- sale(id: ID!, channel: String): Sale
- sales(filter: SaleFilterInput, sortBy: SaleSortingInput, query: String, channel: String, before: String, after: String, first: Int, last: Int): SaleCountableConnection
- voucher(id: ID!, channel: String): Voucher
- vouchers(filter: VoucherFilterInput, sortBy: VoucherSortingInput, query: String, channel: String, before: String, after: String, first: Int, last: Int): VoucherCountableConnection
- exportFile(id: ID!): ExportFile
- exportFiles(filter: ExportFileFilterInput, sortBy: ExportFileSortingInput, before: String, after: String, first: Int, last: Int): ExportFileCountableConnection
- taxTypes: [TaxType]
- checkout(token: UUID): Checkout
- checkouts(sortBy: CheckoutSortingInput, filter: CheckoutFilterInput, channel: String, before: String, after: String, first: Int, last: Int): CheckoutCountableConnection
- checkoutLines(before: String, after: String, first: Int, last: Int): CheckoutLineCountableConnection
- channel(id: ID): Channel
- channels: [Channel!]
- attributes(filter: AttributeFilterInput, sortBy: AttributeSortingInput, channel: String, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
- attribute(id: ID, slug: String): Attribute
- appsInstallations: [AppInstallation!]!
- apps(filter: AppFilterInput, sortBy: AppSortingInput, before: String, after: String, first: Int, last: Int): AppCountableConnection
- app(id: ID): App
- appExtensions(filter: AppExtensionFilterInput, before: String, after: String, first: Int, last: Int): AppExtensionCountableConnection
- appExtension(id: ID!): AppExtension
- addressValidationRules(countryCode: CountryCode!, countryArea: String, city: String, cityArea: String): AddressValidationData
- address(id: ID!): Address
- customers(filter: CustomerFilterInput, sortBy: UserSortingInput, before: String, after: String, first: Int, last: Int): UserCountableConnection
- permissionGroups(filter: PermissionGroupFilterInput, sortBy: PermissionGroupSortingInput, before: String, after: String, first: Int, last: Int): GroupCountableConnection
- permissionGroup(id: ID!): Group
- me: User
- staffUsers(filter: StaffUserInput, sortBy: UserSortingInput, before: String, after: String, first: Int, last: Int): UserCountableConnection
- user(id: ID, email: String): User
- _entities(representations: [_Any]): [_Entity]
- _service: _Service
-}
+input ExportGiftCardsInput {
+ """Determine which gift cards should be exported."""
+ scope: ExportScope!
-type ReducedRate {
- rate: Float!
- rateType: String!
-}
+ """Filtering options for gift cards."""
+ filter: GiftCardFilterInput
-type RefreshToken {
- token: String
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """List of gift cards IDs to export."""
+ ids: [ID!]
-input ReorderInput {
- id: ID!
- sortOrder: Int
+ """Type of exported file."""
+ fileType: FileTypesEnum!
}
-enum ReportingPeriod {
- TODAY
- THIS_MONTH
+"""
+Upload a file. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
+"""
+type FileUpload {
+ uploadedFile: File
+ uploadErrors: [UploadError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [UploadError!]!
}
-type RequestEmailChange {
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+type UploadError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
-type RequestPasswordReset {
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
-}
+ """The error message."""
+ message: String
-type Sale implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String!
- type: SaleType!
- startDate: DateTime!
- endDate: DateTime
- created: DateTime!
- updatedAt: DateTime!
- categories(before: String, after: String, first: Int, last: Int): CategoryCountableConnection
- collections(before: String, after: String, first: Int, last: Int): CollectionCountableConnection
- products(before: String, after: String, first: Int, last: Int): ProductCountableConnection
- variants(before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
- translation(languageCode: LanguageCodeEnum!): SaleTranslation
- channelListings: [SaleChannelListing!]
- discountValue: Float
- currency: String
+ """The error code."""
+ code: UploadErrorCode!
}
-type SaleAddCatalogues {
- sale: Sale
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
+"""An enumeration."""
+enum UploadErrorCode {
+ GRAPHQL_ERROR
}
-type SaleBulkDelete {
- count: Int!
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
+"""Adds a gift card or a voucher to a checkout."""
+type CheckoutAddPromoCode {
+ """The checkout with the added gift card or voucher."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-type SaleChannelListing implements Node {
- id: ID!
- channel: Channel!
- discountValue: Float!
- currency: String!
-}
+type CheckoutError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
-input SaleChannelListingAddInput {
- channelId: ID!
- discountValue: PositiveDecimal!
-}
+ """The error message."""
+ message: String
-input SaleChannelListingInput {
- addChannels: [SaleChannelListingAddInput!]
- removeChannels: [ID!]
-}
+ """The error code."""
+ code: CheckoutErrorCode!
-type SaleChannelListingUpdate {
- sale: Sale
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
-}
+ """List of varint IDs which causes the error."""
+ variants: [ID!]
-type SaleCountableConnection {
- pageInfo: PageInfo!
- edges: [SaleCountableEdge!]!
- totalCount: Int
-}
+ """List of line Ids which cause the error."""
+ lines: [ID!]
-type SaleCountableEdge {
- node: Sale!
- cursor: String!
+ """A type of address that causes the error."""
+ addressType: AddressTypeEnum
}
-type SaleCreate {
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
- sale: Sale
+"""An enumeration."""
+enum CheckoutErrorCode {
+ BILLING_ADDRESS_NOT_SET
+ CHECKOUT_NOT_FULLY_PAID
+ GRAPHQL_ERROR
+ PRODUCT_NOT_PUBLISHED
+ PRODUCT_UNAVAILABLE_FOR_PURCHASE
+ INSUFFICIENT_STOCK
+ INVALID
+ INVALID_SHIPPING_METHOD
+ NOT_FOUND
+ PAYMENT_ERROR
+ QUANTITY_GREATER_THAN_LIMIT
+ REQUIRED
+ SHIPPING_ADDRESS_NOT_SET
+ SHIPPING_METHOD_NOT_APPLICABLE
+ DELIVERY_METHOD_NOT_APPLICABLE
+ SHIPPING_METHOD_NOT_SET
+ SHIPPING_NOT_REQUIRED
+ TAX_ERROR
+ UNIQUE
+ VOUCHER_NOT_APPLICABLE
+ GIFT_CARD_NOT_APPLICABLE
+ ZERO_QUANTITY
+ MISSING_CHANNEL_SLUG
+ CHANNEL_INACTIVE
+ UNAVAILABLE_VARIANT_IN_CHANNEL
+ EMAIL_NOT_SET
+ NO_LINES
}
-type SaleDelete {
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
- sale: Sale
+"""Update billing address in the existing checkout."""
+type CheckoutBillingAddressUpdate {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-input SaleFilterInput {
- status: [DiscountStatusEnum]
- saleType: DiscountValueTypeEnum
- started: DateTimeRangeInput
- search: String
- metadata: [MetadataFilter]
- updatedAt: DateTimeRangeInput
-}
+"""
+Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation.
+"""
+type CheckoutComplete {
+ """Placed order."""
+ order: Order
-input SaleInput {
- name: String
- type: DiscountValueTypeEnum
- value: PositiveDecimal
- products: [ID]
- variants: [ID]
- categories: [ID]
- collections: [ID]
- startDate: DateTime
- endDate: DateTime
-}
+ """
+ Set to true if payment needs to be confirmed before checkout is complete.
+ """
+ confirmationNeeded: Boolean!
-type SaleRemoveCatalogues {
- sale: Sale
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
+ """Confirmation data used to process additional authorization steps."""
+ confirmationData: JSONString
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-enum SaleSortField {
- NAME
- START_DATE
- END_DATE
- VALUE
- TYPE
- CREATED_AT
- LAST_MODIFIED_AT
+"""Create a new checkout."""
+type CheckoutCreate {
+ """
+ Whether the checkout was created or the current active one was returned. Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart with an active checkout.
+ """
+ created: Boolean @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `true`.")
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
+ checkout: Checkout
}
-input SaleSortingInput {
- direction: OrderDirection!
+input CheckoutCreateInput {
+ """Slug of a channel in which to create a checkout."""
channel: String
- field: SaleSortField!
-}
-type SaleTranslatableContent implements Node {
- id: ID!
- name: String!
- translation(languageCode: LanguageCodeEnum!): SaleTranslation
- sale: Sale @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
-}
+ """
+ A list of checkout lines, each containing information about an item in the checkout.
+ """
+ lines: [CheckoutLineInput]!
-type SaleTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- sale: Sale
-}
+ """The customer's email address."""
+ email: String
-type SaleTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- name: String
-}
+ """
+ The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn't contain shippable items.
+ """
+ shippingAddress: AddressInput
-enum SaleType {
- FIXED
- PERCENTAGE
-}
+ """Billing address of the customer."""
+ billingAddress: AddressInput
-type SaleUpdate {
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
- sale: Sale
+ """Checkout language code."""
+ languageCode: LanguageCodeEnum
}
-type SelectedAttribute {
- attribute: Attribute!
- values: [AttributeValue]!
-}
+input CheckoutLineInput {
+ """The number of items purchased."""
+ quantity: Int!
-input SeoInput {
- title: String
- description: String
+ """ID of the product variant."""
+ variantId: ID!
}
-type SetPassword {
- token: String
- refreshToken: String
- csrfToken: String
- user: User
- accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [AccountError!]!
+"""Sets the customer as the owner of the checkout."""
+type CheckoutCustomerAttach {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-type ShippingError {
- field: String
- message: String
- code: ShippingErrorCode!
- warehouses: [ID!]
- channels: [ID!]
+"""Removes the user assigned as the owner of the checkout."""
+type CheckoutCustomerDetach {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-enum ShippingErrorCode {
- ALREADY_EXISTS
- GRAPHQL_ERROR
- INVALID
- MAX_LESS_THAN_MIN
- NOT_FOUND
- REQUIRED
- UNIQUE
- DUPLICATED_INPUT_ITEM
+"""Updates email address in the existing checkout object."""
+type CheckoutEmailUpdate {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-type ShippingMethod implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- type: ShippingMethodTypeEnum @deprecated(reason: "This field will be removed in Saleor 4.0.")
- name: String!
- description: JSONString
- maximumDeliveryDays: Int
- minimumDeliveryDays: Int
- maximumOrderWeight: Weight @deprecated(reason: "This field will be removed in Saleor 4.0.")
- minimumOrderWeight: Weight @deprecated(reason: "This field will be removed in Saleor 4.0.")
- translation(languageCode: LanguageCodeEnum!): ShippingMethodTranslation
- price: Money!
- maximumOrderPrice: Money
- minimumOrderPrice: Money
- active: Boolean!
- message: String
+"""Deletes a CheckoutLine."""
+type CheckoutLineDelete {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-type ShippingMethodChannelListing implements Node {
- id: ID!
- channel: Channel!
- maximumOrderPrice: Money
- minimumOrderPrice: Money
- price: Money
+"""Deletes checkout lines."""
+type CheckoutLinesDelete {
+ """An updated checkout."""
+ checkout: Checkout
+ errors: [CheckoutError!]!
}
-input ShippingMethodChannelListingAddInput {
- channelId: ID!
- price: PositiveDecimal
- minimumOrderPrice: PositiveDecimal
- maximumOrderPrice: PositiveDecimal
+"""
+Adds a checkout line to the existing checkout.If line was already in checkout, its quantity will be increased.
+"""
+type CheckoutLinesAdd {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-input ShippingMethodChannelListingInput {
- addChannels: [ShippingMethodChannelListingAddInput!]
- removeChannels: [ID!]
+"""Updates checkout line in the existing checkout."""
+type CheckoutLinesUpdate {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-type ShippingMethodChannelListingUpdate {
- shippingMethod: ShippingMethodType
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
+"""Remove a gift card or a voucher from a checkout."""
+type CheckoutRemovePromoCode {
+ """The checkout with the removed gift card or voucher."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-type ShippingMethodPostalCodeRule implements Node {
- id: ID!
- start: String
- end: String
- inclusionType: PostalCodeRuleInclusionTypeEnum
-}
+"""Create a new payment for given checkout."""
+type CheckoutPaymentCreate {
+ """Related checkout object."""
+ checkout: Checkout
-type ShippingMethodTranslatableContent implements Node {
- id: ID!
- name: String!
- description: JSONString
- translation(languageCode: LanguageCodeEnum!): ShippingMethodTranslation
- shippingMethod: ShippingMethodType @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+ """A newly created payment."""
+ payment: Payment
+ paymentErrors: [PaymentError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PaymentError!]!
}
-type ShippingMethodTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- name: String
- description: JSONString
-}
+input PaymentInput {
+ """A gateway to use with that payment."""
+ gateway: String!
-type ShippingMethodType implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String!
- description: JSONString
- type: ShippingMethodTypeEnum
- translation(languageCode: LanguageCodeEnum!): ShippingMethodTranslation
- channelListings: [ShippingMethodChannelListing!]
- maximumOrderPrice: Money
- minimumOrderPrice: Money
- postalCodeRules: [ShippingMethodPostalCodeRule]
- excludedProducts(before: String, after: String, first: Int, last: Int): ProductCountableConnection
- minimumOrderWeight: Weight
- maximumOrderWeight: Weight
- maximumDeliveryDays: Int
- minimumDeliveryDays: Int
-}
+ """
+ Client-side generated payment token, representing customer's billing data in a secure manner.
+ """
+ token: String
-enum ShippingMethodTypeEnum {
- PRICE
- WEIGHT
-}
+ """
+ Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used.
+ """
+ amount: PositiveDecimal
-input ShippingPostalCodeRulesCreateInputRange {
- start: String!
- end: String
-}
+ """
+ URL of a storefront view where user should be redirected after requiring additional actions. Payment with additional actions will not be finished if this field is not provided.
+ """
+ returnUrl: String
-type ShippingPriceBulkDelete {
- count: Int!
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
+ """New in Saleor 3.1. Payment store type."""
+ storePaymentMethod: StorePaymentMethodEnum = none
+
+ """New in Saleor 3.1. User public metadata."""
+ metadata: [MetadataInput!]
}
-type ShippingPriceCreate {
- shippingZone: ShippingZone
- shippingMethod: ShippingMethodType
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
+"""Enum representing the type of a payment storage in a gateway."""
+enum StorePaymentMethodEnum {
+ """
+ On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow.
+ """
+ ON_SESSION
+
+ """
+ Off session storage type. The payment is stored to be reused even if the customer is absent.
+ """
+ OFF_SESSION
+
+ """Storage is disabled. The payment is not stored."""
+ NONE
}
-type ShippingPriceDelete {
- shippingMethod: ShippingMethodType
- shippingZone: ShippingZone
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
+"""Update shipping address in the existing checkout."""
+type CheckoutShippingAddressUpdate {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-type ShippingPriceExcludeProducts {
- shippingMethod: ShippingMethodType
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
+"""Updates the shipping method of the checkout."""
+type CheckoutShippingMethodUpdate {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-input ShippingPriceExcludeProductsInput {
- products: [ID]!
+"""
+New in Saleor 3.1. Updates the delivery method (shipping method or pick up point) of the checkout. Note: this feature is in a preview state and can be subject to changes at later point.
+"""
+type CheckoutDeliveryMethodUpdate {
+ """An updated checkout."""
+ checkout: Checkout
+ errors: [CheckoutError!]!
}
-input ShippingPriceInput {
- name: String
- description: JSONString
- minimumOrderWeight: WeightScalar
- maximumOrderWeight: WeightScalar
- maximumDeliveryDays: Int
- minimumDeliveryDays: Int
- type: ShippingMethodTypeEnum
- shippingZone: ID
- addPostalCodeRules: [ShippingPostalCodeRulesCreateInputRange!]
- deletePostalCodeRules: [ID!]
- inclusionType: PostalCodeRuleInclusionTypeEnum
+"""Update language code in the existing checkout."""
+type CheckoutLanguageCodeUpdate {
+ """An updated checkout."""
+ checkout: Checkout
+ checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [CheckoutError!]!
}
-type ShippingPriceRemoveProductFromExclude {
- shippingMethod: ShippingMethodType
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
+"""Creates new channel."""
+type ChannelCreate {
+ channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ChannelError!]!
+ channel: Channel
}
-type ShippingPriceTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- shippingMethod: ShippingMethodType
-}
+type ChannelError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
+ field: String
-input ShippingPriceTranslationInput {
- name: String
- description: JSONString
+ """The error message."""
+ message: String
+
+ """The error code."""
+ code: ChannelErrorCode!
+
+ """List of shipping zone IDs which causes the error."""
+ shippingZones: [ID!]
}
-type ShippingPriceUpdate {
- shippingZone: ShippingZone
- shippingMethod: ShippingMethodType
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
+"""An enumeration."""
+enum ChannelErrorCode {
+ ALREADY_EXISTS
+ GRAPHQL_ERROR
+ INVALID
+ NOT_FOUND
+ REQUIRED
+ UNIQUE
+ CHANNELS_CURRENCY_MUST_BE_THE_SAME
+ CHANNEL_WITH_ORDERS
+ DUPLICATED_INPUT_ITEM
}
-type ShippingZone implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
+input ChannelCreateInput {
+ """isActive flag."""
+ isActive: Boolean
+
+ """Name of the channel."""
name: String!
- default: Boolean!
- priceRange: MoneyRange
- countries: [CountryDisplay]
- shippingMethods: [ShippingMethodType]
- warehouses: [Warehouse!]!
- channels: [Channel!]!
- description: String
-}
-type ShippingZoneBulkDelete {
- count: Int!
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
-}
+ """Slug of the channel."""
+ slug: String!
-type ShippingZoneCountableConnection {
- pageInfo: PageInfo!
- edges: [ShippingZoneCountableEdge!]!
- totalCount: Int
-}
+ """Currency of the channel."""
+ currencyCode: String!
-type ShippingZoneCountableEdge {
- node: ShippingZone!
- cursor: String!
+ """
+ New in Saleor 3.1. Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.
+ """
+ defaultCountry: CountryCode!
+
+ """List of shipping zones to assign to the channel."""
+ addShippingZones: [ID!]
}
-type ShippingZoneCreate {
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
- shippingZone: ShippingZone
+"""Update a channel."""
+type ChannelUpdate {
+ channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ChannelError!]!
+ channel: Channel
}
-input ShippingZoneCreateInput {
+input ChannelUpdateInput {
+ """isActive flag."""
+ isActive: Boolean
+
+ """Name of the channel."""
name: String
- description: String
- countries: [String]
- default: Boolean
- addWarehouses: [ID]
- addChannels: [ID!]
-}
-type ShippingZoneDelete {
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
- shippingZone: ShippingZone
-}
+ """Slug of the channel."""
+ slug: String
-input ShippingZoneFilterInput {
- search: String
- channels: [ID]
+ """
+ New in Saleor 3.1. Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.
+ """
+ defaultCountry: CountryCode
+
+ """List of shipping zones to assign to the channel."""
+ addShippingZones: [ID!]
+
+ """List of shipping zones to unassign from the channel."""
+ removeShippingZones: [ID!]
}
-type ShippingZoneUpdate {
- shippingErrors: [ShippingError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShippingError!]!
- shippingZone: ShippingZone
+"""
+Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed.
+"""
+type ChannelDelete {
+ channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ChannelError!]!
+ channel: Channel
}
-input ShippingZoneUpdateInput {
- name: String
- description: String
- countries: [String]
- default: Boolean
- addWarehouses: [ID]
- addChannels: [ID!]
- removeWarehouses: [ID]
- removeChannels: [ID!]
+input ChannelDeleteInput {
+ """ID of channel to migrate orders from origin channel."""
+ channelId: ID!
}
-type Shop {
- availablePaymentGateways(currency: String, channel: String): [PaymentGateway!]!
- availableExternalAuthentications: [ExternalAuthentication!]!
- availableShippingMethods(channel: String!, address: AddressInput): [ShippingMethod]
- channelCurrencies: [String!]!
- countries(languageCode: LanguageCodeEnum, filter: CountryFilterInput): [CountryDisplay!]!
- defaultCountry: CountryDisplay
- defaultMailSenderName: String
- defaultMailSenderAddress: String
- description: String
- domain: Domain!
- languages: [LanguageDisplay]!
- name: String!
- permissions: [Permission]!
- phonePrefixes: [String]!
- headerText: String
- includeTaxesInPrices: Boolean!
- fulfillmentAutoApprove: Boolean!
- fulfillmentAllowUnpaid: Boolean!
- displayGrossPrices: Boolean!
- chargeTaxesOnShipping: Boolean!
- trackInventoryByDefault: Boolean
- defaultWeightUnit: WeightUnitsEnum
- translation(languageCode: LanguageCodeEnum!): ShopTranslation
- automaticFulfillmentDigitalProducts: Boolean
- reserveStockDurationAnonymousUser: Int
- reserveStockDurationAuthenticatedUser: Int
- limitQuantityPerCheckout: Int
- defaultDigitalMaxDownloads: Int
- defaultDigitalUrlValidDays: Int
- companyAddress: Address
- customerSetPasswordUrl: String
- staffNotificationRecipients: [StaffNotificationRecipient]
- limits: LimitInfo!
- version: String!
+"""Activate a channel."""
+type ChannelActivate {
+ """Activated channel."""
+ channel: Channel
+ channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ChannelError!]!
}
-type ShopAddressUpdate {
- shop: Shop
- shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShopError!]!
+"""Deactivate a channel."""
+type ChannelDeactivate {
+ """Deactivated channel."""
+ channel: Channel
+ channelErrors: [ChannelError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [ChannelError!]!
}
-type ShopDomainUpdate {
- shop: Shop
- shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShopError!]!
+"""Creates an attribute."""
+type AttributeCreate {
+ attribute: Attribute
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
}
-type ShopError {
+type AttributeError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: ShopErrorCode!
+
+ """The error code."""
+ code: AttributeErrorCode!
}
-enum ShopErrorCode {
+"""An enumeration."""
+enum AttributeErrorCode {
ALREADY_EXISTS
- CANNOT_FETCH_TAX_RATES
GRAPHQL_ERROR
INVALID
NOT_FOUND
@@ -6678,1034 +14399,1118 @@ enum ShopErrorCode {
UNIQUE
}
-type ShopFetchTaxRates {
- shop: Shop
- shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShopError!]!
-}
+input AttributeCreateInput {
+ """The input type to use for entering attribute values in the dashboard."""
+ inputType: AttributeInputTypeEnum
-input ShopSettingsInput {
- headerText: String
- description: String
- includeTaxesInPrices: Boolean
- displayGrossPrices: Boolean
- chargeTaxesOnShipping: Boolean
- trackInventoryByDefault: Boolean
- defaultWeightUnit: WeightUnitsEnum
- automaticFulfillmentDigitalProducts: Boolean
- fulfillmentAutoApprove: Boolean
- fulfillmentAllowUnpaid: Boolean
- defaultDigitalMaxDownloads: Int
- defaultDigitalUrlValidDays: Int
- defaultMailSenderName: String
- defaultMailSenderAddress: String
- customerSetPasswordUrl: String
- reserveStockDurationAnonymousUser: Int
- reserveStockDurationAuthenticatedUser: Int
- limitQuantityPerCheckout: Int
-}
+ """The entity type which can be used as a reference."""
+ entityType: AttributeEntityTypeEnum
-type ShopSettingsTranslate {
- shop: Shop
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
+ """Name of an attribute displayed in the interface."""
+ name: String!
+
+ """Internal representation of an attribute name."""
+ slug: String
+
+ """The attribute type."""
+ type: AttributeTypeEnum!
+
+ """The unit of attribute values."""
+ unit: MeasurementUnitsEnum
+
+ """List of attribute's values."""
+ values: [AttributeValueCreateInput]
+
+ """Whether the attribute requires values to be passed or not."""
+ valueRequired: Boolean
+
+ """Whether the attribute is for variants only."""
+ isVariantOnly: Boolean
+
+ """Whether the attribute should be visible or not in storefront."""
+ visibleInStorefront: Boolean
+
+ """Whether the attribute can be filtered in storefront."""
+ filterableInStorefront: Boolean
+
+ """Whether the attribute can be filtered in dashboard."""
+ filterableInDashboard: Boolean
+
+ """
+ The position of the attribute in the storefront navigation (0 by default).
+ """
+ storefrontSearchPosition: Int
+
+ """Whether the attribute can be displayed in the admin product list."""
+ availableInGrid: Boolean
}
-input ShopSettingsTranslationInput {
- headerText: String
- description: String
+input AttributeValueCreateInput {
+ """
+ Represent value of the attribute value (e.g. color values for swatch attributes).
+ """
+ value: String
+
+ """Represents the text (JSON) of the attribute value."""
+ richText: JSONString
+
+ """URL of the file attribute. Every time, a new value is created."""
+ fileUrl: String
+
+ """File content type."""
+ contentType: String
+
+ """Name of a value displayed in the interface."""
+ name: String!
}
-type ShopSettingsUpdate {
- shop: Shop
- shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShopError!]!
+"""Deletes an attribute."""
+type AttributeDelete {
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
+ attribute: Attribute
}
-type ShopTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- headerText: String!
- description: String!
+"""Updates attribute."""
+type AttributeUpdate {
+ attribute: Attribute
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
}
-input SiteDomainInput {
- domain: String
+input AttributeUpdateInput {
+ """Name of an attribute displayed in the interface."""
name: String
-}
-type StaffBulkDelete {
- count: Int!
- staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [StaffError!]!
-}
+ """Internal representation of an attribute name."""
+ slug: String
-type StaffCreate {
- staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [StaffError!]!
- user: User
-}
+ """The unit of attribute values."""
+ unit: MeasurementUnitsEnum
-input StaffCreateInput {
- firstName: String
- lastName: String
- email: String
- isActive: Boolean
- note: String
- addGroups: [ID!]
- redirectUrl: String
-}
+ """IDs of values to be removed from this attribute."""
+ removeValues: [ID]
-type StaffDelete {
- staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [StaffError!]!
- user: User
-}
+ """New values to be created for this attribute."""
+ addValues: [AttributeValueUpdateInput]
-type StaffError {
- field: String
- message: String
- code: AccountErrorCode!
- addressType: AddressTypeEnum
- permissions: [PermissionEnum!]
- groups: [ID!]
- users: [ID!]
-}
+ """Whether the attribute requires values to be passed or not."""
+ valueRequired: Boolean
-enum StaffMemberStatus {
- ACTIVE
- DEACTIVATED
-}
+ """Whether the attribute is for variants only."""
+ isVariantOnly: Boolean
-type StaffNotificationRecipient implements Node {
- id: ID!
- user: User
- email: String
- active: Boolean
+ """Whether the attribute should be visible or not in storefront."""
+ visibleInStorefront: Boolean
+
+ """Whether the attribute can be filtered in storefront."""
+ filterableInStorefront: Boolean
+
+ """Whether the attribute can be filtered in dashboard."""
+ filterableInDashboard: Boolean
+
+ """
+ The position of the attribute in the storefront navigation (0 by default).
+ """
+ storefrontSearchPosition: Int
+
+ """Whether the attribute can be displayed in the admin product list."""
+ availableInGrid: Boolean
}
-type StaffNotificationRecipientCreate {
- shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShopError!]!
- staffNotificationRecipient: StaffNotificationRecipient
+input AttributeValueUpdateInput {
+ """
+ Represent value of the attribute value (e.g. color values for swatch attributes).
+ """
+ value: String
+
+ """Represents the text (JSON) of the attribute value."""
+ richText: JSONString
+
+ """URL of the file attribute. Every time, a new value is created."""
+ fileUrl: String
+
+ """File content type."""
+ contentType: String
+
+ """Name of a value displayed in the interface."""
+ name: String
}
-type StaffNotificationRecipientDelete {
- shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShopError!]!
- staffNotificationRecipient: StaffNotificationRecipient
+"""Creates/updates translations for an attribute."""
+type AttributeTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ attribute: Attribute
}
-input StaffNotificationRecipientInput {
- user: ID
- email: String
- active: Boolean
+"""Deletes attributes."""
+type AttributeBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
}
-type StaffNotificationRecipientUpdate {
- shopErrors: [ShopError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ShopError!]!
- staffNotificationRecipient: StaffNotificationRecipient
+"""Deletes values of attributes."""
+type AttributeValueBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
}
-type StaffUpdate {
- staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [StaffError!]!
- user: User
+"""Creates a value for an attribute."""
+type AttributeValueCreate {
+ """The updated attribute."""
+ attribute: Attribute
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
+ attributeValue: AttributeValue
}
-input StaffUpdateInput {
- firstName: String
- lastName: String
- email: String
- isActive: Boolean
- note: String
- addGroups: [ID!]
- removeGroups: [ID!]
+"""Deletes a value of an attribute."""
+type AttributeValueDelete {
+ """The updated attribute."""
+ attribute: Attribute
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
+ attributeValue: AttributeValue
}
-input StaffUserInput {
- status: StaffMemberStatus
- search: String
- ids: [ID]
+"""Updates value of an attribute."""
+type AttributeValueUpdate {
+ """The updated attribute."""
+ attribute: Attribute
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
+ attributeValue: AttributeValue
}
-type Stock implements Node {
- id: ID!
- warehouse: Warehouse!
- productVariant: ProductVariant!
- quantity: Int!
- quantityAllocated: Int!
- quantityReserved: Int!
+"""Creates/updates translations for an attribute value."""
+type AttributeValueTranslate {
+ translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [TranslationError!]!
+ attributeValue: AttributeValue
}
-enum StockAvailability {
- IN_STOCK
- OUT_OF_STOCK
+input AttributeValueTranslationInput {
+ name: String
+ richText: JSONString
}
-type StockCountableConnection {
- pageInfo: PageInfo!
- edges: [StockCountableEdge!]!
- totalCount: Int
+"""Reorder the values of an attribute."""
+type AttributeReorderValues {
+ """Attribute from which values are reordered."""
+ attribute: Attribute
+ attributeErrors: [AttributeError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AttributeError!]!
}
-type StockCountableEdge {
- node: Stock!
- cursor: String!
+"""Creates a new app."""
+type AppCreate {
+ """The newly created authentication token."""
+ authToken: String
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ app: App
}
-type StockError {
+type AppError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: StockErrorCode!
+
+ """The error code."""
+ code: AppErrorCode!
+
+ """List of permissions which causes the error."""
+ permissions: [PermissionEnum!]
}
-enum StockErrorCode {
- ALREADY_EXISTS
+"""An enumeration."""
+enum AppErrorCode {
+ FORBIDDEN
GRAPHQL_ERROR
INVALID
+ INVALID_STATUS
+ INVALID_PERMISSION
+ INVALID_URL_FORMAT
+ INVALID_MANIFEST_FORMAT
+ MANIFEST_URL_CANT_CONNECT
NOT_FOUND
REQUIRED
UNIQUE
+ OUT_OF_SCOPE_APP
+ OUT_OF_SCOPE_PERMISSION
}
-input StockFilterInput {
- quantity: Float
- search: String
+input AppInput {
+ """Name of the app."""
+ name: String
+
+ """List of permission code names to assign to this app."""
+ permissions: [PermissionEnum]
}
-input StockInput {
- warehouse: ID!
- quantity: Int!
+"""Updates an existing app."""
+type AppUpdate {
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ app: App
}
-enum StorePaymentMethodEnum {
- ON_SESSION
- OFF_SESSION
- NONE
+"""Deletes an app."""
+type AppDelete {
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ app: App
}
-type TaxType {
- description: String
- taxCode: String
+"""Creates a new token."""
+type AppTokenCreate {
+ """The newly created authentication token."""
+ authToken: String
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ appToken: AppToken
}
-type TaxedMoney {
- currency: String!
- gross: Money!
- net: Money!
- tax: Money!
+input AppTokenInput {
+ """Name of the token."""
+ name: String
+
+ """ID of app."""
+ app: ID!
}
-type TaxedMoneyRange {
- start: TaxedMoney
- stop: TaxedMoney
+"""Deletes an authentication token assigned to app."""
+type AppTokenDelete {
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ appToken: AppToken
}
-type TimePeriod {
- amount: Int!
- type: TimePeriodTypeEnum!
+"""Verify provided app token."""
+type AppTokenVerify {
+ """Determine if token is valid or not."""
+ valid: Boolean!
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+}
+
+"""Install new app by using app manifest."""
+type AppInstall {
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ appInstallation: AppInstallation
+}
+
+input AppInstallInput {
+ """Name of the app to install."""
+ appName: String
+
+ """Url to app's manifest in JSON format."""
+ manifestUrl: String
+
+ """Determine if app will be set active or not."""
+ activateAfterInstallation: Boolean = true
+
+ """List of permission code names to assign to this app."""
+ permissions: [PermissionEnum]
}
-input TimePeriodInputType {
- amount: Int!
- type: TimePeriodTypeEnum!
+"""Retry failed installation of new app."""
+type AppRetryInstall {
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ appInstallation: AppInstallation
}
-enum TimePeriodTypeEnum {
- DAY
- WEEK
- MONTH
- YEAR
+"""Delete failed installation."""
+type AppDeleteFailedInstallation {
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ appInstallation: AppInstallation
}
-type Transaction implements Node {
- id: ID!
- created: DateTime!
- payment: Payment!
- token: String!
- kind: TransactionKind!
- isSuccess: Boolean!
- error: String
- gatewayResponse: JSONString!
- amount: Money
+"""Fetch and validate manifest."""
+type AppFetchManifest {
+ manifest: Manifest
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
}
-enum TransactionKind {
- EXTERNAL
- AUTH
- PENDING
- ACTION_TO_CONFIRM
- REFUND
- REFUND_ONGOING
- CAPTURE
- VOID
- CONFIRM
- CANCEL
+"""The manifest definition."""
+type Manifest {
+ identifier: String!
+ version: String!
+ name: String!
+ about: String
+ permissions: [Permission]
+ appUrl: String
+ configurationUrl: String
+ tokenTargetUrl: String
+ dataPrivacy: String
+ dataPrivacyUrl: String
+ homepageUrl: String
+ supportUrl: String
+ extensions: [AppManifestExtension!]!
}
-union TranslatableItem = ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent
+type AppManifestExtension {
+ """List of the app extension's permissions."""
+ permissions: [Permission!]!
-type TranslatableItemConnection {
- pageInfo: PageInfo!
- edges: [TranslatableItemEdge!]!
- totalCount: Int
-}
+ """Label of the extension to show in the dashboard."""
+ label: String!
-type TranslatableItemEdge {
- node: TranslatableItem!
- cursor: String!
-}
+ """URL of a view where extension's iframe is placed."""
+ url: String!
-enum TranslatableKinds {
- ATTRIBUTE
- ATTRIBUTE_VALUE
- CATEGORY
- COLLECTION
- MENU_ITEM
- PAGE
- PRODUCT
- SALE
- SHIPPING_METHOD
- VARIANT
- VOUCHER
-}
+ """Place where given extension will be mounted."""
+ mount: AppExtensionMountEnum!
-type TranslationError {
- field: String
- message: String
- code: TranslationErrorCode!
+ """Type of way how app extension will be opened."""
+ target: AppExtensionTargetEnum!
}
-enum TranslationErrorCode {
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
+"""Activate the app."""
+type AppActivate {
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ app: App
}
-input TranslationInput {
- seoTitle: String
- seoDescription: String
- name: String
- description: JSONString
+"""Deactivate the app."""
+type AppDeactivate {
+ appErrors: [AppError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AppError!]!
+ app: App
}
-scalar UUID
+"""Create JWT token."""
+type CreateToken {
+ """JWT token, required to authenticate."""
+ token: String
-input UpdateInvoiceInput {
- number: String
- url: String
-}
+ """JWT refresh token, required to re-generate access token."""
+ refreshToken: String
-type UpdateMetadata {
- metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MetadataError!]!
- item: ObjectWithMetadata
-}
+ """CSRF token required to re-generate access token."""
+ csrfToken: String
-type UpdatePrivateMetadata {
- metadataErrors: [MetadataError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [MetadataError!]!
- item: ObjectWithMetadata
+ """A user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-scalar Upload
-
-type UploadError {
+type AccountError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: UploadErrorCode!
+
+ """The error code."""
+ code: AccountErrorCode!
+
+ """A type of address that causes the error."""
+ addressType: AddressTypeEnum
}
-enum UploadErrorCode {
+"""An enumeration."""
+enum AccountErrorCode {
+ ACTIVATE_OWN_ACCOUNT
+ ACTIVATE_SUPERUSER_ACCOUNT
+ DUPLICATED_INPUT_ITEM
+ DEACTIVATE_OWN_ACCOUNT
+ DEACTIVATE_SUPERUSER_ACCOUNT
+ DELETE_NON_STAFF_USER
+ DELETE_OWN_ACCOUNT
+ DELETE_STAFF_ACCOUNT
+ DELETE_SUPERUSER_ACCOUNT
GRAPHQL_ERROR
+ INACTIVE
+ INVALID
+ INVALID_PASSWORD
+ LEFT_NOT_MANAGEABLE_PERMISSION
+ INVALID_CREDENTIALS
+ NOT_FOUND
+ OUT_OF_SCOPE_USER
+ OUT_OF_SCOPE_GROUP
+ OUT_OF_SCOPE_PERMISSION
+ PASSWORD_ENTIRELY_NUMERIC
+ PASSWORD_TOO_COMMON
+ PASSWORD_TOO_SHORT
+ PASSWORD_TOO_SIMILAR
+ REQUIRED
+ UNIQUE
+ JWT_SIGNATURE_EXPIRED
+ JWT_INVALID_TOKEN
+ JWT_DECODE_ERROR
+ JWT_MISSING_TOKEN
+ JWT_INVALID_CSRF_TOKEN
+ CHANNEL_INACTIVE
+ MISSING_CHANNEL_SLUG
+ ACCOUNT_NOT_CONFIRMED
}
-type User implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- email: String!
- firstName: String!
- lastName: String!
- isStaff: Boolean!
- isActive: Boolean!
- addresses: [Address]
- checkout: Checkout @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts.")
- checkoutTokens(channel: String): [UUID!]
- giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnection
- note: String
- orders(before: String, after: String, first: Int, last: Int): OrderCountableConnection
- userPermissions: [UserPermission]
- permissionGroups: [Group]
- editableGroups: [Group]
- avatar(size: Int): Image
- events: [CustomerEvent]
- storedPaymentSources(channel: String): [PaymentSource]
- languageCode: LanguageCodeEnum!
- defaultShippingAddress: Address
- defaultBillingAddress: Address
- lastLogin: DateTime
- dateJoined: DateTime!
- updatedAt: DateTime!
-}
+"""
+Refresh JWT token. Mutation tries to take refreshToken from the input.If it fails it will try to take refreshToken from the http-only cookie -refreshToken. csrfToken is required when refreshToken is provided as a cookie.
+"""
+type RefreshToken {
+ """JWT token, required to authenticate."""
+ token: String
-type UserAvatarDelete {
+ """A user instance."""
user: User
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
}
-type UserAvatarUpdate {
+"""Verify JWT token."""
+type VerifyToken {
+ """User assigned to token."""
user: User
+
+ """Determine if token is valid or not."""
+ isValid: Boolean!
+
+ """JWT payload."""
+ payload: GenericScalar
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
}
-type UserBulkSetActive {
- count: Int!
+"""
+The `GenericScalar` scalar type represents a generic
+GraphQL scalar value that could be:
+String, Boolean, Int, Float, List or Object.
+"""
+scalar GenericScalar
+
+"""Deactivate all JWT tokens of the currently authenticated user."""
+type DeactivateAllUserTokens {
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
}
-type UserCountableConnection {
- pageInfo: PageInfo!
- edges: [UserCountableEdge!]!
- totalCount: Int
-}
-
-type UserCountableEdge {
- node: User!
- cursor: String!
+"""Prepare external authentication url for user by custom plugin."""
+type ExternalAuthenticationUrl {
+ """The data returned by authentication plugin."""
+ authenticationData: JSONString
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-input UserCreateInput {
- defaultBillingAddress: AddressInput
- defaultShippingAddress: AddressInput
- firstName: String
- lastName: String
- email: String
- isActive: Boolean
- note: String
- languageCode: LanguageCodeEnum
- redirectUrl: String
- channel: String
-}
+"""Obtain external access tokens for user by custom plugin."""
+type ExternalObtainAccessTokens {
+ """The token, required to authenticate."""
+ token: String
-type UserPermission {
- code: PermissionEnum!
- name: String!
- sourcePermissionGroups(userId: ID!): [Group!]
-}
+ """The refresh token, required to re-generate external access token."""
+ refreshToken: String
-enum UserSortField {
- FIRST_NAME
- LAST_NAME
- EMAIL
- ORDER_COUNT
- CREATED_AT
- LAST_MODIFIED_AT
-}
+ """CSRF token required to re-generate external access token."""
+ csrfToken: String
-input UserSortingInput {
- direction: OrderDirection!
- field: UserSortField!
+ """A user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type VAT {
- countryCode: String!
- standardRate: Float
- reducedRates: [ReducedRate]!
-}
+"""Refresh user's access by custom plugin."""
+type ExternalRefresh {
+ """The token, required to authenticate."""
+ token: String
-enum VariantAttributeScope {
- ALL
- VARIANT_SELECTION
- NOT_VARIANT_SELECTION
-}
+ """The refresh token, required to re-generate external access token."""
+ refreshToken: String
-type VariantMediaAssign {
- productVariant: ProductVariant
- media: ProductMedia
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
-}
+ """CSRF token required to re-generate external access token."""
+ csrfToken: String
-type VariantMediaUnassign {
- productVariant: ProductVariant
- media: ProductMedia
- productErrors: [ProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [ProductError!]!
+ """A user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type VariantPricingInfo {
- onSale: Boolean
- discount: TaxedMoney
- discountLocalCurrency: TaxedMoney
- price: TaxedMoney
- priceUndiscounted: TaxedMoney
- priceLocalCurrency: TaxedMoney
+"""Logout user by custom plugin."""
+type ExternalLogout {
+ """The data returned by authentication plugin."""
+ logoutData: JSONString
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type VerifyToken {
+"""Verify external authentication data by plugin."""
+type ExternalVerify {
+ """User assigned to data."""
user: User
+
+ """Determine if authentication data is valid or not."""
isValid: Boolean!
- payload: GenericScalar
+
+ """External data."""
+ verifyData: JSONString
accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [AccountError!]!
}
-enum VolumeUnitsEnum {
- CUBIC_MILLIMETER
- CUBIC_CENTIMETER
- CUBIC_DECIMETER
- CUBIC_METER
- LITER
- CUBIC_FOOT
- CUBIC_INCH
- CUBIC_YARD
- QT
- PINT
- FL_OZ
- ACRE_IN
- ACRE_FT
+"""Sends an email with the account password modification link."""
+type RequestPasswordReset {
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type Voucher implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String
- code: String!
- usageLimit: Int
- used: Int!
- startDate: DateTime!
- endDate: DateTime
- applyOncePerOrder: Boolean!
- applyOncePerCustomer: Boolean!
- onlyForStaff: Boolean!
- minCheckoutItemsQuantity: Int
- categories(before: String, after: String, first: Int, last: Int): CategoryCountableConnection
- collections(before: String, after: String, first: Int, last: Int): CollectionCountableConnection
- products(before: String, after: String, first: Int, last: Int): ProductCountableConnection
- variants(before: String, after: String, first: Int, last: Int): ProductVariantCountableConnection
- countries: [CountryDisplay]
- translation(languageCode: LanguageCodeEnum!): VoucherTranslation
- discountValueType: DiscountValueTypeEnum!
- discountValue: Float
- currency: String
- minSpent: Money
- type: VoucherTypeEnum!
- channelListings: [VoucherChannelListing!]
+"""Confirm user account with token sent by email during registration."""
+type ConfirmAccount {
+ """An activated user account."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type VoucherAddCatalogues {
- voucher: Voucher
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
-}
+"""
+Sets the user's password from the token sent by email using the RequestPasswordReset mutation.
+"""
+type SetPassword {
+ """JWT token, required to authenticate."""
+ token: String
-type VoucherBulkDelete {
- count: Int!
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
-}
+ """JWT refresh token, required to re-generate access token."""
+ refreshToken: String
-type VoucherChannelListing implements Node {
- id: ID!
- channel: Channel!
- discountValue: Float!
- currency: String!
- minSpent: Money
-}
+ """CSRF token required to re-generate access token."""
+ csrfToken: String
-input VoucherChannelListingAddInput {
- channelId: ID!
- discountValue: PositiveDecimal
- minAmountSpent: PositiveDecimal
+ """A user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-input VoucherChannelListingInput {
- addChannels: [VoucherChannelListingAddInput!]
- removeChannels: [ID!]
+"""Change the password of the logged in user."""
+type PasswordChange {
+ """A user instance with a new password."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type VoucherChannelListingUpdate {
- voucher: Voucher
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
+"""Request email change of the logged in user."""
+type RequestEmailChange {
+ """A user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type VoucherCountableConnection {
- pageInfo: PageInfo!
- edges: [VoucherCountableEdge!]!
- totalCount: Int
+"""Confirm the email change of the logged-in user."""
+type ConfirmEmailChange {
+ """A user instance with a new email."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type VoucherCountableEdge {
- node: Voucher!
- cursor: String!
+"""Create a new address for the customer."""
+type AccountAddressCreate {
+ """A user instance for which the address was created."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ address: Address
}
-type VoucherCreate {
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
- voucher: Voucher
+"""Updates an address of the logged-in user."""
+type AccountAddressUpdate {
+ """A user object for which the address was edited."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ address: Address
}
-type VoucherDelete {
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
- voucher: Voucher
+"""Delete an address of the logged-in user."""
+type AccountAddressDelete {
+ """A user instance for which the address was deleted."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ address: Address
}
-enum VoucherDiscountType {
- FIXED
- PERCENTAGE
- SHIPPING
+"""Sets a default address for the authenticated user."""
+type AccountSetDefaultAddress {
+ """An updated user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-input VoucherFilterInput {
- status: [DiscountStatusEnum]
- timesUsed: IntRangeInput
- discountType: [VoucherDiscountType]
- started: DateTimeRangeInput
- search: String
- metadata: [MetadataFilter]
+"""Register a new user."""
+type AccountRegister {
+ """Informs whether users need to confirm their email address."""
+ requiresConfirmation: Boolean
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ user: User
}
-input VoucherInput {
- type: VoucherTypeEnum
- name: String
- code: String
- startDate: DateTime
- endDate: DateTime
- discountValueType: DiscountValueTypeEnum
- products: [ID]
- variants: [ID]
- collections: [ID]
- categories: [ID]
- minCheckoutItemsQuantity: Int
- countries: [String]
- applyOncePerOrder: Boolean
- applyOncePerCustomer: Boolean
- onlyForStaff: Boolean
- usageLimit: Int
+input AccountRegisterInput {
+ """Given name."""
+ firstName: String
+
+ """Family name."""
+ lastName: String
+
+ """User language code."""
+ languageCode: LanguageCodeEnum
+
+ """The email address of the user."""
+ email: String!
+
+ """Password."""
+ password: String!
+
+ """Base of frontend URL that will be needed to create confirmation URL."""
+ redirectUrl: String
+
+ """User public metadata."""
+ metadata: [MetadataInput!]
+
+ """
+ Slug of a channel which will be used to notify users. Optional when only one channel exists.
+ """
+ channel: String
}
-type VoucherRemoveCatalogues {
- voucher: Voucher
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
+"""Updates the account of the logged-in user."""
+type AccountUpdate {
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ user: User
}
-enum VoucherSortField {
- CODE
- START_DATE
- END_DATE
- VALUE
- TYPE
- USAGE_LIMIT
- MINIMUM_SPENT_AMOUNT
+input AccountInput {
+ """Given name."""
+ firstName: String
+
+ """Family name."""
+ lastName: String
+
+ """User language code."""
+ languageCode: LanguageCodeEnum
+
+ """Billing address of the customer."""
+ defaultBillingAddress: AddressInput
+
+ """Shipping address of the customer."""
+ defaultShippingAddress: AddressInput
}
-input VoucherSortingInput {
- direction: OrderDirection!
- channel: String
- field: VoucherSortField!
+"""Sends an email with the account removal link for the logged-in user."""
+type AccountRequestDeletion {
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type VoucherTranslatableContent implements Node {
- id: ID!
- name: String
- translation(languageCode: LanguageCodeEnum!): VoucherTranslation
- voucher: Voucher @deprecated(reason: "This field will be removed in Saleor 4.0. Get model fields from the root level queries.")
+"""Remove user account."""
+type AccountDelete {
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ user: User
}
-type VoucherTranslate {
- translationErrors: [TranslationError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [TranslationError!]!
- voucher: Voucher
+"""Creates user address."""
+type AddressCreate {
+ """A user instance for which the address was created."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ address: Address
}
-type VoucherTranslation implements Node {
- id: ID!
- language: LanguageDisplay!
- name: String
+"""Updates an address."""
+type AddressUpdate {
+ """A user object for which the address was edited."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ address: Address
}
-enum VoucherTypeEnum {
- SHIPPING
- ENTIRE_ORDER
- SPECIFIC_PRODUCT
+"""Deletes an address."""
+type AddressDelete {
+ """A user instance for which the address was deleted."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ address: Address
}
-type VoucherUpdate {
- discountErrors: [DiscountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [DiscountError!]!
- voucher: Voucher
+"""Sets a default address for the given user."""
+type AddressSetDefault {
+ """An updated user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type Warehouse implements Node & ObjectWithMetadata {
- id: ID!
- privateMetadata: [MetadataItem]!
- metadata: [MetadataItem]!
- name: String!
- slug: String!
- email: String!
- isPrivate: Boolean!
- address: Address!
- companyName: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `Address.companyName` instead.")
- clickAndCollectOption: WarehouseClickAndCollectOptionEnum!
- shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection!
+"""Creates a new customer."""
+type CustomerCreate {
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ user: User
}
-enum WarehouseClickAndCollectOptionEnum {
- DISABLED
- LOCAL
- ALL
+input UserCreateInput {
+ """Billing address of the customer."""
+ defaultBillingAddress: AddressInput
+
+ """Shipping address of the customer."""
+ defaultShippingAddress: AddressInput
+
+ """Given name."""
+ firstName: String
+
+ """Family name."""
+ lastName: String
+
+ """The unique email address of the user."""
+ email: String
+
+ """User account is active."""
+ isActive: Boolean
+
+ """A note about the user."""
+ note: String
+
+ """User language code."""
+ languageCode: LanguageCodeEnum
+
+ """
+ URL of a view where users should be redirected to set the password. URL in RFC 1808 format.
+ """
+ redirectUrl: String
+
+ """
+ Slug of a channel which will be used for notify user. Optional when only one channel exists.
+ """
+ channel: String
}
-type WarehouseCountableConnection {
- pageInfo: PageInfo!
- edges: [WarehouseCountableEdge!]!
- totalCount: Int
+"""Updates an existing customer."""
+type CustomerUpdate {
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ user: User
}
-type WarehouseCountableEdge {
- node: Warehouse!
- cursor: String!
+input CustomerInput {
+ """Billing address of the customer."""
+ defaultBillingAddress: AddressInput
+
+ """Shipping address of the customer."""
+ defaultShippingAddress: AddressInput
+
+ """Given name."""
+ firstName: String
+
+ """Family name."""
+ lastName: String
+
+ """The unique email address of the user."""
+ email: String
+
+ """User account is active."""
+ isActive: Boolean
+
+ """A note about the user."""
+ note: String
+
+ """User language code."""
+ languageCode: LanguageCodeEnum
}
-type WarehouseCreate {
- warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [WarehouseError!]!
- warehouse: Warehouse
+"""Deletes a customer."""
+type CustomerDelete {
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
+ user: User
}
-input WarehouseCreateInput {
- slug: String
- email: String
- name: String!
- address: AddressInput!
- shippingZones: [ID]
+"""Deletes customers."""
+type CustomerBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type WarehouseDelete {
- warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [WarehouseError!]!
- warehouse: Warehouse
+"""Creates a new staff user."""
+type StaffCreate {
+ staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [StaffError!]!
+ user: User
}
-type WarehouseError {
+type StaffError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: WarehouseErrorCode!
-}
-enum WarehouseErrorCode {
- ALREADY_EXISTS
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
- REQUIRED
- UNIQUE
-}
+ """The error code."""
+ code: AccountErrorCode!
-input WarehouseFilterInput {
- clickAndCollectOption: WarehouseClickAndCollectOptionEnum
- search: String
- ids: [ID]
- isPrivate: Boolean
-}
+ """A type of address that causes the error."""
+ addressType: AddressTypeEnum
-type WarehouseShippingZoneAssign {
- warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [WarehouseError!]!
- warehouse: Warehouse
+ """List of permissions which causes the error."""
+ permissions: [PermissionEnum!]
+
+ """List of permission group IDs which cause the error."""
+ groups: [ID!]
+
+ """List of user IDs which causes the error."""
+ users: [ID!]
}
-type WarehouseShippingZoneUnassign {
- warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [WarehouseError!]!
- warehouse: Warehouse
+input StaffCreateInput {
+ """Given name."""
+ firstName: String
+
+ """Family name."""
+ lastName: String
+
+ """The unique email address of the user."""
+ email: String
+
+ """User account is active."""
+ isActive: Boolean
+
+ """A note about the user."""
+ note: String
+
+ """List of permission group IDs to which user should be assigned."""
+ addGroups: [ID!]
+
+ """
+ URL of a view where users should be redirected to set the password. URL in RFC 1808 format.
+ """
+ redirectUrl: String
}
-enum WarehouseSortField {
- NAME
+"""Updates an existing staff user."""
+type StaffUpdate {
+ staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [StaffError!]!
+ user: User
}
-input WarehouseSortingInput {
- direction: OrderDirection!
- field: WarehouseSortField!
+input StaffUpdateInput {
+ """Given name."""
+ firstName: String
+
+ """Family name."""
+ lastName: String
+
+ """The unique email address of the user."""
+ email: String
+
+ """User account is active."""
+ isActive: Boolean
+
+ """A note about the user."""
+ note: String
+
+ """List of permission group IDs to which user should be assigned."""
+ addGroups: [ID!]
+
+ """List of permission group IDs from which user should be unassigned."""
+ removeGroups: [ID!]
}
-type WarehouseUpdate {
- warehouseErrors: [WarehouseError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [WarehouseError!]!
- warehouse: Warehouse
+"""Deletes a staff user."""
+type StaffDelete {
+ staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [StaffError!]!
+ user: User
}
-input WarehouseUpdateInput {
- slug: String
- email: String
- name: String
- address: AddressInput
- clickAndCollectOption: WarehouseClickAndCollectOptionEnum
- isPrivate: Boolean
+"""Deletes staff users."""
+type StaffBulkDelete {
+ """Returns how many objects were affected."""
+ count: Int!
+ staffErrors: [StaffError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [StaffError!]!
}
-type Webhook implements Node {
- id: ID!
- name: String!
- events: [WebhookEvent!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `asyncEvents` or `syncEvents` instead.")
- syncEvents: [WebhookEventSync!]!
- asyncEvents: [WebhookEventAsync!]!
- app: App!
- eventDeliveries(sortBy: EventDeliverySortingInput, filter: EventDeliveryFilterInput, before: String, after: String, first: Int, last: Int): EventDeliveryCountableConnection
- targetUrl: String!
- isActive: Boolean!
- secretKey: String
+"""
+Create a user avatar. Only for staff members. This mutation must be sent as a `multipart` request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec
+"""
+type UserAvatarUpdate {
+ """An updated user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type WebhookCreate {
- webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [WebhookError!]!
- webhook: Webhook
+"""Deletes a user avatar. Only for staff members."""
+type UserAvatarDelete {
+ """An updated user instance."""
+ user: User
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-input WebhookCreateInput {
- name: String
- targetUrl: String
- events: [WebhookEventTypeEnum]
- asyncEvents: [WebhookEventTypeAsyncEnum!]
- syncEvents: [WebhookEventTypeSyncEnum!]
- app: ID
- isActive: Boolean
- secretKey: String
+"""Activate or deactivate users."""
+type UserBulkSetActive {
+ """Returns how many objects were affected."""
+ count: Int!
+ accountErrors: [AccountError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [AccountError!]!
}
-type WebhookDelete {
- webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [WebhookError!]!
- webhook: Webhook
+"""Create new permission group."""
+type PermissionGroupCreate {
+ permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PermissionGroupError!]!
+ group: Group
}
-type WebhookError {
+type PermissionGroupError {
+ """
+ Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
+ """
field: String
+
+ """The error message."""
message: String
- code: WebhookErrorCode!
+
+ """The error code."""
+ code: PermissionGroupErrorCode!
+
+ """List of permissions which causes the error."""
+ permissions: [PermissionEnum!]
+
+ """List of user IDs which causes the error."""
+ users: [ID!]
}
-enum WebhookErrorCode {
- GRAPHQL_ERROR
- INVALID
- NOT_FOUND
+"""An enumeration."""
+enum PermissionGroupErrorCode {
+ ASSIGN_NON_STAFF_MEMBER
+ DUPLICATED_INPUT_ITEM
+ CANNOT_REMOVE_FROM_LAST_GROUP
+ LEFT_NOT_MANAGEABLE_PERMISSION
+ OUT_OF_SCOPE_PERMISSION
+ OUT_OF_SCOPE_USER
REQUIRED
UNIQUE
}
-type WebhookEvent {
- name: String!
- eventType: WebhookEventTypeEnum!
-}
+input PermissionGroupCreateInput {
+ """List of permission code names to assign to this group."""
+ addPermissions: [PermissionEnum!]
-type WebhookEventAsync {
- name: String!
- eventType: WebhookEventTypeAsyncEnum!
-}
+ """List of users to assign to this group."""
+ addUsers: [ID!]
-type WebhookEventSync {
+ """Group name."""
name: String!
- eventType: WebhookEventTypeSyncEnum!
}
-enum WebhookEventTypeAsyncEnum {
- ANY_EVENTS
- ORDER_CREATED
- ORDER_CONFIRMED
- ORDER_FULLY_PAID
- ORDER_UPDATED
- ORDER_CANCELLED
- ORDER_FULFILLED
- DRAFT_ORDER_CREATED
- DRAFT_ORDER_UPDATED
- DRAFT_ORDER_DELETED
- SALE_CREATED
- SALE_UPDATED
- SALE_DELETED
- INVOICE_REQUESTED
- INVOICE_DELETED
- INVOICE_SENT
- CUSTOMER_CREATED
- CUSTOMER_UPDATED
- COLLECTION_CREATED
- COLLECTION_UPDATED
- COLLECTION_DELETED
- PRODUCT_CREATED
- PRODUCT_UPDATED
- PRODUCT_DELETED
- PRODUCT_VARIANT_CREATED
- PRODUCT_VARIANT_UPDATED
- PRODUCT_VARIANT_DELETED
- PRODUCT_VARIANT_OUT_OF_STOCK
- PRODUCT_VARIANT_BACK_IN_STOCK
- CHECKOUT_CREATED
- CHECKOUT_UPDATED
- FULFILLMENT_CREATED
- FULFILLMENT_CANCELED
- NOTIFY_USER
- PAGE_CREATED
- PAGE_UPDATED
- PAGE_DELETED
- TRANSLATION_CREATED
- TRANSLATION_UPDATED
+"""Update permission group."""
+type PermissionGroupUpdate {
+ permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PermissionGroupError!]!
+ group: Group
}
-enum WebhookEventTypeEnum {
- ANY_EVENTS
- ORDER_CREATED
- ORDER_CONFIRMED
- ORDER_FULLY_PAID
- ORDER_UPDATED
- ORDER_CANCELLED
- ORDER_FULFILLED
- DRAFT_ORDER_CREATED
- DRAFT_ORDER_UPDATED
- DRAFT_ORDER_DELETED
- SALE_CREATED
- SALE_UPDATED
- SALE_DELETED
- INVOICE_REQUESTED
- INVOICE_DELETED
- INVOICE_SENT
- CUSTOMER_CREATED
- CUSTOMER_UPDATED
- COLLECTION_CREATED
- COLLECTION_UPDATED
- COLLECTION_DELETED
- PRODUCT_CREATED
- PRODUCT_UPDATED
- PRODUCT_DELETED
- PRODUCT_VARIANT_CREATED
- PRODUCT_VARIANT_UPDATED
- PRODUCT_VARIANT_DELETED
- PRODUCT_VARIANT_OUT_OF_STOCK
- PRODUCT_VARIANT_BACK_IN_STOCK
- CHECKOUT_CREATED
- CHECKOUT_UPDATED
- FULFILLMENT_CREATED
- FULFILLMENT_CANCELED
- NOTIFY_USER
- PAGE_CREATED
- PAGE_UPDATED
- PAGE_DELETED
- TRANSLATION_CREATED
- TRANSLATION_UPDATED
- PAYMENT_AUTHORIZE
- PAYMENT_CAPTURE
- PAYMENT_CONFIRM
- PAYMENT_LIST_GATEWAYS
- PAYMENT_PROCESS
- PAYMENT_REFUND
- PAYMENT_VOID
- SHIPPING_LIST_METHODS_FOR_CHECKOUT
- ORDER_FILTER_SHIPPING_METHODS
- CHECKOUT_FILTER_SHIPPING_METHODS
-}
+input PermissionGroupUpdateInput {
+ """List of permission code names to assign to this group."""
+ addPermissions: [PermissionEnum!]
-enum WebhookEventTypeSyncEnum {
- PAYMENT_AUTHORIZE
- PAYMENT_CAPTURE
- PAYMENT_CONFIRM
- PAYMENT_LIST_GATEWAYS
- PAYMENT_PROCESS
- PAYMENT_REFUND
- PAYMENT_VOID
- SHIPPING_LIST_METHODS_FOR_CHECKOUT
- ORDER_FILTER_SHIPPING_METHODS
- CHECKOUT_FILTER_SHIPPING_METHODS
-}
+ """List of users to assign to this group."""
+ addUsers: [ID!]
-enum WebhookSampleEventTypeEnum {
- ORDER_CREATED
- ORDER_CONFIRMED
- ORDER_FULLY_PAID
- ORDER_UPDATED
- ORDER_CANCELLED
- ORDER_FULFILLED
- DRAFT_ORDER_CREATED
- DRAFT_ORDER_UPDATED
- DRAFT_ORDER_DELETED
- SALE_CREATED
- SALE_UPDATED
- SALE_DELETED
- INVOICE_REQUESTED
- INVOICE_DELETED
- INVOICE_SENT
- CUSTOMER_CREATED
- CUSTOMER_UPDATED
- COLLECTION_CREATED
- COLLECTION_UPDATED
- COLLECTION_DELETED
- PRODUCT_CREATED
- PRODUCT_UPDATED
- PRODUCT_DELETED
- PRODUCT_VARIANT_CREATED
- PRODUCT_VARIANT_UPDATED
- PRODUCT_VARIANT_DELETED
- PRODUCT_VARIANT_OUT_OF_STOCK
- PRODUCT_VARIANT_BACK_IN_STOCK
- CHECKOUT_CREATED
- CHECKOUT_UPDATED
- FULFILLMENT_CREATED
- FULFILLMENT_CANCELED
- NOTIFY_USER
- PAGE_CREATED
- PAGE_UPDATED
- PAGE_DELETED
- TRANSLATION_CREATED
- TRANSLATION_UPDATED
-}
+ """Group name."""
+ name: String
-type WebhookUpdate {
- webhookErrors: [WebhookError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
- errors: [WebhookError!]!
- webhook: Webhook
+ """List of permission code names to unassign from this group."""
+ removePermissions: [PermissionEnum!]
+
+ """List of users to unassign from this group."""
+ removeUsers: [ID!]
}
-input WebhookUpdateInput {
- name: String
- targetUrl: String
- events: [WebhookEventTypeEnum]
- asyncEvents: [WebhookEventTypeAsyncEnum!]
- syncEvents: [WebhookEventTypeSyncEnum!]
- app: ID
- isActive: Boolean
- secretKey: String
+"""Delete permission group."""
+type PermissionGroupDelete {
+ permissionGroupErrors: [PermissionGroupError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
+ errors: [PermissionGroupError!]!
+ group: Group
}
-type Weight {
- unit: WeightUnitsEnum!
- value: Float!
+"""An enumeration."""
+enum DistanceUnitsEnum {
+ CM
+ M
+ KM
+ FT
+ YD
+ INCH
}
-scalar WeightScalar
+"""An enumeration."""
+enum AreaUnitsEnum {
+ SQ_CM
+ SQ_M
+ SQ_KM
+ SQ_FT
+ SQ_YD
+ SQ_INCH
+}
-enum WeightUnitsEnum {
- G
- LB
- OZ
- KG
- TONNE
+"""An enumeration."""
+enum VolumeUnitsEnum {
+ CUBIC_MILLIMETER
+ CUBIC_CENTIMETER
+ CUBIC_DECIMETER
+ CUBIC_METER
+ LITER
+ CUBIC_FOOT
+ CUBIC_INCH
+ CUBIC_YARD
+ QT
+ PINT
+ FL_OZ
+ ACRE_IN
+ ACRE_FT
}
+"""_Any value scalar as defined by Federation spec."""
scalar _Any
+"""_Entity union as defined by Federation spec."""
union _Entity = App | Address | User | Group | ProductVariant | Product | ProductType | Collection | Category | ProductMedia | PageType
+"""_Service manifest as defined by Federation spec."""
type _Service {
sdl: String
}
diff --git a/saleor/graphql/schema_printer.py b/saleor/graphql/schema_printer.py
new file mode 100644
index 0000000000..5368bb6491
--- /dev/null
+++ b/saleor/graphql/schema_printer.py
@@ -0,0 +1,375 @@
+"""Code ported from GraphQL Core 3.0.
+
+Can be dropped once we upgrade from the legacy version of GraphQL Core.
+"""
+
+from typing import Callable, Dict, List, Optional, Union, cast
+
+from graphql.language.printer import print_ast
+from graphql.type.definition import (
+ GraphQLArgument,
+ GraphQLEnumType,
+ GraphQLEnumValue,
+ GraphQLInputObjectType,
+ GraphQLInterfaceType,
+ GraphQLNamedType,
+ GraphQLObjectType,
+ GraphQLScalarType,
+ GraphQLUnionType,
+)
+from graphql.type.directives import DEFAULT_DEPRECATION_REASON, GraphQLDirective
+from graphql.type.schema import GraphQLSchema
+from graphql.utils.ast_from_value import ast_from_value
+
+__all__ = ["print_schema", "print_introspection_schema", "print_type"]
+
+
+def is_specified_directive(directive: GraphQLDirective) -> bool:
+ return directive.name in ("skip", "include", "deprecated")
+
+
+def print_schema(schema: GraphQLSchema) -> str:
+ return print_filtered_schema(
+ schema, lambda n: not is_specified_directive(n), is_defined_type
+ )
+
+
+def is_introspection_type(type_: GraphQLNamedType) -> bool:
+ return type_.name.startswith("__")
+
+
+def print_introspection_schema(schema: GraphQLSchema) -> str:
+ return print_filtered_schema(schema, is_specified_directive, is_introspection_type)
+
+
+_builtin_scalars = frozenset(["String", "Boolean", "Int", "Float", "ID"])
+
+
+def is_specified_scalar_type(type_: GraphQLNamedType) -> bool:
+ return type_.name in _builtin_scalars
+
+
+def is_defined_type(type_: GraphQLNamedType) -> bool:
+ return not is_specified_scalar_type(type_) and not is_introspection_type(type_)
+
+
+def print_filtered_schema(
+ schema: GraphQLSchema,
+ directive_filter: Callable[[GraphQLDirective], bool],
+ type_filter: Callable[[GraphQLNamedType], bool],
+) -> str:
+ directives = filter(directive_filter, schema.get_directives())
+ types = filter(
+ type_filter, cast(List[GraphQLNamedType], schema.get_type_map().values())
+ )
+
+ return "\n\n".join(
+ (
+ *filter(None, (print_schema_definition(schema),)),
+ *map(print_directive, directives),
+ *map(print_type, types),
+ )
+ )
+
+
+def print_schema_definition(schema: GraphQLSchema) -> Optional[str]:
+ operation_types = []
+
+ query_type = schema.get_query_type()
+ if query_type:
+ operation_types.append(f" query: {query_type.name}")
+
+ mutation_type = schema.get_mutation_type()
+ if mutation_type:
+ operation_types.append(f" mutation: {mutation_type.name}")
+
+ subscription_type = schema.get_subscription_type()
+ if subscription_type:
+ operation_types.append(f" subscription: {subscription_type.name}")
+
+ return "schema {\n" + "\n".join(operation_types) + "\n}"
+
+
+def is_schema_of_common_names(schema: GraphQLSchema) -> bool:
+ """Check whether this schema uses the common naming convention.
+
+ GraphQL schema define root types for each type of operation. These types are the
+ same as any other type and can be named in any manner, however there is a common
+ naming convention:
+
+ schema {
+ query: Query
+ mutation: Mutation
+ subscription: Subscription
+ }
+
+ When using this naming convention, the schema description can be omitted.
+ """
+ query_type = schema.get_query_type()
+ if query_type and query_type.name != "Query":
+ return False
+
+ mutation_type = schema.get_mutation_type()
+ if mutation_type and mutation_type.name != "Mutation":
+ return False
+
+ subscription_type = schema.get_subscription_type()
+ return not subscription_type or subscription_type.name == "Subscription"
+
+
+def print_type(type_: GraphQLNamedType) -> str:
+ if isinstance(type_, GraphQLScalarType):
+ type_ = cast(GraphQLScalarType, type_)
+ return print_scalar(type_)
+ if isinstance(type_, GraphQLObjectType):
+ type_ = cast(GraphQLObjectType, type_)
+ return print_object(type_)
+ if isinstance(type_, GraphQLInterfaceType):
+ type_ = cast(GraphQLInterfaceType, type_)
+ return print_interface(type_)
+ if isinstance(type_, GraphQLUnionType):
+ type_ = cast(GraphQLUnionType, type_)
+ return print_union(type_)
+ if isinstance(type_, GraphQLEnumType):
+ type_ = cast(GraphQLEnumType, type_)
+ return print_enum(type_)
+ if isinstance(type_, GraphQLInputObjectType):
+ type_ = cast(GraphQLInputObjectType, type_)
+ return print_input_object(type_)
+
+ # Not reachable. All possible types have been considered.
+ raise TypeError(f"Unexpected type: {type_}.")
+
+
+def print_scalar(type_: GraphQLScalarType) -> str:
+ return print_description(type_) + f"scalar {type_.name}"
+
+
+def print_implemented_interfaces(type_: GraphQLObjectType) -> str:
+ interfaces = type_.interfaces
+ return " implements " + " & ".join(i.name for i in interfaces) if interfaces else ""
+
+
+def print_object(type_: GraphQLObjectType) -> str:
+ return (
+ print_description(type_)
+ + f"type {type_.name}"
+ + print_implemented_interfaces(type_)
+ + print_fields(type_)
+ )
+
+
+def print_interface(type_: GraphQLInterfaceType) -> str:
+ return print_description(type_) + f"interface {type_.name}" + print_fields(type_)
+
+
+def print_union(type_: GraphQLUnionType) -> str:
+ types = type_.types
+ possible_types = " = " + " | ".join(t.name for t in types) if types else ""
+ return print_description(type_) + f"union {type_.name}" + possible_types
+
+
+def print_enum(type_: GraphQLEnumType) -> str:
+ values = [
+ print_description(v, " ", not i)
+ + f" {v.name}"
+ + print_deprecated(v.deprecation_reason)
+ for i, v in enumerate(type_.values)
+ ]
+ return print_description(type_) + f"enum {type_.name}" + print_block(values)
+
+
+def print_input_object(type_: GraphQLInputObjectType) -> str:
+ fields = [
+ print_description(field, " ", not i) + " " + print_input_value(name, field)
+ for i, (name, field) in enumerate(type_.fields.items())
+ ]
+ return print_description(type_) + f"input {type_.name}" + print_block(fields)
+
+
+def print_fields(type_: Union[GraphQLObjectType, GraphQLInterfaceType]) -> str:
+ fields = [
+ print_description(field, " ", not i)
+ + f" {name}"
+ + print_args(field.args, " ")
+ + f": {field.type}"
+ + print_deprecated(field.deprecation_reason)
+ for i, (name, field) in enumerate(type_.fields.items())
+ ]
+ return print_block(fields)
+
+
+def print_block(items: List[str]) -> str:
+ return " {\n" + "\n".join(items) + "\n}" if items else ""
+
+
+def print_args(args: Dict[str, GraphQLArgument], indentation: str = "") -> str:
+ if not args:
+ return ""
+
+ # If every arg does not have a description, print them on one line.
+ if not any(arg.description for arg in args.values()):
+ return (
+ "("
+ + ", ".join(print_input_value(name, arg) for name, arg in args.items())
+ + ")"
+ )
+
+ return (
+ "(\n"
+ + "\n".join(
+ print_description(arg, f" {indentation}", not i)
+ + f" {indentation}"
+ + print_input_value(name, arg)
+ for i, (name, arg) in enumerate(args.items())
+ )
+ + f"\n{indentation})"
+ )
+
+
+def print_input_value(name: str, arg: GraphQLArgument) -> str:
+ default_ast = ast_from_value(arg.default_value, arg.type)
+ arg_decl = f"{name}: {arg.type}"
+ if default_ast:
+ arg_decl += f" = {print_ast(default_ast)}"
+ return arg_decl
+
+
+def print_directive(directive: GraphQLDirective) -> str:
+ return (
+ print_description(directive)
+ + f"directive @{directive.name}"
+ + print_args(directive.args)
+ + " on "
+ + " | ".join(location for location in directive.locations)
+ )
+
+
+def print_deprecated(reason: Optional[str]) -> str:
+ if reason is None:
+ return ""
+ if reason != DEFAULT_DEPRECATION_REASON:
+ ast_value = print_ast(ast_from_value(reason))
+ return f" @deprecated(reason: {ast_value})"
+ return " @deprecated"
+
+
+def is_printable_as_block_string(value: str) -> bool:
+ """Check whether the given string is printable as a block string."""
+ if not isinstance(value, str):
+ value = str(value) # resolve lazy string proxy object
+
+ if not value:
+ return True # empty string is printable
+
+ is_empty_line = True
+ has_indent = False
+ has_common_indent = True
+ seen_non_empty_line = False
+
+ for c in value:
+ if c == "\n":
+ if is_empty_line and not seen_non_empty_line:
+ return False # has leading new line
+ seen_non_empty_line = True
+ is_empty_line = True
+ has_indent = False
+ elif c in " \t":
+ has_indent = has_indent or is_empty_line
+ elif c <= "\x0f":
+ return False
+ else:
+ has_common_indent = has_common_indent and has_indent
+ is_empty_line = False
+
+ if is_empty_line:
+ return False # has trailing empty lines
+
+ if has_common_indent and seen_non_empty_line:
+ return False # has internal indent
+
+ return True
+
+
+def print_block_string(value: str, minimize: bool = False) -> str:
+ """Print a block string in the indented block form.
+
+ Prints a block string in the indented block form by adding a leading and
+ trailing blank line. However, if a block string starts with whitespace and
+ is a single-line, adding a leading blank line would strip that whitespace.
+ """
+ if not isinstance(value, str):
+ value = str(value) # resolve lazy string proxy object
+
+ escaped_value = value.replace('"""', '\\"""')
+
+ # Expand a block string's raw value into independent lines.
+ lines = escaped_value.splitlines() or [""]
+ num_lines = len(lines)
+ is_single_line = num_lines == 1
+
+ # If common indentation is found,
+ # we can fix some of those cases by adding a leading new line.
+ force_leading_new_line = num_lines > 1 and all(
+ not line or line[0] in " \t" for line in lines[1:]
+ )
+
+ # Trailing triple quotes just looks confusing but doesn't force trailing new line.
+ has_trailing_triple_quotes = escaped_value.endswith('\\"""')
+
+ # Trailing quote (single or double) or slash forces trailing new line
+ has_trailing_quote = value.endswith('"') and not has_trailing_triple_quotes
+ has_trailing_slash = value.endswith("\\")
+ force_trailing_new_line = has_trailing_quote or has_trailing_slash
+
+ print_as_multiple_lines = not minimize and (
+ # add leading and trailing new lines only if it improves readability
+ not is_single_line
+ or len(value) > 70
+ or force_trailing_new_line
+ or force_leading_new_line
+ or has_trailing_triple_quotes
+ )
+
+ # Format a multi-line block quote to account for leading space.
+ skip_leading_new_line = is_single_line and value and value[0] in " \t"
+ before = (
+ "\n"
+ if print_as_multiple_lines
+ and not skip_leading_new_line
+ or force_leading_new_line
+ else ""
+ )
+ after = "\n" if print_as_multiple_lines or force_trailing_new_line else ""
+
+ return f'"""{before}{escaped_value}{after}"""'
+
+
+def print_description(
+ def_: Union[
+ GraphQLArgument,
+ GraphQLDirective,
+ GraphQLEnumType,
+ GraphQLEnumValue,
+ GraphQLInputObjectType,
+ GraphQLInterfaceType,
+ GraphQLObjectType,
+ GraphQLScalarType,
+ GraphQLUnionType,
+ ],
+ indentation: str = "",
+ first_in_block: bool = True,
+) -> str:
+ description = def_.description
+ if description is None:
+ return ""
+ description = description.rstrip()
+
+ if is_printable_as_block_string(description):
+ block_string = print_block_string(description)
+ else:
+ block_string = print_ast(ast_from_value(description))
+
+ prefix = "\n" + indentation if indentation and not first_in_block else indentation
+
+ return prefix + block_string.replace("\n", "\n" + indentation) + "\n"
diff --git a/saleor/graphql/shipping/mutations/channels.py b/saleor/graphql/shipping/mutations/channels.py
index 149cbd6bb1..41d3581355 100644
--- a/saleor/graphql/shipping/mutations/channels.py
+++ b/saleor/graphql/shipping/mutations/channels.py
@@ -31,10 +31,10 @@ class ShippingMethodChannelListingAddInput(graphene.InputObjectType):
description="Shipping price of the shipping method in this channel."
)
minimum_order_price = PositiveDecimal(
- description=("Minimum order price to use this shipping method.")
+ description="Minimum order price to use this shipping method."
)
maximum_order_price = PositiveDecimal(
- description=("Maximum order price to use this shipping method.")
+ description="Maximum order price to use this shipping method."
)
diff --git a/saleor/graphql/translations/mutations.py b/saleor/graphql/translations/mutations.py
index 4bdb79d2d7..21f35095bb 100644
--- a/saleor/graphql/translations/mutations.py
+++ b/saleor/graphql/translations/mutations.py
@@ -382,7 +382,7 @@ class ShippingPriceTranslate(BaseTranslateMutation):
id = graphene.ID(
required=True,
description=(
- "ShippingMethodType ID or ShippingMethodTranslatableContent ID.",
+ "ShippingMethodType ID or ShippingMethodTranslatableContent ID."
),
)
language_code = graphene.Argument(
@@ -474,7 +474,7 @@ class ShopSettingsTranslate(BaseMutation):
LanguageCodeEnum, required=True, description="Translation language code."
)
input = ShopSettingsTranslationInput(
- description=("Fields required to update shop settings translations."),
+ description="Fields required to update shop settings translations.",
required=True,
)
diff --git a/saleor/graphql/translations/types.py b/saleor/graphql/translations/types.py
index 39bc2ecc6a..ca1894af5f 100644
--- a/saleor/graphql/translations/types.py
+++ b/saleor/graphql/translations/types.py
@@ -402,8 +402,8 @@ class PageTranslatableContent(ModelObjectType):
page = graphene.Field(
"saleor.graphql.page.types.Page",
description=(
- "A static page that can be manually added by a shop operator ",
- "through the dashboard.",
+ "A static page that can be manually added by a shop operator "
+ "through the dashboard."
),
deprecation_reason=(
f"{DEPRECATED_IN_3X_FIELD} Get model fields from the root level queries."
diff --git a/saleor/settings.py b/saleor/settings.py
index bd82e0a643..7eb2b1d341 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -14,13 +14,11 @@ import sentry_sdk.utils
from celery.schedules import crontab
from django.core.exceptions import ImproperlyConfigured
from django.core.management.utils import get_random_secret_key
-from graphql.utils import schema_printer
from pytimeparse import parse
from sentry_sdk.integrations.celery import CeleryIntegration
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.logging import ignore_logger
-from . import patched_print_object
from .core.languages import LANGUAGES as CORE_LANGUAGES
@@ -687,11 +685,3 @@ JWT_TTL_REQUEST_EMAIL_CHANGE = timedelta(
)
# Support multiple interface notation in schema for Apollo tooling.
-
-# In `graphql-core` V2 separator for interface is `,`.
-# Apollo tooling to generate TypeScript types using `&` as interfaces separator.
-# https://github.com/graphql-python/graphql-core-legacy/pull/258
-# https://github.com/graphql-python/graphql-core-legacy/issues/176
-
-assert hasattr(schema_printer, "_print_object")
-schema_printer._print_object = patched_print_object