export type Maybe = T | null export type Exact = { [K in keyof T]: T[K] } export type MakeOptional = Omit & { [SubKey in K]?: Maybe } export type MakeMaybe = Omit & { [SubKey in K]: Maybe } /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string String: string Boolean: boolean Int: number Float: number /** * The `Date` scalar type represents a Date * value as specified by * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). */ Date: any /** * The `DateTime` scalar type represents a DateTime * value as specified by * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). */ DateTime: any /** * The `GenericScalar` scalar type represents a generic * GraphQL scalar value that could be: * String, Boolean, Int, Float, List or Object. */ GenericScalar: any /** * Allows use of a JSON String for input / output from the GraphQL schema. * * Use of this type is *not recommended* as you lose the benefits of having a defined, static * schema (one of the key benefits of GraphQL). */ JSONString: any /** * Positive Decimal scalar implementation. * * Should be used in places where value must be positive. */ PositiveDecimal: any UUID: any /** 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. */ Upload: any WeightScalar: any /** Anything */ _Any: any } /** Create a new address for the customer. */ export type AccountAddressCreate = { __typename?: 'AccountAddressCreate' /** A user instance for which the address was created. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array address?: Maybe
} /** Delete an address of the logged-in user. */ export type AccountAddressDelete = { __typename?: 'AccountAddressDelete' /** A user instance for which the address was deleted. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array address?: Maybe
} /** Updates an address of the logged-in user. */ export type AccountAddressUpdate = { __typename?: 'AccountAddressUpdate' /** A user object for which the address was edited. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array address?: Maybe
} /** Remove user account. */ export type AccountDelete = { __typename?: 'AccountDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array user?: Maybe } export type AccountError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: AccountErrorCode /** A type of address that causes the error. */ addressType?: Maybe } /** An enumeration. */ export enum AccountErrorCode { ActivateOwnAccount = 'ACTIVATE_OWN_ACCOUNT', ActivateSuperuserAccount = 'ACTIVATE_SUPERUSER_ACCOUNT', DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', DeactivateOwnAccount = 'DEACTIVATE_OWN_ACCOUNT', DeactivateSuperuserAccount = 'DEACTIVATE_SUPERUSER_ACCOUNT', DeleteNonStaffUser = 'DELETE_NON_STAFF_USER', DeleteOwnAccount = 'DELETE_OWN_ACCOUNT', DeleteStaffAccount = 'DELETE_STAFF_ACCOUNT', DeleteSuperuserAccount = 'DELETE_SUPERUSER_ACCOUNT', GraphqlError = 'GRAPHQL_ERROR', Inactive = 'INACTIVE', Invalid = 'INVALID', InvalidPassword = 'INVALID_PASSWORD', LeftNotManageablePermission = 'LEFT_NOT_MANAGEABLE_PERMISSION', InvalidCredentials = 'INVALID_CREDENTIALS', NotFound = 'NOT_FOUND', OutOfScopeUser = 'OUT_OF_SCOPE_USER', OutOfScopeGroup = 'OUT_OF_SCOPE_GROUP', OutOfScopePermission = 'OUT_OF_SCOPE_PERMISSION', PasswordEntirelyNumeric = 'PASSWORD_ENTIRELY_NUMERIC', PasswordTooCommon = 'PASSWORD_TOO_COMMON', PasswordTooShort = 'PASSWORD_TOO_SHORT', PasswordTooSimilar = 'PASSWORD_TOO_SIMILAR', Required = 'REQUIRED', Unique = 'UNIQUE', JwtSignatureExpired = 'JWT_SIGNATURE_EXPIRED', JwtInvalidToken = 'JWT_INVALID_TOKEN', JwtDecodeError = 'JWT_DECODE_ERROR', JwtMissingToken = 'JWT_MISSING_TOKEN', JwtInvalidCsrfToken = 'JWT_INVALID_CSRF_TOKEN', ChannelInactive = 'CHANNEL_INACTIVE', MissingChannelSlug = 'MISSING_CHANNEL_SLUG', } export type AccountInput = { /** Given name. */ firstName?: Maybe /** Family name. */ lastName?: Maybe /** Billing address of the customer. */ defaultBillingAddress?: Maybe /** Shipping address of the customer. */ defaultShippingAddress?: Maybe /** User language code. */ languageCode?: Maybe } /** Register a new user. */ export type AccountRegister = { __typename?: 'AccountRegister' /** Informs whether users need to confirm their email address. */ requiresConfirmation?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array user?: Maybe } export type AccountRegisterInput = { /** The email address of the user. */ email: Scalars['String'] /** Password. */ password: Scalars['String'] /** Base of frontend URL that will be needed to create confirmation URL. */ redirectUrl?: Maybe /** User language code. */ languageCode?: Maybe /** User public metadata. */ metadata?: Maybe> /** Slug of a channel which will be used to notify users. Optional when only one channel exists. */ channel?: Maybe } /** Sends an email with the account removal link for the logged-in user. */ export type AccountRequestDeletion = { __typename?: 'AccountRequestDeletion' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Sets a default address for the authenticated user. */ export type AccountSetDefaultAddress = { __typename?: 'AccountSetDefaultAddress' /** An updated user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Updates the account of the logged-in user. */ export type AccountUpdate = { __typename?: 'AccountUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array user?: Maybe } /** Represents user address data. */ export type Address = Node & { __typename?: 'Address' /** The ID of the object. */ id: Scalars['ID'] firstName: Scalars['String'] lastName: Scalars['String'] companyName: Scalars['String'] streetAddress1: Scalars['String'] streetAddress2: Scalars['String'] city: Scalars['String'] cityArea: Scalars['String'] postalCode: Scalars['String'] /** Shop's default country. */ country: CountryDisplay countryArea: Scalars['String'] phone?: Maybe /** Address is user's default shipping address. */ isDefaultShippingAddress?: Maybe /** Address is user's default billing address. */ isDefaultBillingAddress?: Maybe } /** Creates user address. */ export type AddressCreate = { __typename?: 'AddressCreate' /** A user instance for which the address was created. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array address?: Maybe
} /** Deletes an address. */ export type AddressDelete = { __typename?: 'AddressDelete' /** A user instance for which the address was deleted. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array address?: Maybe
} export type AddressInput = { /** Given name. */ firstName?: Maybe /** Family name. */ lastName?: Maybe /** Company or organization. */ companyName?: Maybe /** Address. */ streetAddress1?: Maybe /** Address. */ streetAddress2?: Maybe /** City. */ city?: Maybe /** District. */ cityArea?: Maybe /** Postal code. */ postalCode?: Maybe /** Country. */ country?: Maybe /** State or province. */ countryArea?: Maybe /** Phone number. */ phone?: Maybe } /** Sets a default address for the given user. */ export type AddressSetDefault = { __typename?: 'AddressSetDefault' /** An updated user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** An enumeration. */ export enum AddressTypeEnum { Billing = 'BILLING', Shipping = 'SHIPPING', } /** Updates an address. */ export type AddressUpdate = { __typename?: 'AddressUpdate' /** A user object for which the address was edited. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array address?: Maybe
} export type AddressValidationData = { __typename?: 'AddressValidationData' countryCode?: Maybe countryName?: Maybe addressFormat?: Maybe addressLatinFormat?: Maybe allowedFields?: Maybe>> requiredFields?: Maybe>> upperFields?: Maybe>> countryAreaType?: Maybe countryAreaChoices?: Maybe>> cityType?: Maybe cityChoices?: Maybe>> cityAreaType?: Maybe cityAreaChoices?: Maybe>> postalCodeType?: Maybe postalCodeMatchers?: Maybe>> postalCodeExamples?: Maybe>> postalCodePrefix?: Maybe } /** Represents allocation. */ export type Allocation = Node & { __typename?: 'Allocation' /** The ID of the object. */ id: Scalars['ID'] /** Quantity allocated for orders. */ quantity: Scalars['Int'] /** The warehouse were items were allocated. */ warehouse: Warehouse } /** Represents app data. */ export type App = Node & ObjectWithMetadata & { __typename?: 'App' /** The ID of the object. */ id: Scalars['ID'] /** Name of the app. */ name?: Maybe /** The date and time when the app was created. */ created?: Maybe /** Determine if app will be set active or not. */ isActive?: Maybe /** List of the app's permissions. */ permissions?: Maybe>> /** Last 4 characters of the tokens. */ tokens?: Maybe>> /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** Type of the app. */ type?: Maybe /** List of webhooks assigned to this app. */ webhooks?: Maybe>> /** Description of this app. */ aboutApp?: Maybe /** Description of the data privacy defined for this app. */ dataPrivacy?: Maybe /** Url to details about the privacy policy on the app owner page. */ dataPrivacyUrl?: Maybe /** Homepage of the app. */ homepageUrl?: Maybe /** Support page for the app. */ supportUrl?: Maybe /** Url to iframe with the configuration for the app. */ configurationUrl?: Maybe /** Url to iframe with the app. */ appUrl?: Maybe /** Version number of the app. */ version?: Maybe /** JWT token used to authenticate by thridparty app. */ accessToken?: Maybe } /** Activate the app. */ export type AppActivate = { __typename?: 'AppActivate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array app?: Maybe } export type AppCountableConnection = { __typename?: 'AppCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type AppCountableEdge = { __typename?: 'AppCountableEdge' /** The item at the end of the edge. */ node: App /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new app. */ export type AppCreate = { __typename?: 'AppCreate' /** The newly created authentication token. */ authToken?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array app?: Maybe } /** Deactivate the app. */ export type AppDeactivate = { __typename?: 'AppDeactivate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array app?: Maybe } /** Deletes an app. */ export type AppDelete = { __typename?: 'AppDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array app?: Maybe } /** Delete failed installation. */ export type AppDeleteFailedInstallation = { __typename?: 'AppDeleteFailedInstallation' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array appInstallation?: Maybe } export type AppError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: AppErrorCode /** List of permissions which causes the error. */ permissions?: Maybe> } /** An enumeration. */ export enum AppErrorCode { Forbidden = 'FORBIDDEN', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', InvalidStatus = 'INVALID_STATUS', InvalidPermission = 'INVALID_PERMISSION', InvalidUrlFormat = 'INVALID_URL_FORMAT', InvalidManifestFormat = 'INVALID_MANIFEST_FORMAT', ManifestUrlCantConnect = 'MANIFEST_URL_CANT_CONNECT', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', OutOfScopeApp = 'OUT_OF_SCOPE_APP', OutOfScopePermission = 'OUT_OF_SCOPE_PERMISSION', } /** Fetch and validate manifest. */ export type AppFetchManifest = { __typename?: 'AppFetchManifest' manifest?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array } export type AppFilterInput = { search?: Maybe isActive?: Maybe type?: Maybe } export type AppInput = { /** Name of the app. */ name?: Maybe /** List of permission code names to assign to this app. */ permissions?: Maybe>> } /** Install new app by using app manifest. */ export type AppInstall = { __typename?: 'AppInstall' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array appInstallation?: Maybe } export type AppInstallInput = { /** Name of the app to install. */ appName?: Maybe /** Url to app's manifest in JSON format. */ manifestUrl?: Maybe /** Determine if app will be set active or not. */ activateAfterInstallation?: Maybe /** List of permission code names to assign to this app. */ permissions?: Maybe>> } /** Represents ongoing installation of app. */ export type AppInstallation = Node & Job & { __typename?: 'AppInstallation' appName: Scalars['String'] manifestUrl: Scalars['String'] /** The ID of the object. */ id: Scalars['ID'] /** Job status. */ status: JobStatusEnum /** Created date time of job in ISO 8601 format. */ createdAt: Scalars['DateTime'] /** Date time of job last update in ISO 8601 format. */ updatedAt: Scalars['DateTime'] /** Job message. */ message?: Maybe } /** Retry failed installation of new app. */ export type AppRetryInstall = { __typename?: 'AppRetryInstall' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array appInstallation?: Maybe } export enum AppSortField { /** Sort apps by name. */ Name = 'NAME', /** Sort apps by creation date. */ CreationDate = 'CREATION_DATE', } export type AppSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort apps by the selected field. */ field: AppSortField } /** Represents token data. */ export type AppToken = Node & { __typename?: 'AppToken' /** Name of the authenticated token. */ name?: Maybe /** Last 4 characters of the token. */ authToken?: Maybe /** The ID of the object. */ id: Scalars['ID'] } /** Creates a new token. */ export type AppTokenCreate = { __typename?: 'AppTokenCreate' /** The newly created authentication token. */ authToken?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array appToken?: Maybe } /** Deletes an authentication token assigned to app. */ export type AppTokenDelete = { __typename?: 'AppTokenDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array appToken?: Maybe } export type AppTokenInput = { /** Name of the token. */ name?: Maybe /** ID of app. */ app: Scalars['ID'] } /** Verify provided app token. */ export type AppTokenVerify = { __typename?: 'AppTokenVerify' /** Determine if token is valid or not. */ valid: Scalars['Boolean'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array } /** Enum determining type of your App. */ export enum AppTypeEnum { /** Local Saleor App. The app is fully manageable from dashboard. You can change assigned permissions, add webhooks, or authentication token */ Local = 'LOCAL', /** Third party external App. Installation is fully automated. Saleor uses a defined App manifest to gather all required information. */ Thirdparty = 'THIRDPARTY', } /** Updates an existing app. */ export type AppUpdate = { __typename?: 'AppUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ appErrors: Array errors: Array app?: Maybe } /** An enumeration. */ export enum AreaUnitsEnum { SqCm = 'SQ_CM', SqM = 'SQ_M', SqKm = 'SQ_KM', SqFt = 'SQ_FT', SqYd = 'SQ_YD', SqInch = 'SQ_INCH', } /** Assigns storefront's navigation menus. */ export type AssignNavigation = { __typename?: 'AssignNavigation' /** Assigned navigation menu. */ menu?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array } /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type Attribute = Node & ObjectWithMetadata & { __typename?: 'Attribute' /** The ID of the object. */ id: Scalars['ID'] productTypes: ProductTypeCountableConnection productVariantTypes: ProductTypeCountableConnection /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** The input type to use for entering attribute values in the dashboard. */ inputType?: Maybe /** The entity type which can be used as a reference. */ entityType?: Maybe /** Name of an attribute displayed in the interface. */ name?: Maybe /** Internal representation of an attribute name. */ slug?: Maybe /** The attribute type. */ type?: Maybe /** The unit of attribute values. */ unit?: Maybe /** List of attribute's values. */ values?: Maybe>> /** Whether the attribute requires values to be passed or not. */ valueRequired: Scalars['Boolean'] /** Whether the attribute should be visible or not in storefront. */ visibleInStorefront: Scalars['Boolean'] /** Whether the attribute can be filtered in storefront. */ filterableInStorefront: Scalars['Boolean'] /** Whether the attribute can be filtered in dashboard. */ filterableInDashboard: Scalars['Boolean'] /** Whether the attribute can be displayed in the admin product list. */ availableInGrid: Scalars['Boolean'] /** Returns translated attribute fields for the given language code. */ translation?: Maybe /** The position of the attribute in the storefront navigation (0 by default). */ storefrontSearchPosition: Scalars['Int'] } /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeProductTypesArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeProductVariantTypesArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Custom attribute of a product. Attributes can be assigned to products and variants at the product type level. */ export type AttributeTranslationArgs = { languageCode: LanguageCodeEnum } /** Deletes attributes. */ export type AttributeBulkDelete = { __typename?: 'AttributeBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array } export type AttributeCountableConnection = { __typename?: 'AttributeCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type AttributeCountableEdge = { __typename?: 'AttributeCountableEdge' /** The item at the end of the edge. */ node: Attribute /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates an attribute. */ export type AttributeCreate = { __typename?: 'AttributeCreate' attribute?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array } export type AttributeCreateInput = { /** The input type to use for entering attribute values in the dashboard. */ inputType?: Maybe /** The entity type which can be used as a reference. */ entityType?: Maybe /** Name of an attribute displayed in the interface. */ name: Scalars['String'] /** Internal representation of an attribute name. */ slug?: Maybe /** The attribute type. */ type: AttributeTypeEnum /** The unit of attribute values. */ unit?: Maybe /** List of attribute's values. */ values?: Maybe>> /** Whether the attribute requires values to be passed or not. */ valueRequired?: Maybe /** Whether the attribute is for variants only. */ isVariantOnly?: Maybe /** Whether the attribute should be visible or not in storefront. */ visibleInStorefront?: Maybe /** Whether the attribute can be filtered in storefront. */ filterableInStorefront?: Maybe /** Whether the attribute can be filtered in dashboard. */ filterableInDashboard?: Maybe /** The position of the attribute in the storefront navigation (0 by default). */ storefrontSearchPosition?: Maybe /** Whether the attribute can be displayed in the admin product list. */ availableInGrid?: Maybe } /** Deletes an attribute. */ export type AttributeDelete = { __typename?: 'AttributeDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array attribute?: Maybe } /** An enumeration. */ export enum AttributeEntityTypeEnum { Page = 'PAGE', Product = 'PRODUCT', } export type AttributeError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: AttributeErrorCode } /** An enumeration. */ export enum AttributeErrorCode { AlreadyExists = 'ALREADY_EXISTS', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', } export type AttributeFilterInput = { valueRequired?: Maybe isVariantOnly?: Maybe visibleInStorefront?: Maybe filterableInStorefront?: Maybe filterableInDashboard?: Maybe availableInGrid?: Maybe metadata?: Maybe>> search?: Maybe ids?: Maybe>> type?: Maybe inCollection?: Maybe inCategory?: Maybe /** Specifies the channel by which the data should be sorted. */ channel?: Maybe } export type AttributeInput = { /** Internal representation of an attribute name. */ slug: Scalars['String'] /** Internal representation of a value (unique per attribute). */ values?: Maybe>> /** The range that the returned values should be in. */ valuesRange?: Maybe } /** An enumeration. */ export enum AttributeInputTypeEnum { Dropdown = 'DROPDOWN', Multiselect = 'MULTISELECT', File = 'FILE', Reference = 'REFERENCE', Numeric = 'NUMERIC', RichText = 'RICH_TEXT', } /** Reorder the values of an attribute. */ export type AttributeReorderValues = { __typename?: 'AttributeReorderValues' /** Attribute from which values are reordered. */ attribute?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array } export enum AttributeSortField { /** Sort attributes by name */ Name = 'NAME', /** Sort attributes by slug */ Slug = 'SLUG', /** Sort attributes by the value required flag */ ValueRequired = 'VALUE_REQUIRED', /** Sort attributes by the variant only flag */ IsVariantOnly = 'IS_VARIANT_ONLY', /** Sort attributes by visibility in the storefront */ VisibleInStorefront = 'VISIBLE_IN_STOREFRONT', /** Sort attributes by the filterable in storefront flag */ FilterableInStorefront = 'FILTERABLE_IN_STOREFRONT', /** Sort attributes by the filterable in dashboard flag */ FilterableInDashboard = 'FILTERABLE_IN_DASHBOARD', /** Sort attributes by their position in storefront */ StorefrontSearchPosition = 'STOREFRONT_SEARCH_POSITION', /** Sort attributes based on whether they can be displayed or not in a product grid. */ AvailableInGrid = 'AVAILABLE_IN_GRID', } export type AttributeSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort attributes by the selected field. */ field: AttributeSortField } export type AttributeTranslatableContent = Node & { __typename?: 'AttributeTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** Returns translated attribute fields for the given language code. */ translation?: Maybe /** Custom attribute of a product. */ attribute?: Maybe } export type AttributeTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for attribute. */ export type AttributeTranslate = { __typename?: 'AttributeTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array attribute?: Maybe } export type AttributeTranslation = Node & { __typename?: 'AttributeTranslation' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** Translation language. */ language: LanguageDisplay } /** An enumeration. */ export enum AttributeTypeEnum { ProductType = 'PRODUCT_TYPE', PageType = 'PAGE_TYPE', } /** Updates attribute. */ export type AttributeUpdate = { __typename?: 'AttributeUpdate' attribute?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array } export type AttributeUpdateInput = { /** Name of an attribute displayed in the interface. */ name?: Maybe /** Internal representation of an attribute name. */ slug?: Maybe /** The unit of attribute values. */ unit?: Maybe /** IDs of values to be removed from this attribute. */ removeValues?: Maybe>> /** New values to be created for this attribute. */ addValues?: Maybe>> /** Whether the attribute requires values to be passed or not. */ valueRequired?: Maybe /** Whether the attribute is for variants only. */ isVariantOnly?: Maybe /** Whether the attribute should be visible or not in storefront. */ visibleInStorefront?: Maybe /** Whether the attribute can be filtered in storefront. */ filterableInStorefront?: Maybe /** Whether the attribute can be filtered in dashboard. */ filterableInDashboard?: Maybe /** The position of the attribute in the storefront navigation (0 by default). */ storefrontSearchPosition?: Maybe /** Whether the attribute can be displayed in the admin product list. */ availableInGrid?: Maybe } /** Represents a value of an attribute. */ export type AttributeValue = Node & { __typename?: 'AttributeValue' /** The ID of the object. */ id: Scalars['ID'] /** Name of a value displayed in the interface. */ name?: Maybe /** Internal representation of a value (unique per attribute). */ slug?: Maybe /** Represents the value of the attribute value. */ value?: Maybe /** Returns translated attribute value fields for the given language code. */ translation?: Maybe /** The input type to use for entering attribute values in the dashboard. */ inputType?: Maybe /** The ID of the attribute reference. */ reference?: Maybe /** Represents file URL and content type (if attribute value is a file). */ file?: Maybe /** Represents the text (JSON) of the attribute value. */ richText?: Maybe } /** Represents a value of an attribute. */ export type AttributeValueTranslationArgs = { languageCode: LanguageCodeEnum } /** Deletes values of attributes. */ export type AttributeValueBulkDelete = { __typename?: 'AttributeValueBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array } /** Creates a value for an attribute. */ export type AttributeValueCreate = { __typename?: 'AttributeValueCreate' /** The updated attribute. */ attribute?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array attributeValue?: Maybe } export type AttributeValueCreateInput = { /** Name of a value displayed in the interface. */ name: Scalars['String'] /** Represents the value of the attribute value. */ value?: Maybe /** Represents the text (JSON) of the attribute value. */ richText?: Maybe } /** Deletes a value of an attribute. */ export type AttributeValueDelete = { __typename?: 'AttributeValueDelete' /** The updated attribute. */ attribute?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array attributeValue?: Maybe } export type AttributeValueInput = { /** ID of the selected attribute. */ id?: Maybe /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ values?: Maybe>> /** URL of the file attribute. Every time, a new value is created. */ file?: Maybe /** File content type. */ contentType?: Maybe /** List of entity IDs that will be used as references. */ references?: Maybe> /** Text content in JSON format. */ richText?: Maybe } export type AttributeValueTranslatableContent = Node & { __typename?: 'AttributeValueTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** Returns translated attribute value fields for the given language code. */ translation?: Maybe /** Represents a value of an attribute. */ attributeValue?: Maybe } export type AttributeValueTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for attribute value. */ export type AttributeValueTranslate = { __typename?: 'AttributeValueTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array attributeValue?: Maybe } export type AttributeValueTranslation = Node & { __typename?: 'AttributeValueTranslation' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] richText?: Maybe /** Translation language. */ language: LanguageDisplay } export type AttributeValueTranslationInput = { name?: Maybe richText?: Maybe } /** Updates value of an attribute. */ export type AttributeValueUpdate = { __typename?: 'AttributeValueUpdate' /** The updated attribute. */ attribute?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ attributeErrors: Array errors: Array attributeValue?: Maybe } export type BulkAttributeValueInput = { /** ID of the selected attribute. */ id?: Maybe /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ values: Array> } export type BulkProductError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ProductErrorCode /** List of attributes IDs which causes the error. */ attributes?: Maybe> /** List of attribute values IDs which causes the error. */ values?: Maybe> /** Index of an input list item that caused the error. */ index?: Maybe /** List of warehouse IDs which causes the error. */ warehouses?: Maybe> /** List of channel IDs which causes the error. */ channels?: Maybe> } export type BulkStockError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ProductErrorCode /** List of attributes IDs which causes the error. */ attributes?: Maybe> /** List of attribute values IDs which causes the error. */ values?: Maybe> /** Index of an input list item that caused the error. */ index?: Maybe } export type CatalogueInput = { /** Products related to the discount. */ products?: Maybe>> /** Categories related to the discount. */ categories?: Maybe>> /** Collections related to the discount. */ collections?: Maybe>> } /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type Category = Node & ObjectWithMetadata & { __typename?: 'Category' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe slug: Scalars['String'] parent?: Maybe level: Scalars['Int'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** * Description of the category (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe /** List of ancestors of the category. */ ancestors?: Maybe /** List of products in the category. */ products?: Maybe /** List of children of the category. */ children?: Maybe backgroundImage?: Maybe /** Returns translated category fields for the given language code. */ translation?: Maybe } /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryAncestorsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryProductsArgs = { channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryChildrenArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryBackgroundImageArgs = { size?: Maybe } /** Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront. */ export type CategoryTranslationArgs = { languageCode: LanguageCodeEnum } /** Deletes categories. */ export type CategoryBulkDelete = { __typename?: 'CategoryBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export type CategoryCountableConnection = { __typename?: 'CategoryCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type CategoryCountableEdge = { __typename?: 'CategoryCountableEdge' /** The item at the end of the edge. */ node: Category /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new category. */ export type CategoryCreate = { __typename?: 'CategoryCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array category?: Maybe } /** Deletes a category. */ export type CategoryDelete = { __typename?: 'CategoryDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array category?: Maybe } export type CategoryFilterInput = { search?: Maybe metadata?: Maybe>> ids?: Maybe>> } export type CategoryInput = { /** Category description (JSON). */ description?: Maybe /** Category name. */ name?: Maybe /** Category slug. */ slug?: Maybe /** Search engine optimization fields. */ seo?: Maybe /** Background image file. */ backgroundImage?: Maybe /** Alt text for a product media. */ backgroundImageAlt?: Maybe } export enum CategorySortField { /** Sort categories by name. */ Name = 'NAME', /** Sort categories by product count. */ ProductCount = 'PRODUCT_COUNT', /** Sort categories by subcategory count. */ SubcategoryCount = 'SUBCATEGORY_COUNT', } export type CategorySortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Specifies the channel in which to sort the data. */ channel?: Maybe /** Sort categories by the selected field. */ field: CategorySortField } export type CategoryTranslatableContent = Node & { __typename?: 'CategoryTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe /** * Description of the category (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe /** Returns translated category fields for the given language code. */ translation?: Maybe /** Represents a single category of products. */ category?: Maybe } export type CategoryTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for Category. */ export type CategoryTranslate = { __typename?: 'CategoryTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array category?: Maybe } export type CategoryTranslation = Node & { __typename?: 'CategoryTranslation' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe /** Translation language. */ language: LanguageDisplay /** * Translated description of the product (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe } /** Updates a category. */ export type CategoryUpdate = { __typename?: 'CategoryUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array category?: Maybe } /** Represents channel. */ export type Channel = Node & { __typename?: 'Channel' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] isActive: Scalars['Boolean'] slug: Scalars['String'] currencyCode: Scalars['String'] /** Whether a channel has associated orders. */ hasOrders: Scalars['Boolean'] } /** Activate a channel. */ export type ChannelActivate = { __typename?: 'ChannelActivate' /** Activated channel. */ channel?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ channelErrors: Array errors: Array } /** Creates new channel. */ export type ChannelCreate = { __typename?: 'ChannelCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ channelErrors: Array errors: Array channel?: Maybe } export type ChannelCreateInput = { /** isActive flag. */ isActive?: Maybe /** Name of the channel. */ name: Scalars['String'] /** Slug of the channel. */ slug: Scalars['String'] /** Currency of the channel. */ currencyCode: Scalars['String'] /** List of shipping zones to assign to the channel. */ addShippingZones?: Maybe> } /** Deactivate a channel. */ export type ChannelDeactivate = { __typename?: 'ChannelDeactivate' /** Deactivated channel. */ channel?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ channelErrors: Array errors: Array } /** Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed. */ export type ChannelDelete = { __typename?: 'ChannelDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ channelErrors: Array errors: Array channel?: Maybe } export type ChannelDeleteInput = { /** ID of channel to migrate orders from origin channel. */ targetChannel: Scalars['ID'] } export type ChannelError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ChannelErrorCode /** List of shipping zone IDs which causes the error. */ shippingZones?: Maybe> } /** An enumeration. */ export enum ChannelErrorCode { AlreadyExists = 'ALREADY_EXISTS', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', ChannelTargetIdMustBeDifferent = 'CHANNEL_TARGET_ID_MUST_BE_DIFFERENT', ChannelsCurrencyMustBeTheSame = 'CHANNELS_CURRENCY_MUST_BE_THE_SAME', ChannelWithOrders = 'CHANNEL_WITH_ORDERS', DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', } /** Update a channel. */ export type ChannelUpdate = { __typename?: 'ChannelUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ channelErrors: Array errors: Array channel?: Maybe } export type ChannelUpdateInput = { /** isActive flag. */ isActive?: Maybe /** Name of the channel. */ name?: Maybe /** Slug of the channel. */ slug?: Maybe /** List of shipping zones to assign to the channel. */ addShippingZones?: Maybe> /** List of shipping zones to unassign from the channel. */ removeShippingZones?: Maybe> } /** Checkout object. */ export type Checkout = Node & ObjectWithMetadata & { __typename?: 'Checkout' created: Scalars['DateTime'] lastChange: Scalars['DateTime'] user?: Maybe channel: Channel billingAddress?: Maybe
shippingAddress?: Maybe
note: Scalars['String'] discount?: Maybe discountName?: Maybe translatedDiscountName?: Maybe voucherCode?: Maybe /** List of gift cards associated with this checkout. */ giftCards?: Maybe>> /** The ID of the object. */ id: Scalars['ID'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** Shipping methods that can be used with this order. */ availableShippingMethods: Array> /** List of available payment gateways. */ availablePaymentGateways: Array /** Email of a customer. */ email: Scalars['String'] /** Returns True, if checkout requires shipping. */ isShippingRequired: Scalars['Boolean'] /** The number of items purchased. */ quantity: Scalars['Int'] /** A list of checkout lines, each containing information about an item in the checkout. */ lines?: Maybe>> /** The price of the shipping, with all the taxes included. */ shippingPrice?: Maybe /** The shipping method related with checkout. */ shippingMethod?: Maybe /** The price of the checkout before shipping, with taxes included. */ subtotalPrice?: Maybe /** The checkout's token. */ token: Scalars['UUID'] /** The sum of the the checkout line prices, with all the taxes,shipping costs, and discounts included. */ totalPrice?: Maybe /** Checkout language code. */ languageCode: LanguageCodeEnum } /** Adds a gift card or a voucher to a checkout. */ export type CheckoutAddPromoCode = { __typename?: 'CheckoutAddPromoCode' /** The checkout with the added gift card or voucher. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** Update billing address in the existing checkout. */ export type CheckoutBillingAddressUpdate = { __typename?: 'CheckoutBillingAddressUpdate' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** 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. */ export type CheckoutComplete = { __typename?: 'CheckoutComplete' /** Placed order. */ order?: Maybe /** Set to true if payment needs to be confirmed before checkout is complete. */ confirmationNeeded: Scalars['Boolean'] /** Confirmation data used to process additional authorization steps. */ confirmationData?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } export type CheckoutCountableConnection = { __typename?: 'CheckoutCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type CheckoutCountableEdge = { __typename?: 'CheckoutCountableEdge' /** The item at the end of the edge. */ node: Checkout /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Create a new checkout. */ export type CheckoutCreate = { __typename?: '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.DEPRECATED: Will be removed in Saleor 4.0. Always returns True. */ created?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array checkout?: Maybe } export type CheckoutCreateInput = { /** Slug of a channel in which to create a checkout. */ channel?: Maybe /** A list of checkout lines, each containing information about an item in the checkout. */ lines: Array> /** The customer's email address. */ email?: Maybe /** 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?: Maybe /** Billing address of the customer. */ billingAddress?: Maybe /** Checkout language code. */ languageCode?: Maybe } /** Sets the customer as the owner of the checkout. */ export type CheckoutCustomerAttach = { __typename?: 'CheckoutCustomerAttach' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** Removes the user assigned as the owner of the checkout. */ export type CheckoutCustomerDetach = { __typename?: 'CheckoutCustomerDetach' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** Updates email address in the existing checkout object. */ export type CheckoutEmailUpdate = { __typename?: 'CheckoutEmailUpdate' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } export type CheckoutError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: CheckoutErrorCode /** List of varint IDs which causes the error. */ variants?: Maybe> /** A type of address that causes the error. */ addressType?: Maybe } /** An enumeration. */ export enum CheckoutErrorCode { BillingAddressNotSet = 'BILLING_ADDRESS_NOT_SET', CheckoutNotFullyPaid = 'CHECKOUT_NOT_FULLY_PAID', GraphqlError = 'GRAPHQL_ERROR', ProductNotPublished = 'PRODUCT_NOT_PUBLISHED', ProductUnavailableForPurchase = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', InsufficientStock = 'INSUFFICIENT_STOCK', Invalid = 'INVALID', InvalidShippingMethod = 'INVALID_SHIPPING_METHOD', NotFound = 'NOT_FOUND', PaymentError = 'PAYMENT_ERROR', QuantityGreaterThanLimit = 'QUANTITY_GREATER_THAN_LIMIT', Required = 'REQUIRED', ShippingAddressNotSet = 'SHIPPING_ADDRESS_NOT_SET', ShippingMethodNotApplicable = 'SHIPPING_METHOD_NOT_APPLICABLE', ShippingMethodNotSet = 'SHIPPING_METHOD_NOT_SET', ShippingNotRequired = 'SHIPPING_NOT_REQUIRED', TaxError = 'TAX_ERROR', Unique = 'UNIQUE', VoucherNotApplicable = 'VOUCHER_NOT_APPLICABLE', ZeroQuantity = 'ZERO_QUANTITY', MissingChannelSlug = 'MISSING_CHANNEL_SLUG', ChannelInactive = 'CHANNEL_INACTIVE', UnavailableVariantInChannel = 'UNAVAILABLE_VARIANT_IN_CHANNEL', } /** Update language code in the existing checkout. */ export type CheckoutLanguageCodeUpdate = { __typename?: 'CheckoutLanguageCodeUpdate' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** Represents an item in the checkout. */ export type CheckoutLine = Node & { __typename?: 'CheckoutLine' /** The ID of the object. */ id: Scalars['ID'] variant: ProductVariant quantity: Scalars['Int'] /** The sum of the checkout line price, taxes and discounts. */ totalPrice?: Maybe /** Indicates whether the item need to be delivered. */ requiresShipping?: Maybe } export type CheckoutLineCountableConnection = { __typename?: 'CheckoutLineCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type CheckoutLineCountableEdge = { __typename?: 'CheckoutLineCountableEdge' /** The item at the end of the edge. */ node: CheckoutLine /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Deletes a CheckoutLine. */ export type CheckoutLineDelete = { __typename?: 'CheckoutLineDelete' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } export type CheckoutLineInput = { /** The number of items purchased. */ quantity: Scalars['Int'] /** ID of the product variant. */ variantId: Scalars['ID'] } /** Adds a checkout line to the existing checkout. */ export type CheckoutLinesAdd = { __typename?: 'CheckoutLinesAdd' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** Updates checkout line in the existing checkout. */ export type CheckoutLinesUpdate = { __typename?: 'CheckoutLinesUpdate' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** Create a new payment for given checkout. */ export type CheckoutPaymentCreate = { __typename?: 'CheckoutPaymentCreate' /** Related checkout object. */ checkout?: Maybe /** A newly created payment. */ payment?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ paymentErrors: Array errors: Array } /** Remove a gift card or a voucher from a checkout. */ export type CheckoutRemovePromoCode = { __typename?: 'CheckoutRemovePromoCode' /** The checkout with the removed gift card or voucher. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** Update shipping address in the existing checkout. */ export type CheckoutShippingAddressUpdate = { __typename?: 'CheckoutShippingAddressUpdate' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } /** Updates the shipping address of the checkout. */ export type CheckoutShippingMethodUpdate = { __typename?: 'CheckoutShippingMethodUpdate' /** An updated checkout. */ checkout?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ checkoutErrors: Array errors: Array } export type ChoiceValue = { __typename?: 'ChoiceValue' raw?: Maybe verbose?: Maybe } /** Represents a collection of products. */ export type Collection = Node & ObjectWithMetadata & { __typename?: 'Collection' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe slug: Scalars['String'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** * Description of the collection (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe /** List of products in this collection. */ products?: Maybe backgroundImage?: Maybe /** Returns translated collection fields for the given language code. */ translation?: Maybe /** List of channels in which the collection is available. */ channelListings?: Maybe> } /** Represents a collection of products. */ export type CollectionProductsArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Represents a collection of products. */ export type CollectionBackgroundImageArgs = { size?: Maybe } /** Represents a collection of products. */ export type CollectionTranslationArgs = { languageCode: LanguageCodeEnum } /** Adds products to a collection. */ export type CollectionAddProducts = { __typename?: 'CollectionAddProducts' /** Collection to which products will be added. */ collection?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ collectionErrors: Array errors: Array } /** Deletes collections. */ export type CollectionBulkDelete = { __typename?: 'CollectionBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ collectionErrors: Array errors: Array } /** Represents collection channel listing. */ export type CollectionChannelListing = Node & { __typename?: 'CollectionChannelListing' /** The ID of the object. */ id: Scalars['ID'] publicationDate?: Maybe isPublished: Scalars['Boolean'] channel: Channel } export type CollectionChannelListingError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ProductErrorCode /** List of attributes IDs which causes the error. */ attributes?: Maybe> /** List of attribute values IDs which causes the error. */ values?: Maybe> /** List of channels IDs which causes the error. */ channels?: Maybe> } /** Manage collection's availability in channels. */ export type CollectionChannelListingUpdate = { __typename?: 'CollectionChannelListingUpdate' /** An updated collection instance. */ collection?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ collectionChannelListingErrors: Array errors: Array } export type CollectionChannelListingUpdateInput = { /** List of channels to which the collection should be assigned. */ addChannels?: Maybe> /** List of channels from which the collection should be unassigned. */ removeChannels?: Maybe> } export type CollectionCountableConnection = { __typename?: 'CollectionCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type CollectionCountableEdge = { __typename?: 'CollectionCountableEdge' /** The item at the end of the edge. */ node: Collection /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new collection. */ export type CollectionCreate = { __typename?: 'CollectionCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ collectionErrors: Array errors: Array collection?: Maybe } export type CollectionCreateInput = { /** Informs whether a collection is published. */ isPublished?: Maybe /** Name of the collection. */ name?: Maybe /** Slug of the collection. */ slug?: Maybe /** Description of the collection (JSON). */ description?: Maybe /** Background image file. */ backgroundImage?: Maybe /** Alt text for an image. */ backgroundImageAlt?: Maybe /** Search engine optimization fields. */ seo?: Maybe /** Publication date. ISO 8601 standard. */ publicationDate?: Maybe /** List of products to be added to the collection. */ products?: Maybe>> } /** Deletes a collection. */ export type CollectionDelete = { __typename?: 'CollectionDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ collectionErrors: Array errors: Array collection?: Maybe } export type CollectionError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** List of products IDs which causes the error. */ products?: Maybe> /** The error code. */ code: CollectionErrorCode } /** An enumeration. */ export enum CollectionErrorCode { DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', CannotManageProductWithoutVariant = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', } export type CollectionFilterInput = { published?: Maybe search?: Maybe metadata?: Maybe>> ids?: Maybe>> /** Specifies the channel by which the data should be sorted. */ channel?: Maybe } export type CollectionInput = { /** Informs whether a collection is published. */ isPublished?: Maybe /** Name of the collection. */ name?: Maybe /** Slug of the collection. */ slug?: Maybe /** Description of the collection (JSON). */ description?: Maybe /** Background image file. */ backgroundImage?: Maybe /** Alt text for an image. */ backgroundImageAlt?: Maybe /** Search engine optimization fields. */ seo?: Maybe /** Publication date. ISO 8601 standard. */ publicationDate?: Maybe } export enum CollectionPublished { Published = 'PUBLISHED', Hidden = 'HIDDEN', } /** Remove products from a collection. */ export type CollectionRemoveProducts = { __typename?: 'CollectionRemoveProducts' /** Collection from which products will be removed. */ collection?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ collectionErrors: Array errors: Array } /** Reorder the products of a collection. */ export type CollectionReorderProducts = { __typename?: 'CollectionReorderProducts' /** Collection from which products are reordered. */ collection?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ collectionErrors: Array errors: Array } export enum CollectionSortField { /** Sort collections by name. */ Name = 'NAME', /** Sort collections by availability. */ Availability = 'AVAILABILITY', /** Sort collections by product count. */ ProductCount = 'PRODUCT_COUNT', /** Sort collections by publication date. */ PublicationDate = 'PUBLICATION_DATE', } export type CollectionSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Specifies the channel in which to sort the data. */ channel?: Maybe /** Sort collections by the selected field. */ field: CollectionSortField } export type CollectionTranslatableContent = Node & { __typename?: 'CollectionTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe /** * Description of the collection (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe /** Returns translated collection fields for the given language code. */ translation?: Maybe /** Represents a collection of products. */ collection?: Maybe } export type CollectionTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for collection. */ export type CollectionTranslate = { __typename?: 'CollectionTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array collection?: Maybe } export type CollectionTranslation = Node & { __typename?: 'CollectionTranslation' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe /** Translation language. */ language: LanguageDisplay /** * Translated description of the product (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe } /** Updates a collection. */ export type CollectionUpdate = { __typename?: 'CollectionUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ collectionErrors: Array errors: Array collection?: Maybe } /** Stores information about a single configuration field. */ export type ConfigurationItem = { __typename?: 'ConfigurationItem' /** Name of the field. */ name: Scalars['String'] /** Current value of the field. */ value?: Maybe /** Type of the field. */ type?: Maybe /** Help text for the field. */ helpText?: Maybe /** Label for the field. */ label?: Maybe } export type ConfigurationItemInput = { /** Name of the field to update. */ name: Scalars['String'] /** Value of the given field to update. */ value?: Maybe } /** An enumeration. */ export enum ConfigurationTypeFieldEnum { String = 'STRING', Multiline = 'MULTILINE', Boolean = 'BOOLEAN', Secret = 'SECRET', Password = 'PASSWORD', Secretmultiline = 'SECRETMULTILINE', Output = 'OUTPUT', } /** Confirm user account with token sent by email during registration. */ export type ConfirmAccount = { __typename?: 'ConfirmAccount' /** An activated user account. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Confirm the email change of the logged-in user. */ export type ConfirmEmailChange = { __typename?: 'ConfirmEmailChange' /** A user instance with a new email. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** An enumeration. */ export enum CountryCode { Af = 'AF', Ax = 'AX', Al = 'AL', Dz = 'DZ', As = 'AS', Ad = 'AD', Ao = 'AO', Ai = 'AI', Aq = 'AQ', Ag = 'AG', Ar = 'AR', Am = 'AM', Aw = 'AW', Au = 'AU', At = 'AT', Az = 'AZ', Bs = 'BS', Bh = 'BH', Bd = 'BD', Bb = 'BB', By = 'BY', Be = 'BE', Bz = 'BZ', Bj = 'BJ', Bm = 'BM', Bt = 'BT', Bo = 'BO', Bq = 'BQ', Ba = 'BA', Bw = 'BW', Bv = 'BV', Br = 'BR', Io = 'IO', Bn = 'BN', Bg = 'BG', Bf = 'BF', Bi = 'BI', Cv = 'CV', Kh = 'KH', Cm = 'CM', Ca = 'CA', Ky = 'KY', Cf = 'CF', Td = 'TD', Cl = 'CL', Cn = 'CN', Cx = 'CX', Cc = 'CC', Co = 'CO', Km = 'KM', Cg = 'CG', Cd = 'CD', Ck = 'CK', Cr = 'CR', Ci = 'CI', Hr = 'HR', Cu = 'CU', Cw = 'CW', Cy = 'CY', Cz = 'CZ', Dk = 'DK', Dj = 'DJ', Dm = 'DM', Do = 'DO', Ec = 'EC', Eg = 'EG', Sv = 'SV', Gq = 'GQ', Er = 'ER', Ee = 'EE', Sz = 'SZ', Et = 'ET', Eu = 'EU', Fk = 'FK', Fo = 'FO', Fj = 'FJ', Fi = 'FI', Fr = 'FR', Gf = 'GF', Pf = 'PF', Tf = 'TF', Ga = 'GA', Gm = 'GM', Ge = 'GE', De = 'DE', Gh = 'GH', Gi = 'GI', Gr = 'GR', Gl = 'GL', Gd = 'GD', Gp = 'GP', Gu = 'GU', Gt = 'GT', Gg = 'GG', Gn = 'GN', Gw = 'GW', Gy = 'GY', Ht = 'HT', Hm = 'HM', Va = 'VA', Hn = 'HN', Hk = 'HK', Hu = 'HU', Is = 'IS', In = 'IN', Id = 'ID', Ir = 'IR', Iq = 'IQ', Ie = 'IE', Im = 'IM', Il = 'IL', It = 'IT', Jm = 'JM', Jp = 'JP', Je = 'JE', Jo = 'JO', Kz = 'KZ', Ke = 'KE', Ki = 'KI', Kw = 'KW', Kg = 'KG', La = 'LA', Lv = 'LV', Lb = 'LB', Ls = 'LS', Lr = 'LR', Ly = 'LY', Li = 'LI', Lt = 'LT', Lu = 'LU', Mo = 'MO', Mg = 'MG', Mw = 'MW', My = 'MY', Mv = 'MV', Ml = 'ML', Mt = 'MT', Mh = 'MH', Mq = 'MQ', Mr = 'MR', Mu = 'MU', Yt = 'YT', Mx = 'MX', Fm = 'FM', Md = 'MD', Mc = 'MC', Mn = 'MN', Me = 'ME', Ms = 'MS', Ma = 'MA', Mz = 'MZ', Mm = 'MM', Na = 'NA', Nr = 'NR', Np = 'NP', Nl = 'NL', Nc = 'NC', Nz = 'NZ', Ni = 'NI', Ne = 'NE', Ng = 'NG', Nu = 'NU', Nf = 'NF', Kp = 'KP', Mk = 'MK', Mp = 'MP', No = 'NO', Om = 'OM', Pk = 'PK', Pw = 'PW', Ps = 'PS', Pa = 'PA', Pg = 'PG', Py = 'PY', Pe = 'PE', Ph = 'PH', Pn = 'PN', Pl = 'PL', Pt = 'PT', Pr = 'PR', Qa = 'QA', Re = 'RE', Ro = 'RO', Ru = 'RU', Rw = 'RW', Bl = 'BL', Sh = 'SH', Kn = 'KN', Lc = 'LC', Mf = 'MF', Pm = 'PM', Vc = 'VC', Ws = 'WS', Sm = 'SM', St = 'ST', Sa = 'SA', Sn = 'SN', Rs = 'RS', Sc = 'SC', Sl = 'SL', Sg = 'SG', Sx = 'SX', Sk = 'SK', Si = 'SI', Sb = 'SB', So = 'SO', Za = 'ZA', Gs = 'GS', Kr = 'KR', Ss = 'SS', Es = 'ES', Lk = 'LK', Sd = 'SD', Sr = 'SR', Sj = 'SJ', Se = 'SE', Ch = 'CH', Sy = 'SY', Tw = 'TW', Tj = 'TJ', Tz = 'TZ', Th = 'TH', Tl = 'TL', Tg = 'TG', Tk = 'TK', To = 'TO', Tt = 'TT', Tn = 'TN', Tr = 'TR', Tm = 'TM', Tc = 'TC', Tv = 'TV', Ug = 'UG', Ua = 'UA', Ae = 'AE', Gb = 'GB', Um = 'UM', Us = 'US', Uy = 'UY', Uz = 'UZ', Vu = 'VU', Ve = 'VE', Vn = 'VN', Vg = 'VG', Vi = 'VI', Wf = 'WF', Eh = 'EH', Ye = 'YE', Zm = 'ZM', Zw = 'ZW', } export type CountryDisplay = { __typename?: 'CountryDisplay' /** Country code. */ code: Scalars['String'] /** Country name. */ country: Scalars['String'] /** Country tax. */ vat?: Maybe } /** Create JWT token. */ export type CreateToken = { __typename?: 'CreateToken' /** JWT token, required to authenticate. */ token?: Maybe /** JWT refresh token, required to re-generate access token. */ refreshToken?: Maybe /** CSRF token required to re-generate access token. */ csrfToken?: Maybe /** A user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } export type CreditCard = { __typename?: 'CreditCard' /** Card brand. */ brand: Scalars['String'] /** First 4 digits of the card number. */ firstDigits?: Maybe /** Last 4 digits of the card number. */ lastDigits: Scalars['String'] /** Two-digit number representing the card’s expiration month. */ expMonth?: Maybe /** Four-digit number representing the card’s expiration year. */ expYear?: Maybe } /** Deletes customers. */ export type CustomerBulkDelete = { __typename?: 'CustomerBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Creates a new customer. */ export type CustomerCreate = { __typename?: 'CustomerCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array user?: Maybe } /** Deletes a customer. */ export type CustomerDelete = { __typename?: 'CustomerDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array user?: Maybe } /** History log of the customer. */ export type CustomerEvent = Node & { __typename?: 'CustomerEvent' /** The ID of the object. */ id: Scalars['ID'] /** Date when event happened at in ISO 8601 format. */ date?: Maybe /** Customer event type. */ type?: Maybe /** User who performed the action. */ user?: Maybe /** Content of the event. */ message?: Maybe /** Number of objects concerned by the event. */ count?: Maybe /** The concerned order. */ order?: Maybe /** The concerned order line. */ orderLine?: Maybe } /** An enumeration. */ export enum CustomerEventsEnum { AccountCreated = 'ACCOUNT_CREATED', PasswordResetLinkSent = 'PASSWORD_RESET_LINK_SENT', PasswordReset = 'PASSWORD_RESET', EmailChangedRequest = 'EMAIL_CHANGED_REQUEST', PasswordChanged = 'PASSWORD_CHANGED', EmailChanged = 'EMAIL_CHANGED', PlacedOrder = 'PLACED_ORDER', NoteAddedToOrder = 'NOTE_ADDED_TO_ORDER', DigitalLinkDownloaded = 'DIGITAL_LINK_DOWNLOADED', CustomerDeleted = 'CUSTOMER_DELETED', NameAssigned = 'NAME_ASSIGNED', EmailAssigned = 'EMAIL_ASSIGNED', NoteAdded = 'NOTE_ADDED', } export type CustomerFilterInput = { dateJoined?: Maybe numberOfOrders?: Maybe placedOrders?: Maybe search?: Maybe } export type CustomerInput = { /** Billing address of the customer. */ defaultBillingAddress?: Maybe /** Shipping address of the customer. */ defaultShippingAddress?: Maybe /** Given name. */ firstName?: Maybe /** Family name. */ lastName?: Maybe /** The unique email address of the user. */ email?: Maybe /** User account is active. */ isActive?: Maybe /** A note about the user. */ note?: Maybe /** User language code. */ languageCode?: Maybe } /** Updates an existing customer. */ export type CustomerUpdate = { __typename?: 'CustomerUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array user?: Maybe } export type DateRangeInput = { /** Start date. */ gte?: Maybe /** End date. */ lte?: Maybe } export type DateTimeRangeInput = { /** Start date. */ gte?: Maybe /** End date. */ lte?: Maybe } /** Deactivate all JWT tokens of the currently authenticated user. */ export type DeactivateAllUserTokens = { __typename?: 'DeactivateAllUserTokens' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Delete metadata of an object. */ export type DeleteMetadata = { __typename?: 'DeleteMetadata' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ metadataErrors: Array errors: Array item?: Maybe } /** Delete object's private metadata. */ export type DeletePrivateMetadata = { __typename?: 'DeletePrivateMetadata' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ metadataErrors: Array errors: Array item?: Maybe } export type DigitalContent = Node & ObjectWithMetadata & { __typename?: 'DigitalContent' useDefaultSettings: Scalars['Boolean'] automaticFulfillment: Scalars['Boolean'] contentFile: Scalars['String'] maxDownloads?: Maybe urlValidDays?: Maybe /** List of URLs for the digital variant. */ urls?: Maybe>> /** The ID of the object. */ id: Scalars['ID'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** Product variant assigned to digital content. */ productVariant: ProductVariant } export type DigitalContentCountableConnection = { __typename?: 'DigitalContentCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type DigitalContentCountableEdge = { __typename?: 'DigitalContentCountableEdge' /** The item at the end of the edge. */ node: DigitalContent /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** 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 */ export type DigitalContentCreate = { __typename?: 'DigitalContentCreate' variant?: Maybe content?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Remove digital content assigned to given variant. */ export type DigitalContentDelete = { __typename?: 'DigitalContentDelete' variant?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export type DigitalContentInput = { /** Use default digital content settings for this product. */ useDefaultSettings: Scalars['Boolean'] /** Determines how many times a download link can be accessed by a customer. */ maxDownloads?: Maybe /** Determines for how many days a download link is active since it was generated. */ urlValidDays?: Maybe /** Overwrite default automatic_fulfillment setting for variant. */ automaticFulfillment?: Maybe } /** Update digital content. */ export type DigitalContentUpdate = { __typename?: 'DigitalContentUpdate' variant?: Maybe content?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export type DigitalContentUploadInput = { /** Use default digital content settings for this product. */ useDefaultSettings: Scalars['Boolean'] /** Determines how many times a download link can be accessed by a customer. */ maxDownloads?: Maybe /** Determines for how many days a download link is active since it was generated. */ urlValidDays?: Maybe /** Overwrite default automatic_fulfillment setting for variant. */ automaticFulfillment?: Maybe /** Represents an file in a multipart request. */ contentFile: Scalars['Upload'] } export type DigitalContentUrl = Node & { __typename?: 'DigitalContentUrl' content: DigitalContent created: Scalars['DateTime'] downloadNum: Scalars['Int'] /** The ID of the object. */ id: Scalars['ID'] /** URL for digital content. */ url?: Maybe /** UUID of digital content. */ token: Scalars['UUID'] } /** Generate new URL to digital content. */ export type DigitalContentUrlCreate = { __typename?: 'DigitalContentUrlCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array digitalContentUrl?: Maybe } export type DigitalContentUrlCreateInput = { /** Digital content ID which URL will belong to. */ content: Scalars['ID'] } export type DiscountError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** List of products IDs which causes the error. */ products?: Maybe> /** The error code. */ code: DiscountErrorCode /** List of channels IDs which causes the error. */ channels?: Maybe> } /** An enumeration. */ export enum DiscountErrorCode { AlreadyExists = 'ALREADY_EXISTS', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', CannotManageProductWithoutVariant = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', } export enum DiscountStatusEnum { Active = 'ACTIVE', Expired = 'EXPIRED', Scheduled = 'SCHEDULED', } export enum DiscountValueTypeEnum { Fixed = 'FIXED', Percentage = 'PERCENTAGE', } /** An enumeration. */ export enum DistanceUnitsEnum { Cm = 'CM', M = 'M', Km = 'KM', Ft = 'FT', Yd = 'YD', Inch = 'INCH', } /** Represents shop's domain. */ export type Domain = { __typename?: 'Domain' /** The host name of the domain. */ host: Scalars['String'] /** Inform if SSL is enabled. */ sslEnabled: Scalars['Boolean'] /** Shop's absolute URL. */ url: Scalars['String'] } /** Deletes draft orders. */ export type DraftOrderBulkDelete = { __typename?: 'DraftOrderBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Completes creating an order. */ export type DraftOrderComplete = { __typename?: 'DraftOrderComplete' /** Completed order. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Creates a new draft order. */ export type DraftOrderCreate = { __typename?: 'DraftOrderCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array order?: Maybe } export type DraftOrderCreateInput = { /** Billing address of the customer. */ billingAddress?: Maybe user?: Maybe /** Email address of the customer. */ userEmail?: Maybe /** Discount amount for the order. */ discount?: Maybe /** Shipping address of the customer. */ shippingAddress?: Maybe /** ID of a selected shipping method. */ shippingMethod?: Maybe /** ID of the voucher associated with the order. */ voucher?: Maybe /** A note from a customer. Visible by customers in the order summary. */ customerNote?: Maybe /** ID of the channel associated with the order. */ channel?: Maybe /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ redirectUrl?: Maybe /** Variant line input consisting of variant ID and quantity of products. */ lines?: Maybe>> } /** Deletes a draft order. */ export type DraftOrderDelete = { __typename?: 'DraftOrderDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array order?: Maybe } export type DraftOrderInput = { /** Billing address of the customer. */ billingAddress?: Maybe user?: Maybe /** Email address of the customer. */ userEmail?: Maybe /** Discount amount for the order. */ discount?: Maybe /** Shipping address of the customer. */ shippingAddress?: Maybe /** ID of a selected shipping method. */ shippingMethod?: Maybe /** ID of the voucher associated with the order. */ voucher?: Maybe /** A note from a customer. Visible by customers in the order summary. */ customerNote?: Maybe /** ID of the channel associated with the order. */ channel?: Maybe /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ redirectUrl?: Maybe } /** Deletes order lines. */ export type DraftOrderLinesBulkDelete = { __typename?: 'DraftOrderLinesBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Updates a draft order. */ export type DraftOrderUpdate = { __typename?: 'DraftOrderUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array order?: Maybe } export type ExportError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ExportErrorCode } /** An enumeration. */ export enum ExportErrorCode { Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', } /** History log of export file. */ export type ExportEvent = Node & { __typename?: 'ExportEvent' /** The ID of the object. */ id: Scalars['ID'] /** Date when event happened at in ISO 8601 format. */ date: Scalars['DateTime'] /** Export event type. */ type: ExportEventsEnum /** User who performed the action. */ user?: Maybe /** App which performed the action. */ app?: Maybe /** Content of the event. */ message: Scalars['String'] } /** An enumeration. */ export enum ExportEventsEnum { ExportPending = 'EXPORT_PENDING', ExportSuccess = 'EXPORT_SUCCESS', ExportFailed = 'EXPORT_FAILED', ExportDeleted = 'EXPORT_DELETED', ExportedFileSent = 'EXPORTED_FILE_SENT', ExportFailedInfoSent = 'EXPORT_FAILED_INFO_SENT', } /** Represents a job data of exported file. */ export type ExportFile = Node & Job & { __typename?: 'ExportFile' /** The ID of the object. */ id: Scalars['ID'] user?: Maybe app?: Maybe /** Job status. */ status: JobStatusEnum /** Created date time of job in ISO 8601 format. */ createdAt: Scalars['DateTime'] /** Date time of job last update in ISO 8601 format. */ updatedAt: Scalars['DateTime'] /** Job message. */ message?: Maybe /** The URL of field to download. */ url?: Maybe /** List of events associated with the export. */ events?: Maybe> } export type ExportFileCountableConnection = { __typename?: 'ExportFileCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type ExportFileCountableEdge = { __typename?: 'ExportFileCountableEdge' /** The item at the end of the edge. */ node: ExportFile /** A cursor for use in pagination. */ cursor: Scalars['String'] } export type ExportFileFilterInput = { createdAt?: Maybe updatedAt?: Maybe status?: Maybe user?: Maybe app?: Maybe } export enum ExportFileSortField { /** Sort export file by status. */ Status = 'STATUS', /** Sort export file by created at. */ CreatedAt = 'CREATED_AT', /** Sort export file by updated at. */ UpdatedAt = 'UPDATED_AT', } export type ExportFileSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort export file by the selected field. */ field: ExportFileSortField } export type ExportInfoInput = { /** List of attribute ids witch should be exported. */ attributes?: Maybe> /** List of warehouse ids witch should be exported. */ warehouses?: Maybe> /** List of channels ids which should be exported. */ channels?: Maybe> /** List of product fields witch should be exported. */ fields?: Maybe> } /** Export products to csv file. */ export type ExportProducts = { __typename?: 'ExportProducts' /** The newly created export file job which is responsible for export data. */ exportFile?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ exportErrors: Array errors: Array } export type ExportProductsInput = { /** Determine which products should be exported. */ scope: ExportScope /** Filtering options for products. */ filter?: Maybe /** List of products IDS to export. */ ids?: Maybe> /** Input with info about fields which should be exported. */ exportInfo?: Maybe /** Type of exported file. */ fileType: FileTypesEnum } export enum ExportScope { /** Export all products. */ All = 'ALL', /** Export products with given ids. */ Ids = 'IDS', /** Export the filtered products. */ Filter = 'FILTER', } export type ExternalAuthentication = { __typename?: 'ExternalAuthentication' /** ID of external authentication plugin. */ id: Scalars['String'] /** Name of external authentication plugin. */ name?: Maybe } /** Prepare external authentication url for user by custom plugin. */ export type ExternalAuthenticationUrl = { __typename?: 'ExternalAuthenticationUrl' /** The data returned by authentication plugin. */ authenticationData?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Logout user by custom plugin. */ export type ExternalLogout = { __typename?: 'ExternalLogout' /** The data returned by authentication plugin. */ logoutData?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Obtain external access tokens for user by custom plugin. */ export type ExternalObtainAccessTokens = { __typename?: 'ExternalObtainAccessTokens' /** The token, required to authenticate. */ token?: Maybe /** The refresh token, required to re-generate external access token. */ refreshToken?: Maybe /** CSRF token required to re-generate external access token. */ csrfToken?: Maybe /** A user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Refresh user's access by custom plugin. */ export type ExternalRefresh = { __typename?: 'ExternalRefresh' /** The token, required to authenticate. */ token?: Maybe /** The refresh token, required to re-generate external access token. */ refreshToken?: Maybe /** CSRF token required to re-generate external access token. */ csrfToken?: Maybe /** A user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Verify external authentication data by plugin. */ export type ExternalVerify = { __typename?: 'ExternalVerify' /** User assigned to data. */ user?: Maybe /** Determine if authentication data is valid or not. */ isValid: Scalars['Boolean'] /** External data. */ verifyData?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } export type File = { __typename?: 'File' /** The URL of the file. */ url: Scalars['String'] /** Content type of the file. */ contentType?: Maybe } /** An enumeration. */ export enum FileTypesEnum { Csv = 'CSV', Xlsx = 'XLSX', } /** 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 */ export type FileUpload = { __typename?: 'FileUpload' uploadedFile?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ uploadErrors: Array errors: Array } /** Represents order fulfillment. */ export type Fulfillment = Node & ObjectWithMetadata & { __typename?: 'Fulfillment' /** The ID of the object. */ id: Scalars['ID'] fulfillmentOrder: Scalars['Int'] status: FulfillmentStatus trackingNumber: Scalars['String'] created: Scalars['DateTime'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** List of lines for the fulfillment. */ lines?: Maybe>> /** User-friendly fulfillment status. */ statusDisplay?: Maybe /** Warehouse from fulfillment was fulfilled. */ warehouse?: Maybe } /** Cancels existing fulfillment and optionally restocks items. */ export type FulfillmentCancel = { __typename?: 'FulfillmentCancel' /** A canceled fulfillment. */ fulfillment?: Maybe /** Order which fulfillment was cancelled. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type FulfillmentCancelInput = { /** ID of warehouse where items will be restock. */ warehouseId: Scalars['ID'] } /** Represents line of the fulfillment. */ export type FulfillmentLine = Node & { __typename?: 'FulfillmentLine' /** The ID of the object. */ id: Scalars['ID'] quantity: Scalars['Int'] orderLine?: Maybe } /** Refund products. */ export type FulfillmentRefundProducts = { __typename?: 'FulfillmentRefundProducts' /** A refunded fulfillment. */ fulfillment?: Maybe /** Order which fulfillment was refunded. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Return products. */ export type FulfillmentReturnProducts = { __typename?: 'FulfillmentReturnProducts' /** A return fulfillment. */ returnFulfillment?: Maybe /** A replace fulfillment. */ replaceFulfillment?: Maybe /** Order which fulfillment was returned. */ order?: Maybe /** A draft order which was created for products with replace flag. */ replaceOrder?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** An enumeration. */ export enum FulfillmentStatus { /** Fulfilled */ Fulfilled = 'FULFILLED', /** Refunded */ Refunded = 'REFUNDED', /** Returned */ Returned = 'RETURNED', /** Replaced */ Replaced = 'REPLACED', /** Refunded and returned */ RefundedAndReturned = 'REFUNDED_AND_RETURNED', /** Canceled */ Canceled = 'CANCELED', } /** Updates a fulfillment for an order. */ export type FulfillmentUpdateTracking = { __typename?: 'FulfillmentUpdateTracking' /** A fulfillment with updated tracking. */ fulfillment?: Maybe /** Order for which fulfillment was updated. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type FulfillmentUpdateTrackingInput = { /** Fulfillment tracking number. */ trackingNumber?: Maybe /** If true, send an email notification to the customer. */ notifyCustomer?: Maybe } /** Payment gateway client configuration key and value pair. */ export type GatewayConfigLine = { __typename?: 'GatewayConfigLine' /** Gateway config key. */ field: Scalars['String'] /** Gateway config value for key. */ value?: Maybe } /** 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. */ export type GiftCard = Node & { __typename?: 'GiftCard' /** Gift card code. */ code?: Maybe /** The customer who bought a gift card. */ user?: Maybe created: Scalars['DateTime'] startDate: Scalars['Date'] endDate?: Maybe lastUsedOn?: Maybe isActive: Scalars['Boolean'] initialBalance?: Maybe currentBalance?: Maybe /** The ID of the object. */ id: Scalars['ID'] /** Code in format which allows displaying in a user interface. */ displayCode?: Maybe } /** Activate a gift card. */ export type GiftCardActivate = { __typename?: 'GiftCardActivate' /** A gift card to activate. */ giftCard?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ giftCardErrors: Array errors: Array } export type GiftCardCountableConnection = { __typename?: 'GiftCardCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type GiftCardCountableEdge = { __typename?: 'GiftCardCountableEdge' /** The item at the end of the edge. */ node: GiftCard /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new gift card. */ export type GiftCardCreate = { __typename?: 'GiftCardCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ giftCardErrors: Array errors: Array giftCard?: Maybe } export type GiftCardCreateInput = { /** Start date of the gift card in ISO 8601 format. */ startDate?: Maybe /** End date of the gift card in ISO 8601 format. */ endDate?: Maybe /** Value of the gift card. */ balance?: Maybe /** The customer's email of the gift card buyer. */ userEmail?: Maybe /** Code to use the gift card. */ code?: Maybe } /** Deactivate a gift card. */ export type GiftCardDeactivate = { __typename?: 'GiftCardDeactivate' /** A gift card to deactivate. */ giftCard?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ giftCardErrors: Array errors: Array } export type GiftCardError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: GiftCardErrorCode } /** An enumeration. */ export enum GiftCardErrorCode { AlreadyExists = 'ALREADY_EXISTS', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', } /** Update a gift card. */ export type GiftCardUpdate = { __typename?: 'GiftCardUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ giftCardErrors: Array errors: Array giftCard?: Maybe } export type GiftCardUpdateInput = { /** Start date of the gift card in ISO 8601 format. */ startDate?: Maybe /** End date of the gift card in ISO 8601 format. */ endDate?: Maybe /** Value of the gift card. */ balance?: Maybe /** The customer's email of the gift card buyer. */ userEmail?: Maybe } /** Represents permission group data. */ export type Group = Node & { __typename?: 'Group' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** List of group permissions */ permissions?: Maybe>> /** List of group users */ users?: Maybe>> /** True, if the currently authenticated user has rights to manage a group. */ userCanManage: Scalars['Boolean'] } export type GroupCountableConnection = { __typename?: 'GroupCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type GroupCountableEdge = { __typename?: 'GroupCountableEdge' /** The item at the end of the edge. */ node: Group /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Represents an image. */ export type Image = { __typename?: 'Image' /** The URL of the image. */ url: Scalars['String'] /** Alt text for an image. */ alt?: Maybe } export type IntRangeInput = { /** Value greater than or equal to. */ gte?: Maybe /** Value less than or equal to. */ lte?: Maybe } /** Represents an Invoice. */ export type Invoice = ObjectWithMetadata & Job & Node & { __typename?: 'Invoice' /** The ID of the object. */ id: Scalars['ID'] /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** Job status. */ status: JobStatusEnum number?: Maybe externalUrl?: Maybe /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** Created date time of job in ISO 8601 format. */ createdAt: Scalars['DateTime'] /** Date time of job last update in ISO 8601 format. */ updatedAt: Scalars['DateTime'] /** Job message. */ message?: Maybe /** URL to download an invoice. */ url?: Maybe } /** Creates a ready to send invoice. */ export type InvoiceCreate = { __typename?: 'InvoiceCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ invoiceErrors: Array errors: Array invoice?: Maybe } export type InvoiceCreateInput = { /** Invoice number. */ number: Scalars['String'] /** URL of an invoice to download. */ url: Scalars['String'] } /** Deletes an invoice. */ export type InvoiceDelete = { __typename?: 'InvoiceDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ invoiceErrors: Array errors: Array invoice?: Maybe } export type InvoiceError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: InvoiceErrorCode } /** An enumeration. */ export enum InvoiceErrorCode { Required = 'REQUIRED', NotReady = 'NOT_READY', UrlNotSet = 'URL_NOT_SET', EmailNotSet = 'EMAIL_NOT_SET', NumberNotSet = 'NUMBER_NOT_SET', NotFound = 'NOT_FOUND', InvalidStatus = 'INVALID_STATUS', } /** Request an invoice for the order using plugin. */ export type InvoiceRequest = { __typename?: 'InvoiceRequest' /** Order related to an invoice. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ invoiceErrors: Array errors: Array invoice?: Maybe } /** Requests deletion of an invoice. */ export type InvoiceRequestDelete = { __typename?: 'InvoiceRequestDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ invoiceErrors: Array errors: Array invoice?: Maybe } /** Send an invoice notification to the customer. */ export type InvoiceSendNotification = { __typename?: 'InvoiceSendNotification' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ invoiceErrors: Array errors: Array invoice?: Maybe } /** Updates an invoice. */ export type InvoiceUpdate = { __typename?: 'InvoiceUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ invoiceErrors: Array errors: Array invoice?: Maybe } export type Job = { /** Job status. */ status: JobStatusEnum /** Created date time of job in ISO 8601 format. */ createdAt: Scalars['DateTime'] /** Date time of job last update in ISO 8601 format. */ updatedAt: Scalars['DateTime'] /** Job message. */ message?: Maybe } /** An enumeration. */ export enum JobStatusEnum { Pending = 'PENDING', Success = 'SUCCESS', Failed = 'FAILED', Deleted = 'DELETED', } /** An enumeration. */ export enum LanguageCodeEnum { Ar = 'AR', Az = 'AZ', Bg = 'BG', Bn = 'BN', Ca = 'CA', Cs = 'CS', Da = 'DA', De = 'DE', El = 'EL', En = 'EN', Es = 'ES', EsCo = 'ES_CO', Et = 'ET', Fa = 'FA', Fi = 'FI', Fr = 'FR', Hi = 'HI', Hu = 'HU', Hy = 'HY', Id = 'ID', Is = 'IS', It = 'IT', Ja = 'JA', Ka = 'KA', Km = 'KM', Ko = 'KO', Lt = 'LT', Mn = 'MN', My = 'MY', Nb = 'NB', Nl = 'NL', Pl = 'PL', Pt = 'PT', PtBr = 'PT_BR', Ro = 'RO', Ru = 'RU', Sk = 'SK', Sl = 'SL', Sq = 'SQ', Sr = 'SR', Sv = 'SV', Sw = 'SW', Ta = 'TA', Th = 'TH', Tr = 'TR', Uk = 'UK', Vi = 'VI', ZhHans = 'ZH_HANS', ZhHant = 'ZH_HANT', } export type LanguageDisplay = { __typename?: 'LanguageDisplay' /** ISO 639 representation of the language name. */ code: LanguageCodeEnum /** Full name of the language. */ language: Scalars['String'] } export type LimitInfo = { __typename?: 'LimitInfo' /** Defines the current resource usage. */ currentUsage: Limits /** Defines the allowed maximum resource usage, null means unlimited. */ allowedUsage: Limits } export type Limits = { __typename?: 'Limits' channels?: Maybe orders?: Maybe productVariants?: Maybe staffUsers?: Maybe warehouses?: Maybe } /** The manifest definition. */ export type Manifest = { __typename?: 'Manifest' identifier: Scalars['String'] version: Scalars['String'] name: Scalars['String'] about?: Maybe permissions?: Maybe>> appUrl?: Maybe configurationUrl?: Maybe tokenTargetUrl?: Maybe dataPrivacy?: Maybe dataPrivacyUrl?: Maybe homepageUrl?: Maybe supportUrl?: Maybe } export type Margin = { __typename?: 'Margin' start?: Maybe stop?: Maybe } /** An enumeration. */ export enum MeasurementUnitsEnum { Cm = 'CM', M = 'M', Km = 'KM', Ft = 'FT', Yd = 'YD', Inch = 'INCH', SqCm = 'SQ_CM', SqM = 'SQ_M', SqKm = 'SQ_KM', SqFt = 'SQ_FT', SqYd = 'SQ_YD', SqInch = 'SQ_INCH', CubicMillimeter = 'CUBIC_MILLIMETER', CubicCentimeter = 'CUBIC_CENTIMETER', CubicDecimeter = 'CUBIC_DECIMETER', CubicMeter = 'CUBIC_METER', Liter = 'LITER', CubicFoot = 'CUBIC_FOOT', CubicInch = 'CUBIC_INCH', CubicYard = 'CUBIC_YARD', Qt = 'QT', Pint = 'PINT', FlOz = 'FL_OZ', AcreIn = 'ACRE_IN', AcreFt = 'ACRE_FT', G = 'G', Lb = 'LB', Oz = 'OZ', Kg = 'KG', Tonne = 'TONNE', } /** Represents a single menu - an object that is used to help navigate through the store. */ export type Menu = Node & ObjectWithMetadata & { __typename?: 'Menu' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] slug: Scalars['String'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> items?: Maybe>> } /** Deletes menus. */ export type MenuBulkDelete = { __typename?: 'MenuBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array } export type MenuCountableConnection = { __typename?: 'MenuCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type MenuCountableEdge = { __typename?: 'MenuCountableEdge' /** The item at the end of the edge. */ node: Menu /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new Menu. */ export type MenuCreate = { __typename?: 'MenuCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array menu?: Maybe } export type MenuCreateInput = { /** Name of the menu. */ name: Scalars['String'] /** Slug of the menu. Will be generated if not provided. */ slug?: Maybe /** List of menu items. */ items?: Maybe>> } /** Deletes a menu. */ export type MenuDelete = { __typename?: 'MenuDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array menu?: Maybe } export type MenuError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: MenuErrorCode } /** An enumeration. */ export enum MenuErrorCode { CannotAssignNode = 'CANNOT_ASSIGN_NODE', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', InvalidMenuItem = 'INVALID_MENU_ITEM', NoMenuItemProvided = 'NO_MENU_ITEM_PROVIDED', NotFound = 'NOT_FOUND', Required = 'REQUIRED', TooManyMenuItems = 'TOO_MANY_MENU_ITEMS', Unique = 'UNIQUE', } export type MenuFilterInput = { search?: Maybe slug?: Maybe>> metadata?: Maybe>> } export type MenuInput = { /** Name of the menu. */ name?: Maybe /** Slug of the menu. */ slug?: Maybe } /** Represents a single item of the related menu. Can store categories, collection or pages. */ export type MenuItem = Node & ObjectWithMetadata & { __typename?: 'MenuItem' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] menu: Menu parent?: Maybe category?: Maybe collection?: Maybe page?: Maybe level: Scalars['Int'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> children?: Maybe>> /** URL to the menu item. */ url?: Maybe /** Returns translated menu item fields for the given language code. */ translation?: Maybe } /** Represents a single item of the related menu. Can store categories, collection or pages. */ export type MenuItemTranslationArgs = { languageCode: LanguageCodeEnum } /** Deletes menu items. */ export type MenuItemBulkDelete = { __typename?: 'MenuItemBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array } export type MenuItemCountableConnection = { __typename?: 'MenuItemCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type MenuItemCountableEdge = { __typename?: 'MenuItemCountableEdge' /** The item at the end of the edge. */ node: MenuItem /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new menu item. */ export type MenuItemCreate = { __typename?: 'MenuItemCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array menuItem?: Maybe } export type MenuItemCreateInput = { /** Name of the menu item. */ name: Scalars['String'] /** URL of the pointed item. */ url?: Maybe /** Category to which item points. */ category?: Maybe /** Collection to which item points. */ collection?: Maybe /** Page to which item points. */ page?: Maybe /** Menu to which item belongs. */ menu: Scalars['ID'] /** ID of the parent menu. If empty, menu will be top level menu. */ parent?: Maybe } /** Deletes a menu item. */ export type MenuItemDelete = { __typename?: 'MenuItemDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array menuItem?: Maybe } export type MenuItemFilterInput = { search?: Maybe metadata?: Maybe>> } export type MenuItemInput = { /** Name of the menu item. */ name?: Maybe /** URL of the pointed item. */ url?: Maybe /** Category to which item points. */ category?: Maybe /** Collection to which item points. */ collection?: Maybe /** Page to which item points. */ page?: Maybe } /** Moves items of menus. */ export type MenuItemMove = { __typename?: 'MenuItemMove' /** Assigned menu to move within. */ menu?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array } export type MenuItemMoveInput = { /** The menu item ID to move. */ itemId: Scalars['ID'] /** ID of the parent menu. If empty, menu will be top level menu. */ parentId?: Maybe /** 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?: Maybe } export type MenuItemSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort menu items by the selected field. */ field: MenuItemsSortField } export type MenuItemTranslatableContent = Node & { __typename?: 'MenuItemTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** Returns translated menu item fields for the given language code. */ translation?: Maybe /** Represents a single item of the related menu. Can store categories, collection or pages. */ menuItem?: Maybe } export type MenuItemTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for Menu Item. */ export type MenuItemTranslate = { __typename?: 'MenuItemTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array menuItem?: Maybe } export type MenuItemTranslation = Node & { __typename?: 'MenuItemTranslation' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** Translation language. */ language: LanguageDisplay } /** Updates a menu item. */ export type MenuItemUpdate = { __typename?: 'MenuItemUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array menuItem?: Maybe } export enum MenuItemsSortField { /** Sort menu items by name. */ Name = 'NAME', } export enum MenuSortField { /** Sort menus by name. */ Name = 'NAME', /** Sort menus by items count. */ ItemsCount = 'ITEMS_COUNT', } export type MenuSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort menus by the selected field. */ field: MenuSortField } /** Updates a menu. */ export type MenuUpdate = { __typename?: 'MenuUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ menuErrors: Array errors: Array menu?: Maybe } export type MetadataError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: MetadataErrorCode } /** An enumeration. */ export enum MetadataErrorCode { GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', } export type MetadataInput = { /** Key of a metadata item. */ key: Scalars['String'] /** Value of a metadata item. */ value: Scalars['String'] } export type MetadataItem = { __typename?: 'MetadataItem' /** Key of a metadata item. */ key: Scalars['String'] /** Value of a metadata item. */ value: Scalars['String'] } /** Represents amount of money in specific currency. */ export type Money = { __typename?: 'Money' /** Currency code. */ currency: Scalars['String'] /** Amount of money. */ amount: Scalars['Float'] } /** Represents a range of amounts of money. */ export type MoneyRange = { __typename?: 'MoneyRange' /** Lower bound of a price range. */ start?: Maybe /** Upper bound of a price range. */ stop?: Maybe } export type MoveProductInput = { /** The ID of the product to move. */ productId: Scalars['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?: Maybe } export type Mutation = { __typename?: 'Mutation' /** Creates a new webhook subscription. */ webhookCreate?: Maybe /** Deletes a webhook subscription. */ webhookDelete?: Maybe /** Updates a webhook subscription. */ webhookUpdate?: Maybe /** Creates new warehouse. */ createWarehouse?: Maybe /** Updates given warehouse. */ updateWarehouse?: Maybe /** Deletes selected warehouse. */ deleteWarehouse?: Maybe /** Add shipping zone to given warehouse. */ assignWarehouseShippingZone?: Maybe /** Remove shipping zone from given warehouse. */ unassignWarehouseShippingZone?: Maybe /** Creates a new staff notification recipient. */ staffNotificationRecipientCreate?: Maybe /** Updates a staff notification recipient. */ staffNotificationRecipientUpdate?: Maybe /** Delete staff notification recipient. */ staffNotificationRecipientDelete?: Maybe /** Updates site domain of the shop. */ shopDomainUpdate?: Maybe /** Updates shop settings. */ shopSettingsUpdate?: Maybe /** Fetch tax rates. */ shopFetchTaxRates?: Maybe /** Creates/Updates translations for Shop Settings. */ shopSettingsTranslate?: Maybe /** Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. */ shopAddressUpdate?: Maybe /** Update shop order settings. */ orderSettingsUpdate?: Maybe /** Manage shipping method's availability in channels. */ shippingMethodChannelListingUpdate?: Maybe /** Creates a new shipping price. */ shippingPriceCreate?: Maybe /** Deletes a shipping price. */ shippingPriceDelete?: Maybe /** Deletes shipping prices. */ shippingPriceBulkDelete?: Maybe /** Updates a new shipping price. */ shippingPriceUpdate?: Maybe /** Creates/Updates translations for shipping method. */ shippingPriceTranslate?: Maybe /** Exclude products from shipping price. */ shippingPriceExcludeProducts?: Maybe /** Remove product from excluded list for shipping price. */ shippingPriceRemoveProductFromExclude?: Maybe /** Creates a new shipping zone. */ shippingZoneCreate?: Maybe /** Deletes a shipping zone. */ shippingZoneDelete?: Maybe /** Deletes shipping zones. */ shippingZoneBulkDelete?: Maybe /** Updates a new shipping zone. */ shippingZoneUpdate?: Maybe /** Assign attributes to a given product type. */ productAttributeAssign?: Maybe /** Un-assign attributes from a given product type. */ productAttributeUnassign?: Maybe /** Creates a new category. */ categoryCreate?: Maybe /** Deletes a category. */ categoryDelete?: Maybe /** Deletes categories. */ categoryBulkDelete?: Maybe /** Updates a category. */ categoryUpdate?: Maybe /** Creates/Updates translations for Category. */ categoryTranslate?: Maybe /** Adds products to a collection. */ collectionAddProducts?: Maybe /** Creates a new collection. */ collectionCreate?: Maybe /** Deletes a collection. */ collectionDelete?: Maybe /** Reorder the products of a collection. */ collectionReorderProducts?: Maybe /** Deletes collections. */ collectionBulkDelete?: Maybe /** Remove products from a collection. */ collectionRemoveProducts?: Maybe /** Updates a collection. */ collectionUpdate?: Maybe /** Creates/Updates translations for collection. */ collectionTranslate?: Maybe /** Manage collection's availability in channels. */ collectionChannelListingUpdate?: Maybe /** Creates a new product. */ productCreate?: Maybe /** Deletes a product. */ productDelete?: Maybe /** Deletes products. */ productBulkDelete?: Maybe /** Updates an existing product. */ productUpdate?: Maybe /** Creates/Updates translations for Product. */ productTranslate?: Maybe /** Manage product's availability in channels. */ productChannelListingUpdate?: Maybe /** 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?: Maybe /** Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. */ productVariantReorder?: Maybe /** Deletes a product media. */ productMediaDelete?: Maybe /** Deletes product media. */ productMediaBulkDelete?: Maybe /** Changes ordering of the product media. */ productMediaReorder?: Maybe /** Updates a product media. */ productMediaUpdate?: Maybe /** Creates a new product type. */ productTypeCreate?: Maybe /** Deletes a product type. */ productTypeDelete?: Maybe /** Deletes product types. */ productTypeBulkDelete?: Maybe /** Updates an existing product type. */ productTypeUpdate?: Maybe /** Reorder the attributes of a product type. */ productTypeReorderAttributes?: Maybe /** Reorder product attribute values. */ productReorderAttributeValues?: Maybe /** 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?: Maybe /** Remove digital content assigned to given variant. */ digitalContentDelete?: Maybe /** Update digital content. */ digitalContentUpdate?: Maybe /** Generate new URL to digital content. */ digitalContentUrlCreate?: Maybe /** Creates a new variant for a product. */ productVariantCreate?: Maybe /** Deletes a product variant. */ productVariantDelete?: Maybe /** Creates product variants for a given product. */ productVariantBulkCreate?: Maybe /** Deletes product variants. */ productVariantBulkDelete?: Maybe /** Creates stocks for product variant. */ productVariantStocksCreate?: Maybe /** Delete stocks from product variant. */ productVariantStocksDelete?: Maybe /** Update stocks for product variant. */ productVariantStocksUpdate?: Maybe /** Updates an existing variant for product. */ productVariantUpdate?: Maybe /** Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. */ productVariantSetDefault?: Maybe /** Creates/Updates translations for Product Variant. */ productVariantTranslate?: Maybe /** Manage product variant prices in channels. */ productVariantChannelListingUpdate?: Maybe /** Reorder product variant attribute values. */ productVariantReorderAttributeValues?: Maybe /** Assign an media to a product variant. */ variantMediaAssign?: Maybe /** Unassign an media from a product variant. */ variantMediaUnassign?: Maybe /** Captures the authorized payment amount. */ paymentCapture?: Maybe /** Refunds the captured payment amount. */ paymentRefund?: Maybe /** Voids the authorized payment. */ paymentVoid?: Maybe /** Initializes payment process when it is required by gateway. */ paymentInitialize?: Maybe /** Creates a new page. */ pageCreate?: Maybe /** Deletes a page. */ pageDelete?: Maybe /** Deletes pages. */ pageBulkDelete?: Maybe /** Publish pages. */ pageBulkPublish?: Maybe /** Updates an existing page. */ pageUpdate?: Maybe /** Creates/Updates translations for Page. */ pageTranslate?: Maybe /** Create a new page type. */ pageTypeCreate?: Maybe /** Update page type. */ pageTypeUpdate?: Maybe /** Delete a page type. */ pageTypeDelete?: Maybe /** Delete page types. */ pageTypeBulkDelete?: Maybe /** Assign attributes to a given page type. */ pageAttributeAssign?: Maybe /** Unassign attributes from a given page type. */ pageAttributeUnassign?: Maybe /** Reorder the attributes of a page type. */ pageTypeReorderAttributes?: Maybe /** Reorder page attribute values. */ pageReorderAttributeValues?: Maybe /** Completes creating an order. */ draftOrderComplete?: Maybe /** Creates a new draft order. */ draftOrderCreate?: Maybe /** Deletes a draft order. */ draftOrderDelete?: Maybe /** Deletes draft orders. */ draftOrderBulkDelete?: Maybe /** Deletes order lines. */ draftOrderLinesBulkDelete?: Maybe /** Updates a draft order. */ draftOrderUpdate?: Maybe /** Adds note to the order. */ orderAddNote?: Maybe /** Cancel an order. */ orderCancel?: Maybe /** Capture an order. */ orderCapture?: Maybe /** Confirms an unconfirmed order by changing status to unfulfilled. */ orderConfirm?: Maybe /** Creates new fulfillments for an order. */ orderFulfill?: Maybe /** Cancels existing fulfillment and optionally restocks items. */ orderFulfillmentCancel?: Maybe /** Updates a fulfillment for an order. */ orderFulfillmentUpdateTracking?: Maybe /** Refund products. */ orderFulfillmentRefundProducts?: Maybe /** Return products. */ orderFulfillmentReturnProducts?: Maybe /** Create order lines for an order. */ orderLinesCreate?: Maybe /** Deletes an order line from an order. */ orderLineDelete?: Maybe /** Updates an order line of an order. */ orderLineUpdate?: Maybe /** Adds discount to the order. */ orderDiscountAdd?: Maybe /** Update discount for the order. */ orderDiscountUpdate?: Maybe /** Remove discount from the order. */ orderDiscountDelete?: Maybe /** Update discount for the order line. */ orderLineDiscountUpdate?: Maybe /** Remove discount applied to the order line. */ orderLineDiscountRemove?: Maybe /** Mark order as manually paid. */ orderMarkAsPaid?: Maybe /** Refund an order. */ orderRefund?: Maybe /** Updates an order. */ orderUpdate?: Maybe /** Updates a shipping method of the order. */ orderUpdateShipping?: Maybe /** Void an order. */ orderVoid?: Maybe /** Cancels orders. */ orderBulkCancel?: Maybe /** Delete metadata of an object. */ deleteMetadata?: Maybe /** Delete object's private metadata. */ deletePrivateMetadata?: Maybe /** Updates metadata of an object. */ updateMetadata?: Maybe /** Updates private metadata of an object. */ updatePrivateMetadata?: Maybe /** Assigns storefront's navigation menus. */ assignNavigation?: Maybe /** Creates a new Menu. */ menuCreate?: Maybe /** Deletes a menu. */ menuDelete?: Maybe /** Deletes menus. */ menuBulkDelete?: Maybe /** Updates a menu. */ menuUpdate?: Maybe /** Creates a new menu item. */ menuItemCreate?: Maybe /** Deletes a menu item. */ menuItemDelete?: Maybe /** Deletes menu items. */ menuItemBulkDelete?: Maybe /** Updates a menu item. */ menuItemUpdate?: Maybe /** Creates/Updates translations for Menu Item. */ menuItemTranslate?: Maybe /** Moves items of menus. */ menuItemMove?: Maybe /** Request an invoice for the order using plugin. */ invoiceRequest?: Maybe /** Requests deletion of an invoice. */ invoiceRequestDelete?: Maybe /** Creates a ready to send invoice. */ invoiceCreate?: Maybe /** Deletes an invoice. */ invoiceDelete?: Maybe /** Updates an invoice. */ invoiceUpdate?: Maybe /** Send an invoice notification to the customer. */ invoiceSendNotification?: Maybe /** Activate a gift card. */ giftCardActivate?: Maybe /** Creates a new gift card. */ giftCardCreate?: Maybe /** Deactivate a gift card. */ giftCardDeactivate?: Maybe /** Update a gift card. */ giftCardUpdate?: Maybe /** Update plugin configuration. */ pluginUpdate?: Maybe /** Creates a new sale. */ saleCreate?: Maybe /** Deletes a sale. */ saleDelete?: Maybe /** Deletes sales. */ saleBulkDelete?: Maybe /** Updates a sale. */ saleUpdate?: Maybe /** Adds products, categories, collections to a voucher. */ saleCataloguesAdd?: Maybe /** Removes products, categories, collections from a sale. */ saleCataloguesRemove?: Maybe /** Creates/updates translations for a sale. */ saleTranslate?: Maybe /** Manage sale's availability in channels. */ saleChannelListingUpdate?: Maybe /** Creates a new voucher. */ voucherCreate?: Maybe /** Deletes a voucher. */ voucherDelete?: Maybe /** Deletes vouchers. */ voucherBulkDelete?: Maybe /** Updates a voucher. */ voucherUpdate?: Maybe /** Adds products, categories, collections to a voucher. */ voucherCataloguesAdd?: Maybe /** Removes products, categories, collections from a voucher. */ voucherCataloguesRemove?: Maybe /** Creates/Updates translations for Voucher. */ voucherTranslate?: Maybe /** Manage voucher's availability in channels. */ voucherChannelListingUpdate?: Maybe /** Export products to csv file. */ exportProducts?: Maybe /** 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?: Maybe /** Adds a gift card or a voucher to a checkout. */ checkoutAddPromoCode?: Maybe /** Update billing address in the existing checkout. */ checkoutBillingAddressUpdate?: Maybe /** 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?: Maybe /** Create a new checkout. */ checkoutCreate?: Maybe /** Sets the customer as the owner of the checkout. */ checkoutCustomerAttach?: Maybe /** Removes the user assigned as the owner of the checkout. */ checkoutCustomerDetach?: Maybe /** Updates email address in the existing checkout object. */ checkoutEmailUpdate?: Maybe /** Deletes a CheckoutLine. */ checkoutLineDelete?: Maybe /** Adds a checkout line to the existing checkout. */ checkoutLinesAdd?: Maybe /** Updates checkout line in the existing checkout. */ checkoutLinesUpdate?: Maybe /** Remove a gift card or a voucher from a checkout. */ checkoutRemovePromoCode?: Maybe /** Create a new payment for given checkout. */ checkoutPaymentCreate?: Maybe /** Update shipping address in the existing checkout. */ checkoutShippingAddressUpdate?: Maybe /** Updates the shipping address of the checkout. */ checkoutShippingMethodUpdate?: Maybe /** Update language code in the existing checkout. */ checkoutLanguageCodeUpdate?: Maybe /** Creates new channel. */ channelCreate?: Maybe /** Update a channel. */ channelUpdate?: Maybe /** 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?: Maybe /** Activate a channel. */ channelActivate?: Maybe /** Deactivate a channel. */ channelDeactivate?: Maybe /** Creates an attribute. */ attributeCreate?: Maybe /** Deletes an attribute. */ attributeDelete?: Maybe /** Updates attribute. */ attributeUpdate?: Maybe /** Creates/Updates translations for attribute. */ attributeTranslate?: Maybe /** Deletes attributes. */ attributeBulkDelete?: Maybe /** Deletes values of attributes. */ attributeValueBulkDelete?: Maybe /** Creates a value for an attribute. */ attributeValueCreate?: Maybe /** Deletes a value of an attribute. */ attributeValueDelete?: Maybe /** Updates value of an attribute. */ attributeValueUpdate?: Maybe /** Creates/Updates translations for attribute value. */ attributeValueTranslate?: Maybe /** Reorder the values of an attribute. */ attributeReorderValues?: Maybe /** Creates a new app. */ appCreate?: Maybe /** Updates an existing app. */ appUpdate?: Maybe /** Deletes an app. */ appDelete?: Maybe /** Creates a new token. */ appTokenCreate?: Maybe /** Deletes an authentication token assigned to app. */ appTokenDelete?: Maybe /** Verify provided app token. */ appTokenVerify?: Maybe /** Install new app by using app manifest. */ appInstall?: Maybe /** Retry failed installation of new app. */ appRetryInstall?: Maybe /** Delete failed installation. */ appDeleteFailedInstallation?: Maybe /** Fetch and validate manifest. */ appFetchManifest?: Maybe /** Activate the app. */ appActivate?: Maybe /** Deactivate the app. */ appDeactivate?: Maybe /** Create JWT token. */ tokenCreate?: Maybe /** 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?: Maybe /** Verify JWT token. */ tokenVerify?: Maybe /** Deactivate all JWT tokens of the currently authenticated user. */ tokensDeactivateAll?: Maybe /** Prepare external authentication url for user by custom plugin. */ externalAuthenticationUrl?: Maybe /** Obtain external access tokens for user by custom plugin. */ externalObtainAccessTokens?: Maybe /** Refresh user's access by custom plugin. */ externalRefresh?: Maybe /** Logout user by custom plugin. */ externalLogout?: Maybe /** Verify external authentication data by plugin. */ externalVerify?: Maybe /** Sends an email with the account password modification link. */ requestPasswordReset?: Maybe /** Confirm user account with token sent by email during registration. */ confirmAccount?: Maybe /** Sets the user's password from the token sent by email using the RequestPasswordReset mutation. */ setPassword?: Maybe /** Change the password of the logged in user. */ passwordChange?: Maybe /** Request email change of the logged in user. */ requestEmailChange?: Maybe /** Confirm the email change of the logged-in user. */ confirmEmailChange?: Maybe /** Create a new address for the customer. */ accountAddressCreate?: Maybe /** Updates an address of the logged-in user. */ accountAddressUpdate?: Maybe /** Delete an address of the logged-in user. */ accountAddressDelete?: Maybe /** Sets a default address for the authenticated user. */ accountSetDefaultAddress?: Maybe /** Register a new user. */ accountRegister?: Maybe /** Updates the account of the logged-in user. */ accountUpdate?: Maybe /** Sends an email with the account removal link for the logged-in user. */ accountRequestDeletion?: Maybe /** Remove user account. */ accountDelete?: Maybe /** Creates user address. */ addressCreate?: Maybe /** Updates an address. */ addressUpdate?: Maybe /** Deletes an address. */ addressDelete?: Maybe /** Sets a default address for the given user. */ addressSetDefault?: Maybe /** Creates a new customer. */ customerCreate?: Maybe /** Updates an existing customer. */ customerUpdate?: Maybe /** Deletes a customer. */ customerDelete?: Maybe /** Deletes customers. */ customerBulkDelete?: Maybe /** Creates a new staff user. */ staffCreate?: Maybe /** Updates an existing staff user. */ staffUpdate?: Maybe /** Deletes a staff user. */ staffDelete?: Maybe /** Deletes staff users. */ staffBulkDelete?: Maybe /** 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?: Maybe /** Deletes a user avatar. Only for staff members. */ userAvatarDelete?: Maybe /** Activate or deactivate users. */ userBulkSetActive?: Maybe /** Create new permission group. */ permissionGroupCreate?: Maybe /** Update permission group. */ permissionGroupUpdate?: Maybe /** Delete permission group. */ permissionGroupDelete?: Maybe } export type MutationWebhookCreateArgs = { input: WebhookCreateInput } export type MutationWebhookDeleteArgs = { id: Scalars['ID'] } export type MutationWebhookUpdateArgs = { id: Scalars['ID'] input: WebhookUpdateInput } export type MutationCreateWarehouseArgs = { input: WarehouseCreateInput } export type MutationUpdateWarehouseArgs = { id: Scalars['ID'] input: WarehouseUpdateInput } export type MutationDeleteWarehouseArgs = { id: Scalars['ID'] } export type MutationAssignWarehouseShippingZoneArgs = { id: Scalars['ID'] shippingZoneIds: Array } export type MutationUnassignWarehouseShippingZoneArgs = { id: Scalars['ID'] shippingZoneIds: Array } export type MutationStaffNotificationRecipientCreateArgs = { input: StaffNotificationRecipientInput } export type MutationStaffNotificationRecipientUpdateArgs = { id: Scalars['ID'] input: StaffNotificationRecipientInput } export type MutationStaffNotificationRecipientDeleteArgs = { id: Scalars['ID'] } export type MutationShopDomainUpdateArgs = { input?: Maybe } export type MutationShopSettingsUpdateArgs = { input: ShopSettingsInput } export type MutationShopSettingsTranslateArgs = { input: ShopSettingsTranslationInput languageCode: LanguageCodeEnum } export type MutationShopAddressUpdateArgs = { input?: Maybe } export type MutationOrderSettingsUpdateArgs = { input: OrderSettingsUpdateInput } export type MutationShippingMethodChannelListingUpdateArgs = { id: Scalars['ID'] input: ShippingMethodChannelListingInput } export type MutationShippingPriceCreateArgs = { input: ShippingPriceInput } export type MutationShippingPriceDeleteArgs = { id: Scalars['ID'] } export type MutationShippingPriceBulkDeleteArgs = { ids: Array> } export type MutationShippingPriceUpdateArgs = { id: Scalars['ID'] input: ShippingPriceInput } export type MutationShippingPriceTranslateArgs = { id: Scalars['ID'] input: ShippingPriceTranslationInput languageCode: LanguageCodeEnum } export type MutationShippingPriceExcludeProductsArgs = { id: Scalars['ID'] input: ShippingPriceExcludeProductsInput } export type MutationShippingPriceRemoveProductFromExcludeArgs = { id: Scalars['ID'] products: Array> } export type MutationShippingZoneCreateArgs = { input: ShippingZoneCreateInput } export type MutationShippingZoneDeleteArgs = { id: Scalars['ID'] } export type MutationShippingZoneBulkDeleteArgs = { ids: Array> } export type MutationShippingZoneUpdateArgs = { id: Scalars['ID'] input: ShippingZoneUpdateInput } export type MutationProductAttributeAssignArgs = { operations: Array> productTypeId: Scalars['ID'] } export type MutationProductAttributeUnassignArgs = { attributeIds: Array> productTypeId: Scalars['ID'] } export type MutationCategoryCreateArgs = { input: CategoryInput parent?: Maybe } export type MutationCategoryDeleteArgs = { id: Scalars['ID'] } export type MutationCategoryBulkDeleteArgs = { ids: Array> } export type MutationCategoryUpdateArgs = { id: Scalars['ID'] input: CategoryInput } export type MutationCategoryTranslateArgs = { id: Scalars['ID'] input: TranslationInput languageCode: LanguageCodeEnum } export type MutationCollectionAddProductsArgs = { collectionId: Scalars['ID'] products: Array> } export type MutationCollectionCreateArgs = { input: CollectionCreateInput } export type MutationCollectionDeleteArgs = { id: Scalars['ID'] } export type MutationCollectionReorderProductsArgs = { collectionId: Scalars['ID'] moves: Array> } export type MutationCollectionBulkDeleteArgs = { ids: Array> } export type MutationCollectionRemoveProductsArgs = { collectionId: Scalars['ID'] products: Array> } export type MutationCollectionUpdateArgs = { id: Scalars['ID'] input: CollectionInput } export type MutationCollectionTranslateArgs = { id: Scalars['ID'] input: TranslationInput languageCode: LanguageCodeEnum } export type MutationCollectionChannelListingUpdateArgs = { id: Scalars['ID'] input: CollectionChannelListingUpdateInput } export type MutationProductCreateArgs = { input: ProductCreateInput } export type MutationProductDeleteArgs = { id: Scalars['ID'] } export type MutationProductBulkDeleteArgs = { ids: Array> } export type MutationProductUpdateArgs = { id: Scalars['ID'] input: ProductInput } export type MutationProductTranslateArgs = { id: Scalars['ID'] input: TranslationInput languageCode: LanguageCodeEnum } export type MutationProductChannelListingUpdateArgs = { id: Scalars['ID'] input: ProductChannelListingUpdateInput } export type MutationProductMediaCreateArgs = { input: ProductMediaCreateInput } export type MutationProductVariantReorderArgs = { moves: Array> productId: Scalars['ID'] } export type MutationProductMediaDeleteArgs = { id: Scalars['ID'] } export type MutationProductMediaBulkDeleteArgs = { ids: Array> } export type MutationProductMediaReorderArgs = { mediaIds: Array> productId: Scalars['ID'] } export type MutationProductMediaUpdateArgs = { id: Scalars['ID'] input: ProductMediaUpdateInput } export type MutationProductTypeCreateArgs = { input: ProductTypeInput } export type MutationProductTypeDeleteArgs = { id: Scalars['ID'] } export type MutationProductTypeBulkDeleteArgs = { ids: Array> } export type MutationProductTypeUpdateArgs = { id: Scalars['ID'] input: ProductTypeInput } export type MutationProductTypeReorderAttributesArgs = { moves: Array> productTypeId: Scalars['ID'] type: ProductAttributeType } export type MutationProductReorderAttributeValuesArgs = { attributeId: Scalars['ID'] moves: Array> productId: Scalars['ID'] } export type MutationDigitalContentCreateArgs = { input: DigitalContentUploadInput variantId: Scalars['ID'] } export type MutationDigitalContentDeleteArgs = { variantId: Scalars['ID'] } export type MutationDigitalContentUpdateArgs = { input: DigitalContentInput variantId: Scalars['ID'] } export type MutationDigitalContentUrlCreateArgs = { input: DigitalContentUrlCreateInput } export type MutationProductVariantCreateArgs = { input: ProductVariantCreateInput } export type MutationProductVariantDeleteArgs = { id: Scalars['ID'] } export type MutationProductVariantBulkCreateArgs = { product: Scalars['ID'] variants: Array> } export type MutationProductVariantBulkDeleteArgs = { ids: Array> } export type MutationProductVariantStocksCreateArgs = { stocks: Array variantId: Scalars['ID'] } export type MutationProductVariantStocksDeleteArgs = { variantId: Scalars['ID'] warehouseIds?: Maybe> } export type MutationProductVariantStocksUpdateArgs = { stocks: Array variantId: Scalars['ID'] } export type MutationProductVariantUpdateArgs = { id: Scalars['ID'] input: ProductVariantInput } export type MutationProductVariantSetDefaultArgs = { productId: Scalars['ID'] variantId: Scalars['ID'] } export type MutationProductVariantTranslateArgs = { id: Scalars['ID'] input: NameTranslationInput languageCode: LanguageCodeEnum } export type MutationProductVariantChannelListingUpdateArgs = { id: Scalars['ID'] input: Array } export type MutationProductVariantReorderAttributeValuesArgs = { attributeId: Scalars['ID'] moves: Array> variantId: Scalars['ID'] } export type MutationVariantMediaAssignArgs = { mediaId: Scalars['ID'] variantId: Scalars['ID'] } export type MutationVariantMediaUnassignArgs = { mediaId: Scalars['ID'] variantId: Scalars['ID'] } export type MutationPaymentCaptureArgs = { amount?: Maybe paymentId: Scalars['ID'] } export type MutationPaymentRefundArgs = { amount?: Maybe paymentId: Scalars['ID'] } export type MutationPaymentVoidArgs = { paymentId: Scalars['ID'] } export type MutationPaymentInitializeArgs = { channel?: Maybe gateway: Scalars['String'] paymentData?: Maybe } export type MutationPageCreateArgs = { input: PageCreateInput } export type MutationPageDeleteArgs = { id: Scalars['ID'] } export type MutationPageBulkDeleteArgs = { ids: Array> } export type MutationPageBulkPublishArgs = { ids: Array> isPublished: Scalars['Boolean'] } export type MutationPageUpdateArgs = { id: Scalars['ID'] input: PageInput } export type MutationPageTranslateArgs = { id: Scalars['ID'] input: PageTranslationInput languageCode: LanguageCodeEnum } export type MutationPageTypeCreateArgs = { input: PageTypeCreateInput } export type MutationPageTypeUpdateArgs = { id?: Maybe input: PageTypeUpdateInput } export type MutationPageTypeDeleteArgs = { id: Scalars['ID'] } export type MutationPageTypeBulkDeleteArgs = { ids: Array } export type MutationPageAttributeAssignArgs = { attributeIds: Array pageTypeId: Scalars['ID'] } export type MutationPageAttributeUnassignArgs = { attributeIds: Array pageTypeId: Scalars['ID'] } export type MutationPageTypeReorderAttributesArgs = { moves: Array pageTypeId: Scalars['ID'] } export type MutationPageReorderAttributeValuesArgs = { attributeId: Scalars['ID'] moves: Array> pageId: Scalars['ID'] } export type MutationDraftOrderCompleteArgs = { id: Scalars['ID'] } export type MutationDraftOrderCreateArgs = { input: DraftOrderCreateInput } export type MutationDraftOrderDeleteArgs = { id: Scalars['ID'] } export type MutationDraftOrderBulkDeleteArgs = { ids: Array> } export type MutationDraftOrderLinesBulkDeleteArgs = { ids: Array> } export type MutationDraftOrderUpdateArgs = { id: Scalars['ID'] input: DraftOrderInput } export type MutationOrderAddNoteArgs = { order: Scalars['ID'] input: OrderAddNoteInput } export type MutationOrderCancelArgs = { id: Scalars['ID'] } export type MutationOrderCaptureArgs = { amount: Scalars['PositiveDecimal'] id: Scalars['ID'] } export type MutationOrderConfirmArgs = { id: Scalars['ID'] } export type MutationOrderFulfillArgs = { input: OrderFulfillInput order?: Maybe } export type MutationOrderFulfillmentCancelArgs = { id: Scalars['ID'] input: FulfillmentCancelInput } export type MutationOrderFulfillmentUpdateTrackingArgs = { id: Scalars['ID'] input: FulfillmentUpdateTrackingInput } export type MutationOrderFulfillmentRefundProductsArgs = { input: OrderRefundProductsInput order: Scalars['ID'] } export type MutationOrderFulfillmentReturnProductsArgs = { input: OrderReturnProductsInput order: Scalars['ID'] } export type MutationOrderLinesCreateArgs = { id: Scalars['ID'] input: Array> } export type MutationOrderLineDeleteArgs = { id: Scalars['ID'] } export type MutationOrderLineUpdateArgs = { id: Scalars['ID'] input: OrderLineInput } export type MutationOrderDiscountAddArgs = { input: OrderDiscountCommonInput orderId: Scalars['ID'] } export type MutationOrderDiscountUpdateArgs = { discountId: Scalars['ID'] input: OrderDiscountCommonInput } export type MutationOrderDiscountDeleteArgs = { discountId: Scalars['ID'] } export type MutationOrderLineDiscountUpdateArgs = { input: OrderDiscountCommonInput orderLineId: Scalars['ID'] } export type MutationOrderLineDiscountRemoveArgs = { orderLineId: Scalars['ID'] } export type MutationOrderMarkAsPaidArgs = { id: Scalars['ID'] transactionReference?: Maybe } export type MutationOrderRefundArgs = { amount: Scalars['PositiveDecimal'] id: Scalars['ID'] } export type MutationOrderUpdateArgs = { id: Scalars['ID'] input: OrderUpdateInput } export type MutationOrderUpdateShippingArgs = { order: Scalars['ID'] input?: Maybe } export type MutationOrderVoidArgs = { id: Scalars['ID'] } export type MutationOrderBulkCancelArgs = { ids: Array> } export type MutationDeleteMetadataArgs = { id: Scalars['ID'] keys: Array } export type MutationDeletePrivateMetadataArgs = { id: Scalars['ID'] keys: Array } export type MutationUpdateMetadataArgs = { id: Scalars['ID'] input: Array } export type MutationUpdatePrivateMetadataArgs = { id: Scalars['ID'] input: Array } export type MutationAssignNavigationArgs = { menu?: Maybe navigationType: NavigationType } export type MutationMenuCreateArgs = { input: MenuCreateInput } export type MutationMenuDeleteArgs = { id: Scalars['ID'] } export type MutationMenuBulkDeleteArgs = { ids: Array> } export type MutationMenuUpdateArgs = { id: Scalars['ID'] input: MenuInput } export type MutationMenuItemCreateArgs = { input: MenuItemCreateInput } export type MutationMenuItemDeleteArgs = { id: Scalars['ID'] } export type MutationMenuItemBulkDeleteArgs = { ids: Array> } export type MutationMenuItemUpdateArgs = { id: Scalars['ID'] input: MenuItemInput } export type MutationMenuItemTranslateArgs = { id: Scalars['ID'] input: NameTranslationInput languageCode: LanguageCodeEnum } export type MutationMenuItemMoveArgs = { menu: Scalars['ID'] moves: Array> } export type MutationInvoiceRequestArgs = { number?: Maybe orderId: Scalars['ID'] } export type MutationInvoiceRequestDeleteArgs = { id: Scalars['ID'] } export type MutationInvoiceCreateArgs = { input: InvoiceCreateInput orderId: Scalars['ID'] } export type MutationInvoiceDeleteArgs = { id: Scalars['ID'] } export type MutationInvoiceUpdateArgs = { id: Scalars['ID'] input: UpdateInvoiceInput } export type MutationInvoiceSendNotificationArgs = { id: Scalars['ID'] } export type MutationGiftCardActivateArgs = { id: Scalars['ID'] } export type MutationGiftCardCreateArgs = { input: GiftCardCreateInput } export type MutationGiftCardDeactivateArgs = { id: Scalars['ID'] } export type MutationGiftCardUpdateArgs = { id: Scalars['ID'] input: GiftCardUpdateInput } export type MutationPluginUpdateArgs = { channel?: Maybe id: Scalars['ID'] input: PluginUpdateInput } export type MutationSaleCreateArgs = { input: SaleInput } export type MutationSaleDeleteArgs = { id: Scalars['ID'] } export type MutationSaleBulkDeleteArgs = { ids: Array> } export type MutationSaleUpdateArgs = { id: Scalars['ID'] input: SaleInput } export type MutationSaleCataloguesAddArgs = { id: Scalars['ID'] input: CatalogueInput } export type MutationSaleCataloguesRemoveArgs = { id: Scalars['ID'] input: CatalogueInput } export type MutationSaleTranslateArgs = { id: Scalars['ID'] input: NameTranslationInput languageCode: LanguageCodeEnum } export type MutationSaleChannelListingUpdateArgs = { id: Scalars['ID'] input: SaleChannelListingInput } export type MutationVoucherCreateArgs = { input: VoucherInput } export type MutationVoucherDeleteArgs = { id: Scalars['ID'] } export type MutationVoucherBulkDeleteArgs = { ids: Array> } export type MutationVoucherUpdateArgs = { id: Scalars['ID'] input: VoucherInput } export type MutationVoucherCataloguesAddArgs = { id: Scalars['ID'] input: CatalogueInput } export type MutationVoucherCataloguesRemoveArgs = { id: Scalars['ID'] input: CatalogueInput } export type MutationVoucherTranslateArgs = { id: Scalars['ID'] input: NameTranslationInput languageCode: LanguageCodeEnum } export type MutationVoucherChannelListingUpdateArgs = { id: Scalars['ID'] input: VoucherChannelListingInput } export type MutationExportProductsArgs = { input: ExportProductsInput } export type MutationFileUploadArgs = { file: Scalars['Upload'] } export type MutationCheckoutAddPromoCodeArgs = { checkoutId: Scalars['ID'] promoCode: Scalars['String'] } export type MutationCheckoutBillingAddressUpdateArgs = { billingAddress: AddressInput checkoutId: Scalars['ID'] } export type MutationCheckoutCompleteArgs = { checkoutId: Scalars['ID'] paymentData?: Maybe redirectUrl?: Maybe storeSource?: Maybe } export type MutationCheckoutCreateArgs = { input: CheckoutCreateInput } export type MutationCheckoutCustomerAttachArgs = { checkoutId: Scalars['ID'] } export type MutationCheckoutCustomerDetachArgs = { checkoutId: Scalars['ID'] } export type MutationCheckoutEmailUpdateArgs = { checkoutId?: Maybe email: Scalars['String'] } export type MutationCheckoutLineDeleteArgs = { checkoutId: Scalars['ID'] lineId?: Maybe } export type MutationCheckoutLinesAddArgs = { checkoutId: Scalars['ID'] lines: Array> } export type MutationCheckoutLinesUpdateArgs = { checkoutId: Scalars['ID'] lines: Array> } export type MutationCheckoutRemovePromoCodeArgs = { checkoutId: Scalars['ID'] promoCode: Scalars['String'] } export type MutationCheckoutPaymentCreateArgs = { checkoutId: Scalars['ID'] input: PaymentInput } export type MutationCheckoutShippingAddressUpdateArgs = { checkoutId: Scalars['ID'] shippingAddress: AddressInput } export type MutationCheckoutShippingMethodUpdateArgs = { checkoutId?: Maybe shippingMethodId: Scalars['ID'] } export type MutationCheckoutLanguageCodeUpdateArgs = { checkoutId: Scalars['ID'] languageCode: LanguageCodeEnum } export type MutationChannelCreateArgs = { input: ChannelCreateInput } export type MutationChannelUpdateArgs = { id: Scalars['ID'] input: ChannelUpdateInput } export type MutationChannelDeleteArgs = { id: Scalars['ID'] input?: Maybe } export type MutationChannelActivateArgs = { id: Scalars['ID'] } export type MutationChannelDeactivateArgs = { id: Scalars['ID'] } export type MutationAttributeCreateArgs = { input: AttributeCreateInput } export type MutationAttributeDeleteArgs = { id: Scalars['ID'] } export type MutationAttributeUpdateArgs = { id: Scalars['ID'] input: AttributeUpdateInput } export type MutationAttributeTranslateArgs = { id: Scalars['ID'] input: NameTranslationInput languageCode: LanguageCodeEnum } export type MutationAttributeBulkDeleteArgs = { ids: Array> } export type MutationAttributeValueBulkDeleteArgs = { ids: Array> } export type MutationAttributeValueCreateArgs = { attribute: Scalars['ID'] input: AttributeValueCreateInput } export type MutationAttributeValueDeleteArgs = { id: Scalars['ID'] } export type MutationAttributeValueUpdateArgs = { id: Scalars['ID'] input: AttributeValueCreateInput } export type MutationAttributeValueTranslateArgs = { id: Scalars['ID'] input: AttributeValueTranslationInput languageCode: LanguageCodeEnum } export type MutationAttributeReorderValuesArgs = { attributeId: Scalars['ID'] moves: Array> } export type MutationAppCreateArgs = { input: AppInput } export type MutationAppUpdateArgs = { id: Scalars['ID'] input: AppInput } export type MutationAppDeleteArgs = { id: Scalars['ID'] } export type MutationAppTokenCreateArgs = { input: AppTokenInput } export type MutationAppTokenDeleteArgs = { id: Scalars['ID'] } export type MutationAppTokenVerifyArgs = { token: Scalars['String'] } export type MutationAppInstallArgs = { input: AppInstallInput } export type MutationAppRetryInstallArgs = { activateAfterInstallation?: Maybe id: Scalars['ID'] } export type MutationAppDeleteFailedInstallationArgs = { id: Scalars['ID'] } export type MutationAppFetchManifestArgs = { manifestUrl: Scalars['String'] } export type MutationAppActivateArgs = { id: Scalars['ID'] } export type MutationAppDeactivateArgs = { id: Scalars['ID'] } export type MutationTokenCreateArgs = { email: Scalars['String'] password: Scalars['String'] } export type MutationTokenRefreshArgs = { csrfToken?: Maybe refreshToken?: Maybe } export type MutationTokenVerifyArgs = { token: Scalars['String'] } export type MutationExternalAuthenticationUrlArgs = { input: Scalars['JSONString'] pluginId: Scalars['String'] } export type MutationExternalObtainAccessTokensArgs = { input: Scalars['JSONString'] pluginId: Scalars['String'] } export type MutationExternalRefreshArgs = { input: Scalars['JSONString'] pluginId: Scalars['String'] } export type MutationExternalLogoutArgs = { input: Scalars['JSONString'] pluginId: Scalars['String'] } export type MutationExternalVerifyArgs = { input: Scalars['JSONString'] pluginId: Scalars['String'] } export type MutationRequestPasswordResetArgs = { channel?: Maybe email: Scalars['String'] redirectUrl: Scalars['String'] } export type MutationConfirmAccountArgs = { email: Scalars['String'] token: Scalars['String'] } export type MutationSetPasswordArgs = { email: Scalars['String'] password: Scalars['String'] token: Scalars['String'] } export type MutationPasswordChangeArgs = { newPassword: Scalars['String'] oldPassword: Scalars['String'] } export type MutationRequestEmailChangeArgs = { channel?: Maybe newEmail: Scalars['String'] password: Scalars['String'] redirectUrl: Scalars['String'] } export type MutationConfirmEmailChangeArgs = { channel?: Maybe token: Scalars['String'] } export type MutationAccountAddressCreateArgs = { input: AddressInput type?: Maybe } export type MutationAccountAddressUpdateArgs = { id: Scalars['ID'] input: AddressInput } export type MutationAccountAddressDeleteArgs = { id: Scalars['ID'] } export type MutationAccountSetDefaultAddressArgs = { id: Scalars['ID'] type: AddressTypeEnum } export type MutationAccountRegisterArgs = { input: AccountRegisterInput } export type MutationAccountUpdateArgs = { input: AccountInput } export type MutationAccountRequestDeletionArgs = { channel?: Maybe redirectUrl: Scalars['String'] } export type MutationAccountDeleteArgs = { token: Scalars['String'] } export type MutationAddressCreateArgs = { input: AddressInput userId: Scalars['ID'] } export type MutationAddressUpdateArgs = { id: Scalars['ID'] input: AddressInput } export type MutationAddressDeleteArgs = { id: Scalars['ID'] } export type MutationAddressSetDefaultArgs = { addressId: Scalars['ID'] type: AddressTypeEnum userId: Scalars['ID'] } export type MutationCustomerCreateArgs = { input: UserCreateInput } export type MutationCustomerUpdateArgs = { id: Scalars['ID'] input: CustomerInput } export type MutationCustomerDeleteArgs = { id: Scalars['ID'] } export type MutationCustomerBulkDeleteArgs = { ids: Array> } export type MutationStaffCreateArgs = { input: StaffCreateInput } export type MutationStaffUpdateArgs = { id: Scalars['ID'] input: StaffUpdateInput } export type MutationStaffDeleteArgs = { id: Scalars['ID'] } export type MutationStaffBulkDeleteArgs = { ids: Array> } export type MutationUserAvatarUpdateArgs = { image: Scalars['Upload'] } export type MutationUserBulkSetActiveArgs = { ids: Array> isActive: Scalars['Boolean'] } export type MutationPermissionGroupCreateArgs = { input: PermissionGroupCreateInput } export type MutationPermissionGroupUpdateArgs = { id: Scalars['ID'] input: PermissionGroupUpdateInput } export type MutationPermissionGroupDeleteArgs = { id: Scalars['ID'] } export type NameTranslationInput = { name?: Maybe } export enum NavigationType { /** Main storefront navigation. */ Main = 'MAIN', /** Secondary storefront navigation. */ Secondary = 'SECONDARY', } /** An object with an ID */ export type Node = { /** The ID of the object. */ id: Scalars['ID'] } export type ObjectWithMetadata = { /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> } /** Represents an order in the shop. */ export type Order = Node & ObjectWithMetadata & { __typename?: 'Order' /** The ID of the object. */ id: Scalars['ID'] created: Scalars['DateTime'] status: OrderStatus user?: Maybe trackingClientId: Scalars['String'] billingAddress?: Maybe
shippingAddress?: Maybe
shippingMethod?: Maybe shippingMethodName?: Maybe channel: Channel /** Total price of shipping. */ shippingPrice: TaxedMoney shippingTaxRate: Scalars['Float'] token: Scalars['String'] voucher?: Maybe /** List of user gift cards. */ giftCards?: Maybe>> displayGrossPrices: Scalars['Boolean'] customerNote: Scalars['String'] weight?: Maybe redirectUrl?: Maybe /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** List of shipments for the order. */ fulfillments: Array> /** List of order lines. */ lines: Array> /** List of actions that can be performed in the current state of an order. */ actions: Array> /** Shipping methods that can be used with this order. */ availableShippingMethods?: Maybe>> /** List of order invoices. */ invoices?: Maybe>> /** User-friendly number of an order. */ number?: Maybe /** The ID of the order that was the base for this order. */ original?: Maybe /** The order origin. */ origin: OrderOriginEnum /** Informs if an order is fully paid. */ isPaid: Scalars['Boolean'] /** Internal payment status. */ paymentStatus: PaymentChargeStatusEnum /** User-friendly payment status. */ paymentStatusDisplay: Scalars['String'] /** List of payments for the order. */ payments?: Maybe>> /** Total amount of the order. */ total: TaxedMoney /** Undiscounted total amount of the order. */ undiscountedTotal: TaxedMoney /** The sum of line prices not including shipping. */ subtotal: TaxedMoney /** User-friendly order status. */ statusDisplay?: Maybe /** Informs whether a draft order can be finalized(turned into a regular order). */ canFinalize: Scalars['Boolean'] /** Amount authorized for the order. */ totalAuthorized: Money /** Amount captured by payment. */ totalCaptured: Money /** List of events associated with the order. */ events?: Maybe>> /** The difference between the paid and the order total amount. */ totalBalance: Money /** Email address of the customer. */ userEmail?: Maybe /** Returns True, if order requires shipping. */ isShippingRequired: Scalars['Boolean'] /** @deprecated Use the `languageCodeEnum` field to fetch the language code. This field will be removed in Saleor 4.0. */ languageCode: Scalars['String'] /** Order language code. */ languageCodeEnum: LanguageCodeEnum /** * Returns applied discount. * @deprecated Use discounts field. This field will be removed in Saleor 4.0. */ discount?: Maybe /** * Discount name. * @deprecated Use discounts field. This field will be removed in Saleor 4.0. */ discountName?: Maybe /** * Translated discount name. * @deprecated Use discounts field. This field will be removed in Saleor 4.0. */ translatedDiscountName?: Maybe /** List of all discounts assigned to the order. */ discounts?: Maybe> } export enum OrderAction { /** Represents the capture action. */ Capture = 'CAPTURE', /** Represents a mark-as-paid action. */ MarkAsPaid = 'MARK_AS_PAID', /** Represents a refund action. */ Refund = 'REFUND', /** Represents a void action. */ Void = 'VOID', } /** Adds note to the order. */ export type OrderAddNote = { __typename?: 'OrderAddNote' /** Order with the note added. */ order?: Maybe /** Order note created. */ event?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type OrderAddNoteInput = { /** Note message. */ message: Scalars['String'] } /** Cancels orders. */ export type OrderBulkCancel = { __typename?: 'OrderBulkCancel' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Cancel an order. */ export type OrderCancel = { __typename?: 'OrderCancel' /** Canceled order. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Capture an order. */ export type OrderCapture = { __typename?: 'OrderCapture' /** Captured order. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Confirms an unconfirmed order by changing status to unfulfilled. */ export type OrderConfirm = { __typename?: 'OrderConfirm' order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type OrderCountableConnection = { __typename?: 'OrderCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type OrderCountableEdge = { __typename?: 'OrderCountableEdge' /** The item at the end of the edge. */ node: Order /** A cursor for use in pagination. */ cursor: Scalars['String'] } export enum OrderDirection { /** Specifies an ascending sort order. */ Asc = 'ASC', /** Specifies a descending sort order. */ Desc = 'DESC', } /** Contains all details related to the applied discount to the order. */ export type OrderDiscount = Node & { __typename?: 'OrderDiscount' /** The ID of the object. */ id: Scalars['ID'] type: OrderDiscountType /** Type of the discount: fixed or percent */ valueType: DiscountValueTypeEnum /** Value of the discount. Can store fixed value or percent value */ value: Scalars['PositiveDecimal'] name?: Maybe translatedName?: Maybe /** Explanation for the applied discount. */ reason?: Maybe /** Returns amount of discount. */ amount: Money } /** Adds discount to the order. */ export type OrderDiscountAdd = { __typename?: 'OrderDiscountAdd' /** Order which has been discounted. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type OrderDiscountCommonInput = { /** Type of the discount: fixed or percent */ valueType: DiscountValueTypeEnum /** Value of the discount. Can store fixed value or percent value */ value: Scalars['PositiveDecimal'] /** Explanation for the applied discount. */ reason?: Maybe } /** Remove discount from the order. */ export type OrderDiscountDelete = { __typename?: 'OrderDiscountDelete' /** Order which has removed discount. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** An enumeration. */ export enum OrderDiscountType { /** Voucher */ Voucher = 'VOUCHER', /** Manual */ Manual = 'MANUAL', } /** Update discount for the order. */ export type OrderDiscountUpdate = { __typename?: 'OrderDiscountUpdate' /** Order which has been discounted. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type OrderDraftFilterInput = { customer?: Maybe created?: Maybe search?: Maybe metadata?: Maybe>> channels?: Maybe>> } export type OrderError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: OrderErrorCode /** Warehouse ID which causes the error. */ warehouse?: Maybe /** Order line ID which causes the error. */ orderLine?: Maybe /** List of product variants that are associated with the error */ variants?: Maybe> /** A type of address that causes the error. */ addressType?: Maybe } /** An enumeration. */ export enum OrderErrorCode { BillingAddressNotSet = 'BILLING_ADDRESS_NOT_SET', CannotCancelFulfillment = 'CANNOT_CANCEL_FULFILLMENT', CannotCancelOrder = 'CANNOT_CANCEL_ORDER', CannotDelete = 'CANNOT_DELETE', CannotDiscount = 'CANNOT_DISCOUNT', CannotRefund = 'CANNOT_REFUND', CaptureInactivePayment = 'CAPTURE_INACTIVE_PAYMENT', NotEditable = 'NOT_EDITABLE', FulfillOrderLine = 'FULFILL_ORDER_LINE', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', ProductNotPublished = 'PRODUCT_NOT_PUBLISHED', ProductUnavailableForPurchase = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', NotFound = 'NOT_FOUND', OrderNoShippingAddress = 'ORDER_NO_SHIPPING_ADDRESS', PaymentError = 'PAYMENT_ERROR', PaymentMissing = 'PAYMENT_MISSING', Required = 'REQUIRED', ShippingMethodNotApplicable = 'SHIPPING_METHOD_NOT_APPLICABLE', ShippingMethodRequired = 'SHIPPING_METHOD_REQUIRED', TaxError = 'TAX_ERROR', Unique = 'UNIQUE', VoidInactivePayment = 'VOID_INACTIVE_PAYMENT', ZeroQuantity = 'ZERO_QUANTITY', InvalidQuantity = 'INVALID_QUANTITY', InsufficientStock = 'INSUFFICIENT_STOCK', DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', NotAvailableInChannel = 'NOT_AVAILABLE_IN_CHANNEL', ChannelInactive = 'CHANNEL_INACTIVE', } /** History log of the order. */ export type OrderEvent = Node & { __typename?: 'OrderEvent' /** The ID of the object. */ id: Scalars['ID'] /** Date when event happened at in ISO 8601 format. */ date?: Maybe /** Order event type. */ type?: Maybe /** User who performed the action. */ user?: Maybe /** Content of the event. */ message?: Maybe /** Email of the customer. */ email?: Maybe /** Type of an email sent to the customer. */ emailType?: Maybe /** Amount of money. */ amount?: Maybe /** The payment ID from the payment gateway. */ paymentId?: Maybe /** The payment gateway of the payment. */ paymentGateway?: Maybe /** Number of items. */ quantity?: Maybe /** Composed ID of the Fulfillment. */ composedId?: Maybe /** User-friendly number of an order. */ orderNumber?: Maybe /** Number of an invoice related to the order. */ invoiceNumber?: Maybe /** List of oversold lines names. */ oversoldItems?: Maybe>> /** The concerned lines. */ lines?: Maybe>> /** The lines fulfilled. */ fulfilledItems?: Maybe>> /** The warehouse were items were restocked. */ warehouse?: Maybe /** The transaction reference of captured payment. */ transactionReference?: Maybe /** Define if shipping costs were included to the refund. */ shippingCostsIncluded?: Maybe /** The order which is related to this order. */ relatedOrder?: Maybe /** The discount applied to the order. */ discount?: Maybe } export type OrderEventCountableConnection = { __typename?: 'OrderEventCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type OrderEventCountableEdge = { __typename?: 'OrderEventCountableEdge' /** The item at the end of the edge. */ node: OrderEvent /** A cursor for use in pagination. */ cursor: Scalars['String'] } export type OrderEventDiscountObject = { __typename?: 'OrderEventDiscountObject' /** Type of the discount: fixed or percent. */ valueType: DiscountValueTypeEnum /** Value of the discount. Can store fixed value or percent value. */ value: Scalars['PositiveDecimal'] /** Explanation for the applied discount. */ reason?: Maybe /** Returns amount of discount. */ amount?: Maybe /** Type of the discount: fixed or percent. */ oldValueType?: Maybe /** Value of the discount. Can store fixed value or percent value. */ oldValue?: Maybe /** Returns amount of discount. */ oldAmount?: Maybe } export type OrderEventOrderLineObject = { __typename?: 'OrderEventOrderLineObject' /** The variant quantity. */ quantity?: Maybe /** The order line. */ orderLine?: Maybe /** The variant name. */ itemName?: Maybe /** The discount applied to the order line. */ discount?: Maybe } /** An enumeration. */ export enum OrderEventsEmailsEnum { PaymentConfirmation = 'PAYMENT_CONFIRMATION', Confirmed = 'CONFIRMED', ShippingConfirmation = 'SHIPPING_CONFIRMATION', TrackingUpdated = 'TRACKING_UPDATED', OrderConfirmation = 'ORDER_CONFIRMATION', OrderCancel = 'ORDER_CANCEL', OrderRefund = 'ORDER_REFUND', FulfillmentConfirmation = 'FULFILLMENT_CONFIRMATION', DigitalLinks = 'DIGITAL_LINKS', } /** An enumeration. */ export enum OrderEventsEnum { DraftCreated = 'DRAFT_CREATED', DraftCreatedFromReplace = 'DRAFT_CREATED_FROM_REPLACE', AddedProducts = 'ADDED_PRODUCTS', RemovedProducts = 'REMOVED_PRODUCTS', Placed = 'PLACED', PlacedFromDraft = 'PLACED_FROM_DRAFT', OversoldItems = 'OVERSOLD_ITEMS', Canceled = 'CANCELED', OrderMarkedAsPaid = 'ORDER_MARKED_AS_PAID', OrderFullyPaid = 'ORDER_FULLY_PAID', OrderReplacementCreated = 'ORDER_REPLACEMENT_CREATED', OrderDiscountAdded = 'ORDER_DISCOUNT_ADDED', OrderDiscountAutomaticallyUpdated = 'ORDER_DISCOUNT_AUTOMATICALLY_UPDATED', OrderDiscountUpdated = 'ORDER_DISCOUNT_UPDATED', OrderDiscountDeleted = 'ORDER_DISCOUNT_DELETED', OrderLineDiscountUpdated = 'ORDER_LINE_DISCOUNT_UPDATED', OrderLineDiscountRemoved = 'ORDER_LINE_DISCOUNT_REMOVED', UpdatedAddress = 'UPDATED_ADDRESS', EmailSent = 'EMAIL_SENT', Confirmed = 'CONFIRMED', PaymentAuthorized = 'PAYMENT_AUTHORIZED', PaymentCaptured = 'PAYMENT_CAPTURED', ExternalServiceNotification = 'EXTERNAL_SERVICE_NOTIFICATION', PaymentRefunded = 'PAYMENT_REFUNDED', PaymentVoided = 'PAYMENT_VOIDED', PaymentFailed = 'PAYMENT_FAILED', InvoiceRequested = 'INVOICE_REQUESTED', InvoiceGenerated = 'INVOICE_GENERATED', InvoiceUpdated = 'INVOICE_UPDATED', InvoiceSent = 'INVOICE_SENT', FulfillmentCanceled = 'FULFILLMENT_CANCELED', FulfillmentRestockedItems = 'FULFILLMENT_RESTOCKED_ITEMS', FulfillmentFulfilledItems = 'FULFILLMENT_FULFILLED_ITEMS', FulfillmentRefunded = 'FULFILLMENT_REFUNDED', FulfillmentReturned = 'FULFILLMENT_RETURNED', FulfillmentReplaced = 'FULFILLMENT_REPLACED', TrackingUpdated = 'TRACKING_UPDATED', NoteAdded = 'NOTE_ADDED', Other = 'OTHER', } export type OrderFilterInput = { paymentStatus?: Maybe>> status?: Maybe>> customer?: Maybe created?: Maybe search?: Maybe metadata?: Maybe>> channels?: Maybe>> } /** Creates new fulfillments for an order. */ export type OrderFulfill = { __typename?: 'OrderFulfill' /** List of created fulfillments. */ fulfillments?: Maybe>> /** Fulfilled order. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type OrderFulfillInput = { /** List of items informing how to fulfill the order. */ lines: Array /** If true, send an email notification to the customer. */ notifyCustomer?: Maybe } export type OrderFulfillLineInput = { /** The ID of the order line. */ orderLineId?: Maybe /** List of stock items to create. */ stocks: Array } export type OrderFulfillStockInput = { /** The number of line items to be fulfilled from given warehouse. */ quantity: Scalars['Int'] /** ID of the warehouse from which the item will be fulfilled. */ warehouse: Scalars['ID'] } /** Represents order line of particular order. */ export type OrderLine = Node & { __typename?: 'OrderLine' /** The ID of the object. */ id: Scalars['ID'] productName: Scalars['String'] variantName: Scalars['String'] productSku: Scalars['String'] isShippingRequired: Scalars['Boolean'] quantity: Scalars['Int'] quantityFulfilled: Scalars['Int'] unitDiscountReason?: Maybe taxRate: Scalars['Float'] digitalContentUrl?: Maybe /** The main thumbnail for the ordered product. */ thumbnail?: Maybe /** 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: Scalars['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?: Maybe /** Product name in the customer's language */ translatedProductName: Scalars['String'] /** Variant name in the customer's language */ translatedVariantName: Scalars['String'] /** List of allocations across warehouses. */ allocations?: Maybe> /** Type of the discount: fixed or percent */ unitDiscountType?: Maybe } /** Represents order line of particular order. */ export type OrderLineThumbnailArgs = { size?: Maybe } export type OrderLineCreateInput = { /** Number of variant items ordered. */ quantity: Scalars['Int'] /** Product variant ID. */ variantId: Scalars['ID'] } /** Deletes an order line from an order. */ export type OrderLineDelete = { __typename?: 'OrderLineDelete' /** A related order. */ order?: Maybe /** An order line that was deleted. */ orderLine?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Remove discount applied to the order line. */ export type OrderLineDiscountRemove = { __typename?: 'OrderLineDiscountRemove' /** Order line which has removed discount. */ orderLine?: Maybe /** Order which is related to line which has removed discount. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Update discount for the order line. */ export type OrderLineDiscountUpdate = { __typename?: 'OrderLineDiscountUpdate' /** Order line which has been discounted. */ orderLine?: Maybe /** Order which is related to the discounted line. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type OrderLineInput = { /** Number of variant items ordered. */ quantity: Scalars['Int'] } /** Updates an order line of an order. */ export type OrderLineUpdate = { __typename?: 'OrderLineUpdate' /** Related order. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array orderLine?: Maybe } /** Create order lines for an order. */ export type OrderLinesCreate = { __typename?: 'OrderLinesCreate' /** Related order. */ order?: Maybe /** List of added order lines. */ orderLines?: Maybe> /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** Mark order as manually paid. */ export type OrderMarkAsPaid = { __typename?: 'OrderMarkAsPaid' /** Order marked as paid. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** An enumeration. */ export enum OrderOriginEnum { Checkout = 'CHECKOUT', Draft = 'DRAFT', Reissue = 'REISSUE', } /** Refund an order. */ export type OrderRefund = { __typename?: 'OrderRefund' /** A refunded order. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type OrderRefundFulfillmentLineInput = { /** The ID of the fulfillment line to refund. */ fulfillmentLineId: Scalars['ID'] /** The number of items to be refunded. */ quantity: Scalars['Int'] } export type OrderRefundLineInput = { /** The ID of the order line to refund. */ orderLineId: Scalars['ID'] /** The number of items to be refunded. */ quantity: Scalars['Int'] } export type OrderRefundProductsInput = { /** List of unfulfilled lines to refund. */ orderLines?: Maybe> /** List of fulfilled lines to refund. */ fulfillmentLines?: Maybe> /** The total amount of refund when the value is provided manually. */ amountToRefund?: Maybe /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ includeShippingCosts?: Maybe } export type OrderReturnFulfillmentLineInput = { /** The ID of the fulfillment line to return. */ fulfillmentLineId: Scalars['ID'] /** The number of items to be returned. */ quantity: Scalars['Int'] /** Determines, if the line should be added to replace order. */ replace?: Maybe } export type OrderReturnLineInput = { /** The ID of the order line to return. */ orderLineId: Scalars['ID'] /** The number of items to be returned. */ quantity: Scalars['Int'] /** Determines, if the line should be added to replace order. */ replace?: Maybe } export type OrderReturnProductsInput = { /** List of unfulfilled lines to return. */ orderLines?: Maybe> /** List of fulfilled lines to return. */ fulfillmentLines?: Maybe> /** The total amount of refund when the value is provided manually. */ amountToRefund?: Maybe /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ includeShippingCosts?: Maybe /** If true, Saleor will call refund action for all lines. */ refund?: Maybe } /** Order related settings from site settings. */ export type OrderSettings = { __typename?: 'OrderSettings' automaticallyConfirmAllNewOrders: Scalars['Boolean'] } export type OrderSettingsError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: OrderSettingsErrorCode } /** An enumeration. */ export enum OrderSettingsErrorCode { Invalid = 'INVALID', } /** Update shop order settings. */ export type OrderSettingsUpdate = { __typename?: 'OrderSettingsUpdate' /** Order settings. */ orderSettings?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderSettingsErrors: Array errors: Array } export type OrderSettingsUpdateInput = { /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. */ automaticallyConfirmAllNewOrders: Scalars['Boolean'] } export enum OrderSortField { /** Sort orders by number. */ Number = 'NUMBER', /** Sort orders by creation date. */ CreationDate = 'CREATION_DATE', /** Sort orders by customer. */ Customer = 'CUSTOMER', /** Sort orders by payment. */ Payment = 'PAYMENT', /** Sort orders by fulfillment status. */ FulfillmentStatus = 'FULFILLMENT_STATUS', } export type OrderSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort orders by the selected field. */ field: OrderSortField } /** An enumeration. */ export enum OrderStatus { /** Draft */ Draft = 'DRAFT', /** Unconfirmed */ Unconfirmed = 'UNCONFIRMED', /** Unfulfilled */ Unfulfilled = 'UNFULFILLED', /** Partially fulfilled */ PartiallyFulfilled = 'PARTIALLY_FULFILLED', /** Partially returned */ PartiallyReturned = 'PARTIALLY_RETURNED', /** Returned */ Returned = 'RETURNED', /** Fulfilled */ Fulfilled = 'FULFILLED', /** Canceled */ Canceled = 'CANCELED', } export enum OrderStatusFilter { ReadyToFulfill = 'READY_TO_FULFILL', ReadyToCapture = 'READY_TO_CAPTURE', Unfulfilled = 'UNFULFILLED', Unconfirmed = 'UNCONFIRMED', PartiallyFulfilled = 'PARTIALLY_FULFILLED', Fulfilled = 'FULFILLED', Canceled = 'CANCELED', } /** Updates an order. */ export type OrderUpdate = { __typename?: 'OrderUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array order?: Maybe } export type OrderUpdateInput = { /** Billing address of the customer. */ billingAddress?: Maybe /** Email address of the customer. */ userEmail?: Maybe /** Shipping address of the customer. */ shippingAddress?: Maybe } /** Updates a shipping method of the order. */ export type OrderUpdateShipping = { __typename?: 'OrderUpdateShipping' /** Order with updated shipping method. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } export type OrderUpdateShippingInput = { /** ID of the selected shipping method. */ shippingMethod?: Maybe } /** Void an order. */ export type OrderVoid = { __typename?: 'OrderVoid' /** A voided order. */ order?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ orderErrors: Array errors: Array } /** A static page that can be manually added by a shop operator through the dashboard. */ export type Page = Node & ObjectWithMetadata & { __typename?: 'Page' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe title: Scalars['String'] content?: Maybe publicationDate?: Maybe isPublished: Scalars['Boolean'] slug: Scalars['String'] pageType: PageType created: Scalars['DateTime'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** * Content of the page (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `content` field instead. */ contentJson: Scalars['JSONString'] /** Returns translated page fields for the given language code. */ translation?: Maybe /** List of attributes assigned to this product. */ attributes: Array } /** A static page that can be manually added by a shop operator through the dashboard. */ export type PageTranslationArgs = { languageCode: LanguageCodeEnum } /** Assign attributes to a given page type. */ export type PageAttributeAssign = { __typename?: 'PageAttributeAssign' /** The updated page type. */ pageType?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array } /** Unassign attributes from a given page type. */ export type PageAttributeUnassign = { __typename?: 'PageAttributeUnassign' /** The updated page type. */ pageType?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array } /** Deletes pages. */ export type PageBulkDelete = { __typename?: 'PageBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array } /** Publish pages. */ export type PageBulkPublish = { __typename?: 'PageBulkPublish' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array } export type PageCountableConnection = { __typename?: 'PageCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type PageCountableEdge = { __typename?: 'PageCountableEdge' /** The item at the end of the edge. */ node: Page /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new page. */ export type PageCreate = { __typename?: 'PageCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array page?: Maybe } export type PageCreateInput = { /** Page internal name. */ slug?: Maybe /** Page title. */ title?: Maybe /** Page content in JSON format. */ content?: Maybe /** List of attributes. */ attributes?: Maybe> /** Determines if page is visible in the storefront. */ isPublished?: Maybe /** Publication date. ISO 8601 standard. */ publicationDate?: Maybe /** Search engine optimization fields. */ seo?: Maybe /** ID of the page type that page belongs to. */ pageType: Scalars['ID'] } /** Deletes a page. */ export type PageDelete = { __typename?: 'PageDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array page?: Maybe } export type PageError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: PageErrorCode /** List of attributes IDs which causes the error. */ attributes?: Maybe> /** List of attribute values IDs which causes the error. */ values?: Maybe> } /** An enumeration. */ export enum PageErrorCode { GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', AttributeAlreadyAssigned = 'ATTRIBUTE_ALREADY_ASSIGNED', } export type PageFilterInput = { search?: Maybe metadata?: Maybe>> pageTypes?: Maybe>> } /** The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. */ export type PageInfo = { __typename?: 'PageInfo' /** When paginating forwards, are there more items? */ hasNextPage: Scalars['Boolean'] /** When paginating backwards, are there more items? */ hasPreviousPage: Scalars['Boolean'] /** When paginating backwards, the cursor to continue. */ startCursor?: Maybe /** When paginating forwards, the cursor to continue. */ endCursor?: Maybe } export type PageInput = { /** Page internal name. */ slug?: Maybe /** Page title. */ title?: Maybe /** Page content in JSON format. */ content?: Maybe /** List of attributes. */ attributes?: Maybe> /** Determines if page is visible in the storefront. */ isPublished?: Maybe /** Publication date. ISO 8601 standard. */ publicationDate?: Maybe /** Search engine optimization fields. */ seo?: Maybe } /** Reorder page attribute values. */ export type PageReorderAttributeValues = { __typename?: 'PageReorderAttributeValues' /** Page from which attribute values are reordered. */ page?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array } export enum PageSortField { /** Sort pages by title. */ Title = 'TITLE', /** Sort pages by slug. */ Slug = 'SLUG', /** Sort pages by visibility. */ Visibility = 'VISIBILITY', /** Sort pages by creation date. */ CreationDate = 'CREATION_DATE', /** Sort pages by publication date. */ PublicationDate = 'PUBLICATION_DATE', } export type PageSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort pages by the selected field. */ field: PageSortField } export type PageTranslatableContent = Node & { __typename?: 'PageTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe title: Scalars['String'] content?: Maybe /** * Content of the page (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `content` field instead. */ contentJson?: Maybe /** Returns translated page fields for the given language code. */ translation?: Maybe /** ('A static page that can be manually added by a shop operator ', 'through the dashboard.') */ page?: Maybe } export type PageTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for Page. */ export type PageTranslate = { __typename?: 'PageTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array page?: Maybe } export type PageTranslation = Node & { __typename?: 'PageTranslation' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe title: Scalars['String'] content?: Maybe /** Translation language. */ language: LanguageDisplay /** * Translated description of the page (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `content` field instead. */ contentJson?: Maybe } export type PageTranslationInput = { seoTitle?: Maybe seoDescription?: Maybe title?: Maybe content?: Maybe } /** Represents a type of page. It defines what attributes are available to pages of this type. */ export type PageType = Node & ObjectWithMetadata & { __typename?: 'PageType' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] slug: Scalars['String'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** Page attributes of that page type. */ attributes?: Maybe>> /** Attributes that can be assigned to the page type. */ availableAttributes?: Maybe /** Whether page type has pages assigned. */ hasPages?: Maybe } /** Represents a type of page. It defines what attributes are available to pages of this type. */ export type PageTypeAvailableAttributesArgs = { filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Delete page types. */ export type PageTypeBulkDelete = { __typename?: 'PageTypeBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array } export type PageTypeCountableConnection = { __typename?: 'PageTypeCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type PageTypeCountableEdge = { __typename?: 'PageTypeCountableEdge' /** The item at the end of the edge. */ node: PageType /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Create a new page type. */ export type PageTypeCreate = { __typename?: 'PageTypeCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array pageType?: Maybe } export type PageTypeCreateInput = { /** Name of the page type. */ name?: Maybe /** Page type slug. */ slug?: Maybe /** List of attribute IDs to be assigned to the page type. */ addAttributes?: Maybe> } /** Delete a page type. */ export type PageTypeDelete = { __typename?: 'PageTypeDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array pageType?: Maybe } export type PageTypeFilterInput = { search?: Maybe } /** Reorder the attributes of a page type. */ export type PageTypeReorderAttributes = { __typename?: 'PageTypeReorderAttributes' /** Page type from which attributes are reordered. */ pageType?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array } export enum PageTypeSortField { /** Sort page types by name. */ Name = 'NAME', /** Sort page types by slug. */ Slug = 'SLUG', } export type PageTypeSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort page types by the selected field. */ field: PageTypeSortField } /** Update page type. */ export type PageTypeUpdate = { __typename?: 'PageTypeUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array pageType?: Maybe } export type PageTypeUpdateInput = { /** Name of the page type. */ name?: Maybe /** Page type slug. */ slug?: Maybe /** List of attribute IDs to be assigned to the page type. */ addAttributes?: Maybe> /** List of attribute IDs to be assigned to the page type. */ removeAttributes?: Maybe> } /** Updates an existing page. */ export type PageUpdate = { __typename?: 'PageUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pageErrors: Array errors: Array page?: Maybe } /** Change the password of the logged in user. */ export type PasswordChange = { __typename?: 'PasswordChange' /** A user instance with a new password. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Represents a payment of a given type. */ export type Payment = Node & { __typename?: 'Payment' /** The ID of the object. */ id: Scalars['ID'] gateway: Scalars['String'] isActive: Scalars['Boolean'] created: Scalars['DateTime'] modified: Scalars['DateTime'] token: Scalars['String'] checkout?: Maybe order?: Maybe paymentMethodType: Scalars['String'] customerIpAddress?: Maybe /** Internal payment status. */ chargeStatus: PaymentChargeStatusEnum /** List of actions that can be performed in the current state of a payment. */ actions: Array> /** Total amount of the payment. */ total?: Maybe /** Total amount captured for this payment. */ capturedAmount?: Maybe /** List of all transactions within this payment. */ transactions?: Maybe>> /** Maximum amount of money that can be captured. */ availableCaptureAmount?: Maybe /** Maximum amount of money that can be refunded. */ availableRefundAmount?: Maybe /** The details of the card used for this payment. */ creditCard?: Maybe } /** Captures the authorized payment amount. */ export type PaymentCapture = { __typename?: 'PaymentCapture' /** Updated payment. */ payment?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ paymentErrors: Array errors: Array } /** An enumeration. */ export enum PaymentChargeStatusEnum { NotCharged = 'NOT_CHARGED', Pending = 'PENDING', PartiallyCharged = 'PARTIALLY_CHARGED', FullyCharged = 'FULLY_CHARGED', PartiallyRefunded = 'PARTIALLY_REFUNDED', FullyRefunded = 'FULLY_REFUNDED', Refused = 'REFUSED', Cancelled = 'CANCELLED', } export type PaymentCountableConnection = { __typename?: 'PaymentCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type PaymentCountableEdge = { __typename?: 'PaymentCountableEdge' /** The item at the end of the edge. */ node: Payment /** A cursor for use in pagination. */ cursor: Scalars['String'] } export type PaymentError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: PaymentErrorCode } /** An enumeration. */ export enum PaymentErrorCode { BillingAddressNotSet = 'BILLING_ADDRESS_NOT_SET', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', PartialPaymentNotAllowed = 'PARTIAL_PAYMENT_NOT_ALLOWED', ShippingAddressNotSet = 'SHIPPING_ADDRESS_NOT_SET', InvalidShippingMethod = 'INVALID_SHIPPING_METHOD', ShippingMethodNotSet = 'SHIPPING_METHOD_NOT_SET', PaymentError = 'PAYMENT_ERROR', NotSupportedGateway = 'NOT_SUPPORTED_GATEWAY', ChannelInactive = 'CHANNEL_INACTIVE', } export type PaymentFilterInput = { checkouts?: Maybe>> } /** Available payment gateway backend with configuration necessary to setup client. */ export type PaymentGateway = { __typename?: 'PaymentGateway' /** Payment gateway name. */ name: Scalars['String'] /** Payment gateway ID. */ id: Scalars['ID'] /** Payment gateway client configuration. */ config: Array /** Payment gateway supported currencies. */ currencies: Array> } /** Initializes payment process when it is required by gateway. */ export type PaymentInitialize = { __typename?: 'PaymentInitialize' initializedPayment?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ paymentErrors: Array errors: Array } /** Server-side data generated by a payment gateway. Optional step when the payment provider requires an additional action to initialize payment session. */ export type PaymentInitialized = { __typename?: 'PaymentInitialized' /** ID of a payment gateway. */ gateway: Scalars['String'] /** Payment gateway name. */ name: Scalars['String'] /** Initialized data by gateway. */ data?: Maybe } export type PaymentInput = { /** A gateway to use with that payment. */ gateway: Scalars['String'] /** Client-side generated payment token, representing customer's billing data in a secure manner. */ token?: Maybe /** Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used. */ amount?: Maybe /** 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?: Maybe } /** Refunds the captured payment amount. */ export type PaymentRefund = { __typename?: 'PaymentRefund' /** Updated payment. */ payment?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ paymentErrors: Array errors: Array } /** Represents a payment source stored for user in payment gateway, such as credit card. */ export type PaymentSource = { __typename?: 'PaymentSource' /** Payment gateway name. */ gateway: Scalars['String'] /** Stored credit card details if available. */ creditCardInfo?: Maybe } /** Voids the authorized payment. */ export type PaymentVoid = { __typename?: 'PaymentVoid' /** Updated payment. */ payment?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ paymentErrors: Array errors: Array } /** Represents a permission object in a friendly form. */ export type Permission = { __typename?: 'Permission' /** Internal code for permission. */ code: PermissionEnum /** Describe action(s) allowed to do by permission. */ name: Scalars['String'] } /** An enumeration. */ export enum PermissionEnum { ManageUsers = 'MANAGE_USERS', ManageStaff = 'MANAGE_STAFF', ManageApps = 'MANAGE_APPS', ManageChannels = 'MANAGE_CHANNELS', ManageDiscounts = 'MANAGE_DISCOUNTS', ManagePlugins = 'MANAGE_PLUGINS', ManageGiftCard = 'MANAGE_GIFT_CARD', ManageMenus = 'MANAGE_MENUS', ManageOrders = 'MANAGE_ORDERS', ManagePages = 'MANAGE_PAGES', ManagePageTypesAndAttributes = 'MANAGE_PAGE_TYPES_AND_ATTRIBUTES', ManageProducts = 'MANAGE_PRODUCTS', ManageProductTypesAndAttributes = 'MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES', ManageShipping = 'MANAGE_SHIPPING', ManageSettings = 'MANAGE_SETTINGS', ManageTranslations = 'MANAGE_TRANSLATIONS', ManageCheckouts = 'MANAGE_CHECKOUTS', } /** Create new permission group. */ export type PermissionGroupCreate = { __typename?: 'PermissionGroupCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ permissionGroupErrors: Array errors: Array group?: Maybe } export type PermissionGroupCreateInput = { /** List of permission code names to assign to this group. */ addPermissions?: Maybe> /** List of users to assign to this group. */ addUsers?: Maybe> /** Group name. */ name: Scalars['String'] } /** Delete permission group. */ export type PermissionGroupDelete = { __typename?: 'PermissionGroupDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ permissionGroupErrors: Array errors: Array group?: Maybe } export type PermissionGroupError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: PermissionGroupErrorCode /** List of permissions which causes the error. */ permissions?: Maybe> /** List of user IDs which causes the error. */ users?: Maybe> } /** An enumeration. */ export enum PermissionGroupErrorCode { AssignNonStaffMember = 'ASSIGN_NON_STAFF_MEMBER', DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', CannotRemoveFromLastGroup = 'CANNOT_REMOVE_FROM_LAST_GROUP', LeftNotManageablePermission = 'LEFT_NOT_MANAGEABLE_PERMISSION', OutOfScopePermission = 'OUT_OF_SCOPE_PERMISSION', OutOfScopeUser = 'OUT_OF_SCOPE_USER', Required = 'REQUIRED', Unique = 'UNIQUE', } export type PermissionGroupFilterInput = { search?: Maybe } export enum PermissionGroupSortField { /** Sort permission group accounts by name. */ Name = 'NAME', } export type PermissionGroupSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort permission group by the selected field. */ field: PermissionGroupSortField } /** Update permission group. */ export type PermissionGroupUpdate = { __typename?: 'PermissionGroupUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ permissionGroupErrors: Array errors: Array group?: Maybe } export type PermissionGroupUpdateInput = { /** List of permission code names to assign to this group. */ addPermissions?: Maybe> /** List of users to assign to this group. */ addUsers?: Maybe> /** Group name. */ name?: Maybe /** List of permission code names to unassign from this group. */ removePermissions?: Maybe> /** List of users to unassign from this group. */ removeUsers?: Maybe> } /** Plugin. */ export type Plugin = { __typename?: 'Plugin' /** Identifier of the plugin. */ id: Scalars['ID'] /** Name of the plugin. */ name: Scalars['String'] /** Description of the plugin. */ description: Scalars['String'] /** Global configuration of the plugin (not channel-specific). */ globalConfiguration?: Maybe /** Channel-specific plugin configuration. */ channelConfigurations: Array } /** Stores information about a configuration of plugin. */ export type PluginConfiguration = { __typename?: 'PluginConfiguration' /** Determines if plugin is active or not. */ active: Scalars['Boolean'] /** The channel to which the plugin configuration is assigned to. */ channel?: Maybe /** Configuration of the plugin. */ configuration?: Maybe>> } export enum PluginConfigurationType { PerChannel = 'PER_CHANNEL', Global = 'GLOBAL', } export type PluginCountableConnection = { __typename?: 'PluginCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type PluginCountableEdge = { __typename?: 'PluginCountableEdge' /** The item at the end of the edge. */ node: Plugin /** A cursor for use in pagination. */ cursor: Scalars['String'] } export type PluginError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: PluginErrorCode } /** An enumeration. */ export enum PluginErrorCode { GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', PluginMisconfigured = 'PLUGIN_MISCONFIGURED', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', } export type PluginFilterInput = { statusInChannels?: Maybe search?: Maybe type?: Maybe } export enum PluginSortField { Name = 'NAME', IsActive = 'IS_ACTIVE', } export type PluginSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort plugins by the selected field. */ field: PluginSortField } export type PluginStatusInChannelsInput = { active: Scalars['Boolean'] channels: Array } /** Update plugin configuration. */ export type PluginUpdate = { __typename?: 'PluginUpdate' plugin?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ pluginsErrors: Array errors: Array } export type PluginUpdateInput = { /** Indicates whether the plugin should be enabled. */ active?: Maybe /** Configuration of the plugin. */ configuration?: Maybe>> } /** An enumeration. */ export enum PostalCodeRuleInclusionTypeEnum { Include = 'INCLUDE', Exclude = 'EXCLUDE', } export type PriceRangeInput = { /** Price greater than or equal to. */ gte?: Maybe /** Price less than or equal to. */ lte?: Maybe } /** Represents an individual item for sale in the storefront. */ export type Product = Node & ObjectWithMetadata & { __typename?: 'Product' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe productType: ProductType slug: Scalars['String'] category?: Maybe updatedAt?: Maybe chargeTaxes: Scalars['Boolean'] weight?: Maybe defaultVariant?: Maybe rating?: Maybe /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** * Description of the product (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe /** The main thumbnail for a product. */ thumbnail?: Maybe /** Lists the storefront product's pricing, the current price and discounts, only meant for displaying. */ pricing?: Maybe /** Whether the product is in stock and visible or not. */ isAvailable?: Maybe /** A type of tax. Assigned by enabled tax gateway */ taxType?: Maybe /** List of attributes assigned to this product. */ attributes: Array /** List of availability in channels for the product. */ channelListings?: Maybe> /** Get a single product media by ID. */ mediaById: ProductMedia /** * Get a single product image by ID. * @deprecated Will be removed in Saleor 4.0. Use the `mediaById` field instead. */ imageById?: Maybe /** List of variants for the product. */ variants?: Maybe>> /** List of media for the product. */ media?: Maybe> /** * List of images for the product. * @deprecated Will be removed in Saleor 4.0. Use the `media` field instead. */ images?: Maybe>> /** List of collections for the product. */ collections?: Maybe>> /** Returns translated product fields for the given language code. */ translation?: Maybe /** Date when product is available for purchase. */ availableForPurchase?: Maybe /** Whether the product is available for purchase. */ isAvailableForPurchase?: Maybe } /** Represents an individual item for sale in the storefront. */ export type ProductThumbnailArgs = { size?: Maybe } /** Represents an individual item for sale in the storefront. */ export type ProductPricingArgs = { address?: Maybe } /** Represents an individual item for sale in the storefront. */ export type ProductIsAvailableArgs = { address?: Maybe } /** Represents an individual item for sale in the storefront. */ export type ProductMediaByIdArgs = { id?: Maybe } /** Represents an individual item for sale in the storefront. */ export type ProductImageByIdArgs = { id?: Maybe } /** Represents an individual item for sale in the storefront. */ export type ProductTranslationArgs = { languageCode: LanguageCodeEnum } /** Assign attributes to a given product type. */ export type ProductAttributeAssign = { __typename?: 'ProductAttributeAssign' /** The updated product type. */ productType?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export type ProductAttributeAssignInput = { /** The ID of the attribute to assign. */ id: Scalars['ID'] /** The attribute type to be assigned as. */ type: ProductAttributeType } export enum ProductAttributeType { Product = 'PRODUCT', Variant = 'VARIANT', } /** Un-assign attributes from a given product type. */ export type ProductAttributeUnassign = { __typename?: 'ProductAttributeUnassign' /** The updated product type. */ productType?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Deletes products. */ export type ProductBulkDelete = { __typename?: 'ProductBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Represents product channel listing. */ export type ProductChannelListing = Node & { __typename?: 'ProductChannelListing' /** The ID of the object. */ id: Scalars['ID'] publicationDate?: Maybe isPublished: Scalars['Boolean'] channel: Channel visibleInListings: Scalars['Boolean'] availableForPurchase?: Maybe /** The price of the cheapest variant (including discounts). */ discountedPrice?: Maybe /** Purchase cost of product. */ purchaseCost?: Maybe /** Range of margin percentage value. */ margin?: Maybe /** Whether the product is available for purchase. */ isAvailableForPurchase?: Maybe /** Lists the storefront product's pricing, the current price and discounts, only meant for displaying. */ pricing?: Maybe } /** Represents product channel listing. */ export type ProductChannelListingPricingArgs = { address?: Maybe } export type ProductChannelListingAddInput = { /** ID of a channel. */ channelId: Scalars['ID'] /** Determines if object is visible to customers. */ isPublished?: Maybe /** Publication date. ISO 8601 standard. */ publicationDate?: Maybe /** Determines if product is visible in product listings (doesn't apply to product collections). */ visibleInListings?: Maybe /** Determine if product should be available for purchase. */ isAvailableForPurchase?: Maybe /** 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?: Maybe /** List of variants to which the channel should be assigned. */ addVariants?: Maybe> /** List of variants from which the channel should be unassigned. */ removeVariants?: Maybe> } export type ProductChannelListingError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ProductErrorCode /** List of attributes IDs which causes the error. */ attributes?: Maybe> /** List of attribute values IDs which causes the error. */ values?: Maybe> /** List of channels IDs which causes the error. */ channels?: Maybe> /** List of variants IDs which causes the error. */ variants?: Maybe> } /** Manage product's availability in channels. */ export type ProductChannelListingUpdate = { __typename?: 'ProductChannelListingUpdate' /** An updated product instance. */ product?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productChannelListingErrors: Array errors: Array } export type ProductChannelListingUpdateInput = { /** List of channels to which the product should be assigned or updated. */ updateChannels?: Maybe> /** List of channels from which the product should be unassigned. */ removeChannels?: Maybe> } export type ProductCountableConnection = { __typename?: 'ProductCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type ProductCountableEdge = { __typename?: 'ProductCountableEdge' /** The item at the end of the edge. */ node: Product /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new product. */ export type ProductCreate = { __typename?: 'ProductCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array product?: Maybe } export type ProductCreateInput = { /** List of attributes. */ attributes?: Maybe> /** ID of the product's category. */ category?: Maybe /** Determine if taxes are being charged for the product. */ chargeTaxes?: Maybe /** List of IDs of collections that the product belongs to. */ collections?: Maybe> /** Product description (JSON). */ description?: Maybe /** Product name. */ name?: Maybe /** Product slug. */ slug?: Maybe /** Tax rate for enabled tax gateway. */ taxCode?: Maybe /** Search engine optimization fields. */ seo?: Maybe /** Weight of the Product. */ weight?: Maybe /** Defines the product rating value. */ rating?: Maybe /** ID of the type that product belongs to. */ productType: Scalars['ID'] } /** Deletes a product. */ export type ProductDelete = { __typename?: 'ProductDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array product?: Maybe } export type ProductError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ProductErrorCode /** List of attributes IDs which causes the error. */ attributes?: Maybe> /** List of attribute values IDs which causes the error. */ values?: Maybe> } /** An enumeration. */ export enum ProductErrorCode { AlreadyExists = 'ALREADY_EXISTS', AttributeAlreadyAssigned = 'ATTRIBUTE_ALREADY_ASSIGNED', AttributeCannotBeAssigned = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', AttributeVariantsDisabled = 'ATTRIBUTE_VARIANTS_DISABLED', DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', ProductWithoutCategory = 'PRODUCT_WITHOUT_CATEGORY', NotProductsImage = 'NOT_PRODUCTS_IMAGE', NotProductsVariant = 'NOT_PRODUCTS_VARIANT', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', VariantNoDigitalContent = 'VARIANT_NO_DIGITAL_CONTENT', CannotManageProductWithoutVariant = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', ProductNotAssignedToChannel = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', UnsupportedMediaProvider = 'UNSUPPORTED_MEDIA_PROVIDER', } export enum ProductFieldEnum { Name = 'NAME', Description = 'DESCRIPTION', ProductType = 'PRODUCT_TYPE', Category = 'CATEGORY', ProductWeight = 'PRODUCT_WEIGHT', Collections = 'COLLECTIONS', ChargeTaxes = 'CHARGE_TAXES', ProductMedia = 'PRODUCT_MEDIA', VariantSku = 'VARIANT_SKU', VariantWeight = 'VARIANT_WEIGHT', VariantMedia = 'VARIANT_MEDIA', } export type ProductFilterInput = { isPublished?: Maybe collections?: Maybe>> categories?: Maybe>> hasCategory?: Maybe attributes?: Maybe>> stockAvailability?: Maybe stocks?: Maybe search?: Maybe metadata?: Maybe>> price?: Maybe minimalPrice?: Maybe productTypes?: Maybe>> ids?: Maybe>> /** Specifies the channel by which the data should be sorted. */ channel?: Maybe } /** Represents a product image. */ export type ProductImage = { __typename?: 'ProductImage' /** The ID of the image. */ id: Scalars['ID'] /** The alt text of the image. */ alt?: Maybe /** 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?: Maybe /** The URL of the image. */ url: Scalars['String'] } /** Represents a product image. */ export type ProductImageUrlArgs = { size?: Maybe } export type ProductInput = { /** List of attributes. */ attributes?: Maybe> /** ID of the product's category. */ category?: Maybe /** Determine if taxes are being charged for the product. */ chargeTaxes?: Maybe /** List of IDs of collections that the product belongs to. */ collections?: Maybe> /** Product description (JSON). */ description?: Maybe /** Product name. */ name?: Maybe /** Product slug. */ slug?: Maybe /** Tax rate for enabled tax gateway. */ taxCode?: Maybe /** Search engine optimization fields. */ seo?: Maybe /** Weight of the Product. */ weight?: Maybe /** Defines the product rating value. */ rating?: Maybe } /** Represents a product media. */ export type ProductMedia = Node & { __typename?: 'ProductMedia' /** The ID of the object. */ id: Scalars['ID'] sortOrder?: Maybe alt: Scalars['String'] type: ProductMediaType oembedData: Scalars['JSONString'] /** The URL of the media. */ url: Scalars['String'] } /** Represents a product media. */ export type ProductMediaUrlArgs = { size?: Maybe } /** Deletes product media. */ export type ProductMediaBulkDelete = { __typename?: 'ProductMediaBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** 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 */ export type ProductMediaCreate = { __typename?: 'ProductMediaCreate' product?: Maybe media?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export type ProductMediaCreateInput = { /** Alt text for a product media. */ alt?: Maybe /** Represents an image file in a multipart request. */ image?: Maybe /** ID of an product. */ product: Scalars['ID'] /** Represents an URL to an external media. */ mediaUrl?: Maybe } /** Deletes a product media. */ export type ProductMediaDelete = { __typename?: 'ProductMediaDelete' product?: Maybe media?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Changes ordering of the product media. */ export type ProductMediaReorder = { __typename?: 'ProductMediaReorder' product?: Maybe media?: Maybe> /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** An enumeration. */ export enum ProductMediaType { /** An uploaded image or an URL to an image */ Image = 'IMAGE', /** A URL to an external video */ Video = 'VIDEO', } /** Updates a product media. */ export type ProductMediaUpdate = { __typename?: 'ProductMediaUpdate' product?: Maybe media?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export type ProductMediaUpdateInput = { /** Alt text for a product media. */ alt?: Maybe } export type ProductOrder = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Specifies the channel in which to sort the data. */ channel?: Maybe /** * Sort product by the selected attribute's values. * Note: this doesn't take translations into account yet. */ attributeId?: Maybe /** Sort products by the selected field. */ field?: Maybe } export enum ProductOrderField { /** Sort products by name. */ Name = 'NAME', /** Sort products by rank. Note: This option is available only with the `search` filter. */ Rank = 'RANK', /** Sort products by price. */ Price = 'PRICE', /** Sort products by a minimal price of a product's variant. */ MinimalPrice = 'MINIMAL_PRICE', /** Sort products by update date. */ Date = 'DATE', /** Sort products by type. */ Type = 'TYPE', /** Sort products by publication status. */ Published = 'PUBLISHED', /** Sort products by publication date. */ PublicationDate = 'PUBLICATION_DATE', /** Sort products by collection. Note: This option is available only for the `Collection.products` query. */ Collection = 'COLLECTION', /** Sort products by rating. */ Rating = 'RATING', } /** Represents availability of a product in the storefront. */ export type ProductPricingInfo = { __typename?: 'ProductPricingInfo' /** Whether it is in sale or not. */ onSale?: Maybe /** The discount amount if in sale (null otherwise). */ discount?: Maybe /** The discount amount in the local currency. */ discountLocalCurrency?: Maybe /** The discounted price range of the product variants. */ priceRange?: Maybe /** The undiscounted price range of the product variants. */ priceRangeUndiscounted?: Maybe /** The discounted price range of the product variants in the local currency. */ priceRangeLocalCurrency?: Maybe } /** Reorder product attribute values. */ export type ProductReorderAttributeValues = { __typename?: 'ProductReorderAttributeValues' /** Product from which attribute values are reordered. */ product?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export type ProductStockFilterInput = { warehouseIds?: Maybe> quantity?: Maybe } export type ProductTranslatableContent = Node & { __typename?: 'ProductTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe /** * Description of the product (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe /** Returns translated product fields for the given language code. */ translation?: Maybe /** Represents an individual item for sale in the storefront. */ product?: Maybe } export type ProductTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for Product. */ export type ProductTranslate = { __typename?: 'ProductTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array product?: Maybe } export type ProductTranslation = Node & { __typename?: 'ProductTranslation' /** The ID of the object. */ id: Scalars['ID'] seoTitle?: Maybe seoDescription?: Maybe name: Scalars['String'] description?: Maybe /** Translation language. */ language: LanguageDisplay /** * Translated description of the product (JSON). * @deprecated Will be removed in Saleor 4.0. Use the `description` field instead. */ descriptionJson?: Maybe } /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductType = Node & ObjectWithMetadata & { __typename?: 'ProductType' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] slug: Scalars['String'] hasVariants: Scalars['Boolean'] isShippingRequired: Scalars['Boolean'] isDigital: Scalars['Boolean'] weight?: Maybe /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** * List of products of this type. * @deprecated Will be removed in Saleor 4.0. Use the top-level `products` query with the `productTypes` filter. */ products?: Maybe /** A type of tax. Assigned by enabled tax gateway */ taxType?: Maybe /** Variant attributes of that product type. */ variantAttributes?: Maybe>> /** Product attributes of that product type. */ productAttributes?: Maybe>> availableAttributes?: Maybe } /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeProductsArgs = { channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeVariantAttributesArgs = { variantSelection?: Maybe } /** Represents a type of product. It defines what attributes are available to products of this type. */ export type ProductTypeAvailableAttributesArgs = { filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Deletes product types. */ export type ProductTypeBulkDelete = { __typename?: 'ProductTypeBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export enum ProductTypeConfigurable { Configurable = 'CONFIGURABLE', Simple = 'SIMPLE', } export type ProductTypeCountableConnection = { __typename?: 'ProductTypeCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type ProductTypeCountableEdge = { __typename?: 'ProductTypeCountableEdge' /** The item at the end of the edge. */ node: ProductType /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new product type. */ export type ProductTypeCreate = { __typename?: 'ProductTypeCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array productType?: Maybe } /** Deletes a product type. */ export type ProductTypeDelete = { __typename?: 'ProductTypeDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array productType?: Maybe } export enum ProductTypeEnum { Digital = 'DIGITAL', Shippable = 'SHIPPABLE', } export type ProductTypeFilterInput = { search?: Maybe configurable?: Maybe productType?: Maybe metadata?: Maybe>> ids?: Maybe>> } export type ProductTypeInput = { /** Name of the product type. */ name?: Maybe /** Product type slug. */ slug?: Maybe /** 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?: Maybe /** List of attributes shared among all product variants. */ productAttributes?: Maybe>> /** List of attributes used to distinguish between different variants of a product. */ variantAttributes?: Maybe>> /** Determines if shipping is required for products of this variant. */ isShippingRequired?: Maybe /** Determines if products are digital. */ isDigital?: Maybe /** Weight of the ProductType items. */ weight?: Maybe /** Tax rate for enabled tax gateway. */ taxCode?: Maybe } /** Reorder the attributes of a product type. */ export type ProductTypeReorderAttributes = { __typename?: 'ProductTypeReorderAttributes' /** Product type from which attributes are reordered. */ productType?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } export enum ProductTypeSortField { /** Sort products by name. */ Name = 'NAME', /** Sort products by type. */ Digital = 'DIGITAL', /** Sort products by shipping. */ ShippingRequired = 'SHIPPING_REQUIRED', } export type ProductTypeSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort product types by the selected field. */ field: ProductTypeSortField } /** Updates an existing product type. */ export type ProductTypeUpdate = { __typename?: 'ProductTypeUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array productType?: Maybe } /** Updates an existing product. */ export type ProductUpdate = { __typename?: 'ProductUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array product?: Maybe } /** Represents a version of a product such as different size or color. */ export type ProductVariant = Node & ObjectWithMetadata & { __typename?: 'ProductVariant' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] sku: Scalars['String'] product: Product trackInventory: Scalars['Boolean'] weight?: Maybe /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** List of price information in channels for the product. */ channelListings?: Maybe> /** Lists the storefront variant's pricing, the current price and discounts, only meant for displaying. */ pricing?: Maybe /** List of attributes assigned to this variant. */ attributes: Array /** Cost price of the variant. */ costPrice?: Maybe /** Gross margin percentage value. */ margin?: Maybe /** Total quantity ordered. */ quantityOrdered?: Maybe /** 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?: Maybe /** * List of images for the product variant. * @deprecated Will be removed in Saleor 4.0. Use the `media` instead. */ images?: Maybe>> /** List of media for the product variant. */ media?: Maybe> /** Returns translated product variant fields for the given language code. */ translation?: Maybe /** Digital content for the product variant. */ digitalContent?: Maybe /** Stocks for the product variant. */ stocks?: Maybe>> /** Quantity of a product available for sale in one checkout. */ quantityAvailable: Scalars['Int'] } /** Represents a version of a product such as different size or color. */ export type ProductVariantPricingArgs = { address?: Maybe } /** Represents a version of a product such as different size or color. */ export type ProductVariantAttributesArgs = { variantSelection?: Maybe } /** Represents a version of a product such as different size or color. */ export type ProductVariantRevenueArgs = { period?: Maybe } /** Represents a version of a product such as different size or color. */ export type ProductVariantTranslationArgs = { languageCode: LanguageCodeEnum } /** Represents a version of a product such as different size or color. */ export type ProductVariantStocksArgs = { address?: Maybe countryCode?: Maybe } /** Represents a version of a product such as different size or color. */ export type ProductVariantQuantityAvailableArgs = { address?: Maybe countryCode?: Maybe } /** Creates product variants for a given product. */ export type ProductVariantBulkCreate = { __typename?: 'ProductVariantBulkCreate' /** Returns how many objects were created. */ count: Scalars['Int'] /** List of the created variants. */ productVariants: Array /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ bulkProductErrors: Array errors: Array } export type ProductVariantBulkCreateInput = { /** List of attributes specific to this variant. */ attributes: Array> /** Stock keeping unit. */ sku: Scalars['String'] /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ trackInventory?: Maybe /** Weight of the Product Variant. */ weight?: Maybe /** Stocks of a product available for sale. */ stocks?: Maybe> /** List of prices assigned to channels. */ channelListings?: Maybe> } /** Deletes product variants. */ export type ProductVariantBulkDelete = { __typename?: 'ProductVariantBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Represents product varaint channel listing. */ export type ProductVariantChannelListing = Node & { __typename?: 'ProductVariantChannelListing' /** The ID of the object. */ id: Scalars['ID'] channel: Channel price?: Maybe /** Cost price of the variant. */ costPrice?: Maybe /** Gross margin percentage value. */ margin?: Maybe } export type ProductVariantChannelListingAddInput = { /** ID of a channel. */ channelId: Scalars['ID'] /** Price of the particular variant in channel. */ price: Scalars['PositiveDecimal'] /** Cost price of the variant in channel. */ costPrice?: Maybe } /** Manage product variant prices in channels. */ export type ProductVariantChannelListingUpdate = { __typename?: 'ProductVariantChannelListingUpdate' /** An updated product variant instance. */ variant?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productChannelListingErrors: Array errors: Array } export type ProductVariantCountableConnection = { __typename?: 'ProductVariantCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type ProductVariantCountableEdge = { __typename?: 'ProductVariantCountableEdge' /** The item at the end of the edge. */ node: ProductVariant /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new variant for a product. */ export type ProductVariantCreate = { __typename?: 'ProductVariantCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array productVariant?: Maybe } export type ProductVariantCreateInput = { /** List of attributes specific to this variant. */ attributes: Array> /** Stock keeping unit. */ sku?: Maybe /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ trackInventory?: Maybe /** Weight of the Product Variant. */ weight?: Maybe /** Product ID of which type is the variant. */ product: Scalars['ID'] /** Stocks of a product available for sale. */ stocks?: Maybe> } /** Deletes a product variant. */ export type ProductVariantDelete = { __typename?: 'ProductVariantDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array productVariant?: Maybe } export type ProductVariantFilterInput = { search?: Maybe sku?: Maybe>> metadata?: Maybe>> } export type ProductVariantInput = { /** List of attributes specific to this variant. */ attributes?: Maybe>> /** Stock keeping unit. */ sku?: Maybe /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. */ trackInventory?: Maybe /** Weight of the Product Variant. */ weight?: Maybe } /** Reorder the variants of a product. Mutation updates updated_at on product and triggers PRODUCT_UPDATED webhook. */ export type ProductVariantReorder = { __typename?: 'ProductVariantReorder' product?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Reorder product variant attribute values. */ export type ProductVariantReorderAttributeValues = { __typename?: 'ProductVariantReorderAttributeValues' /** Product variant from which attribute values are reordered. */ productVariant?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook. */ export type ProductVariantSetDefault = { __typename?: 'ProductVariantSetDefault' product?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Creates stocks for product variant. */ export type ProductVariantStocksCreate = { __typename?: 'ProductVariantStocksCreate' /** Updated product variant. */ productVariant?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ bulkStockErrors: Array errors: Array } /** Delete stocks from product variant. */ export type ProductVariantStocksDelete = { __typename?: 'ProductVariantStocksDelete' /** Updated product variant. */ productVariant?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ stockErrors: Array errors: Array } /** Update stocks for product variant. */ export type ProductVariantStocksUpdate = { __typename?: 'ProductVariantStocksUpdate' /** Updated product variant. */ productVariant?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ bulkStockErrors: Array errors: Array } export type ProductVariantTranslatableContent = Node & { __typename?: 'ProductVariantTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** Returns translated product variant fields for the given language code. */ translation?: Maybe /** Represents a version of a product such as different size or color. */ productVariant?: Maybe } export type ProductVariantTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for Product Variant. */ export type ProductVariantTranslate = { __typename?: 'ProductVariantTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array productVariant?: Maybe } export type ProductVariantTranslation = Node & { __typename?: 'ProductVariantTranslation' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** Translation language. */ language: LanguageDisplay } /** Updates an existing variant for product. */ export type ProductVariantUpdate = { __typename?: 'ProductVariantUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array productVariant?: Maybe } export type PublishableChannelListingInput = { /** ID of a channel. */ channelId: Scalars['ID'] /** Determines if object is visible to customers. */ isPublished?: Maybe /** Publication date. ISO 8601 standard. */ publicationDate?: Maybe } export type Query = { __typename?: 'Query' /** Look up a webhook by ID. */ webhook?: Maybe /** List of all available webhook events. */ webhookEvents?: Maybe>> /** 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?: Maybe /** Look up a warehouse by ID. */ warehouse?: Maybe /** List of warehouses. */ warehouses?: Maybe /** Returns a list of all translatable items of a given kind. */ translations?: Maybe translation?: Maybe /** Look up a stock by ID */ stock?: Maybe /** List of stocks. */ stocks?: Maybe /** Return information about the shop. */ shop: Shop /** Order related settings from site settings. */ orderSettings?: Maybe /** Look up a shipping zone by ID. */ shippingZone?: Maybe /** List of the shop's shipping zones. */ shippingZones?: Maybe /** Look up digital content by ID. */ digitalContent?: Maybe /** List of digital content. */ digitalContents?: Maybe /** List of the shop's categories. */ categories?: Maybe /** Look up a category by ID or slug. */ category?: Maybe /** Look up a collection by ID. */ collection?: Maybe /** List of the shop's collections. */ collections?: Maybe /** Look up a product by ID. */ product?: Maybe /** List of the shop's products. */ products?: Maybe /** Look up a product type by ID. */ productType?: Maybe /** List of the shop's product types. */ productTypes?: Maybe /** Look up a product variant by ID or SKU. */ productVariant?: Maybe /** List of product variants. */ productVariants?: Maybe /** List of top selling products. */ reportProductSales?: Maybe /** Look up a payment by ID. */ payment?: Maybe /** List of payments. */ payments?: Maybe /** Look up a page by ID or slug. */ page?: Maybe /** List of the shop's pages. */ pages?: Maybe /** Look up a page type by ID. */ pageType?: Maybe /** List of the page types. */ pageTypes?: Maybe /** List of activity events to display on homepage (at the moment it only contains order-events). */ homepageEvents?: Maybe /** Look up an order by ID. */ order?: Maybe /** List of orders. */ orders?: Maybe /** List of draft orders. */ draftOrders?: Maybe /** Return the total sales amount from a specific period. */ ordersTotal?: Maybe /** Look up an order by token. */ orderByToken?: Maybe /** Look up a navigation menu by ID or name. */ menu?: Maybe /** List of the storefront's menus. */ menus?: Maybe /** Look up a menu item by ID. */ menuItem?: Maybe /** List of the storefronts's menu items. */ menuItems?: Maybe /** Look up a gift card by ID. */ giftCard?: Maybe /** List of gift cards. */ giftCards?: Maybe /** Look up a plugin by ID. */ plugin?: Maybe /** List of plugins. */ plugins?: Maybe /** Look up a sale by ID. */ sale?: Maybe /** List of the shop's sales. */ sales?: Maybe /** Look up a voucher by ID. */ voucher?: Maybe /** List of the shop's vouchers. */ vouchers?: Maybe /** Look up a export file by ID. */ exportFile?: Maybe /** List of export files. */ exportFiles?: Maybe /** List of all tax rates available from tax gateway. */ taxTypes?: Maybe>> /** Look up a checkout by token and slug of channel. */ checkout?: Maybe /** List of checkouts. */ checkouts?: Maybe /** Look up a checkout line by ID. */ checkoutLine?: Maybe /** List of checkout lines. */ checkoutLines?: Maybe /** Look up a channel by ID. */ channel?: Maybe /** List of all channels. */ channels?: Maybe> /** List of the shop's attributes. */ attributes?: Maybe /** Look up an attribute by ID. */ attribute?: Maybe /** List of all apps installations */ appsInstallations: Array /** List of the apps. */ apps?: Maybe /** Look up an app by ID. If ID is not provided, return the currently authenticated app. */ app?: Maybe /** Returns address validation rules. */ addressValidationRules?: Maybe /** Look up an address by ID. */ address?: Maybe
/** List of the shop's customers. */ customers?: Maybe /** List of permission groups. */ permissionGroups?: Maybe /** Look up permission group by ID. */ permissionGroup?: Maybe /** Return the currently authenticated user. */ me?: Maybe /** List of the shop's staff users. */ staffUsers?: Maybe /** Look up a user by ID or email address. */ user?: Maybe _entities?: Maybe>> _service?: Maybe<_Service> } export type QueryWebhookArgs = { id: Scalars['ID'] } export type QueryWebhookSamplePayloadArgs = { eventType: WebhookSampleEventTypeEnum } export type QueryWarehouseArgs = { id: Scalars['ID'] } export type QueryWarehousesArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryTranslationsArgs = { kind: TranslatableKinds before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryTranslationArgs = { id: Scalars['ID'] kind: TranslatableKinds } export type QueryStockArgs = { id: Scalars['ID'] } export type QueryStocksArgs = { filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryShippingZoneArgs = { id: Scalars['ID'] channel?: Maybe } export type QueryShippingZonesArgs = { filter?: Maybe channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryDigitalContentArgs = { id: Scalars['ID'] } export type QueryDigitalContentsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryCategoriesArgs = { filter?: Maybe sortBy?: Maybe level?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryCategoryArgs = { id?: Maybe slug?: Maybe } export type QueryCollectionArgs = { id?: Maybe slug?: Maybe channel?: Maybe } export type QueryCollectionsArgs = { filter?: Maybe sortBy?: Maybe channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryProductArgs = { id?: Maybe slug?: Maybe channel?: Maybe } export type QueryProductsArgs = { filter?: Maybe sortBy?: Maybe channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryProductTypeArgs = { id: Scalars['ID'] } export type QueryProductTypesArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryProductVariantArgs = { id?: Maybe sku?: Maybe channel?: Maybe } export type QueryProductVariantsArgs = { ids?: Maybe>> channel?: Maybe filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryReportProductSalesArgs = { period: ReportingPeriod channel: Scalars['String'] before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryPaymentArgs = { id: Scalars['ID'] } export type QueryPaymentsArgs = { filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryPageArgs = { id?: Maybe slug?: Maybe } export type QueryPagesArgs = { sortBy?: Maybe filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryPageTypeArgs = { id: Scalars['ID'] } export type QueryPageTypesArgs = { sortBy?: Maybe filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryHomepageEventsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryOrderArgs = { id: Scalars['ID'] } export type QueryOrdersArgs = { sortBy?: Maybe filter?: Maybe channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryDraftOrdersArgs = { sortBy?: Maybe filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryOrdersTotalArgs = { period?: Maybe channel?: Maybe } export type QueryOrderByTokenArgs = { token: Scalars['UUID'] } export type QueryMenuArgs = { channel?: Maybe id?: Maybe name?: Maybe slug?: Maybe } export type QueryMenusArgs = { channel?: Maybe sortBy?: Maybe filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryMenuItemArgs = { id: Scalars['ID'] channel?: Maybe } export type QueryMenuItemsArgs = { channel?: Maybe sortBy?: Maybe filter?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryGiftCardArgs = { id: Scalars['ID'] } export type QueryGiftCardsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryPluginArgs = { id: Scalars['ID'] } export type QueryPluginsArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QuerySaleArgs = { id: Scalars['ID'] channel?: Maybe } export type QuerySalesArgs = { filter?: Maybe sortBy?: Maybe query?: Maybe channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryVoucherArgs = { id: Scalars['ID'] channel?: Maybe } export type QueryVouchersArgs = { filter?: Maybe sortBy?: Maybe query?: Maybe channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryExportFileArgs = { id: Scalars['ID'] } export type QueryExportFilesArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryCheckoutArgs = { token?: Maybe } export type QueryCheckoutsArgs = { channel?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryCheckoutLineArgs = { id?: Maybe } export type QueryCheckoutLinesArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryChannelArgs = { id?: Maybe } export type QueryAttributesArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryAttributeArgs = { id?: Maybe slug?: Maybe } export type QueryAppsArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryAppArgs = { id?: Maybe } export type QueryAddressValidationRulesArgs = { countryCode: CountryCode countryArea?: Maybe city?: Maybe cityArea?: Maybe } export type QueryAddressArgs = { id: Scalars['ID'] } export type QueryCustomersArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryPermissionGroupsArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryPermissionGroupArgs = { id: Scalars['ID'] } export type QueryStaffUsersArgs = { filter?: Maybe sortBy?: Maybe before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type QueryUserArgs = { id?: Maybe email?: Maybe } export type Query_EntitiesArgs = { representations?: Maybe>> } /** Represents a reduced VAT rate for a particular type of goods. */ export type ReducedRate = { __typename?: 'ReducedRate' /** Reduced VAT rate in percent. */ rate: Scalars['Float'] /** A type of goods. */ rateType: TaxRateType } /** 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. */ export type RefreshToken = { __typename?: 'RefreshToken' /** JWT token, required to authenticate. */ token?: Maybe /** A user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } export type ReorderInput = { /** The ID of the item to move. */ id: Scalars['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?: Maybe } export enum ReportingPeriod { Today = 'TODAY', ThisMonth = 'THIS_MONTH', } /** Request email change of the logged in user. */ export type RequestEmailChange = { __typename?: 'RequestEmailChange' /** A user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Sends an email with the account password modification link. */ export type RequestPasswordReset = { __typename?: 'RequestPasswordReset' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ export type Sale = Node & { __typename?: 'Sale' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] type: SaleType startDate: Scalars['DateTime'] endDate?: Maybe /** List of categories this sale applies to. */ categories?: Maybe /** List of collections this sale applies to. */ collections?: Maybe /** List of products this sale applies to. */ products?: Maybe /** Returns translated sale fields for the given language code. */ translation?: Maybe /** List of channels available for the sale. */ channelListings?: Maybe> /** Sale value. */ discountValue?: Maybe /** Currency code for sale. */ currency?: Maybe } /** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ export type SaleCategoriesArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ export type SaleCollectionsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ export type SaleProductsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ export type SaleTranslationArgs = { languageCode: LanguageCodeEnum } /** Adds products, categories, collections to a voucher. */ export type SaleAddCatalogues = { __typename?: 'SaleAddCatalogues' /** Sale of which catalogue IDs will be modified. */ sale?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array } /** Deletes sales. */ export type SaleBulkDelete = { __typename?: 'SaleBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array } /** Represents sale channel listing. */ export type SaleChannelListing = Node & { __typename?: 'SaleChannelListing' /** The ID of the object. */ id: Scalars['ID'] channel: Channel discountValue: Scalars['Float'] currency: Scalars['String'] } export type SaleChannelListingAddInput = { /** ID of a channel. */ channelId: Scalars['ID'] /** The value of the discount. */ discountValue: Scalars['PositiveDecimal'] } export type SaleChannelListingInput = { /** List of channels to which the sale should be assigned. */ addChannels?: Maybe> /** List of channels from which the sale should be unassigned. */ removeChannels?: Maybe> } /** Manage sale's availability in channels. */ export type SaleChannelListingUpdate = { __typename?: 'SaleChannelListingUpdate' /** An updated sale instance. */ sale?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array } export type SaleCountableConnection = { __typename?: 'SaleCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type SaleCountableEdge = { __typename?: 'SaleCountableEdge' /** The item at the end of the edge. */ node: Sale /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new sale. */ export type SaleCreate = { __typename?: 'SaleCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array sale?: Maybe } /** Deletes a sale. */ export type SaleDelete = { __typename?: 'SaleDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array sale?: Maybe } export type SaleFilterInput = { status?: Maybe>> saleType?: Maybe started?: Maybe search?: Maybe } export type SaleInput = { /** Voucher name. */ name?: Maybe /** Fixed or percentage. */ type?: Maybe /** Value of the voucher. */ value?: Maybe /** Products related to the discount. */ products?: Maybe>> /** Categories related to the discount. */ categories?: Maybe>> /** Collections related to the discount. */ collections?: Maybe>> /** Start date of the voucher in ISO 8601 format. */ startDate?: Maybe /** End date of the voucher in ISO 8601 format. */ endDate?: Maybe } /** Removes products, categories, collections from a sale. */ export type SaleRemoveCatalogues = { __typename?: 'SaleRemoveCatalogues' /** Sale of which catalogue IDs will be modified. */ sale?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array } export enum SaleSortField { /** Sort sales by name. */ Name = 'NAME', /** Sort sales by start date. */ StartDate = 'START_DATE', /** Sort sales by end date. */ EndDate = 'END_DATE', /** Sort sales by value. */ Value = 'VALUE', /** Sort sales by type. */ Type = 'TYPE', } export type SaleSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Specifies the channel in which to sort the data. */ channel?: Maybe /** Sort sales by the selected field. */ field: SaleSortField } export type SaleTranslatableContent = Node & { __typename?: 'SaleTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] /** Returns translated sale fields for the given language code. */ translation?: Maybe /** Sales allow creating discounts for categories, collections or products and are visible to all the customers. */ sale?: Maybe } export type SaleTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/updates translations for a sale. */ export type SaleTranslate = { __typename?: 'SaleTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array sale?: Maybe } export type SaleTranslation = Node & { __typename?: 'SaleTranslation' /** The ID of the object. */ id: Scalars['ID'] name?: Maybe /** Translation language. */ language: LanguageDisplay } /** An enumeration. */ export enum SaleType { /** fixed */ Fixed = 'FIXED', /** % */ Percentage = 'PERCENTAGE', } /** Updates a sale. */ export type SaleUpdate = { __typename?: 'SaleUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array sale?: Maybe } /** Represents a custom attribute. */ export type SelectedAttribute = { __typename?: 'SelectedAttribute' /** Name of an attribute displayed in the interface. */ attribute: Attribute /** Values of an attribute. */ values: Array> } export type SeoInput = { /** SEO title. */ title?: Maybe /** SEO description. */ description?: Maybe } /** Sets the user's password from the token sent by email using the RequestPasswordReset mutation. */ export type SetPassword = { __typename?: 'SetPassword' /** JWT token, required to authenticate. */ token?: Maybe /** JWT refresh token, required to re-generate access token. */ refreshToken?: Maybe /** CSRF token required to re-generate access token. */ csrfToken?: Maybe /** A user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } export type ShippingError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ShippingErrorCode /** List of warehouse IDs which causes the error. */ warehouses?: Maybe> /** List of channels IDs which causes the error. */ channels?: Maybe> } /** An enumeration. */ export enum ShippingErrorCode { AlreadyExists = 'ALREADY_EXISTS', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', MaxLessThanMin = 'MAX_LESS_THAN_MIN', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', DuplicatedInputItem = 'DUPLICATED_INPUT_ITEM', } /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethod = Node & ObjectWithMetadata & { __typename?: 'ShippingMethod' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] description?: Maybe minimumOrderWeight?: Maybe maximumOrderWeight?: Maybe maximumDeliveryDays?: Maybe minimumDeliveryDays?: Maybe /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** Type of the shipping method. */ type?: Maybe /** Returns translated shipping method fields for the given language code. */ translation?: Maybe /** List of channels available for the method. */ channelListings?: Maybe> /** The price of the cheapest variant (including discounts). */ price?: Maybe /** The price of the cheapest variant (including discounts). */ maximumOrderPrice?: Maybe /** The price of the cheapest variant (including discounts). */ minimumOrderPrice?: Maybe /** Postal code ranges rule of exclusion or inclusion of the shipping method. */ postalCodeRules?: Maybe>> /** List of excluded products for the shipping method. */ excludedProducts?: Maybe } /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethodTranslationArgs = { languageCode: LanguageCodeEnum } /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ export type ShippingMethodExcludedProductsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Represents shipping method channel listing. */ export type ShippingMethodChannelListing = Node & { __typename?: 'ShippingMethodChannelListing' /** The ID of the object. */ id: Scalars['ID'] channel: Channel minimumOrderPrice?: Maybe maximumOrderPrice?: Maybe price?: Maybe } export type ShippingMethodChannelListingAddInput = { /** ID of a channel. */ channelId: Scalars['ID'] /** Shipping price of the shipping method in this channel. */ price?: Maybe /** Minimum order price to use this shipping method. */ minimumOrderPrice?: Maybe /** Maximum order price to use this shipping method. */ maximumOrderPrice?: Maybe } export type ShippingMethodChannelListingInput = { /** List of channels to which the shipping method should be assigned. */ addChannels?: Maybe> /** List of channels from which the shipping method should be unassigned. */ removeChannels?: Maybe> } /** Manage shipping method's availability in channels. */ export type ShippingMethodChannelListingUpdate = { __typename?: 'ShippingMethodChannelListingUpdate' /** An updated shipping method instance. */ shippingMethod?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array } /** Represents shipping method postal code rule. */ export type ShippingMethodPostalCodeRule = Node & { __typename?: 'ShippingMethodPostalCodeRule' /** Start address range. */ start?: Maybe /** End address range. */ end?: Maybe /** Inclusion type of the postal code rule. */ inclusionType?: Maybe /** The ID of the object. */ id: Scalars['ID'] } export type ShippingMethodTranslatableContent = Node & { __typename?: 'ShippingMethodTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] description?: Maybe /** Returns translated shipping method fields for the given language code. */ translation?: Maybe /** Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers. */ shippingMethod?: Maybe } export type ShippingMethodTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } export type ShippingMethodTranslation = Node & { __typename?: 'ShippingMethodTranslation' /** The ID of the object. */ id: Scalars['ID'] name?: Maybe description?: Maybe /** Translation language. */ language: LanguageDisplay } /** An enumeration. */ export enum ShippingMethodTypeEnum { Price = 'PRICE', Weight = 'WEIGHT', } export type ShippingPostalCodeRulesCreateInputRange = { /** Start range of the postal code. */ start: Scalars['String'] /** End range of the postal code. */ end?: Maybe } /** Deletes shipping prices. */ export type ShippingPriceBulkDelete = { __typename?: 'ShippingPriceBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array } /** Creates a new shipping price. */ export type ShippingPriceCreate = { __typename?: 'ShippingPriceCreate' /** A shipping zone to which the shipping method belongs. */ shippingZone?: Maybe shippingMethod?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array } /** Deletes a shipping price. */ export type ShippingPriceDelete = { __typename?: 'ShippingPriceDelete' /** A shipping method to delete. */ shippingMethod?: Maybe /** A shipping zone to which the shipping method belongs. */ shippingZone?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array } /** Exclude products from shipping price. */ export type ShippingPriceExcludeProducts = { __typename?: 'ShippingPriceExcludeProducts' /** A shipping method with new list of excluded products. */ shippingMethod?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array } export type ShippingPriceExcludeProductsInput = { /** List of products which will be excluded. */ products: Array> } export type ShippingPriceInput = { /** Name of the shipping method. */ name?: Maybe /** Shipping method description (JSON). */ description?: Maybe /** Minimum order weight to use this shipping method. */ minimumOrderWeight?: Maybe /** Maximum order weight to use this shipping method. */ maximumOrderWeight?: Maybe /** Maximum number of days for delivery. */ maximumDeliveryDays?: Maybe /** Minimal number of days for delivery. */ minimumDeliveryDays?: Maybe /** Shipping type: price or weight based. */ type?: Maybe /** Shipping zone this method belongs to. */ shippingZone?: Maybe /** Postal code rules to add. */ addPostalCodeRules?: Maybe> /** Postal code rules to delete. */ deletePostalCodeRules?: Maybe> /** Inclusion type for currently assigned postal code rules. */ inclusionType?: Maybe } /** Remove product from excluded list for shipping price. */ export type ShippingPriceRemoveProductFromExclude = { __typename?: 'ShippingPriceRemoveProductFromExclude' /** A shipping method with new list of excluded products. */ shippingMethod?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array } /** Creates/Updates translations for shipping method. */ export type ShippingPriceTranslate = { __typename?: 'ShippingPriceTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array shippingMethod?: Maybe } export type ShippingPriceTranslationInput = { name?: Maybe /** Translated shipping method description (JSON). */ description?: Maybe } /** Updates a new shipping price. */ export type ShippingPriceUpdate = { __typename?: 'ShippingPriceUpdate' /** A shipping zone to which the shipping method belongs. */ shippingZone?: Maybe shippingMethod?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array } /** 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. */ export type ShippingZone = Node & ObjectWithMetadata & { __typename?: 'ShippingZone' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] default: Scalars['Boolean'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** Lowest and highest prices for the shipping. */ priceRange?: Maybe /** List of countries available for the method. */ countries?: Maybe>> /** List of shipping methods available for orders shipped to countries within this shipping zone. */ shippingMethods?: Maybe>> /** List of warehouses for shipping zone. */ warehouses: Array /** List of channels for shipping zone. */ channels: Array /** Description of a shipping zone. */ description?: Maybe } /** Deletes shipping zones. */ export type ShippingZoneBulkDelete = { __typename?: 'ShippingZoneBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array } export type ShippingZoneCountableConnection = { __typename?: 'ShippingZoneCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type ShippingZoneCountableEdge = { __typename?: 'ShippingZoneCountableEdge' /** The item at the end of the edge. */ node: ShippingZone /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new shipping zone. */ export type ShippingZoneCreate = { __typename?: 'ShippingZoneCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array shippingZone?: Maybe } export type ShippingZoneCreateInput = { /** Shipping zone's name. Visible only to the staff. */ name?: Maybe /** Description of the shipping zone. */ description?: Maybe /** List of countries in this shipping zone. */ countries?: Maybe>> /** Default shipping zone will be used for countries not covered by other zones. */ default?: Maybe /** List of warehouses to assign to a shipping zone */ addWarehouses?: Maybe>> /** List of channels to assign to the shipping zone. */ addChannels?: Maybe> } /** Deletes a shipping zone. */ export type ShippingZoneDelete = { __typename?: 'ShippingZoneDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array shippingZone?: Maybe } export type ShippingZoneFilterInput = { search?: Maybe channels?: Maybe>> } /** Updates a new shipping zone. */ export type ShippingZoneUpdate = { __typename?: 'ShippingZoneUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shippingErrors: Array errors: Array shippingZone?: Maybe } export type ShippingZoneUpdateInput = { /** Shipping zone's name. Visible only to the staff. */ name?: Maybe /** Description of the shipping zone. */ description?: Maybe /** List of countries in this shipping zone. */ countries?: Maybe>> /** Default shipping zone will be used for countries not covered by other zones. */ default?: Maybe /** List of warehouses to assign to a shipping zone */ addWarehouses?: Maybe>> /** List of channels to assign to the shipping zone. */ addChannels?: Maybe> /** List of warehouses to unassign from a shipping zone */ removeWarehouses?: Maybe>> /** List of channels to unassign from the shipping zone. */ removeChannels?: Maybe> } /** Represents a shop resource containing general shop data and configuration. */ export type Shop = { __typename?: 'Shop' /** List of available payment gateways. */ availablePaymentGateways: Array /** List of available external authentications. */ availableExternalAuthentications: Array /** Shipping methods that are available for the shop. */ availableShippingMethods?: Maybe>> /** List of countries available in the shop. */ countries: Array /** Shop's default country. */ defaultCountry?: Maybe /** Default shop's email sender's name. */ defaultMailSenderName?: Maybe /** Default shop's email sender's address. */ defaultMailSenderAddress?: Maybe /** Shop's description. */ description?: Maybe /** Shop's domain data. */ domain: Domain /** List of the shops's supported languages. */ languages: Array> /** Shop's name. */ name: Scalars['String'] /** List of available permissions. */ permissions: Array> /** List of possible phone prefixes. */ phonePrefixes: Array> /** Header text. */ headerText?: Maybe /** Include taxes in prices. */ includeTaxesInPrices: Scalars['Boolean'] /** Display prices with tax in store. */ displayGrossPrices: Scalars['Boolean'] /** Charge taxes on shipping. */ chargeTaxesOnShipping: Scalars['Boolean'] /** Enable inventory tracking. */ trackInventoryByDefault?: Maybe /** Default weight unit. */ defaultWeightUnit?: Maybe /** Returns translated shop fields for the given language code. */ translation?: Maybe /** Enable automatic fulfillment for all digital products. */ automaticFulfillmentDigitalProducts?: Maybe /** Default number of max downloads per digital content URL. */ defaultDigitalMaxDownloads?: Maybe /** Default number of days which digital content URL will be valid. */ defaultDigitalUrlValidDays?: Maybe /** Company address. */ companyAddress?: Maybe
/** URL of a view where customers can set their password. */ customerSetPasswordUrl?: Maybe /** List of staff notification recipients. */ staffNotificationRecipients?: Maybe>> /** Resource limitations and current usage if any set for a shop */ limits: LimitInfo /** Saleor API version. */ version: Scalars['String'] } /** Represents a shop resource containing general shop data and configuration. */ export type ShopAvailablePaymentGatewaysArgs = { currency?: Maybe channel?: Maybe } /** Represents a shop resource containing general shop data and configuration. */ export type ShopAvailableShippingMethodsArgs = { channel: Scalars['String'] address?: Maybe } /** Represents a shop resource containing general shop data and configuration. */ export type ShopCountriesArgs = { languageCode?: Maybe } /** Represents a shop resource containing general shop data and configuration. */ export type ShopTranslationArgs = { languageCode: LanguageCodeEnum } /** Update the shop's address. If the `null` value is passed, the currently selected address will be deleted. */ export type ShopAddressUpdate = { __typename?: 'ShopAddressUpdate' /** Updated shop. */ shop?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shopErrors: Array errors: Array } /** Updates site domain of the shop. */ export type ShopDomainUpdate = { __typename?: 'ShopDomainUpdate' /** Updated shop. */ shop?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shopErrors: Array errors: Array } export type ShopError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: ShopErrorCode } /** An enumeration. */ export enum ShopErrorCode { AlreadyExists = 'ALREADY_EXISTS', CannotFetchTaxRates = 'CANNOT_FETCH_TAX_RATES', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', } /** Fetch tax rates. */ export type ShopFetchTaxRates = { __typename?: 'ShopFetchTaxRates' /** Updated shop. */ shop?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shopErrors: Array errors: Array } export type ShopSettingsInput = { /** Header text. */ headerText?: Maybe /** SEO description. */ description?: Maybe /** Include taxes in prices. */ includeTaxesInPrices?: Maybe /** Display prices with tax in store. */ displayGrossPrices?: Maybe /** Charge taxes on shipping. */ chargeTaxesOnShipping?: Maybe /** Enable inventory tracking. */ trackInventoryByDefault?: Maybe /** Default weight unit. */ defaultWeightUnit?: Maybe /** Enable automatic fulfillment for all digital products. */ automaticFulfillmentDigitalProducts?: Maybe /** Default number of max downloads per digital content URL. */ defaultDigitalMaxDownloads?: Maybe /** Default number of days which digital content URL will be valid. */ defaultDigitalUrlValidDays?: Maybe /** Default email sender's name. */ defaultMailSenderName?: Maybe /** Default email sender's address. */ defaultMailSenderAddress?: Maybe /** URL of a view where customers can set their password. */ customerSetPasswordUrl?: Maybe } /** Creates/Updates translations for Shop Settings. */ export type ShopSettingsTranslate = { __typename?: 'ShopSettingsTranslate' /** Updated shop. */ shop?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array } export type ShopSettingsTranslationInput = { headerText?: Maybe description?: Maybe } /** Updates shop settings. */ export type ShopSettingsUpdate = { __typename?: 'ShopSettingsUpdate' /** Updated shop. */ shop?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shopErrors: Array errors: Array } export type ShopTranslation = Node & { __typename?: 'ShopTranslation' /** The ID of the object. */ id: Scalars['ID'] headerText: Scalars['String'] description: Scalars['String'] /** Translation language. */ language: LanguageDisplay } export type SiteDomainInput = { /** Domain name for shop. */ domain?: Maybe /** Shop site name. */ name?: Maybe } /** Deletes staff users. */ export type StaffBulkDelete = { __typename?: 'StaffBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ staffErrors: Array errors: Array } /** Creates a new staff user. */ export type StaffCreate = { __typename?: 'StaffCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ staffErrors: Array errors: Array user?: Maybe } export type StaffCreateInput = { /** Given name. */ firstName?: Maybe /** Family name. */ lastName?: Maybe /** The unique email address of the user. */ email?: Maybe /** User account is active. */ isActive?: Maybe /** A note about the user. */ note?: Maybe /** List of permission group IDs to which user should be assigned. */ addGroups?: Maybe> /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ redirectUrl?: Maybe } /** Deletes a staff user. */ export type StaffDelete = { __typename?: 'StaffDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ staffErrors: Array errors: Array user?: Maybe } export type StaffError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: AccountErrorCode /** A type of address that causes the error. */ addressType?: Maybe /** List of permissions which causes the error. */ permissions?: Maybe> /** List of permission group IDs which cause the error. */ groups?: Maybe> /** List of user IDs which causes the error. */ users?: Maybe> } export enum StaffMemberStatus { /** User account has been activated. */ Active = 'ACTIVE', /** User account has not been activated yet. */ Deactivated = 'DEACTIVATED', } /** 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. */ export type StaffNotificationRecipient = Node & { __typename?: 'StaffNotificationRecipient' /** Returns a user subscribed to email notifications. */ user?: Maybe /** Determines if a notification active. */ active?: Maybe /** The ID of the object. */ id: Scalars['ID'] /** Returns email address of a user subscribed to email notifications. */ email?: Maybe } /** Creates a new staff notification recipient. */ export type StaffNotificationRecipientCreate = { __typename?: 'StaffNotificationRecipientCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shopErrors: Array errors: Array staffNotificationRecipient?: Maybe } /** Delete staff notification recipient. */ export type StaffNotificationRecipientDelete = { __typename?: 'StaffNotificationRecipientDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shopErrors: Array errors: Array staffNotificationRecipient?: Maybe } export type StaffNotificationRecipientInput = { /** The ID of the user subscribed to email notifications.. */ user?: Maybe /** Email address of a user subscribed to email notifications. */ email?: Maybe /** Determines if a notification active. */ active?: Maybe } /** Updates a staff notification recipient. */ export type StaffNotificationRecipientUpdate = { __typename?: 'StaffNotificationRecipientUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ shopErrors: Array errors: Array staffNotificationRecipient?: Maybe } /** Updates an existing staff user. */ export type StaffUpdate = { __typename?: 'StaffUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ staffErrors: Array errors: Array user?: Maybe } export type StaffUpdateInput = { /** Given name. */ firstName?: Maybe /** Family name. */ lastName?: Maybe /** The unique email address of the user. */ email?: Maybe /** User account is active. */ isActive?: Maybe /** A note about the user. */ note?: Maybe /** List of permission group IDs to which user should be assigned. */ addGroups?: Maybe> /** List of permission group IDs from which user should be unassigned. */ removeGroups?: Maybe> } export type StaffUserInput = { status?: Maybe search?: Maybe } /** Represents stock. */ export type Stock = Node & { __typename?: 'Stock' warehouse: Warehouse productVariant: ProductVariant /** Quantity of a product in the warehouse's possession, including the allocated stock that is waiting for shipment. */ quantity: Scalars['Int'] /** The ID of the object. */ id: Scalars['ID'] /** Quantity allocated for orders */ quantityAllocated: Scalars['Int'] } export enum StockAvailability { InStock = 'IN_STOCK', OutOfStock = 'OUT_OF_STOCK', } export type StockCountableConnection = { __typename?: 'StockCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type StockCountableEdge = { __typename?: 'StockCountableEdge' /** The item at the end of the edge. */ node: Stock /** A cursor for use in pagination. */ cursor: Scalars['String'] } export type StockError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: StockErrorCode } /** An enumeration. */ export enum StockErrorCode { AlreadyExists = 'ALREADY_EXISTS', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', } export type StockFilterInput = { quantity?: Maybe search?: Maybe } export type StockInput = { /** Warehouse in which stock is located. */ warehouse: Scalars['ID'] /** Quantity of items available for sell. */ quantity: Scalars['Int'] } /** An enumeration. */ export enum TaxRateType { Accommodation = 'ACCOMMODATION', AdmissionToCulturalEvents = 'ADMISSION_TO_CULTURAL_EVENTS', AdmissionToEntertainmentEvents = 'ADMISSION_TO_ENTERTAINMENT_EVENTS', AdmissionToSportingEvents = 'ADMISSION_TO_SPORTING_EVENTS', Advertising = 'ADVERTISING', AgriculturalSupplies = 'AGRICULTURAL_SUPPLIES', BabyFoodstuffs = 'BABY_FOODSTUFFS', Bikes = 'BIKES', Books = 'BOOKS', ChildrensClothing = 'CHILDRENS_CLOTHING', DomesticFuel = 'DOMESTIC_FUEL', DomesticServices = 'DOMESTIC_SERVICES', EBooks = 'E_BOOKS', Foodstuffs = 'FOODSTUFFS', Hotels = 'HOTELS', Medical = 'MEDICAL', Newspapers = 'NEWSPAPERS', PassengerTransport = 'PASSENGER_TRANSPORT', Pharmaceuticals = 'PHARMACEUTICALS', PropertyRenovations = 'PROPERTY_RENOVATIONS', Restaurants = 'RESTAURANTS', SocialHousing = 'SOCIAL_HOUSING', Standard = 'STANDARD', Water = 'WATER', Wine = 'WINE', } /** Representation of tax types fetched from tax gateway. */ export type TaxType = { __typename?: 'TaxType' /** Description of the tax type. */ description?: Maybe /** External tax code used to identify given tax group. */ taxCode?: Maybe } /** Represents a monetary value with taxes. In cases where taxes were not applied, net and gross values will be equal. */ export type TaxedMoney = { __typename?: 'TaxedMoney' /** Currency code. */ currency: Scalars['String'] /** Amount of money including taxes. */ gross: Money /** Amount of money without taxes. */ net: Money /** Amount of taxes. */ tax: Money } /** Represents a range of monetary values. */ export type TaxedMoneyRange = { __typename?: 'TaxedMoneyRange' /** Lower bound of a price range. */ start?: Maybe /** Upper bound of a price range. */ stop?: Maybe } /** An object representing a single payment. */ export type Transaction = Node & { __typename?: 'Transaction' /** The ID of the object. */ id: Scalars['ID'] created: Scalars['DateTime'] payment: Payment token: Scalars['String'] kind: TransactionKind isSuccess: Scalars['Boolean'] error?: Maybe gatewayResponse: Scalars['JSONString'] /** Total amount of the transaction. */ amount?: Maybe } /** An enumeration. */ export enum TransactionKind { /** External reference */ External = 'EXTERNAL', /** Authorization */ Auth = 'AUTH', /** Pending */ Pending = 'PENDING', /** Action to confirm */ ActionToConfirm = 'ACTION_TO_CONFIRM', /** Refund */ Refund = 'REFUND', /** Refund in progress */ RefundOngoing = 'REFUND_ONGOING', /** Capture */ Capture = 'CAPTURE', /** Void */ Void = 'VOID', /** Confirm */ Confirm = 'CONFIRM', /** Cancel */ Cancel = 'CANCEL', } export type TranslatableItem = | ProductTranslatableContent | CollectionTranslatableContent | CategoryTranslatableContent | AttributeTranslatableContent | AttributeValueTranslatableContent | ProductVariantTranslatableContent | PageTranslatableContent | ShippingMethodTranslatableContent | SaleTranslatableContent | VoucherTranslatableContent | MenuItemTranslatableContent export type TranslatableItemConnection = { __typename?: 'TranslatableItemConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type TranslatableItemEdge = { __typename?: 'TranslatableItemEdge' /** The item at the end of the edge. */ node: TranslatableItem /** A cursor for use in pagination. */ cursor: Scalars['String'] } export enum TranslatableKinds { Attribute = 'ATTRIBUTE', AttributeValue = 'ATTRIBUTE_VALUE', Category = 'CATEGORY', Collection = 'COLLECTION', MenuItem = 'MENU_ITEM', Page = 'PAGE', Product = 'PRODUCT', Sale = 'SALE', ShippingMethod = 'SHIPPING_METHOD', Variant = 'VARIANT', Voucher = 'VOUCHER', } export type TranslationError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: TranslationErrorCode } /** An enumeration. */ export enum TranslationErrorCode { GraphqlError = 'GRAPHQL_ERROR', NotFound = 'NOT_FOUND', Required = 'REQUIRED', } export type TranslationInput = { seoTitle?: Maybe seoDescription?: Maybe name?: Maybe description?: Maybe } export type UpdateInvoiceInput = { /** Invoice number */ number?: Maybe /** URL of an invoice to download. */ url?: Maybe } /** Updates metadata of an object. */ export type UpdateMetadata = { __typename?: 'UpdateMetadata' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ metadataErrors: Array errors: Array item?: Maybe } /** Updates private metadata of an object. */ export type UpdatePrivateMetadata = { __typename?: 'UpdatePrivateMetadata' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ metadataErrors: Array errors: Array item?: Maybe } export type UploadError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: UploadErrorCode } /** An enumeration. */ export enum UploadErrorCode { GraphqlError = 'GRAPHQL_ERROR', } /** Represents user data. */ export type User = Node & ObjectWithMetadata & { __typename?: 'User' /** The ID of the object. */ id: Scalars['ID'] lastLogin?: Maybe email: Scalars['String'] firstName: Scalars['String'] lastName: Scalars['String'] isStaff: Scalars['Boolean'] isActive: Scalars['Boolean'] /** A note about the customer. */ note?: Maybe dateJoined: Scalars['DateTime'] defaultShippingAddress?: Maybe
defaultBillingAddress?: Maybe
/** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> /** List of all user's addresses. */ addresses?: Maybe>> /** * Returns the last open checkout of this user. * @deprecated Will be removed in Saleor 4.0. Use the `checkout_tokens` field to fetch the user checkouts. */ checkout?: Maybe /** Returns the checkout UUID's assigned to this user. */ checkoutTokens?: Maybe> /** List of the user gift cards. */ giftCards?: Maybe /** List of user's orders. */ orders?: Maybe /** List of user's permissions. */ userPermissions?: Maybe>> /** List of user's permission groups. */ permissionGroups?: Maybe>> /** List of user's permission groups which user can manage. */ editableGroups?: Maybe>> avatar?: Maybe /** List of events associated with the user. */ events?: Maybe>> /** List of stored payment sources. */ storedPaymentSources?: Maybe>> /** User language code. */ languageCode: LanguageCodeEnum } /** Represents user data. */ export type UserCheckoutTokensArgs = { channel?: Maybe } /** Represents user data. */ export type UserGiftCardsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Represents user data. */ export type UserOrdersArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Represents user data. */ export type UserAvatarArgs = { size?: Maybe } /** Represents user data. */ export type UserStoredPaymentSourcesArgs = { channel?: Maybe } /** Deletes a user avatar. Only for staff members. */ export type UserAvatarDelete = { __typename?: 'UserAvatarDelete' /** An updated user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** 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 */ export type UserAvatarUpdate = { __typename?: 'UserAvatarUpdate' /** An updated user instance. */ user?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** Activate or deactivate users. */ export type UserBulkSetActive = { __typename?: 'UserBulkSetActive' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } export type UserCountableConnection = { __typename?: 'UserCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type UserCountableEdge = { __typename?: 'UserCountableEdge' /** The item at the end of the edge. */ node: User /** A cursor for use in pagination. */ cursor: Scalars['String'] } export type UserCreateInput = { /** Billing address of the customer. */ defaultBillingAddress?: Maybe /** Shipping address of the customer. */ defaultShippingAddress?: Maybe /** Given name. */ firstName?: Maybe /** Family name. */ lastName?: Maybe /** The unique email address of the user. */ email?: Maybe /** User account is active. */ isActive?: Maybe /** A note about the user. */ note?: Maybe /** User language code. */ languageCode?: Maybe /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ redirectUrl?: Maybe /** Slug of a channel which will be used for notify user. Optional when only one channel exists. */ channel?: Maybe } export type UserPermission = { __typename?: 'UserPermission' /** Internal code for permission. */ code: PermissionEnum /** Describe action(s) allowed to do by permission. */ name: Scalars['String'] /** List of user permission groups which contains this permission. */ sourcePermissionGroups?: Maybe> } export type UserPermissionSourcePermissionGroupsArgs = { userId: Scalars['ID'] } export enum UserSortField { /** Sort users by first name. */ FirstName = 'FIRST_NAME', /** Sort users by last name. */ LastName = 'LAST_NAME', /** Sort users by email. */ Email = 'EMAIL', /** Sort users by order count. */ OrderCount = 'ORDER_COUNT', } export type UserSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort users by the selected field. */ field: UserSortField } /** Represents a VAT rate for a country. */ export type Vat = { __typename?: 'VAT' /** Country code. */ countryCode: Scalars['String'] /** Standard VAT rate in percent. */ standardRate?: Maybe /** Country's VAT rate exceptions for specific types of goods. */ reducedRates: Array> } export enum VariantAttributeScope { All = 'ALL', VariantSelection = 'VARIANT_SELECTION', NotVariantSelection = 'NOT_VARIANT_SELECTION', } /** Assign an media to a product variant. */ export type VariantMediaAssign = { __typename?: 'VariantMediaAssign' productVariant?: Maybe media?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Unassign an media from a product variant. */ export type VariantMediaUnassign = { __typename?: 'VariantMediaUnassign' productVariant?: Maybe media?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ productErrors: Array errors: Array } /** Represents availability of a variant in the storefront. */ export type VariantPricingInfo = { __typename?: 'VariantPricingInfo' /** Whether it is in sale or not. */ onSale?: Maybe /** The discount amount if in sale (null otherwise). */ discount?: Maybe /** The discount amount in the local currency. */ discountLocalCurrency?: Maybe /** The price, with any discount subtracted. */ price?: Maybe /** The price without any discount. */ priceUndiscounted?: Maybe /** The discounted price in the local currency. */ priceLocalCurrency?: Maybe } /** Verify JWT token. */ export type VerifyToken = { __typename?: 'VerifyToken' /** User assigned to token. */ user?: Maybe /** Determine if token is valid or not. */ isValid: Scalars['Boolean'] /** JWT payload. */ payload?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ accountErrors: Array errors: Array } /** An enumeration. */ export enum VolumeUnitsEnum { CubicMillimeter = 'CUBIC_MILLIMETER', CubicCentimeter = 'CUBIC_CENTIMETER', CubicDecimeter = 'CUBIC_DECIMETER', CubicMeter = 'CUBIC_METER', Liter = 'LITER', CubicFoot = 'CUBIC_FOOT', CubicInch = 'CUBIC_INCH', CubicYard = 'CUBIC_YARD', Qt = 'QT', Pint = 'PINT', FlOz = 'FL_OZ', AcreIn = 'ACRE_IN', AcreFt = 'ACRE_FT', } /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type Voucher = Node & { __typename?: 'Voucher' /** The ID of the object. */ id: Scalars['ID'] name?: Maybe /** Determines a type of voucher. */ type: VoucherTypeEnum code: Scalars['String'] usageLimit?: Maybe used: Scalars['Int'] startDate: Scalars['DateTime'] endDate?: Maybe applyOncePerOrder: Scalars['Boolean'] applyOncePerCustomer: Scalars['Boolean'] /** Determines a type of discount for voucher - value or percentage */ discountValueType: DiscountValueTypeEnum minCheckoutItemsQuantity?: Maybe /** List of categories this voucher applies to. */ categories?: Maybe /** List of collections this voucher applies to. */ collections?: Maybe /** List of products this voucher applies to. */ products?: Maybe /** List of countries available for the shipping voucher. */ countries?: Maybe>> /** Returns translated voucher fields for the given language code. */ translation?: Maybe /** Voucher value. */ discountValue?: Maybe /** Currency code for voucher. */ currency?: Maybe /** Minimum order value to apply voucher. */ minSpent?: Maybe /** List of availability in channels for the voucher. */ channelListings?: Maybe> } /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherCategoriesArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherCollectionsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherProductsArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } /** Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes. */ export type VoucherTranslationArgs = { languageCode: LanguageCodeEnum } /** Adds products, categories, collections to a voucher. */ export type VoucherAddCatalogues = { __typename?: 'VoucherAddCatalogues' /** Voucher of which catalogue IDs will be modified. */ voucher?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array } /** Deletes vouchers. */ export type VoucherBulkDelete = { __typename?: 'VoucherBulkDelete' /** Returns how many objects were affected. */ count: Scalars['Int'] /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array } /** Represents voucher channel listing. */ export type VoucherChannelListing = Node & { __typename?: 'VoucherChannelListing' /** The ID of the object. */ id: Scalars['ID'] channel: Channel discountValue: Scalars['Float'] currency: Scalars['String'] minSpent?: Maybe } export type VoucherChannelListingAddInput = { /** ID of a channel. */ channelId: Scalars['ID'] /** Value of the voucher. */ discountValue?: Maybe /** Min purchase amount required to apply the voucher. */ minAmountSpent?: Maybe } export type VoucherChannelListingInput = { /** List of channels to which the voucher should be assigned. */ addChannels?: Maybe> /** List of channels from which the voucher should be unassigned. */ removeChannels?: Maybe> } /** Manage voucher's availability in channels. */ export type VoucherChannelListingUpdate = { __typename?: 'VoucherChannelListingUpdate' /** An updated voucher instance. */ voucher?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array } export type VoucherCountableConnection = { __typename?: 'VoucherCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type VoucherCountableEdge = { __typename?: 'VoucherCountableEdge' /** The item at the end of the edge. */ node: Voucher /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates a new voucher. */ export type VoucherCreate = { __typename?: 'VoucherCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array voucher?: Maybe } /** Deletes a voucher. */ export type VoucherDelete = { __typename?: 'VoucherDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array voucher?: Maybe } export enum VoucherDiscountType { Fixed = 'FIXED', Percentage = 'PERCENTAGE', Shipping = 'SHIPPING', } export type VoucherFilterInput = { status?: Maybe>> timesUsed?: Maybe discountType?: Maybe>> started?: Maybe search?: Maybe } export type VoucherInput = { /** Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. */ type?: Maybe /** Voucher name. */ name?: Maybe /** Code to use the voucher. */ code?: Maybe /** Start date of the voucher in ISO 8601 format. */ startDate?: Maybe /** End date of the voucher in ISO 8601 format. */ endDate?: Maybe /** Choices: fixed or percentage. */ discountValueType?: Maybe /** Products discounted by the voucher. */ products?: Maybe>> /** Collections discounted by the voucher. */ collections?: Maybe>> /** Categories discounted by the voucher. */ categories?: Maybe>> /** Minimal quantity of checkout items required to apply the voucher. */ minCheckoutItemsQuantity?: Maybe /** Country codes that can be used with the shipping voucher. */ countries?: Maybe>> /** Voucher should be applied to the cheapest item or entire order. */ applyOncePerOrder?: Maybe /** Voucher should be applied once per customer. */ applyOncePerCustomer?: Maybe /** Limit number of times this voucher can be used in total. */ usageLimit?: Maybe } /** Removes products, categories, collections from a voucher. */ export type VoucherRemoveCatalogues = { __typename?: 'VoucherRemoveCatalogues' /** Voucher of which catalogue IDs will be modified. */ voucher?: Maybe /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array } export enum VoucherSortField { /** Sort vouchers by code. */ Code = 'CODE', /** Sort vouchers by start date. */ StartDate = 'START_DATE', /** Sort vouchers by end date. */ EndDate = 'END_DATE', /** Sort vouchers by value. */ Value = 'VALUE', /** Sort vouchers by type. */ Type = 'TYPE', /** Sort vouchers by usage limit. */ UsageLimit = 'USAGE_LIMIT', /** Sort vouchers by minimum spent amount. */ MinimumSpentAmount = 'MINIMUM_SPENT_AMOUNT', } export type VoucherSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Specifies the channel in which to sort the data. */ channel?: Maybe /** Sort vouchers by the selected field. */ field: VoucherSortField } export type VoucherTranslatableContent = Node & { __typename?: 'VoucherTranslatableContent' /** The ID of the object. */ id: Scalars['ID'] name?: Maybe /** Returns translated voucher fields for the given language code. */ translation?: Maybe /** 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?: Maybe } export type VoucherTranslatableContentTranslationArgs = { languageCode: LanguageCodeEnum } /** Creates/Updates translations for Voucher. */ export type VoucherTranslate = { __typename?: 'VoucherTranslate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ translationErrors: Array errors: Array voucher?: Maybe } export type VoucherTranslation = Node & { __typename?: 'VoucherTranslation' /** The ID of the object. */ id: Scalars['ID'] name?: Maybe /** Translation language. */ language: LanguageDisplay } export enum VoucherTypeEnum { Shipping = 'SHIPPING', EntireOrder = 'ENTIRE_ORDER', SpecificProduct = 'SPECIFIC_PRODUCT', } /** Updates a voucher. */ export type VoucherUpdate = { __typename?: 'VoucherUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ discountErrors: Array errors: Array voucher?: Maybe } /** Represents warehouse. */ export type Warehouse = Node & ObjectWithMetadata & { __typename?: 'Warehouse' /** The ID of the object. */ id: Scalars['ID'] name: Scalars['String'] slug: Scalars['String'] companyName: Scalars['String'] shippingZones: ShippingZoneCountableConnection address: Address email: Scalars['String'] /** List of private metadata items.Requires proper staff permissions to access. */ privateMetadata: Array> /** List of public metadata items. Can be accessed without permissions. */ metadata: Array> } /** Represents warehouse. */ export type WarehouseShippingZonesArgs = { before?: Maybe after?: Maybe first?: Maybe last?: Maybe } export type WarehouseAddressInput = { /** Address. */ streetAddress1: Scalars['String'] /** Address. */ streetAddress2?: Maybe /** City. */ city: Scalars['String'] /** District. */ cityArea?: Maybe /** Postal code. */ postalCode?: Maybe /** Country. */ country: CountryCode /** State or province. */ countryArea?: Maybe /** Phone number. */ phone?: Maybe } export type WarehouseCountableConnection = { __typename?: 'WarehouseCountableConnection' /** Pagination data for this connection. */ pageInfo: PageInfo edges: Array /** A total count of items in the collection. */ totalCount?: Maybe } export type WarehouseCountableEdge = { __typename?: 'WarehouseCountableEdge' /** The item at the end of the edge. */ node: Warehouse /** A cursor for use in pagination. */ cursor: Scalars['String'] } /** Creates new warehouse. */ export type WarehouseCreate = { __typename?: 'WarehouseCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ warehouseErrors: Array errors: Array warehouse?: Maybe } export type WarehouseCreateInput = { /** Warehouse slug. */ slug?: Maybe /** Company name. */ companyName?: Maybe /** The email address of the warehouse. */ email?: Maybe /** Warehouse name. */ name: Scalars['String'] /** Address of the warehouse. */ address: WarehouseAddressInput /** Shipping zones supported by the warehouse. */ shippingZones?: Maybe>> } /** Deletes selected warehouse. */ export type WarehouseDelete = { __typename?: 'WarehouseDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ warehouseErrors: Array errors: Array warehouse?: Maybe } export type WarehouseError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: WarehouseErrorCode } /** An enumeration. */ export enum WarehouseErrorCode { AlreadyExists = 'ALREADY_EXISTS', GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', } export type WarehouseFilterInput = { search?: Maybe ids?: Maybe>> } /** Add shipping zone to given warehouse. */ export type WarehouseShippingZoneAssign = { __typename?: 'WarehouseShippingZoneAssign' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ warehouseErrors: Array errors: Array warehouse?: Maybe } /** Remove shipping zone from given warehouse. */ export type WarehouseShippingZoneUnassign = { __typename?: 'WarehouseShippingZoneUnassign' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ warehouseErrors: Array errors: Array warehouse?: Maybe } export enum WarehouseSortField { /** Sort warehouses by name. */ Name = 'NAME', } export type WarehouseSortingInput = { /** Specifies the direction in which to sort products. */ direction: OrderDirection /** Sort warehouses by the selected field. */ field: WarehouseSortField } /** Updates given warehouse. */ export type WarehouseUpdate = { __typename?: 'WarehouseUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ warehouseErrors: Array errors: Array warehouse?: Maybe } export type WarehouseUpdateInput = { /** Warehouse slug. */ slug?: Maybe /** Company name. */ companyName?: Maybe /** The email address of the warehouse. */ email?: Maybe /** Warehouse name. */ name?: Maybe /** Address of the warehouse. */ address?: Maybe } /** Webhook. */ export type Webhook = Node & { __typename?: 'Webhook' name: Scalars['String'] targetUrl: Scalars['String'] isActive: Scalars['Boolean'] secretKey?: Maybe /** The ID of the object. */ id: Scalars['ID'] /** List of webhook events. */ events: Array app: App } /** Creates a new webhook subscription. */ export type WebhookCreate = { __typename?: 'WebhookCreate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ webhookErrors: Array errors: Array webhook?: Maybe } export type WebhookCreateInput = { /** The name of the webhook. */ name?: Maybe /** The url to receive the payload. */ targetUrl?: Maybe /** The events that webhook wants to subscribe. */ events?: Maybe>> /** ID of the app to which webhook belongs. */ app?: Maybe /** Determine if webhook will be set active or not. */ isActive?: Maybe /** The secret key used to create a hash signature with each payload. */ secretKey?: Maybe } /** Deletes a webhook subscription. */ export type WebhookDelete = { __typename?: 'WebhookDelete' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ webhookErrors: Array errors: Array webhook?: Maybe } export type WebhookError = { __typename?: '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?: Maybe /** The error message. */ message?: Maybe /** The error code. */ code: WebhookErrorCode } /** An enumeration. */ export enum WebhookErrorCode { GraphqlError = 'GRAPHQL_ERROR', Invalid = 'INVALID', NotFound = 'NOT_FOUND', Required = 'REQUIRED', Unique = 'UNIQUE', } /** Webhook event. */ export type WebhookEvent = { __typename?: 'WebhookEvent' /** Internal name of the event type. */ eventType: WebhookEventTypeEnum /** Display name of the event. */ name: Scalars['String'] } /** Enum determining type of webhook. */ export enum WebhookEventTypeEnum { /** All the events. */ AnyEvents = 'ANY_EVENTS', /** A new order is placed. */ OrderCreated = 'ORDER_CREATED', /** 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. */ OrderConfirmed = 'ORDER_CONFIRMED', /** Payment is made and an order is fully paid. */ OrderFullyPaid = 'ORDER_FULLY_PAID', /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ OrderUpdated = 'ORDER_UPDATED', /** An order is cancelled. */ OrderCancelled = 'ORDER_CANCELLED', /** An order is fulfilled. */ OrderFulfilled = 'ORDER_FULFILLED', /** An invoice for order requested. */ InvoiceRequested = 'INVOICE_REQUESTED', /** An invoice is deleted. */ InvoiceDeleted = 'INVOICE_DELETED', /** Invoice has been sent. */ InvoiceSent = 'INVOICE_SENT', /** A new customer account is created. */ CustomerCreated = 'CUSTOMER_CREATED', /** A customer account is updated. */ CustomerUpdated = 'CUSTOMER_UPDATED', /** A new product is created. */ ProductCreated = 'PRODUCT_CREATED', /** A product is updated. */ ProductUpdated = 'PRODUCT_UPDATED', /** A product is deleted. */ ProductDeleted = 'PRODUCT_DELETED', /** A new product variant is created. */ ProductVariantCreated = 'PRODUCT_VARIANT_CREATED', /** A product variant is updated. */ ProductVariantUpdated = 'PRODUCT_VARIANT_UPDATED', /** A product variant is deleted. */ ProductVariantDeleted = 'PRODUCT_VARIANT_DELETED', /** A new checkout is created. */ CheckoutCreated = 'CHECKOUT_CREATED', /** A checkout is updated. It also triggers all updates related to the checkout. */ CheckoutUpdated = 'CHECKOUT_UPDATED', /** A new fulfillment is created. */ FulfillmentCreated = 'FULFILLMENT_CREATED', /** User notification triggered. */ NotifyUser = 'NOTIFY_USER', /** A new page is created. */ PageCreated = 'PAGE_CREATED', /** A page is updated. */ PageUpdated = 'PAGE_UPDATED', /** A page is deleted. */ PageDeleted = 'PAGE_DELETED', } /** An enumeration. */ export enum WebhookSampleEventTypeEnum { OrderCreated = 'ORDER_CREATED', OrderConfirmed = 'ORDER_CONFIRMED', OrderFullyPaid = 'ORDER_FULLY_PAID', OrderUpdated = 'ORDER_UPDATED', OrderCancelled = 'ORDER_CANCELLED', OrderFulfilled = 'ORDER_FULFILLED', InvoiceRequested = 'INVOICE_REQUESTED', InvoiceDeleted = 'INVOICE_DELETED', InvoiceSent = 'INVOICE_SENT', CustomerCreated = 'CUSTOMER_CREATED', CustomerUpdated = 'CUSTOMER_UPDATED', ProductCreated = 'PRODUCT_CREATED', ProductUpdated = 'PRODUCT_UPDATED', ProductDeleted = 'PRODUCT_DELETED', ProductVariantCreated = 'PRODUCT_VARIANT_CREATED', ProductVariantUpdated = 'PRODUCT_VARIANT_UPDATED', ProductVariantDeleted = 'PRODUCT_VARIANT_DELETED', CheckoutCreated = 'CHECKOUT_CREATED', CheckoutUpdated = 'CHECKOUT_UPDATED', FulfillmentCreated = 'FULFILLMENT_CREATED', NotifyUser = 'NOTIFY_USER', PageCreated = 'PAGE_CREATED', PageUpdated = 'PAGE_UPDATED', PageDeleted = 'PAGE_DELETED', } /** Updates a webhook subscription. */ export type WebhookUpdate = { __typename?: 'WebhookUpdate' /** @deprecated Use errors field instead. This field will be removed in Saleor 4.0. */ webhookErrors: Array errors: Array webhook?: Maybe } export type WebhookUpdateInput = { /** The new name of the webhook. */ name?: Maybe /** The url to receive the payload. */ targetUrl?: Maybe /** The events that webhook wants to subscribe. */ events?: Maybe>> /** ID of the app to which webhook belongs. */ app?: Maybe /** Determine if webhook will be set active or not. */ isActive?: Maybe /** Use to create a hash signature with each payload. */ secretKey?: Maybe } /** Represents weight value in a specific weight unit. */ export type Weight = { __typename?: 'Weight' /** Weight unit. */ unit: WeightUnitsEnum /** Weight value. */ value: Scalars['Float'] } /** An enumeration. */ export enum WeightUnitsEnum { G = 'G', Lb = 'LB', Oz = 'OZ', Kg = 'KG', Tonne = 'TONNE', } export type _Entity = | Address | User | Group | App | ProductVariant | Product | ProductType | Collection | Category | ProductMedia | ProductImage | PageType export type _Service = { __typename?: '_Service' sdl?: Maybe } export type GetAllProductPathsQueryVariables = Exact<{ first?: Maybe cursor?: Maybe channel?: Maybe }> export type GetAllProductPathsQuery = { __typename?: 'Query' } & { products?: Maybe< { __typename?: 'ProductCountableConnection' } & { pageInfo: { __typename?: 'PageInfo' } & Pick edges: Array< { __typename?: 'ProductCountableEdge' } & Pick & { node: { __typename?: 'Product' } & Pick } > } > } export type ProductConnectionFragment = { __typename?: 'ProductCountableConnection' } & { pageInfo: { __typename?: 'PageInfo' } & Pick edges: Array< { __typename?: 'ProductCountableEdge' } & { node: { __typename?: 'Product' } & Pick & { pricing?: Maybe< { __typename?: 'ProductPricingInfo' } & { priceRange?: Maybe< { __typename?: 'TaxedMoneyRange' } & { start?: Maybe< { __typename?: 'TaxedMoney' } & { net: { __typename?: 'Money' } & Pick } > } > } > media?: Maybe>> } } > } export type GetAllProductsQueryVariables = Exact<{ first?: Maybe filter?: Maybe sortBy?: Maybe channel?: Maybe }> export type GetAllProductsQuery = { __typename?: 'Query' } & { products?: Maybe<{ __typename?: 'ProductCountableConnection' } & ProductConnectionFragment> }