From a67dadd64c8689e1c3c86d709860bcc6ba3ecfd9 Mon Sep 17 00:00:00 2001 From: Lukasz Ostrowski Date: Mon, 23 Feb 2026 22:21:21 +0100 Subject: [PATCH] Changed graphql->typescript codegen to treeshake types --- codegen-main.ts | 16 +- codegen-staging.ts | 16 +- package.json | 1 + pnpm-lock.yaml | 80 + src/graphql/types.generated.ts | 19516 +++++++++++------------- src/graphql/typesStaging.generated.ts | 10082 ++---------- 6 files changed, 10180 insertions(+), 19531 deletions(-) diff --git a/codegen-main.ts b/codegen-main.ts index b2ee9c7d07d..d1acebd95e1 100644 --- a/codegen-main.ts +++ b/codegen-main.ts @@ -1,4 +1,4 @@ -import { CodegenConfig } from "@graphql-codegen/cli"; +import { type CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { schema: "./schema-main.graphql", @@ -25,7 +25,19 @@ const config: CodegenConfig = { plugins: ["typescript-apollo-client-helpers"], }, "./src/graphql/types.generated.ts": { - plugins: ["typescript", "typescript-operations"], + plugins: [ + { + "typescript-operations": { + preResolveTypes: true, + omitObjectTypes: true, + }, + }, + { + "graphql-codegen-typescript-operation-types": { + enumsAsTypes: true, + }, + }, + ], config: { scalars: { Day: "number", diff --git a/codegen-staging.ts b/codegen-staging.ts index 532511d505a..a08f2a548d9 100644 --- a/codegen-staging.ts +++ b/codegen-staging.ts @@ -1,4 +1,4 @@ -import { CodegenConfig } from "@graphql-codegen/cli"; +import { type CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { schema: "./schema-staging.graphql", @@ -21,7 +21,19 @@ const config: CodegenConfig = { plugins: ["typescript-apollo-client-helpers"], }, "./src/graphql/typesStaging.generated.ts": { - plugins: ["typescript", "typescript-operations"], + plugins: [ + { + "typescript-operations": { + preResolveTypes: true, + omitObjectTypes: true, + }, + }, + { + "graphql-codegen-typescript-operation-types": { + enumsAsTypes: true, + }, + }, + ], config: { nonOptionalTypename: true, avoidOptionals: { diff --git a/package.json b/package.json index 03ed063a004..2df367329d8 100644 --- a/package.json +++ b/package.json @@ -201,6 +201,7 @@ "eslint-plugin-unused-imports": "^4.3.0", "front-matter": "^4.0.2", "globals": "^16.5.0", + "graphql-codegen-typescript-operation-types": "2.0.2", "graphql-config": "^5.1.5", "html-to-react": "^1.7.0", "identity-obj-proxy": "^3.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7834f8c2e17..b6a6b8da5df 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -438,6 +438,9 @@ importers: globals: specifier: ^16.5.0 version: 16.5.0 + graphql-codegen-typescript-operation-types: + specifier: 2.0.2 + version: 2.0.2(graphql@16.11.0) graphql-config: specifier: ^5.1.5 version: 5.1.5(@types/node@20.19.32)(graphql@16.11.0)(typescript@5.8.3) @@ -2385,6 +2388,14 @@ packages: peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + "@graphql-codegen/schema-ast@4.1.0": + resolution: + { + integrity: sha512-kZVn0z+th9SvqxfKYgztA6PM7mhnSZaj4fiuBWvMTqA+QqQ9BBed6Pz41KuD/jr0gJtnlr2A4++/0VlpVbCTmQ==, + } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + "@graphql-codegen/typescript-apollo-client-helpers@2.2.6": resolution: { @@ -2418,6 +2429,15 @@ packages: peerDependencies: graphql: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + "@graphql-codegen/typescript@4.1.6": + resolution: + { + integrity: sha512-vpw3sfwf9A7S+kIUjyFxuvrywGxd4lmwmyYnnDVjVE4kSQ6Td3DpqaPTy8aNQ6O96vFoi/bxbZS2BW49PwSUUA==, + } + engines: { node: ">=16" } + peerDependencies: + graphql: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + "@graphql-codegen/visitor-plugin-common@2.13.1": resolution: { @@ -2442,6 +2462,15 @@ packages: peerDependencies: graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + "@graphql-codegen/visitor-plugin-common@5.8.0": + resolution: + { + integrity: sha512-lC1E1Kmuzi3WZUlYlqB4fP6+CvbKH9J+haU1iWmgsBx5/sO2ROeXJG4Dmt8gP03bI2BwjiwV5WxCEMlyeuzLnA==, + } + engines: { node: ">=16" } + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + "@graphql-eslint/eslint-plugin@4.4.0": resolution: { @@ -8736,6 +8765,15 @@ packages: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + graphql-codegen-typescript-operation-types@2.0.2: + resolution: + { + integrity: sha512-qEqV3WloTfj7Tvl4B1WD9pn2ewYxoZS8mzdV9w0/wdIcR9XlFmjJygxEGM0Gll1cTEayKGWMK7qarbRQMn+mGg==, + } + engines: { node: ">=16" } + peerDependencies: + graphql: ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + graphql-config@4.5.0: resolution: { @@ -15100,6 +15138,13 @@ snapshots: graphql: 16.11.0 tslib: 2.4.1 + "@graphql-codegen/schema-ast@4.1.0(graphql@16.11.0)": + dependencies: + "@graphql-codegen/plugin-helpers": 5.1.1(graphql@16.11.0) + "@graphql-tools/utils": 10.11.0(graphql@16.11.0) + graphql: 16.11.0 + tslib: 2.6.3 + "@graphql-codegen/typescript-apollo-client-helpers@2.2.6(graphql@16.11.0)": dependencies: "@graphql-codegen/plugin-helpers": 2.7.2(graphql@16.11.0) @@ -15149,6 +15194,17 @@ snapshots: - encoding - supports-color + "@graphql-codegen/typescript@4.1.6(graphql@16.11.0)": + dependencies: + "@graphql-codegen/plugin-helpers": 5.1.1(graphql@16.11.0) + "@graphql-codegen/schema-ast": 4.1.0(graphql@16.11.0) + "@graphql-codegen/visitor-plugin-common": 5.8.0(graphql@16.11.0) + auto-bind: 4.0.0 + graphql: 16.11.0 + tslib: 2.6.3 + transitivePeerDependencies: + - encoding + "@graphql-codegen/visitor-plugin-common@2.13.1(graphql@16.11.0)": dependencies: "@graphql-codegen/plugin-helpers": 2.7.2(graphql@16.11.0) @@ -15199,6 +15255,22 @@ snapshots: transitivePeerDependencies: - encoding + "@graphql-codegen/visitor-plugin-common@5.8.0(graphql@16.11.0)": + dependencies: + "@graphql-codegen/plugin-helpers": 5.1.1(graphql@16.11.0) + "@graphql-tools/optimize": 2.0.0(graphql@16.11.0) + "@graphql-tools/relay-operation-optimizer": 7.0.27(graphql@16.11.0) + "@graphql-tools/utils": 10.11.0(graphql@16.11.0) + auto-bind: 4.0.0 + change-case-all: 1.0.15 + dependency-graph: 0.11.0 + graphql: 16.11.0 + graphql-tag: 2.12.6(graphql@16.11.0) + parse-filepath: 1.0.2 + tslib: 2.6.3 + transitivePeerDependencies: + - encoding + "@graphql-eslint/eslint-plugin@4.4.0(@types/node@20.19.32)(eslint@9.39.2(jiti@2.6.1))(graphql@16.11.0)(typescript@5.8.3)": dependencies: "@graphql-tools/code-file-loader": 8.1.28(graphql@16.11.0) @@ -19930,6 +20002,14 @@ snapshots: - graphql-ws - react-is + graphql-codegen-typescript-operation-types@2.0.2(graphql@16.11.0): + dependencies: + "@graphql-codegen/plugin-helpers": 5.1.1(graphql@16.11.0) + "@graphql-codegen/typescript": 4.1.6(graphql@16.11.0) + graphql: 16.11.0 + transitivePeerDependencies: + - encoding + graphql-config@4.5.0(@types/node@20.19.32)(graphql@16.11.0): dependencies: "@graphql-tools/graphql-file-loader": 7.5.17(graphql@16.11.0) diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index 3e52eaf140f..4063488e323 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -3,12805 +3,10691 @@ export type InputMaybe = Maybe; 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: string; - /** - * The `DateTime` scalar type represents a DateTime - * value as specified by - * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). - */ - DateTime: any; - /** The `Day` scalar type represents number of days by integer value. */ - Day: number; - /** - * Custom Decimal implementation. - * - * Returns Decimal as a float in the API, - * parses float to the Decimal on the way back. - */ - Decimal: any; - /** - * The `GenericScalar` scalar type represents a generic - * GraphQL scalar value that could be: - * String, Boolean, Int, Float, List or Object. - */ - GenericScalar: any; - /** The `Hour` scalar type represents number of hours by integer value. */ - Hour: number; - JSON: any; - JSONString: any; - /** - * Metadata is a map of key-value pairs, both keys and values are `String`. - * - * Example: - * ``` - * { - * "key1": "value1", - * "key2": "value2" - * } - * ``` - */ - Metadata: any; - /** The `Minute` scalar type represents number of minutes by integer value. */ - Minute: any; - /** - * Nonnegative Decimal scalar implementation. - * - * Should be used in places where value must be nonnegative (0 or greater). - */ - PositiveDecimal: any; - /** - * Positive Integer scalar implementation. - * - * Should be used in places where value must be positive (greater than 0). - */ - PositiveInt: 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; - /** _Any value scalar as defined by Federation spec. */ - _Any: any; -}; - -export enum AccountErrorCode { - ACCOUNT_NOT_CONFIRMED = 'ACCOUNT_NOT_CONFIRMED', - ACTIVATE_OWN_ACCOUNT = 'ACTIVATE_OWN_ACCOUNT', - ACTIVATE_SUPERUSER_ACCOUNT = 'ACTIVATE_SUPERUSER_ACCOUNT', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - DEACTIVATE_OWN_ACCOUNT = 'DEACTIVATE_OWN_ACCOUNT', - DEACTIVATE_SUPERUSER_ACCOUNT = 'DEACTIVATE_SUPERUSER_ACCOUNT', - DELETE_NON_STAFF_USER = 'DELETE_NON_STAFF_USER', - DELETE_OWN_ACCOUNT = 'DELETE_OWN_ACCOUNT', - DELETE_STAFF_ACCOUNT = 'DELETE_STAFF_ACCOUNT', - DELETE_SUPERUSER_ACCOUNT = 'DELETE_SUPERUSER_ACCOUNT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INACTIVE = 'INACTIVE', - INVALID = 'INVALID', - INVALID_CREDENTIALS = 'INVALID_CREDENTIALS', - INVALID_PASSWORD = 'INVALID_PASSWORD', - JWT_DECODE_ERROR = 'JWT_DECODE_ERROR', - JWT_INVALID_CSRF_TOKEN = 'JWT_INVALID_CSRF_TOKEN', - JWT_INVALID_TOKEN = 'JWT_INVALID_TOKEN', - JWT_MISSING_TOKEN = 'JWT_MISSING_TOKEN', - JWT_SIGNATURE_EXPIRED = 'JWT_SIGNATURE_EXPIRED', - LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', - LOGIN_ATTEMPT_DELAYED = 'LOGIN_ATTEMPT_DELAYED', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', - NOT_FOUND = 'NOT_FOUND', - OUT_OF_SCOPE_GROUP = 'OUT_OF_SCOPE_GROUP', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', - OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', - PASSWORD_ENTIRELY_NUMERIC = 'PASSWORD_ENTIRELY_NUMERIC', - PASSWORD_RESET_ALREADY_REQUESTED = 'PASSWORD_RESET_ALREADY_REQUESTED', - PASSWORD_TOO_COMMON = 'PASSWORD_TOO_COMMON', - PASSWORD_TOO_SHORT = 'PASSWORD_TOO_SHORT', - PASSWORD_TOO_SIMILAR = 'PASSWORD_TOO_SIMILAR', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - UNKNOWN_IP_ADDRESS = 'UNKNOWN_IP_ADDRESS' -} - -/** Fields required to update the user. */ -export type AccountInput = { - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; -}; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +export type AttributeBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -/** Fields required to create a user. */ -export type AccountRegisterInput = { - /** Slug of a channel which will be used to notify users. Optional when only one channel exists. */ - channel?: InputMaybe; - /** The email address of the user. */ - email: Scalars['String']; - /** Given name. */ - firstName?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * User public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Password. */ - password: Scalars['String']; - /** Base of frontend URL that will be needed to create confirmation URL. Required when account confirmation is enabled. */ - redirectUrl?: InputMaybe; -}; -/** Filtering options for addresses. */ -export type AddressFilterInput = { - country?: InputMaybe; - phoneNumber?: InputMaybe; -}; +export type AttributeBulkDeleteMutation = { __typename: 'Mutation', attributeBulkDelete: { __typename: 'AttributeBulkDelete', errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; -export type AddressInput = { - /** City. */ - city?: InputMaybe; - /** District. */ - cityArea?: InputMaybe; - /** Company or organization. */ - companyName?: InputMaybe; - /** Country. */ - country?: InputMaybe; - /** State or province. */ - countryArea?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Address public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Phone number. - * - * Phone numbers are validated with Google's [libphonenumber](https://github.com/google/libphonenumber) library. - */ - phone?: InputMaybe; - /** Postal code. */ - postalCode?: InputMaybe; - /** - * Determine if the address should be validated. By default, Saleor accepts only address inputs matching ruleset from [Google Address Data]{https://chromium-i18n.appspot.com/ssl-address), using [i18naddress](https://github.com/mirumee/google-i18n-address) library. Some mutations may require additional permissions to use the the field. More info about permissions can be found in relevant mutation. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - skipValidation?: InputMaybe; - /** Address. */ - streetAddress1?: InputMaybe; - /** Address. */ - streetAddress2?: InputMaybe; -}; +export type AttributeDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export enum AddressTypeEnum { - BILLING = 'BILLING', - SHIPPING = 'SHIPPING' -} -/** - * Determine the allocation strategy for the channel. - * - * PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order - * within the channel - * - * PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock - */ -export enum AllocationStrategyEnum { - PRIORITIZE_HIGH_STOCK = 'PRIORITIZE_HIGH_STOCK', - PRIORITIZE_SORTING_ORDER = 'PRIORITIZE_SORTING_ORDER' -} - -export enum AppErrorCode { - FORBIDDEN = 'FORBIDDEN', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS', - INVALID_MANIFEST_FORMAT = 'INVALID_MANIFEST_FORMAT', - INVALID_PERMISSION = 'INVALID_PERMISSION', - INVALID_STATUS = 'INVALID_STATUS', - INVALID_URL_FORMAT = 'INVALID_URL_FORMAT', - MANIFEST_URL_CANT_CONNECT = 'MANIFEST_URL_CANT_CONNECT', - NOT_FOUND = 'NOT_FOUND', - OUT_OF_SCOPE_APP = 'OUT_OF_SCOPE_APP', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - UNSUPPORTED_SALEOR_VERSION = 'UNSUPPORTED_SALEOR_VERSION' -} +export type AttributeDeleteMutation = { __typename: 'Mutation', attributeDelete: { __typename: 'AttributeDelete', errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; -export type AppExtensionFilterInput = { - /** - * DEPRECATED: Use `mountName` instead. - * @deprecated Field no longer supported - */ - mount?: InputMaybe>; - /** - * Plain-text mount name (case insensitive) - * - * Added in Saleor 3.22. - */ - mountName?: InputMaybe>; - /** - * DEPRECATED: Use `targetName` instead. - * @deprecated Field no longer supported - */ - target?: InputMaybe; - /** - * Plain-text target name (case insensitive) - * - * Added in Saleor 3.22. - */ - targetName?: InputMaybe; -}; +export type AttributeUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: AttributeUpdateInput; +}>; -/** All places where app extension can be mounted. */ -export enum AppExtensionMountEnum { - CATEGORY_DETAILS_MORE_ACTIONS = 'CATEGORY_DETAILS_MORE_ACTIONS', - CATEGORY_OVERVIEW_CREATE = 'CATEGORY_OVERVIEW_CREATE', - CATEGORY_OVERVIEW_MORE_ACTIONS = 'CATEGORY_OVERVIEW_MORE_ACTIONS', - COLLECTION_DETAILS_MORE_ACTIONS = 'COLLECTION_DETAILS_MORE_ACTIONS', - COLLECTION_DETAILS_WIDGETS = 'COLLECTION_DETAILS_WIDGETS', - COLLECTION_OVERVIEW_CREATE = 'COLLECTION_OVERVIEW_CREATE', - COLLECTION_OVERVIEW_MORE_ACTIONS = 'COLLECTION_OVERVIEW_MORE_ACTIONS', - CUSTOMER_DETAILS_MORE_ACTIONS = 'CUSTOMER_DETAILS_MORE_ACTIONS', - CUSTOMER_DETAILS_WIDGETS = 'CUSTOMER_DETAILS_WIDGETS', - CUSTOMER_OVERVIEW_CREATE = 'CUSTOMER_OVERVIEW_CREATE', - CUSTOMER_OVERVIEW_MORE_ACTIONS = 'CUSTOMER_OVERVIEW_MORE_ACTIONS', - DISCOUNT_DETAILS_MORE_ACTIONS = 'DISCOUNT_DETAILS_MORE_ACTIONS', - DISCOUNT_OVERVIEW_CREATE = 'DISCOUNT_OVERVIEW_CREATE', - DISCOUNT_OVERVIEW_MORE_ACTIONS = 'DISCOUNT_OVERVIEW_MORE_ACTIONS', - DRAFT_ORDER_DETAILS_MORE_ACTIONS = 'DRAFT_ORDER_DETAILS_MORE_ACTIONS', - DRAFT_ORDER_DETAILS_WIDGETS = 'DRAFT_ORDER_DETAILS_WIDGETS', - DRAFT_ORDER_OVERVIEW_CREATE = 'DRAFT_ORDER_OVERVIEW_CREATE', - DRAFT_ORDER_OVERVIEW_MORE_ACTIONS = 'DRAFT_ORDER_OVERVIEW_MORE_ACTIONS', - GIFT_CARD_DETAILS_MORE_ACTIONS = 'GIFT_CARD_DETAILS_MORE_ACTIONS', - GIFT_CARD_DETAILS_WIDGETS = 'GIFT_CARD_DETAILS_WIDGETS', - GIFT_CARD_OVERVIEW_CREATE = 'GIFT_CARD_OVERVIEW_CREATE', - GIFT_CARD_OVERVIEW_MORE_ACTIONS = 'GIFT_CARD_OVERVIEW_MORE_ACTIONS', - MENU_DETAILS_MORE_ACTIONS = 'MENU_DETAILS_MORE_ACTIONS', - MENU_OVERVIEW_CREATE = 'MENU_OVERVIEW_CREATE', - MENU_OVERVIEW_MORE_ACTIONS = 'MENU_OVERVIEW_MORE_ACTIONS', - NAVIGATION_CATALOG = 'NAVIGATION_CATALOG', - NAVIGATION_CUSTOMERS = 'NAVIGATION_CUSTOMERS', - NAVIGATION_DISCOUNTS = 'NAVIGATION_DISCOUNTS', - NAVIGATION_ORDERS = 'NAVIGATION_ORDERS', - NAVIGATION_PAGES = 'NAVIGATION_PAGES', - NAVIGATION_TRANSLATIONS = 'NAVIGATION_TRANSLATIONS', - ORDER_DETAILS_MORE_ACTIONS = 'ORDER_DETAILS_MORE_ACTIONS', - ORDER_DETAILS_WIDGETS = 'ORDER_DETAILS_WIDGETS', - ORDER_OVERVIEW_CREATE = 'ORDER_OVERVIEW_CREATE', - ORDER_OVERVIEW_MORE_ACTIONS = 'ORDER_OVERVIEW_MORE_ACTIONS', - PAGE_DETAILS_MORE_ACTIONS = 'PAGE_DETAILS_MORE_ACTIONS', - PAGE_OVERVIEW_CREATE = 'PAGE_OVERVIEW_CREATE', - PAGE_OVERVIEW_MORE_ACTIONS = 'PAGE_OVERVIEW_MORE_ACTIONS', - PAGE_TYPE_DETAILS_MORE_ACTIONS = 'PAGE_TYPE_DETAILS_MORE_ACTIONS', - PAGE_TYPE_OVERVIEW_CREATE = 'PAGE_TYPE_OVERVIEW_CREATE', - PAGE_TYPE_OVERVIEW_MORE_ACTIONS = 'PAGE_TYPE_OVERVIEW_MORE_ACTIONS', - PRODUCT_DETAILS_MORE_ACTIONS = 'PRODUCT_DETAILS_MORE_ACTIONS', - PRODUCT_DETAILS_WIDGETS = 'PRODUCT_DETAILS_WIDGETS', - PRODUCT_OVERVIEW_CREATE = 'PRODUCT_OVERVIEW_CREATE', - PRODUCT_OVERVIEW_MORE_ACTIONS = 'PRODUCT_OVERVIEW_MORE_ACTIONS', - TRANSLATIONS_MORE_ACTIONS = 'TRANSLATIONS_MORE_ACTIONS', - VOUCHER_DETAILS_MORE_ACTIONS = 'VOUCHER_DETAILS_MORE_ACTIONS', - VOUCHER_DETAILS_WIDGETS = 'VOUCHER_DETAILS_WIDGETS', - VOUCHER_OVERVIEW_CREATE = 'VOUCHER_OVERVIEW_CREATE', - VOUCHER_OVERVIEW_MORE_ACTIONS = 'VOUCHER_OVERVIEW_MORE_ACTIONS' -} -/** - * All available ways of opening an app extension. - * - * POPUP - app's extension will be mounted as a popup window - * APP_PAGE - redirect to app's page - */ -export enum AppExtensionTargetEnum { - APP_PAGE = 'APP_PAGE', - NEW_TAB = 'NEW_TAB', - POPUP = 'POPUP', - WIDGET = 'WIDGET' -} +export type AttributeUpdateMutation = { __typename: 'Mutation', attributeUpdate: { __typename: 'AttributeUpdate', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; -export type AppFilterInput = { - isActive?: InputMaybe; - search?: InputMaybe; - type?: InputMaybe; -}; +export type AttributeValueDeleteMutationVariables = Exact<{ + id: Scalars['ID']; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; +}>; -export type AppInput = { - /** - * Canonical app ID. If not provided, the identifier will be generated based on app.id. - * - * Added in Saleor 3.19. - */ - identifier?: InputMaybe; - /** Name of the app. */ - name?: InputMaybe; - /** List of permission code names to assign to this app. */ - permissions?: InputMaybe>; -}; -export type AppInstallInput = { - /** Determine if app will be set active or not. */ - activateAfterInstallation?: InputMaybe; - /** Name of the app to install. */ - appName?: InputMaybe; - /** URL to app's manifest in JSON format. */ - manifestUrl?: InputMaybe; - /** List of permission code names to assign to this app. */ - permissions?: InputMaybe>; -}; +export type AttributeValueDeleteMutation = { __typename: 'Mutation', attributeValueDelete: { __typename: 'AttributeValueDelete', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; -export enum AppSortField { - /** Sort apps by creation date. */ - CREATION_DATE = 'CREATION_DATE', - /** Sort apps by name. */ - NAME = 'NAME' -} +export type AttributeValueUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: AttributeValueUpdateInput; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; +}>; -export type AppSortingInput = { - /** Specifies the direction in which to sort apps. */ - direction: OrderDirection; - /** Sort apps by the selected field. */ - field: AppSortField; -}; -export type AppTokenInput = { - /** ID of app. */ - app: Scalars['ID']; - /** Name of the token. */ - name?: InputMaybe; -}; +export type AttributeValueUpdateMutation = { __typename: 'Mutation', attributeValueUpdate: { __typename: 'AttributeValueUpdate', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; -/** 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' -} - -export enum AreaUnitsEnum { - SQ_CM = 'SQ_CM', - SQ_DM = 'SQ_DM', - SQ_FT = 'SQ_FT', - SQ_INCH = 'SQ_INCH', - SQ_KM = 'SQ_KM', - SQ_M = 'SQ_M', - SQ_MM = 'SQ_MM', - SQ_YD = 'SQ_YD' -} +export type AttributeValueCreateMutationVariables = Exact<{ + id: Scalars['ID']; + input: AttributeValueCreateInput; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; +}>; -export type AssignedAttributeReferenceInput = { - /** Returns objects with a reference pointing to a category identified by the given slug. */ - categorySlugs?: InputMaybe; - /** Returns objects with a reference pointing to a collection identified by the given slug. */ - collectionSlugs?: InputMaybe; - /** Returns objects with a reference pointing to a page identified by the given slug. */ - pageSlugs?: InputMaybe; - /** Returns objects with a reference pointing to a product identified by the given slug. */ - productSlugs?: InputMaybe; - /** Returns objects with a reference pointing to a product variant identified by the given sku. */ - productVariantSkus?: InputMaybe; - /** Returns objects with a reference pointing to an object identified by the given ID. */ - referencedIds?: InputMaybe; -}; -export type AssignedAttributeValueInput = { - /** Filter by boolean value for attributes of boolean type. */ - boolean?: InputMaybe; - /** Filter by date value for attributes of date type. */ - date?: InputMaybe; - /** Filter by date time value for attributes of date time type. */ - dateTime?: InputMaybe; - /** Filter by name assigned to AttributeValue. */ - name?: InputMaybe; - /** Filter by numeric value for attributes of numeric type. */ - numeric?: InputMaybe; - /** Filter by reference attribute value. */ - reference?: InputMaybe; - /** Filter by slug assigned to AttributeValue. */ - slug?: InputMaybe; -}; +export type AttributeValueCreateMutation = { __typename: 'Mutation', attributeValueCreate: { __typename: 'AttributeValueCreate', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; -export type AssignedAttributeWhereInput = { - /** Filter by attribute slug. */ - slug?: InputMaybe; - /** Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. */ - value?: InputMaybe; -}; +export type AttributeCreateMutationVariables = Exact<{ + input: AttributeCreateInput; +}>; -export enum AttributeBulkCreateErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - BLANK = 'BLANK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LENGTH = 'MAX_LENGTH', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type AttributeBulkTranslateInput = { - /** External reference of an attribute. */ - externalReference?: InputMaybe; - /** Attribute ID. */ - id?: InputMaybe; - /** Translation language code. */ - languageCode: LanguageCodeEnum; - /** Translation fields. */ - translationFields: NameTranslationInput; -}; - -export enum AttributeBulkUpdateErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - BLANK = 'BLANK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LENGTH = 'MAX_LENGTH', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type AttributeBulkUpdateInput = { - /** External ID of this attribute. */ - externalReference?: InputMaybe; - /** Fields to update. */ - fields: AttributeUpdateInput; - /** ID of an attribute to update. */ - id?: InputMaybe; -}; -export enum AttributeChoicesSortField { - /** Sort attribute choice by name. */ - NAME = 'NAME', - /** Sort attribute choice by slug. */ - SLUG = 'SLUG' -} +export type AttributeCreateMutation = { __typename: 'Mutation', attributeCreate: { __typename: 'AttributeCreate', attribute: { __typename: 'Attribute', id: string } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; -export type AttributeChoicesSortingInput = { - /** Specifies the direction in which to sort attribute choices. */ - direction: OrderDirection; - /** Sort attribute choices by the selected field. */ - field: AttributeChoicesSortField; -}; +export type AttributeValueReorderMutationVariables = Exact<{ + id: Scalars['ID']; + move: ReorderInput; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; +}>; -/** - * Represents an input for create of attribute. - * - * NOTE: Deprecated fields `filterableInStorefront`, `storefrontSearchPosition` and `availableInGrid` are not supported in bulk mutations: `attributeBulkCreate`, `attributeBulkUpdate`. - */ -export type AttributeCreateInput = { - /** - * Whether the attribute can be displayed in the admin product list. - * @deprecated Field no longer supported - */ - availableInGrid?: InputMaybe; - /** The entity type which can be used as a reference. */ - entityType?: InputMaybe; - /** External ID of this attribute. */ - externalReference?: InputMaybe; - /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; - /** - * Whether the attribute can be filtered in storefront. - * @deprecated Field no longer supported - */ - filterableInStorefront?: InputMaybe; - /** The input type to use for entering attribute values in the dashboard. */ - inputType?: InputMaybe; - /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; - /** Name of an attribute displayed in the interface. */ - name: Scalars['String']; - /** - * Specifies reference types to narrow down the choices of reference objects. Applicable only for `REFERENCE` and `SINGLE_REFERENCE` attributes with `PRODUCT`, `PRODUCT_VARIANT` and `PAGE` entity types. Accepts `ProductType` IDs for `PRODUCT` and `PRODUCT_VARIANT` entity types, and `PageType` IDs for `PAGE` entity type. If omitted, all objects of the selected entity type are available as attribute values. - * - * A maximum of 100 reference types can be specified. - * - * Added in Saleor 3.22. - */ - referenceTypes?: InputMaybe>; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** - * The position of the attribute in the storefront navigation (0 by default). - * @deprecated Field no longer supported - */ - storefrontSearchPosition?: InputMaybe; - /** The attribute type. */ - type: AttributeTypeEnum; - /** The unit of attribute values. */ - unit?: InputMaybe; - /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; - /** List of attribute's values. */ - values?: InputMaybe>; - /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; -}; -export enum AttributeEntityTypeEnum { - CATEGORY = 'CATEGORY', - COLLECTION = 'COLLECTION', - PAGE = 'PAGE', - PRODUCT = 'PRODUCT', - PRODUCT_VARIANT = 'PRODUCT_VARIANT' -} +export type AttributeValueReorderMutation = { __typename: 'Mutation', attributeReorderValues: { __typename: 'AttributeReorderValues', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string } }> } | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; -export type AttributeEntityTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; +export type AttributeDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; + searchValues?: InputMaybe; +}>; -export enum AttributeErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} -export type AttributeFilterInput = { - availableInGrid?: InputMaybe; - /** - * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - filterableInDashboard?: InputMaybe; - filterableInStorefront?: InputMaybe; - ids?: InputMaybe>; - inCategory?: InputMaybe; - inCollection?: InputMaybe; - isVariantOnly?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; - type?: InputMaybe; - valueRequired?: InputMaybe; - visibleInStorefront?: InputMaybe; -}; +export type AttributeDetailsQuery = { __typename: 'Query', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type AttributeInput = { - /** - * The boolean value of the attribute. Requires `slug` to be provided. - * @deprecated Use `value` instead. - */ - boolean?: InputMaybe; - /** - * The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. Requires `slug` to be provided. - * @deprecated Use `value` instead. - */ - date?: InputMaybe; - /** - * The date/time range that the returned values should be in. Requires `slug` to be provided. - * @deprecated Use `value` instead. - */ - dateTime?: InputMaybe; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. Cannot be combined with deprecated fields of `AttributeInput`. */ - value?: InputMaybe; - /** - * Slugs identifying the attributeValues associated with the Attribute. When specified, it filters the results to include only records with one of the matching values. Requires `slug` to be provided. - * @deprecated Use `value` instead. - */ - values?: InputMaybe>; - /** - * The range that the returned values should be in. Requires `slug` to be provided. - * @deprecated Use `value` instead. - */ - valuesRange?: InputMaybe; -}; +export type AttributeListQueryVariables = Exact<{ + filter?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sort?: InputMaybe; +}>; -export enum AttributeInputTypeEnum { - BOOLEAN = 'BOOLEAN', - DATE = 'DATE', - DATE_TIME = 'DATE_TIME', - DROPDOWN = 'DROPDOWN', - FILE = 'FILE', - MULTISELECT = 'MULTISELECT', - NUMERIC = 'NUMERIC', - PLAIN_TEXT = 'PLAIN_TEXT', - REFERENCE = 'REFERENCE', - RICH_TEXT = 'RICH_TEXT', - SINGLE_REFERENCE = 'SINGLE_REFERENCE', - SWATCH = 'SWATCH' -} - -export type AttributeInputTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; -export enum AttributeSortField { - /** Sort attributes based on whether they can be displayed or not in a product grid. */ - AVAILABLE_IN_GRID = 'AVAILABLE_IN_GRID', - /** Sort attributes by the filterable in dashboard flag */ - FILTERABLE_IN_DASHBOARD = 'FILTERABLE_IN_DASHBOARD', - /** Sort attributes by the filterable in storefront flag */ - FILTERABLE_IN_STOREFRONT = 'FILTERABLE_IN_STOREFRONT', - /** Sort attributes by the variant only flag */ - IS_VARIANT_ONLY = 'IS_VARIANT_ONLY', - /** Sort attributes by name */ - NAME = 'NAME', - /** Sort attributes by slug */ - SLUG = 'SLUG', - /** Sort attributes by their position in storefront */ - STOREFRONT_SEARCH_POSITION = 'STOREFRONT_SEARCH_POSITION', - /** Sort attributes by the value required flag */ - VALUE_REQUIRED = 'VALUE_REQUIRED', - /** Sort attributes by visibility in the storefront */ - VISIBLE_IN_STOREFRONT = 'VISIBLE_IN_STOREFRONT' -} +export type AttributeListQuery = { __typename: 'Query', attributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type AttributeSortingInput = { - /** Specifies the direction in which to sort attributes. */ - direction: OrderDirection; - /** Sort attributes by the selected field. */ - field: AttributeSortField; -}; +export type RequestPasswordResetMutationVariables = Exact<{ + email: Scalars['String']; + redirectUrl: Scalars['String']; +}>; -export enum AttributeTranslateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} -export enum AttributeTypeEnum { - PAGE_TYPE = 'PAGE_TYPE', - PRODUCT_TYPE = 'PRODUCT_TYPE' -} +export type RequestPasswordResetMutation = { __typename: 'Mutation', requestPasswordReset: { __typename: 'RequestPasswordReset', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; -export type AttributeTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; +export type AvailableExternalAuthenticationsQueryVariables = Exact<{ [key: string]: never; }>; -/** - * Represents an input for update of attribute. - * - * NOTE: Deprecated fields `filterableInStorefront`, `storefrontSearchPosition` and `availableInGrid` are not supported in bulk mutations: `attributeBulkCreate`, `attributeBulkUpdate`. - */ -export type AttributeUpdateInput = { - /** New values to be created for this attribute. */ - addValues?: InputMaybe>; - /** - * Whether the attribute can be displayed in the admin product list. - * @deprecated Field no longer supported - */ - availableInGrid?: InputMaybe; - /** External ID of this product. */ - externalReference?: InputMaybe; - /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; - /** - * Whether the attribute can be filtered in storefront. - * @deprecated Field no longer supported - */ - filterableInStorefront?: InputMaybe; - /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; - /** Name of an attribute displayed in the interface. */ - name?: InputMaybe; - /** - * Specifies reference types to narrow down the choices of reference objects. Applicable only for `REFERENCE` and `SINGLE_REFERENCE` attributes with `PRODUCT`, `PRODUCT_VARIANT` and `PAGE` entity types. Accepts `ProductType` IDs for `PRODUCT` and `PRODUCT_VARIANT` entity types, and `PageType` IDs for `PAGE` entity type. If omitted, all objects of the selected entity type are available as attribute values. - * - * A maximum of 100 reference types can be specified. - * - * Added in Saleor 3.22. - */ - referenceTypes?: InputMaybe>; - /** IDs of values to be removed from this attribute. */ - removeValues?: InputMaybe>; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** - * The position of the attribute in the storefront navigation (0 by default). - * @deprecated Field no longer supported - */ - storefrontSearchPosition?: InputMaybe; - /** The unit of attribute values. */ - unit?: InputMaybe; - /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; - /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; -}; -export type AttributeValueBulkTranslateInput = { - /** External reference of an attribute value. */ - externalReference?: InputMaybe; - /** Attribute value ID. */ - id?: InputMaybe; - /** Translation language code. */ - languageCode: LanguageCodeEnum; - /** Translation fields. */ - translationFields: AttributeValueTranslationInput; -}; +export type AvailableExternalAuthenticationsQuery = { __typename: 'Query', shop: { __typename: 'Shop', availableExternalAuthentications: Array<{ __typename: 'ExternalAuthentication', id: string, name: string | null }> } }; -export type AttributeValueCreateInput = { - /** File content type. */ - contentType?: InputMaybe; - /** External ID of this attribute value. */ - externalReference?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; - /** Name of a value displayed in the interface. */ - name: Scalars['String']; - /** - * Represents the text of the attribute value, plain text without formatting. - * @deprecated The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - plainText?: InputMaybe; - /** - * Represents the text of the attribute value, includes formatting. - * - * Rich text format. For reference see https://editorjs.io/ - * @deprecated The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - richText?: InputMaybe; - /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; -}; +export type UserDetailsQueryVariables = Exact<{ [key: string]: never; }>; -export type AttributeValueFilterInput = { - ids?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; -}; -export type AttributeValueInput = { - /** Represents the boolean value of the attribute value. */ - boolean?: InputMaybe; - /** File content type. */ - contentType?: InputMaybe; - /** Represents the date value of the attribute value. */ - date?: InputMaybe; - /** Represents the date/time value of the attribute value. */ - dateTime?: InputMaybe; - /** Attribute value ID or external reference. */ - dropdown?: InputMaybe; - /** External ID of this attribute. */ - externalReference?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - file?: InputMaybe; - /** ID of the selected attribute. */ - id?: InputMaybe; - /** List of attribute value IDs or external references. */ - multiselect?: InputMaybe>; - /** Numeric value of an attribute. */ - numeric?: InputMaybe; - /** Plain text content. */ - plainText?: InputMaybe; - /** - * ID of the referenced entity for single reference attribute. - * - * Added in Saleor 3.22. - */ - reference?: InputMaybe; - /** List of entity IDs that will be used as references. */ - references?: InputMaybe>; - /** Text content in JSON format. */ - richText?: InputMaybe; - /** Attribute value ID or external reference. */ - swatch?: InputMaybe; - /** - * The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. - * @deprecated Field no longer supported - */ - values?: InputMaybe>; -}; +export type UserDetailsQuery = { __typename: 'Query', me: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, isStaff: boolean, dateJoined: any, restrictedAccessToChannels: boolean, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null } | null }; -/** - * Represents attribute value. - * 1. If ID is provided, then attribute value will be resolved by ID. - * 2. If externalReference is provided, then attribute value will be resolved by external reference. - * 3. If value is provided, then attribute value will be resolved by value. If this attribute value doesn't exist, then it will be created. - * 4. If externalReference and value is provided then new attribute value will be created. - */ -export type AttributeValueSelectableTypeInput = { - /** External reference of an attribute value. */ - externalReference?: InputMaybe; - /** ID of an attribute value. */ - id?: InputMaybe; - /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ - value?: InputMaybe; -}; +export type CategoryDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export enum AttributeValueTranslateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} -export type AttributeValueTranslationInput = { - name?: InputMaybe; - /** Translated text. */ - plainText?: InputMaybe; - /** - * Translated text. - * - * Rich text format. For reference see https://editorjs.io/ - */ - richText?: InputMaybe; -}; +export type CategoryDeleteMutation = { __typename: 'Mutation', categoryDelete: { __typename: 'CategoryDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type AttributeValueUpdateInput = { - /** File content type. */ - contentType?: InputMaybe; - /** External ID of this attribute value. */ - externalReference?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; - /** Name of a value displayed in the interface. */ - name?: InputMaybe; - /** - * Represents the text of the attribute value, plain text without formatting. - * @deprecated The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - plainText?: InputMaybe; - /** - * Represents the text of the attribute value, includes formatting. - * - * Rich text format. For reference see https://editorjs.io/ - * @deprecated The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - richText?: InputMaybe; - /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; -}; +export type CategoryCreateMutationVariables = Exact<{ + parent?: InputMaybe; + input: CategoryInput; +}>; -/** Where filtering options for attribute values. */ -export type AttributeValueWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - ids?: InputMaybe>; - name?: InputMaybe; - slug?: InputMaybe; -}; -/** Where filtering options. */ -export type AttributeWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - entityType?: InputMaybe; - filterableInDashboard?: InputMaybe; - ids?: InputMaybe>; - inCategory?: InputMaybe; - inCollection?: InputMaybe; - inputType?: InputMaybe; - metadata?: InputMaybe>; - name?: InputMaybe; - slug?: InputMaybe; - type?: InputMaybe; - unit?: InputMaybe; - valueRequired?: InputMaybe; - visibleInStorefront?: InputMaybe; - withChoices?: InputMaybe; -}; +export type CategoryCreateMutation = { __typename: 'Mutation', categoryCreate: { __typename: 'CategoryCreate', category: { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type BulkAttributeValueInput = { - /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ - boolean?: InputMaybe; - /** File content type. */ - contentType?: InputMaybe; - /** Represents the date value of the attribute value. */ - date?: InputMaybe; - /** Represents the date/time value of the attribute value. */ - dateTime?: InputMaybe; - /** Attribute value ID. */ - dropdown?: InputMaybe; - /** External ID of this attribute. */ - externalReference?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - file?: InputMaybe; - /** ID of the selected attribute. */ - id?: InputMaybe; - /** List of attribute value IDs. */ - multiselect?: InputMaybe>; - /** Numeric value of an attribute. */ - numeric?: InputMaybe; - /** Plain text content. */ - plainText?: InputMaybe; - /** - * ID of the referenced entity for single reference attribute. - * - * Added in Saleor 3.22. - */ - reference?: InputMaybe; - /** List of entity IDs that will be used as references. */ - references?: InputMaybe>; - /** Text content in JSON format. */ - richText?: InputMaybe; - /** Attribute value ID. */ - swatch?: InputMaybe; - /** - * The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. - * @deprecated Field no longer supported - */ - values?: InputMaybe>; -}; - -export type CardInput = { - /** Payment method nonce, a token returned by the appropriate provider's SDK. */ - code: Scalars['String']; - /** Card security code. */ - cvc?: InputMaybe; - /** Information about currency and amount. */ - money: MoneyInput; -}; - -export type CardPaymentMethodDetailsInput = { - /** Brand of the payment method used for the transaction. Max length is 40 characters. */ - brand?: InputMaybe; - /** Expiration month of the card used for the transaction. Value must be between 1 and 12. */ - expMonth?: InputMaybe; - /** Expiration year of the card used for the transaction. Value must be between 2000 and 9999. */ - expYear?: InputMaybe; - /** First digits of the card used for the transaction. Max length is 4 characters. */ - firstDigits?: InputMaybe; - /** Last digits of the card used for the transaction. Max length is 4 characters. */ - lastDigits?: InputMaybe; - /** Name of the payment method used for the transaction. Max length is 256 characters. */ - name: Scalars['String']; -}; +export type CategoryUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: CategoryInput; +}>; -export type CatalogueInput = { - /** Categories related to the discount. */ - categories?: InputMaybe>; - /** Collections related to the discount. */ - collections?: InputMaybe>; - /** Products related to the discount. */ - products?: InputMaybe>; - /** Product variant related to the discount. */ - variants?: InputMaybe>; -}; -export type CataloguePredicateInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Defines the category conditions to be met. */ - categoryPredicate?: InputMaybe; - /** Defines the collection conditions to be met. */ - collectionPredicate?: InputMaybe; - /** Defines the product conditions to be met. */ - productPredicate?: InputMaybe; - /** Defines the product variant conditions to be met. */ - variantPredicate?: InputMaybe; -}; +export type CategoryUpdateMutation = { __typename: 'Mutation', categoryUpdate: { __typename: 'CategoryUpdate', category: { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type CategoryFilterInput = { - ids?: InputMaybe>; - metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; -}; +export type CategoryBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type CategoryInput = { - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for a product media. */ - backgroundImageAlt?: InputMaybe; - /** - * Category description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** - * Fields required to update the category metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Category name. */ - name?: InputMaybe; - /** - * Fields required to update the category private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Category slug. */ - slug?: InputMaybe; -}; -export enum CategorySortField { - /** Sort categories by name. */ - NAME = 'NAME', - /** Sort categories by product count. */ - PRODUCT_COUNT = 'PRODUCT_COUNT', - /** Sort categories by subcategory count. */ - SUBCATEGORY_COUNT = 'SUBCATEGORY_COUNT' -} +export type CategoryBulkDeleteMutation = { __typename: 'Mutation', categoryBulkDelete: { __typename: 'CategoryBulkDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type CategorySortingInput = { - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort categories. */ - direction: OrderDirection; - /** Sort categories by the selected field. */ - field: CategorySortField; -}; +export type RootCategoriesQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; +}>; -export type CategoryWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; -}; -export type ChannelCreateInput = { - /** List of shipping zones to assign to the channel. */ - addShippingZones?: InputMaybe>; - /** List of warehouses to assign to the channel. */ - addWarehouses?: InputMaybe>; - /** The channel checkout settings */ - checkoutSettings?: InputMaybe; - /** Currency of the channel. */ - currencyCode: Scalars['String']; - /** Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. */ - defaultCountry: CountryCode; - /** Determine if channel will be set active or not. */ - isActive?: InputMaybe; - /** - * Channel public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Name of the channel. */ - name: Scalars['String']; - /** The channel order settings */ - orderSettings?: InputMaybe; - /** The channel payment settings */ - paymentSettings?: InputMaybe; - /** - * Channel private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Slug of the channel. */ - slug: Scalars['String']; - /** The channel stock settings. */ - stockSettings?: InputMaybe; -}; +export type RootCategoriesQuery = { __typename: 'Query', categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, children: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ChannelDeleteInput = { - /** ID of a channel to migrate orders from the origin channel. Target channel has to have the same currency as the origin. */ - channelId: Scalars['ID']; -}; +export type CategoryDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; +}>; -export enum ChannelErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - CHANNELS_CURRENCY_MUST_BE_THE_SAME = 'CHANNELS_CURRENCY_MUST_BE_THE_SAME', - CHANNEL_WITH_ORDERS = 'CHANNEL_WITH_ORDERS', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} -export type ChannelListingUpdateInput = { - /** ID of a channel listing. */ - channelListing: Scalars['ID']; - /** Cost price of the variant in channel. */ - costPrice?: InputMaybe; - /** The threshold for preorder variant in channel. */ - preorderThreshold?: InputMaybe; - /** Price of the particular variant in channel. */ - price?: InputMaybe; - /** Price of the variant before discount. */ - priorPrice?: InputMaybe; -}; +export type CategoryDetailsQuery = { __typename: 'Query', category: { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, children: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, children: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, products: { __typename: 'ProductCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'ProductCountableEdge', cursor: string, node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null } }> } | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type ChannelUpdateInput = { - /** List of shipping zones to assign to the channel. */ - addShippingZones?: InputMaybe>; - /** List of warehouses to assign to the channel. */ - addWarehouses?: InputMaybe>; - /** The channel checkout settings */ - checkoutSettings?: InputMaybe; - /** Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. */ - defaultCountry?: InputMaybe; - /** Determine if channel will be set active or not. */ - isActive?: InputMaybe; - /** - * Channel public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Name of the channel. */ - name?: InputMaybe; - /** The channel order settings */ - orderSettings?: InputMaybe; - /** The channel payment settings */ - paymentSettings?: InputMaybe; - /** - * Channel private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** List of shipping zones to unassign from the channel. */ - removeShippingZones?: InputMaybe>; - /** List of warehouses to unassign from the channel. */ - removeWarehouses?: InputMaybe>; - /** Slug of the channel. */ - slug?: InputMaybe; - /** The channel stock settings. */ - stockSettings?: InputMaybe; -}; +export type ChannelCreateMutationVariables = Exact<{ + input: ChannelCreateInput; +}>; -export type CheckoutAddressValidationRules = { - /** Determines if an error should be raised when the provided address doesn't match the expected format. Example: using letters for postal code when the numbers are expected. */ - checkFieldsFormat?: InputMaybe; - /** Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input. */ - checkRequiredFields?: InputMaybe; - /** Determines if Saleor should apply normalization on address fields. Example: converting city field to uppercase letters. */ - enableFieldsNormalization?: InputMaybe; -}; -/** - * Determine a current authorize status for checkout. - * - * We treat the checkout as fully authorized when the sum of authorized and charged - * funds cover the checkout.total. - * We treat the checkout as partially authorized when the sum of authorized and charged - * funds covers only part of the checkout.total - * We treat the checkout as not authorized when the sum of authorized and charged funds - * is 0. - * - * NONE - the funds are not authorized - * PARTIAL - the cover funds don't cover fully the checkout's total - * FULL - the cover funds covers the checkout's total - */ -export enum CheckoutAuthorizeStatusEnum { - FULL = 'FULL', - NONE = 'NONE', - PARTIAL = 'PARTIAL' -} +export type ChannelCreateMutation = { __typename: 'Mutation', channelCreate: { __typename: 'ChannelCreate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; -export type CheckoutAutoCompleteInput = { - /** Specifies the earliest date on which fully paid checkouts can begin to be automatically completed. Fully paid checkouts dated before this cut-off will not be automatically completed. Must be less than the threshold of the oldest modified checkout eligible for automatic completion. Default is current date time. */ - cutOffDate?: InputMaybe; - /** The time in minutes after which the fully paid checkout will be automatically completed. Default is 30. Set to 0 for immediate completion. Should be less than the threshold for the oldest modified checkout eligible for automatic completion. */ - delay?: InputMaybe; - /** Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `charge_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. */ - enabled: Scalars['Boolean']; -}; +export type ChannelUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: ChannelUpdateInput; +}>; -/** - * Determine the current charge status for the checkout. - * - * The checkout is considered overcharged when the sum of the transactionItem's charge - * amounts exceeds the value of `checkout.total`. - * If the sum of the transactionItem's charge amounts equals - * `checkout.total`, we consider the checkout to be fully charged. - * If the sum of the transactionItem's charge amounts covers a part of the - * `checkout.total`, we treat the checkout as partially charged. - * - * - * NONE - the funds are not charged. - * PARTIAL - the funds that are charged don't cover the checkout's total - * FULL - the funds that are charged fully cover the checkout's total - * OVERCHARGED - the charged funds are bigger than checkout's total - */ -export enum CheckoutChargeStatusEnum { - FULL = 'FULL', - NONE = 'NONE', - OVERCHARGED = 'OVERCHARGED', - PARTIAL = 'PARTIAL' -} - -export enum CheckoutCreateFromOrderErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - ORDER_NOT_FOUND = 'ORDER_NOT_FOUND', - TAX_ERROR = 'TAX_ERROR' -} - -export enum CheckoutCreateFromOrderUnavailableVariantErrorCode { - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - NOT_FOUND = 'NOT_FOUND', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', - QUANTITY_GREATER_THAN_LIMIT = 'QUANTITY_GREATER_THAN_LIMIT', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL' -} - -export type CheckoutCreateInput = { - /** Billing address of the customer. `skipValidation` requires HANDLE_CHECKOUTS and AUTHENTICATED_APP permissions. */ - billingAddress?: InputMaybe; - /** Slug of a channel in which to create a checkout. */ - channel?: InputMaybe; - /** The customer's email address. */ - email?: InputMaybe; - /** Checkout language code. */ - languageCode?: InputMaybe; - /** A list of checkout lines, each containing information about an item in the checkout. */ - lines: Array; - /** - * Checkout public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - * - * Added in Saleor 3.21. - */ - metadata?: InputMaybe>; - /** - * Checkout private metadata. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_CHECKOUTS - * - * Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - * - * Added in Saleor 3.21. - */ - privateMetadata?: InputMaybe>; - /** - * Indicates whether the billing address should be saved to the user’s address book upon checkout completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to save the address. - * - * Added in Saleor 3.21. - */ - saveBillingAddress?: InputMaybe; - /** - * Indicates whether the shipping address should be saved to the user’s address book upon checkout completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to save the address. - * - * Added in Saleor 3.21. - */ - saveShippingAddress?: InputMaybe; - /** The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn't contain shippable items. `skipValidation` requires HANDLE_CHECKOUTS and AUTHENTICATED_APP permissions. */ - shippingAddress?: InputMaybe; - /** The checkout validation rules that can be changed. */ - validationRules?: InputMaybe; -}; - -export enum CheckoutErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - CHECKOUT_NOT_FULLY_PAID = 'CHECKOUT_NOT_FULLY_PAID', - DELIVERY_METHOD_NOT_APPLICABLE = 'DELIVERY_METHOD_NOT_APPLICABLE', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INACTIVE_PAYMENT = 'INACTIVE_PAYMENT', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID = 'INVALID', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - MISSING_ADDRESS_DATA = 'MISSING_ADDRESS_DATA', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', - NON_EDITABLE_GIFT_LINE = 'NON_EDITABLE_GIFT_LINE', - NON_REMOVABLE_GIFT_LINE = 'NON_REMOVABLE_GIFT_LINE', - NOT_FOUND = 'NOT_FOUND', - NO_LINES = 'NO_LINES', - PAYMENT_ERROR = 'PAYMENT_ERROR', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', - QUANTITY_GREATER_THAN_LIMIT = 'QUANTITY_GREATER_THAN_LIMIT', - REQUIRED = 'REQUIRED', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - SHIPPING_CHANGE_FORBIDDEN = 'SHIPPING_CHANGE_FORBIDDEN', - SHIPPING_METHOD_NOT_APPLICABLE = 'SHIPPING_METHOD_NOT_APPLICABLE', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - SHIPPING_NOT_REQUIRED = 'SHIPPING_NOT_REQUIRED', - TAX_ERROR = 'TAX_ERROR', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - UNIQUE = 'UNIQUE', - VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE', - ZERO_QUANTITY = 'ZERO_QUANTITY' -} - -export type CheckoutFilterInput = { - authorizeStatus?: InputMaybe>; - channels?: InputMaybe>; - chargeStatus?: InputMaybe>; - created?: InputMaybe; - customer?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - updatedAt?: InputMaybe; -}; -export type CheckoutLineInput = { - /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ - forceNewLine?: InputMaybe; - /** - * Fields required to update the object's metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. */ - price?: InputMaybe; - /** The number of items purchased. */ - quantity: Scalars['Int']; - /** ID of the product variant. */ - variantId: Scalars['ID']; -}; +export type ChannelUpdateMutation = { __typename: 'Mutation', channelUpdate: { __typename: 'ChannelUpdate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; -export type CheckoutLineUpdateInput = { - /** ID of the line. */ - lineId?: InputMaybe; - /** - * Checkout line public metadata. Will add and update keys. To delete keys use deleteMetadata mutation. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. */ - price?: InputMaybe; - /** The number of items purchased. Optional for apps, required for any other users. */ - quantity?: InputMaybe; - /** - * ID of the product variant. - * @deprecated Use `lineId` instead. - */ - variantId?: InputMaybe; -}; +export type ChannelDeleteMutationVariables = Exact<{ + id: Scalars['ID']; + input?: InputMaybe; +}>; -export type CheckoutSettingsInput = { - /** - * Settings for automatic completion of fully paid checkouts. - * - * Added in Saleor 3.22. - */ - automaticCompletion?: InputMaybe; - /** - * Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `authorize_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. - * - * Added in Saleor 3.20. - * @deprecated Use `automatic_completion` instead. - */ - automaticallyCompleteFullyPaidCheckouts?: InputMaybe; - /** - * Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one. - * @deprecated Field no longer supported - */ - useLegacyErrorFlow?: InputMaybe; -}; -export enum CheckoutSortField { - /** Sort checkouts by creation date. */ - CREATION_DATE = 'CREATION_DATE', - /** Sort checkouts by customer. */ - CUSTOMER = 'CUSTOMER', - /** Sort checkouts by payment. */ - PAYMENT = 'PAYMENT' -} +export type ChannelDeleteMutation = { __typename: 'Mutation', channelDelete: { __typename: 'ChannelDelete', errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; -export type CheckoutSortingInput = { - /** Specifies the direction in which to sort checkouts. */ - direction: OrderDirection; - /** Sort checkouts by the selected field. */ - field: CheckoutSortField; -}; +export type ChannelActivateMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type CheckoutValidationRules = { - /** The validation rules that can be applied to provided billing address data. */ - billingAddress?: InputMaybe; - /** The validation rules that can be applied to provided shipping address data. */ - shippingAddress?: InputMaybe; -}; -/** Enum determining the state of a circuit breaker. */ -export enum CircuitBreakerStateEnum { - /** The breaker is conducting (requests are passing through). */ - CLOSED = 'CLOSED', - /** The breaker is in a trial period (to close or open). Note that unlike classic breaker patterns, this is not a state where we are throttling the number of requests, it's a state similar to CLOSED but with different thresholds. */ - HALF_OPEN = 'HALF_OPEN', - /** The breaker is tripped (no requests are passing). Breaker will enter half-open state after cooldown period. */ - OPEN = 'OPEN' -} +export type ChannelActivateMutation = { __typename: 'Mutation', channelActivate: { __typename: 'ChannelActivate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; -export type CollectionChannelListingUpdateInput = { - /** List of channels to which the collection should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the collection should be unassigned. */ - removeChannels?: InputMaybe>; -}; +export type ChannelDeactivateMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type CollectionCreateInput = { - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Informs whether a collection is published. */ - isPublished?: InputMaybe; - /** - * Fields required to update the collection metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Name of the collection. */ - name?: InputMaybe; - /** - * Fields required to update the collection private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** List of products to be added to the collection. */ - products?: InputMaybe>; - /** - * Publication date. ISO 8601 standard. - * @deprecated Field no longer supported - */ - publicationDate?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Slug of the collection. */ - slug?: InputMaybe; -}; -export enum CollectionErrorCode { - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} +export type ChannelDeactivateMutation = { __typename: 'Mutation', channelDeactivate: { __typename: 'ChannelDeactivate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; -export type CollectionFilterInput = { - /** - * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - ids?: InputMaybe>; - metadata?: InputMaybe>; - published?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; -}; +export type ChannelReorderWarehousesMutationVariables = Exact<{ + channelId: Scalars['ID']; + moves: Array | ReorderInput; +}>; -export type CollectionInput = { - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Informs whether a collection is published. */ - isPublished?: InputMaybe; - /** - * Fields required to update the collection metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Name of the collection. */ - name?: InputMaybe; - /** - * Fields required to update the collection private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** - * Publication date. ISO 8601 standard. - * @deprecated Field no longer supported - */ - publicationDate?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Slug of the collection. */ - slug?: InputMaybe; -}; -export enum CollectionPublished { - HIDDEN = 'HIDDEN', - PUBLISHED = 'PUBLISHED' -} +export type ChannelReorderWarehousesMutation = { __typename: 'Mutation', channelReorderWarehouses: { __typename: 'ChannelReorderWarehouses', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; -export enum CollectionSortField { - /** - * Sort collections by availability. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - AVAILABILITY = 'AVAILABILITY', - /** Sort collections by name. */ - NAME = 'NAME', - /** Sort collections by product count. */ - PRODUCT_COUNT = 'PRODUCT_COUNT', - /** - * Sort collections by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - * @deprecated Use `PUBLISHED_AT` instead. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** - * Sort collections by published at. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED_AT = 'PUBLISHED_AT' -} +export type BaseChannelsQueryVariables = Exact<{ [key: string]: never; }>; -export type CollectionSortingInput = { - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort collections. */ - direction: OrderDirection; - /** Sort collections by the selected field. */ - field: CollectionSortField; -}; -export type CollectionWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; -}; +export type BaseChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; -export type ConfigurationItemInput = { - /** Name of the field to update. */ - name: Scalars['String']; - /** Value of the given field to update. */ - value?: InputMaybe; -}; +export type ChannelsQueryVariables = Exact<{ [key: string]: never; }>; -export enum ConfigurationTypeFieldEnum { - BOOLEAN = 'BOOLEAN', - MULTILINE = 'MULTILINE', - OUTPUT = 'OUTPUT', - PASSWORD = 'PASSWORD', - SECRET = 'SECRET', - SECRETMULTILINE = 'SECRETMULTILINE', - STRING = 'STRING' -} -/** Define the filtering options for fields that can contain multiple values. */ -export type ContainsFilterInput = { - /** The field contains all of the specified values. */ - containsAll?: InputMaybe>; - /** The field contains at least one of the specified values. */ - containsAny?: InputMaybe>; -}; +export type ChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; -/** - * Represents country codes defined by the ISO 3166-1 alpha-2 standard. - * - * The `EU` value is DEPRECATED and will be removed in Saleor 3.21. - */ -export enum CountryCode { - AD = 'AD', - AE = 'AE', - AF = 'AF', - AG = 'AG', - AI = 'AI', - AL = 'AL', - AM = 'AM', - AO = 'AO', - AQ = 'AQ', - AR = 'AR', - AS = 'AS', - AT = 'AT', - AU = 'AU', - AW = 'AW', - AX = 'AX', - AZ = 'AZ', - BA = 'BA', - BB = 'BB', - BD = 'BD', - BE = 'BE', - BF = 'BF', - BG = 'BG', - BH = 'BH', - BI = 'BI', - BJ = 'BJ', - BL = 'BL', - BM = 'BM', - BN = 'BN', - BO = 'BO', - BQ = 'BQ', - BR = 'BR', - BS = 'BS', - BT = 'BT', - BV = 'BV', - BW = 'BW', - BY = 'BY', - BZ = 'BZ', - CA = 'CA', - CC = 'CC', - CD = 'CD', - CF = 'CF', - CG = 'CG', - CH = 'CH', - CI = 'CI', - CK = 'CK', - CL = 'CL', - CM = 'CM', - CN = 'CN', - CO = 'CO', - CR = 'CR', - CU = 'CU', - CV = 'CV', - CW = 'CW', - CX = 'CX', - CY = 'CY', - CZ = 'CZ', - DE = 'DE', - DJ = 'DJ', - DK = 'DK', - DM = 'DM', - DO = 'DO', - DZ = 'DZ', - EC = 'EC', - EE = 'EE', - EG = 'EG', - EH = 'EH', - ER = 'ER', - ES = 'ES', - ET = 'ET', - EU = 'EU', - FI = 'FI', - FJ = 'FJ', - FK = 'FK', - FM = 'FM', - FO = 'FO', - FR = 'FR', - GA = 'GA', - GB = 'GB', - GD = 'GD', - GE = 'GE', - GF = 'GF', - GG = 'GG', - GH = 'GH', - GI = 'GI', - GL = 'GL', - GM = 'GM', - GN = 'GN', - GP = 'GP', - GQ = 'GQ', - GR = 'GR', - GS = 'GS', - GT = 'GT', - GU = 'GU', - GW = 'GW', - GY = 'GY', - HK = 'HK', - HM = 'HM', - HN = 'HN', - HR = 'HR', - HT = 'HT', - HU = 'HU', - ID = 'ID', - IE = 'IE', - IL = 'IL', - IM = 'IM', - IN = 'IN', - IO = 'IO', - IQ = 'IQ', - IR = 'IR', - IS = 'IS', - IT = 'IT', - JE = 'JE', - JM = 'JM', - JO = 'JO', - JP = 'JP', - KE = 'KE', - KG = 'KG', - KH = 'KH', - KI = 'KI', - KM = 'KM', - KN = 'KN', - KP = 'KP', - KR = 'KR', - KW = 'KW', - KY = 'KY', - KZ = 'KZ', - LA = 'LA', - LB = 'LB', - LC = 'LC', - LI = 'LI', - LK = 'LK', - LR = 'LR', - LS = 'LS', - LT = 'LT', - LU = 'LU', - LV = 'LV', - LY = 'LY', - MA = 'MA', - MC = 'MC', - MD = 'MD', - ME = 'ME', - MF = 'MF', - MG = 'MG', - MH = 'MH', - MK = 'MK', - ML = 'ML', - MM = 'MM', - MN = 'MN', - MO = 'MO', - MP = 'MP', - MQ = 'MQ', - MR = 'MR', - MS = 'MS', - MT = 'MT', - MU = 'MU', - MV = 'MV', - MW = 'MW', - MX = 'MX', - MY = 'MY', - MZ = 'MZ', - NA = 'NA', - NC = 'NC', - NE = 'NE', - NF = 'NF', - NG = 'NG', - NI = 'NI', - NL = 'NL', - NO = 'NO', - NP = 'NP', - NR = 'NR', - NU = 'NU', - NZ = 'NZ', - OM = 'OM', - PA = 'PA', - PE = 'PE', - PF = 'PF', - PG = 'PG', - PH = 'PH', - PK = 'PK', - PL = 'PL', - PM = 'PM', - PN = 'PN', - PR = 'PR', - PS = 'PS', - PT = 'PT', - PW = 'PW', - PY = 'PY', - QA = 'QA', - RE = 'RE', - RO = 'RO', - RS = 'RS', - RU = 'RU', - RW = 'RW', - SA = 'SA', - SB = 'SB', - SC = 'SC', - SD = 'SD', - SE = 'SE', - SG = 'SG', - SH = 'SH', - SI = 'SI', - SJ = 'SJ', - SK = 'SK', - SL = 'SL', - SM = 'SM', - SN = 'SN', - SO = 'SO', - SR = 'SR', - SS = 'SS', - ST = 'ST', - SV = 'SV', - SX = 'SX', - SY = 'SY', - SZ = 'SZ', - TC = 'TC', - TD = 'TD', - TF = 'TF', - TG = 'TG', - TH = 'TH', - TJ = 'TJ', - TK = 'TK', - TL = 'TL', - TM = 'TM', - TN = 'TN', - TO = 'TO', - TR = 'TR', - TT = 'TT', - TV = 'TV', - TW = 'TW', - TZ = 'TZ', - UA = 'UA', - UG = 'UG', - UM = 'UM', - US = 'US', - UY = 'UY', - UZ = 'UZ', - VA = 'VA', - VC = 'VC', - VE = 'VE', - VG = 'VG', - VI = 'VI', - VN = 'VN', - VU = 'VU', - WF = 'WF', - WS = 'WS', - XK = 'XK', - YE = 'YE', - YT = 'YT', - ZA = 'ZA', - ZM = 'ZM', - ZW = 'ZW' -} +export type ChannelQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -/** Filter by country code. */ -export type CountryCodeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value not included in. */ - notOneOf?: InputMaybe>; - /** The value included in. */ - oneOf?: InputMaybe>; -}; -export type CountryFilterInput = { - /** Boolean for filtering countries by having shipping zone assigned.If 'true', return countries with shipping zone assigned.If 'false', return countries without any shipping zone assigned.If the argument is not provided (null), return all countries. */ - attachedToShippingZones?: InputMaybe; -}; +export type ChannelQuery = { __typename: 'Query', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null }; -export type CountryRateInput = { - /** Country in which this rate applies. */ - countryCode: CountryCode; - /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. */ - rate: Scalars['Float']; -}; +export type CollectionUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: CollectionInput; +}>; -export type CountryRateUpdateInput = { - /** Country in which this rate applies. */ - countryCode: CountryCode; - /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. Provide `null` to remove the particular rate. */ - rate?: InputMaybe; -}; - -export enum CustomerBulkUpdateErrorCode { - BLANK = 'BLANK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LENGTH = 'MAX_LENGTH', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type CustomerBulkUpdateInput = { - /** External ID of a customer to update. */ - externalReference?: InputMaybe; - /** ID of a customer to update. */ - id?: InputMaybe; - /** Fields required to update a customer. */ - input: CustomerInput; -}; -export enum CustomerEventsEnum { - ACCOUNT_ACTIVATED = 'ACCOUNT_ACTIVATED', - ACCOUNT_CREATED = 'ACCOUNT_CREATED', - ACCOUNT_DEACTIVATED = 'ACCOUNT_DEACTIVATED', - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - DIGITAL_LINK_DOWNLOADED = 'DIGITAL_LINK_DOWNLOADED', - EMAIL_ASSIGNED = 'EMAIL_ASSIGNED', - EMAIL_CHANGED = 'EMAIL_CHANGED', - EMAIL_CHANGED_REQUEST = 'EMAIL_CHANGED_REQUEST', - NAME_ASSIGNED = 'NAME_ASSIGNED', - NOTE_ADDED = 'NOTE_ADDED', - NOTE_ADDED_TO_ORDER = 'NOTE_ADDED_TO_ORDER', - PASSWORD_CHANGED = 'PASSWORD_CHANGED', - PASSWORD_RESET = 'PASSWORD_RESET', - PASSWORD_RESET_LINK_SENT = 'PASSWORD_RESET_LINK_SENT', - PLACED_ORDER = 'PLACED_ORDER' -} +export type CollectionUpdateMutation = { __typename: 'Mutation', collectionUpdate: { __typename: 'CollectionUpdate', collection: { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; -export type CustomerFilterInput = { - dateJoined?: InputMaybe; - /** Filter by ids. */ - ids?: InputMaybe>; - metadata?: InputMaybe>; - numberOfOrders?: InputMaybe; - placedOrders?: InputMaybe; - search?: InputMaybe; - updatedAt?: InputMaybe; -}; +export type CollectionAssignProductMutationVariables = Exact<{ + collectionId: Scalars['ID']; + productIds: Array | Scalars['ID']; + moves: Array | MoveProductInput; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; +}>; -export type CustomerInput = { - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** External ID of the customer. */ - externalReference?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** User account is confirmed. */ - isConfirmed?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** A note about the user. */ - note?: InputMaybe; - /** - * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; -}; -export type CustomerWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by addresses data associated with user. */ - addresses?: InputMaybe; - /** Filter by date joined. */ - dateJoined?: InputMaybe; - /** Filter by email address. */ - email?: InputMaybe; - /** Filter by first name. */ - firstName?: InputMaybe; - ids?: InputMaybe>; - /** Filter by whether the user is active. */ - isActive?: InputMaybe; - /** Filter by last name. */ - lastName?: InputMaybe; - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by number of orders placed by the user. */ - numberOfOrders?: InputMaybe; - /** Filter by date when orders were placed. */ - placedOrdersAt?: InputMaybe; - /** Filter by last updated date. */ - updatedAt?: InputMaybe; -}; +export type CollectionAssignProductMutation = { __typename: 'Mutation', collectionAddProducts: { __typename: 'CollectionAddProducts', errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null, collectionReorderProducts: { __typename: 'CollectionReorderProducts', collection: { __typename: 'Collection', id: string, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null, errors: Array<{ __typename: 'CollectionError', message: string | null }> } | null }; -export type DateRangeInput = { - /** Start date. */ - gte?: InputMaybe; - /** End date. */ - lte?: InputMaybe; -}; +export type CreateCollectionMutationVariables = Exact<{ + input: CollectionCreateInput; +}>; -/** Define the filtering options for date time fields. */ -export type DateTimeFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; - /** The value in range. */ - range?: InputMaybe; -}; -export type DateTimeRangeInput = { - /** Start date. */ - gte?: InputMaybe; - /** End date. */ - lte?: InputMaybe; -}; +export type CreateCollectionMutation = { __typename: 'Mutation', collectionCreate: { __typename: 'CollectionCreate', collection: { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; -/** Define the filtering options for decimal fields. */ -export type DecimalFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; - /** The value in range. */ - range?: InputMaybe; -}; +export type RemoveCollectionMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type DecimalRangeInput = { - /** Decimal value greater than or equal to. */ - gte?: InputMaybe; - /** Decimal value less than or equal to. */ - lte?: InputMaybe; -}; -export type DigitalContentInput = { - /** Overwrite default automatic_fulfillment setting for variant. */ - automaticFulfillment?: InputMaybe; - /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; - /** - * Fields required to update the digital content metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the digital content private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; - /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars['Boolean']; -}; +export type RemoveCollectionMutation = { __typename: 'Mutation', collectionDelete: { __typename: 'CollectionDelete', errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; -export type DigitalContentUploadInput = { - /** Overwrite default automatic_fulfillment setting for variant. */ - automaticFulfillment?: InputMaybe; - /** Represents an file in a multipart request. */ - contentFile: Scalars['Upload']; - /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; - /** - * Fields required to update the digital content metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the digital content private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; - /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars['Boolean']; -}; - -export type DigitalContentUrlCreateInput = { - /** Digital content ID which URL will belong to. */ - content: Scalars['ID']; -}; - -export enum DiscountErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - VOUCHER_ALREADY_USED = 'VOUCHER_ALREADY_USED' -} - -export enum DiscountStatusEnum { - ACTIVE = 'ACTIVE', - EXPIRED = 'EXPIRED', - SCHEDULED = 'SCHEDULED' -} - -export enum DiscountValueTypeEnum { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE' -} +export type UnassignCollectionProductMutationVariables = Exact<{ + collectionId: Scalars['ID']; + productIds: Array | Scalars['ID']; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; +}>; -export type DiscountedObjectWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by the base subtotal price. */ - baseSubtotalPrice?: InputMaybe; - /** Filter by the base total price. */ - baseTotalPrice?: InputMaybe; -}; -export enum DistanceUnitsEnum { - CM = 'CM', - DM = 'DM', - FT = 'FT', - INCH = 'INCH', - KM = 'KM', - M = 'M', - MM = 'MM', - YD = 'YD' -} +export type UnassignCollectionProductMutation = { __typename: 'Mutation', collectionRemoveProducts: { __typename: 'CollectionRemoveProducts', collection: { __typename: 'Collection', id: string, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null, errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; -export type DraftOrderCreateInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** ID of the channel associated with the order. */ - channelId?: InputMaybe; - /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; - /** - * Discount amount for the order. - * @deprecated Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. - */ - discount?: InputMaybe; - /** External ID of this order. */ - externalReference?: InputMaybe; - /** - * Order language code. - * - * Added in Saleor 3.21. - */ - languageCode?: InputMaybe; - /** Variant line input consisting of variant ID and quantity of products. */ - lines?: InputMaybe>; - /** - * Order public metadata. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Order private metadata. - * - * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; - /** - * Indicates whether the billing address should be saved to the user’s address book upon draft order completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to not save the address. - * - * Added in Saleor 3.21. - */ - saveBillingAddress?: InputMaybe; - /** - * Indicates whether the shipping address should be saved to the user’s address book upon draft order completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to not save the address. - * - * Added in Saleor 3.21. - */ - saveShippingAddress?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; - /** Customer associated with the draft order. */ - user?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; - /** - * A code of the voucher associated with the order. - * - * Added in Saleor 3.18. - */ - voucherCode?: InputMaybe; -}; +export type CollectionBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type DraftOrderInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** ID of the channel associated with the order. */ - channelId?: InputMaybe; - /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; - /** - * Discount amount for the order. - * @deprecated Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. - */ - discount?: InputMaybe; - /** External ID of this order. */ - externalReference?: InputMaybe; - /** - * Order language code. - * - * Added in Saleor 3.21. - */ - languageCode?: InputMaybe; - /** - * Order public metadata. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Order private metadata. - * - * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; - /** - * Indicates whether the billing address should be saved to the user’s address book upon draft order completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to not save the address. - * - * Added in Saleor 3.21. - */ - saveBillingAddress?: InputMaybe; - /** - * Indicates whether the shipping address should be saved to the user’s address book upon draft order completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to not save the address. - * - * Added in Saleor 3.21. - */ - saveShippingAddress?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; - /** Customer associated with the draft order. */ - user?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; - /** - * A code of the voucher associated with the order. - * - * Added in Saleor 3.18. - */ - voucherCode?: InputMaybe; -}; -export type DraftOrderWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by authorize status. */ - authorizeStatus?: InputMaybe; - /** Filter by billing address of the order. */ - billingAddress?: InputMaybe; - /** Filter by channel. */ - channelId?: InputMaybe; - /** Filter by charge status. */ - chargeStatus?: InputMaybe; - /** Filter order by created at date. */ - createdAt?: InputMaybe; - /** Filter by order events. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - events?: InputMaybe>; - ids?: InputMaybe>; - /** Filter by whether the order uses the click and collect delivery method. */ - isClickAndCollect?: InputMaybe; - /** Filter by line items associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - lines?: InputMaybe>; - /** Filter by number of lines in the order. */ - linesCount?: InputMaybe; - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by order number. */ - number?: InputMaybe; - /** Filter by the product type of related order lines. */ - productTypeId?: InputMaybe; - /** Filter by shipping address of the order. */ - shippingAddress?: InputMaybe; - /** Filter by total gross amount of the order. */ - totalGross?: InputMaybe; - /** Filter by total net amount of the order. */ - totalNet?: InputMaybe; - /** Filter by transaction data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - transactions?: InputMaybe>; - /** Filter order by updated at date. */ - updatedAt?: InputMaybe; - /** Filter by user. */ - user?: InputMaybe; - /** Filter by user email. */ - userEmail?: InputMaybe; - /** Filter by voucher code used in the order. */ - voucherCode?: InputMaybe; -}; +export type CollectionBulkDeleteMutation = { __typename: 'Mutation', collectionBulkDelete: { __typename: 'CollectionBulkDelete', errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; -export enum ErrorPolicyEnum { - /** Save what is possible within a single row. If there are errors in an input data row, try to save it partially and skip the invalid part. */ - IGNORE_FAILED = 'IGNORE_FAILED', - /** Reject all rows if there is at least one error in any of them. */ - REJECT_EVERYTHING = 'REJECT_EVERYTHING', - /** Reject rows with errors. */ - REJECT_FAILED_ROWS = 'REJECT_FAILED_ROWS' -} +export type CollectionChannelListingUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: CollectionChannelListingUpdateInput; +}>; -export enum EventDeliveryAttemptSortField { - /** Sort event delivery attempts by created at. */ - CREATED_AT = 'CREATED_AT' -} -export type EventDeliveryAttemptSortingInput = { - /** Specifies the direction in which to sort attempts. */ - direction: OrderDirection; - /** Sort attempts by the selected field. */ - field: EventDeliveryAttemptSortField; -}; +export type CollectionChannelListingUpdateMutation = { __typename: 'Mutation', collectionChannelListingUpdate: { __typename: 'CollectionChannelListingUpdate', errors: Array<{ __typename: 'CollectionChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }> } | null }; -export type EventDeliveryFilterInput = { - eventType?: InputMaybe; - status?: InputMaybe; -}; +export type ReorderProductsInCollectionMutationVariables = Exact<{ + collectionId: Scalars['ID']; + moves: Array | MoveProductInput; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; +}>; -export enum EventDeliverySortField { - /** Sort event deliveries by created at. */ - CREATED_AT = 'CREATED_AT' -} -export type EventDeliverySortingInput = { - /** Specifies the direction in which to sort deliveries. */ - direction: OrderDirection; - /** Sort deliveries by the selected field. */ - field: EventDeliverySortField; -}; - -export enum EventDeliveryStatusEnum { - FAILED = 'FAILED', - PENDING = 'PENDING', - SUCCESS = 'SUCCESS' -} - -export enum ExportErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export enum ExportEventsEnum { - EXPORTED_FILE_SENT = 'EXPORTED_FILE_SENT', - EXPORT_DELETED = 'EXPORT_DELETED', - EXPORT_FAILED = 'EXPORT_FAILED', - EXPORT_FAILED_INFO_SENT = 'EXPORT_FAILED_INFO_SENT', - EXPORT_PENDING = 'EXPORT_PENDING', - EXPORT_SUCCESS = 'EXPORT_SUCCESS' -} - -export type ExportFileFilterInput = { - app?: InputMaybe; - createdAt?: InputMaybe; - status?: InputMaybe; - updatedAt?: InputMaybe; - user?: InputMaybe; -}; +export type ReorderProductsInCollectionMutation = { __typename: 'Mutation', collectionReorderProducts: { __typename: 'CollectionReorderProducts', collection: { __typename: 'Collection', id: string, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null, errors: Array<{ __typename: 'CollectionError', message: string | null }> } | null }; -export enum ExportFileSortField { - CREATED_AT = 'CREATED_AT', - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - STATUS = 'STATUS', - /** @deprecated Use `LAST_MODIFIED_AT` instead. */ - UPDATED_AT = 'UPDATED_AT' -} +export type CollectionListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; + channel?: InputMaybe; +}>; -export type ExportFileSortingInput = { - /** Specifies the direction in which to sort export file. */ - direction: OrderDirection; - /** Sort export file by the selected field. */ - field: ExportFileSortField; -}; -export type ExportGiftCardsInput = { - /** Type of exported file. */ - fileType: FileTypesEnum; - /** Filtering options for gift cards. */ - filter?: InputMaybe; - /** List of gift cards IDs to export. */ - ids?: InputMaybe>; - /** Determine which gift cards should be exported. */ - scope: ExportScope; -}; +export type CollectionListQuery = { __typename: 'Query', collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ExportInfoInput = { - /** List of attribute ids witch should be exported. */ - attributes?: InputMaybe>; - /** List of channels ids which should be exported. */ - channels?: InputMaybe>; - /** List of product fields witch should be exported. */ - fields?: InputMaybe>; - /** List of warehouse ids witch should be exported. */ - warehouses?: InputMaybe>; -}; +export type CollectionDetailsQueryVariables = Exact<{ + id?: InputMaybe; +}>; -export type ExportProductsInput = { - /** Input with info about fields which should be exported. */ - exportInfo?: InputMaybe; - /** Type of exported file. */ - fileType: FileTypesEnum; - /** Filtering options for products. */ - filter?: InputMaybe; - /** List of products IDs to export. */ - ids?: InputMaybe>; - /** Determine which products should be exported. */ - scope: ExportScope; -}; -export enum ExportScope { - /** Export all products. */ - ALL = 'ALL', - /** Export the filtered products. */ - FILTER = 'FILTER', - /** Export products with given ids. */ - IDS = 'IDS' -} +export type CollectionDetailsQuery = { __typename: 'Query', collection: { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type ExportVoucherCodesInput = { - /** Type of exported file. */ - fileType: FileTypesEnum; - /** List of voucher code IDs to export. */ - ids?: InputMaybe>; - /** The ID of the voucher. If provided, exports all codes belonging to the voucher. */ - voucherId?: InputMaybe; -}; +export type CollectionProductsQueryVariables = Exact<{ + id: Scalars['ID']; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; +}>; -export enum ExternalNotificationErrorCodes { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - INVALID_MODEL_TYPE = 'INVALID_MODEL_TYPE', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} -export type ExternalNotificationTriggerInput = { - /** External event type. This field is passed to a plugin as an event type. */ - externalEventType: Scalars['String']; - /** Additional payload that will be merged with the one based on the business object ID. */ - extraPayload?: InputMaybe; - /** The list of customers or orders node IDs that will be serialized and included in the notification payload. */ - ids: Array; -}; +export type CollectionProductsQuery = { __typename: 'Query', collection: { __typename: 'Collection', id: string, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; -export enum FileTypesEnum { - CSV = 'CSV', - XLSX = 'XLSX' -} +export type AddressValidationRulesQueryVariables = Exact<{ + countryCode: CountryCode; +}>; -export type FulfillmentCancelInput = { - /** ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. */ - warehouseId?: InputMaybe; -}; -/** Filter input for order fulfillments data. */ -export type FulfillmentFilterInput = { - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by fulfillment status. */ - status?: InputMaybe; - /** Filter by fulfillment warehouse. */ - warehouse?: InputMaybe; -}; +export type AddressValidationRulesQuery = { __typename: 'Query', addressValidationRules: { __typename: 'AddressValidationData', allowedFields: Array, countryAreaChoices: Array<{ __typename: 'ChoiceValue', raw: string | null, verbose: string | null }> } | null }; -export enum FulfillmentStatus { - CANCELED = 'CANCELED', - FULFILLED = 'FULFILLED', - REFUNDED = 'REFUNDED', - REFUNDED_AND_RETURNED = 'REFUNDED_AND_RETURNED', - REPLACED = 'REPLACED', - RETURNED = 'RETURNED', - WAITING_FOR_APPROVAL = 'WAITING_FOR_APPROVAL' -} +export type _GetDynamicLeftOperandsQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -/** Filter by fulfillment status. */ -export type FulfillmentStatusEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; -export type FulfillmentUpdateTrackingInput = { - /** If true, send an email notification to the customer. */ - notifyCustomer?: InputMaybe; - /** Fulfillment tracking number. */ - trackingNumber?: InputMaybe; -}; +export type _GetDynamicLeftOperandsQuery = { __typename: 'Query', attributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null } }> } | null }; -/** Filter input for fulfillment warehouses. */ -export type FulfillmentWarehouseFilterInput = { - /** Filter fulfillments by warehouse external reference. */ - externalReference?: InputMaybe; - /** Filter fulfillments by warehouse ID. */ - id?: InputMaybe; - /** Filter fulfillments by warehouse slug. */ - slug?: InputMaybe; -}; +export type _GetChannelOperandsQueryVariables = Exact<{ [key: string]: never; }>; -export type GiftCardAddNoteInput = { - /** Note message. */ - message: Scalars['String']; -}; -export type GiftCardBulkCreateInput = { - /** Balance of the gift card. */ - balance: PriceInput; - /** The number of cards to issue. */ - count: Scalars['Int']; - /** The gift card expiry date. */ - expiryDate?: InputMaybe; - /** Determine if gift card is active. */ - isActive: Scalars['Boolean']; - /** The gift card tags. */ - tags?: InputMaybe>; -}; +export type _GetChannelOperandsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', name: string, slug: string, id: string }> | null }; -export type GiftCardCreateInput = { - /** The gift card tags to add. */ - addTags?: InputMaybe>; - /** Balance of the gift card. */ - balance: PriceInput; - /** Slug of a channel from which the email should be sent. */ - channel?: InputMaybe; - /** - * Code to use the gift card. - * @deprecated The code is now auto generated. - */ - code?: InputMaybe; - /** - * End date of the gift card in ISO 8601 format. - * @deprecated Use `expiryDate` from `expirySettings` instead. - */ - endDate?: InputMaybe; - /** The gift card expiry date. */ - expiryDate?: InputMaybe; - /** Determine if gift card is active. */ - isActive: Scalars['Boolean']; - /** - * Gift Card public metadata. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** The gift card note from the staff member. */ - note?: InputMaybe; - /** - * Gift Card private metadata. - * - * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** - * Start date of the gift card in ISO 8601 format. - * @deprecated Field no longer supported - */ - startDate?: InputMaybe; - /** Email of the customer to whom gift card will be sent. */ - userEmail?: InputMaybe; -}; - -export enum GiftCardErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - EXPIRED_GIFT_CARD = 'EXPIRED_GIFT_CARD', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type GiftCardEventFilterInput = { - orders?: InputMaybe>; - type?: InputMaybe; -}; - -export enum GiftCardEventsEnum { - ACTIVATED = 'ACTIVATED', - BALANCE_RESET = 'BALANCE_RESET', - BOUGHT = 'BOUGHT', - DEACTIVATED = 'DEACTIVATED', - EXPIRY_DATE_UPDATED = 'EXPIRY_DATE_UPDATED', - ISSUED = 'ISSUED', - NOTE_ADDED = 'NOTE_ADDED', - RESENT = 'RESENT', - SENT_TO_CUSTOMER = 'SENT_TO_CUSTOMER', - TAGS_UPDATED = 'TAGS_UPDATED', - UPDATED = 'UPDATED', - USED_IN_ORDER = 'USED_IN_ORDER' -} +export type _GetLegacyChannelOperandsQueryVariables = Exact<{ [key: string]: never; }>; -export type GiftCardFilterInput = { - code?: InputMaybe; - createdByEmail?: InputMaybe; - currency?: InputMaybe; - currentBalance?: InputMaybe; - initialBalance?: InputMaybe; - isActive?: InputMaybe; - metadata?: InputMaybe>; - products?: InputMaybe>; - tags?: InputMaybe>; - used?: InputMaybe; - usedBy?: InputMaybe>; -}; -export type GiftCardResendInput = { - /** Slug of a channel from which the email should be sent. */ - channel: Scalars['String']; - /** Email to which gift card should be send. */ - email?: InputMaybe; - /** ID of a gift card to resend. */ - id: Scalars['ID']; -}; - -export enum GiftCardSettingsErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - REQUIRED = 'REQUIRED' -} +export type _GetLegacyChannelOperandsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, name: string, slug: string }> | null }; -export enum GiftCardSettingsExpiryTypeEnum { - EXPIRY_PERIOD = 'EXPIRY_PERIOD', - NEVER_EXPIRE = 'NEVER_EXPIRE' -} +export type _SearchCollectionsOperandsQueryVariables = Exact<{ + first: Scalars['Int']; + collectionsSlugs?: InputMaybe | Scalars['String']>; +}>; -export type GiftCardSettingsUpdateInput = { - /** Defines gift card expiry period. */ - expiryPeriod?: InputMaybe; - /** Defines gift card default expiry settings. */ - expiryType?: InputMaybe; -}; -export enum GiftCardSortField { - /** Sort gift cards by created at. */ - CREATED_AT = 'CREATED_AT', - /** Sort gift cards by current balance. */ - CURRENT_BALANCE = 'CURRENT_BALANCE', - /** Sort gift cards by product. */ - PRODUCT = 'PRODUCT', - /** Sort gift cards by used by. */ - USED_BY = 'USED_BY' -} +export type _SearchCollectionsOperandsQuery = { __typename: 'Query', collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, slug: string } }> } | null }; -export type GiftCardSortingInput = { - /** Specifies the direction in which to sort gift cards. */ - direction: OrderDirection; - /** Sort gift cards by the selected field. */ - field: GiftCardSortField; -}; +export type _SearchCategoriesOperandsQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + categoriesSlugs?: InputMaybe | Scalars['String']>; +}>; -export type GiftCardTagFilterInput = { - search?: InputMaybe; -}; -export type GiftCardUpdateInput = { - /** The gift card tags to add. */ - addTags?: InputMaybe>; - /** The gift card balance amount. */ - balanceAmount?: InputMaybe; - /** - * End date of the gift card in ISO 8601 format. - * @deprecated Use `expiryDate` from `expirySettings` instead. - */ - endDate?: InputMaybe; - /** The gift card expiry date. */ - expiryDate?: InputMaybe; - /** - * Gift Card public metadata. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Gift Card private metadata. - * - * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** The gift card tags to remove. */ - removeTags?: InputMaybe>; - /** - * Start date of the gift card in ISO 8601 format. - * @deprecated Field no longer supported - */ - startDate?: InputMaybe; -}; +export type _SearchCategoriesOperandsQuery = { __typename: 'Query', categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, slug: string } }> } | null }; -/** Define the filtering options for foreign key fields. */ -export type GlobalIdFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; +export type _SearchProductTypesOperandsQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + productTypesSlugs?: InputMaybe | Scalars['String']>; +}>; -export enum HttpMethod { - GET = 'GET', - POST = 'POST' -} -/** Thumbnail formats for icon images. */ -export enum IconThumbnailFormatEnum { - ORIGINAL = 'ORIGINAL', - WEBP = 'WEBP' -} +export type _SearchProductTypesOperandsQuery = { __typename: 'Query', productTypes: { __typename: 'ProductTypeCountableConnection', edges: Array<{ __typename: 'ProductTypeCountableEdge', node: { __typename: 'ProductType', id: string, name: string, slug: string } }> } | null }; -/** Define the filtering options for integer fields. */ -export type IntFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; - /** The value in range. */ - range?: InputMaybe; -}; +export type _SearchPageTypesOperandsQueryVariables = Exact<{ + first: Scalars['Int']; + pageTypesSlugs?: InputMaybe | Scalars['String']>; +}>; -export type IntRangeInput = { - /** Value greater than or equal to. */ - gte?: InputMaybe; - /** Value less than or equal to. */ - lte?: InputMaybe; -}; -export type InvoiceCreateInput = { - /** - * Fields required to update the invoice metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Invoice number. */ - number: Scalars['String']; - /** - * Fields required to update the invoice private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of an invoice to download. */ - url: Scalars['String']; -}; +export type _SearchPageTypesOperandsQuery = { __typename: 'Query', pageTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string, slug: string } }> } | null }; -export enum InvoiceErrorCode { - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - INVALID_STATUS = 'INVALID_STATUS', - NOT_FOUND = 'NOT_FOUND', - NOT_READY = 'NOT_READY', - NO_INVOICE_PLUGIN = 'NO_INVOICE_PLUGIN', - NUMBER_NOT_SET = 'NUMBER_NOT_SET', - REQUIRED = 'REQUIRED', - URL_NOT_SET = 'URL_NOT_SET' -} +export type _SearchAttributeOperandsQueryVariables = Exact<{ + attributesSlugs?: InputMaybe | Scalars['String']>; + choicesIds?: InputMaybe | Scalars['ID']>; + first: Scalars['Int']; +}>; -/** Filter input for invoices. */ -export type InvoiceFilterInput = { - /** Filter invoices by creation date. */ - createdAt?: InputMaybe; -}; -export enum JobStatusEnum { - DELETED = 'DELETED', - FAILED = 'FAILED', - PENDING = 'PENDING', - SUCCESS = 'SUCCESS' -} - -export enum LanguageCodeEnum { - AF = 'AF', - AF_NA = 'AF_NA', - AF_ZA = 'AF_ZA', - AGQ = 'AGQ', - AGQ_CM = 'AGQ_CM', - AK = 'AK', - AK_GH = 'AK_GH', - AM = 'AM', - AM_ET = 'AM_ET', - AR = 'AR', - AR_AE = 'AR_AE', - AR_BH = 'AR_BH', - AR_DJ = 'AR_DJ', - AR_DZ = 'AR_DZ', - AR_EG = 'AR_EG', - AR_EH = 'AR_EH', - AR_ER = 'AR_ER', - AR_IL = 'AR_IL', - AR_IQ = 'AR_IQ', - AR_JO = 'AR_JO', - AR_KM = 'AR_KM', - AR_KW = 'AR_KW', - AR_LB = 'AR_LB', - AR_LY = 'AR_LY', - AR_MA = 'AR_MA', - AR_MR = 'AR_MR', - AR_OM = 'AR_OM', - AR_PS = 'AR_PS', - AR_QA = 'AR_QA', - AR_SA = 'AR_SA', - AR_SD = 'AR_SD', - AR_SO = 'AR_SO', - AR_SS = 'AR_SS', - AR_SY = 'AR_SY', - AR_TD = 'AR_TD', - AR_TN = 'AR_TN', - AR_YE = 'AR_YE', - AS = 'AS', - ASA = 'ASA', - ASA_TZ = 'ASA_TZ', - AST = 'AST', - AST_ES = 'AST_ES', - AS_IN = 'AS_IN', - AZ = 'AZ', - AZ_CYRL = 'AZ_CYRL', - AZ_CYRL_AZ = 'AZ_CYRL_AZ', - AZ_LATN = 'AZ_LATN', - AZ_LATN_AZ = 'AZ_LATN_AZ', - BAS = 'BAS', - BAS_CM = 'BAS_CM', - BE = 'BE', - BEM = 'BEM', - BEM_ZM = 'BEM_ZM', - BEZ = 'BEZ', - BEZ_TZ = 'BEZ_TZ', - BE_BY = 'BE_BY', - BG = 'BG', - BG_BG = 'BG_BG', - BM = 'BM', - BM_ML = 'BM_ML', - BN = 'BN', - BN_BD = 'BN_BD', - BN_IN = 'BN_IN', - BO = 'BO', - BO_CN = 'BO_CN', - BO_IN = 'BO_IN', - BR = 'BR', - BRX = 'BRX', - BRX_IN = 'BRX_IN', - BR_FR = 'BR_FR', - BS = 'BS', - BS_CYRL = 'BS_CYRL', - BS_CYRL_BA = 'BS_CYRL_BA', - BS_LATN = 'BS_LATN', - BS_LATN_BA = 'BS_LATN_BA', - CA = 'CA', - CA_AD = 'CA_AD', - CA_ES = 'CA_ES', - CA_ES_VALENCIA = 'CA_ES_VALENCIA', - CA_FR = 'CA_FR', - CA_IT = 'CA_IT', - CCP = 'CCP', - CCP_BD = 'CCP_BD', - CCP_IN = 'CCP_IN', - CE = 'CE', - CEB = 'CEB', - CEB_PH = 'CEB_PH', - CE_RU = 'CE_RU', - CGG = 'CGG', - CGG_UG = 'CGG_UG', - CHR = 'CHR', - CHR_US = 'CHR_US', - CKB = 'CKB', - CKB_IQ = 'CKB_IQ', - CKB_IR = 'CKB_IR', - CS = 'CS', - CS_CZ = 'CS_CZ', - CU = 'CU', - CU_RU = 'CU_RU', - CY = 'CY', - CY_GB = 'CY_GB', - DA = 'DA', - DAV = 'DAV', - DAV_KE = 'DAV_KE', - DA_DK = 'DA_DK', - DA_GL = 'DA_GL', - DE = 'DE', - DE_AT = 'DE_AT', - DE_BE = 'DE_BE', - DE_CH = 'DE_CH', - DE_DE = 'DE_DE', - DE_IT = 'DE_IT', - DE_LI = 'DE_LI', - DE_LU = 'DE_LU', - DJE = 'DJE', - DJE_NE = 'DJE_NE', - DSB = 'DSB', - DSB_DE = 'DSB_DE', - DUA = 'DUA', - DUA_CM = 'DUA_CM', - DYO = 'DYO', - DYO_SN = 'DYO_SN', - DZ = 'DZ', - DZ_BT = 'DZ_BT', - EBU = 'EBU', - EBU_KE = 'EBU_KE', - EE = 'EE', - EE_GH = 'EE_GH', - EE_TG = 'EE_TG', - EL = 'EL', - EL_CY = 'EL_CY', - EL_GR = 'EL_GR', - EN = 'EN', - EN_AE = 'EN_AE', - EN_AG = 'EN_AG', - EN_AI = 'EN_AI', - EN_AS = 'EN_AS', - EN_AT = 'EN_AT', - EN_AU = 'EN_AU', - EN_BB = 'EN_BB', - EN_BE = 'EN_BE', - EN_BI = 'EN_BI', - EN_BM = 'EN_BM', - EN_BS = 'EN_BS', - EN_BW = 'EN_BW', - EN_BZ = 'EN_BZ', - EN_CA = 'EN_CA', - EN_CC = 'EN_CC', - EN_CH = 'EN_CH', - EN_CK = 'EN_CK', - EN_CM = 'EN_CM', - EN_CX = 'EN_CX', - EN_CY = 'EN_CY', - EN_DE = 'EN_DE', - EN_DG = 'EN_DG', - EN_DK = 'EN_DK', - EN_DM = 'EN_DM', - EN_ER = 'EN_ER', - EN_FI = 'EN_FI', - EN_FJ = 'EN_FJ', - EN_FK = 'EN_FK', - EN_FM = 'EN_FM', - EN_GB = 'EN_GB', - EN_GD = 'EN_GD', - EN_GG = 'EN_GG', - EN_GH = 'EN_GH', - EN_GI = 'EN_GI', - EN_GM = 'EN_GM', - EN_GU = 'EN_GU', - EN_GY = 'EN_GY', - EN_HK = 'EN_HK', - EN_IE = 'EN_IE', - EN_IL = 'EN_IL', - EN_IM = 'EN_IM', - EN_IN = 'EN_IN', - EN_IO = 'EN_IO', - EN_JE = 'EN_JE', - EN_JM = 'EN_JM', - EN_KE = 'EN_KE', - EN_KI = 'EN_KI', - EN_KN = 'EN_KN', - EN_KY = 'EN_KY', - EN_LC = 'EN_LC', - EN_LR = 'EN_LR', - EN_LS = 'EN_LS', - EN_MG = 'EN_MG', - EN_MH = 'EN_MH', - EN_MO = 'EN_MO', - EN_MP = 'EN_MP', - EN_MS = 'EN_MS', - EN_MT = 'EN_MT', - EN_MU = 'EN_MU', - EN_MW = 'EN_MW', - EN_MY = 'EN_MY', - EN_NA = 'EN_NA', - EN_NF = 'EN_NF', - EN_NG = 'EN_NG', - EN_NL = 'EN_NL', - EN_NR = 'EN_NR', - EN_NU = 'EN_NU', - EN_NZ = 'EN_NZ', - EN_PG = 'EN_PG', - EN_PH = 'EN_PH', - EN_PK = 'EN_PK', - EN_PN = 'EN_PN', - EN_PR = 'EN_PR', - EN_PW = 'EN_PW', - EN_RW = 'EN_RW', - EN_SB = 'EN_SB', - EN_SC = 'EN_SC', - EN_SD = 'EN_SD', - EN_SE = 'EN_SE', - EN_SG = 'EN_SG', - EN_SH = 'EN_SH', - EN_SI = 'EN_SI', - EN_SL = 'EN_SL', - EN_SS = 'EN_SS', - EN_SX = 'EN_SX', - EN_SZ = 'EN_SZ', - EN_TC = 'EN_TC', - EN_TK = 'EN_TK', - EN_TO = 'EN_TO', - EN_TT = 'EN_TT', - EN_TV = 'EN_TV', - EN_TZ = 'EN_TZ', - EN_UG = 'EN_UG', - EN_UM = 'EN_UM', - EN_US = 'EN_US', - EN_VC = 'EN_VC', - EN_VG = 'EN_VG', - EN_VI = 'EN_VI', - EN_VU = 'EN_VU', - EN_WS = 'EN_WS', - EN_ZA = 'EN_ZA', - EN_ZM = 'EN_ZM', - EN_ZW = 'EN_ZW', - EO = 'EO', - ES = 'ES', - ES_AR = 'ES_AR', - ES_BO = 'ES_BO', - ES_BR = 'ES_BR', - ES_BZ = 'ES_BZ', - ES_CL = 'ES_CL', - ES_CO = 'ES_CO', - ES_CR = 'ES_CR', - ES_CU = 'ES_CU', - ES_DO = 'ES_DO', - ES_EA = 'ES_EA', - ES_EC = 'ES_EC', - ES_ES = 'ES_ES', - ES_GQ = 'ES_GQ', - ES_GT = 'ES_GT', - ES_HN = 'ES_HN', - ES_IC = 'ES_IC', - ES_MX = 'ES_MX', - ES_NI = 'ES_NI', - ES_PA = 'ES_PA', - ES_PE = 'ES_PE', - ES_PH = 'ES_PH', - ES_PR = 'ES_PR', - ES_PY = 'ES_PY', - ES_SV = 'ES_SV', - ES_US = 'ES_US', - ES_UY = 'ES_UY', - ES_VE = 'ES_VE', - ET = 'ET', - ET_EE = 'ET_EE', - EU = 'EU', - EU_ES = 'EU_ES', - EWO = 'EWO', - EWO_CM = 'EWO_CM', - FA = 'FA', - FA_AF = 'FA_AF', - FA_IR = 'FA_IR', - FF = 'FF', - FF_ADLM = 'FF_ADLM', - FF_ADLM_BF = 'FF_ADLM_BF', - FF_ADLM_CM = 'FF_ADLM_CM', - FF_ADLM_GH = 'FF_ADLM_GH', - FF_ADLM_GM = 'FF_ADLM_GM', - FF_ADLM_GN = 'FF_ADLM_GN', - FF_ADLM_GW = 'FF_ADLM_GW', - FF_ADLM_LR = 'FF_ADLM_LR', - FF_ADLM_MR = 'FF_ADLM_MR', - FF_ADLM_NE = 'FF_ADLM_NE', - FF_ADLM_NG = 'FF_ADLM_NG', - FF_ADLM_SL = 'FF_ADLM_SL', - FF_ADLM_SN = 'FF_ADLM_SN', - FF_LATN = 'FF_LATN', - FF_LATN_BF = 'FF_LATN_BF', - FF_LATN_CM = 'FF_LATN_CM', - FF_LATN_GH = 'FF_LATN_GH', - FF_LATN_GM = 'FF_LATN_GM', - FF_LATN_GN = 'FF_LATN_GN', - FF_LATN_GW = 'FF_LATN_GW', - FF_LATN_LR = 'FF_LATN_LR', - FF_LATN_MR = 'FF_LATN_MR', - FF_LATN_NE = 'FF_LATN_NE', - FF_LATN_NG = 'FF_LATN_NG', - FF_LATN_SL = 'FF_LATN_SL', - FF_LATN_SN = 'FF_LATN_SN', - FI = 'FI', - FIL = 'FIL', - FIL_PH = 'FIL_PH', - FI_FI = 'FI_FI', - FO = 'FO', - FO_DK = 'FO_DK', - FO_FO = 'FO_FO', - FR = 'FR', - FR_BE = 'FR_BE', - FR_BF = 'FR_BF', - FR_BI = 'FR_BI', - FR_BJ = 'FR_BJ', - FR_BL = 'FR_BL', - FR_CA = 'FR_CA', - FR_CD = 'FR_CD', - FR_CF = 'FR_CF', - FR_CG = 'FR_CG', - FR_CH = 'FR_CH', - FR_CI = 'FR_CI', - FR_CM = 'FR_CM', - FR_DJ = 'FR_DJ', - FR_DZ = 'FR_DZ', - FR_FR = 'FR_FR', - FR_GA = 'FR_GA', - FR_GF = 'FR_GF', - FR_GN = 'FR_GN', - FR_GP = 'FR_GP', - FR_GQ = 'FR_GQ', - FR_HT = 'FR_HT', - FR_KM = 'FR_KM', - FR_LU = 'FR_LU', - FR_MA = 'FR_MA', - FR_MC = 'FR_MC', - FR_MF = 'FR_MF', - FR_MG = 'FR_MG', - FR_ML = 'FR_ML', - FR_MQ = 'FR_MQ', - FR_MR = 'FR_MR', - FR_MU = 'FR_MU', - FR_NC = 'FR_NC', - FR_NE = 'FR_NE', - FR_PF = 'FR_PF', - FR_PM = 'FR_PM', - FR_RE = 'FR_RE', - FR_RW = 'FR_RW', - FR_SC = 'FR_SC', - FR_SN = 'FR_SN', - FR_SY = 'FR_SY', - FR_TD = 'FR_TD', - FR_TG = 'FR_TG', - FR_TN = 'FR_TN', - FR_VU = 'FR_VU', - FR_WF = 'FR_WF', - FR_YT = 'FR_YT', - FUR = 'FUR', - FUR_IT = 'FUR_IT', - FY = 'FY', - FY_NL = 'FY_NL', - GA = 'GA', - GA_GB = 'GA_GB', - GA_IE = 'GA_IE', - GD = 'GD', - GD_GB = 'GD_GB', - GL = 'GL', - GL_ES = 'GL_ES', - GSW = 'GSW', - GSW_CH = 'GSW_CH', - GSW_FR = 'GSW_FR', - GSW_LI = 'GSW_LI', - GU = 'GU', - GUZ = 'GUZ', - GUZ_KE = 'GUZ_KE', - GU_IN = 'GU_IN', - GV = 'GV', - GV_IM = 'GV_IM', - HA = 'HA', - HAW = 'HAW', - HAW_US = 'HAW_US', - HA_GH = 'HA_GH', - HA_NE = 'HA_NE', - HA_NG = 'HA_NG', - HE = 'HE', - HE_IL = 'HE_IL', - HI = 'HI', - HI_IN = 'HI_IN', - HR = 'HR', - HR_BA = 'HR_BA', - HR_HR = 'HR_HR', - HSB = 'HSB', - HSB_DE = 'HSB_DE', - HU = 'HU', - HU_HU = 'HU_HU', - HY = 'HY', - HY_AM = 'HY_AM', - IA = 'IA', - ID = 'ID', - ID_ID = 'ID_ID', - IG = 'IG', - IG_NG = 'IG_NG', - II = 'II', - II_CN = 'II_CN', - IS = 'IS', - IS_IS = 'IS_IS', - IT = 'IT', - IT_CH = 'IT_CH', - IT_IT = 'IT_IT', - IT_SM = 'IT_SM', - IT_VA = 'IT_VA', - JA = 'JA', - JA_JP = 'JA_JP', - JGO = 'JGO', - JGO_CM = 'JGO_CM', - JMC = 'JMC', - JMC_TZ = 'JMC_TZ', - JV = 'JV', - JV_ID = 'JV_ID', - KA = 'KA', - KAB = 'KAB', - KAB_DZ = 'KAB_DZ', - KAM = 'KAM', - KAM_KE = 'KAM_KE', - KA_GE = 'KA_GE', - KDE = 'KDE', - KDE_TZ = 'KDE_TZ', - KEA = 'KEA', - KEA_CV = 'KEA_CV', - KHQ = 'KHQ', - KHQ_ML = 'KHQ_ML', - KI = 'KI', - KI_KE = 'KI_KE', - KK = 'KK', - KKJ = 'KKJ', - KKJ_CM = 'KKJ_CM', - KK_KZ = 'KK_KZ', - KL = 'KL', - KLN = 'KLN', - KLN_KE = 'KLN_KE', - KL_GL = 'KL_GL', - KM = 'KM', - KM_KH = 'KM_KH', - KN = 'KN', - KN_IN = 'KN_IN', - KO = 'KO', - KOK = 'KOK', - KOK_IN = 'KOK_IN', - KO_KP = 'KO_KP', - KO_KR = 'KO_KR', - KS = 'KS', - KSB = 'KSB', - KSB_TZ = 'KSB_TZ', - KSF = 'KSF', - KSF_CM = 'KSF_CM', - KSH = 'KSH', - KSH_DE = 'KSH_DE', - KS_ARAB = 'KS_ARAB', - KS_ARAB_IN = 'KS_ARAB_IN', - KU = 'KU', - KU_TR = 'KU_TR', - KW = 'KW', - KW_GB = 'KW_GB', - KY = 'KY', - KY_KG = 'KY_KG', - LAG = 'LAG', - LAG_TZ = 'LAG_TZ', - LB = 'LB', - LB_LU = 'LB_LU', - LG = 'LG', - LG_UG = 'LG_UG', - LKT = 'LKT', - LKT_US = 'LKT_US', - LN = 'LN', - LN_AO = 'LN_AO', - LN_CD = 'LN_CD', - LN_CF = 'LN_CF', - LN_CG = 'LN_CG', - LO = 'LO', - LO_LA = 'LO_LA', - LRC = 'LRC', - LRC_IQ = 'LRC_IQ', - LRC_IR = 'LRC_IR', - LT = 'LT', - LT_LT = 'LT_LT', - LU = 'LU', - LUO = 'LUO', - LUO_KE = 'LUO_KE', - LUY = 'LUY', - LUY_KE = 'LUY_KE', - LU_CD = 'LU_CD', - LV = 'LV', - LV_LV = 'LV_LV', - MAI = 'MAI', - MAI_IN = 'MAI_IN', - MAS = 'MAS', - MAS_KE = 'MAS_KE', - MAS_TZ = 'MAS_TZ', - MER = 'MER', - MER_KE = 'MER_KE', - MFE = 'MFE', - MFE_MU = 'MFE_MU', - MG = 'MG', - MGH = 'MGH', - MGH_MZ = 'MGH_MZ', - MGO = 'MGO', - MGO_CM = 'MGO_CM', - MG_MG = 'MG_MG', - MI = 'MI', - MI_NZ = 'MI_NZ', - MK = 'MK', - MK_MK = 'MK_MK', - ML = 'ML', - ML_IN = 'ML_IN', - MN = 'MN', - MNI = 'MNI', - MNI_BENG = 'MNI_BENG', - MNI_BENG_IN = 'MNI_BENG_IN', - MN_MN = 'MN_MN', - MR = 'MR', - MR_IN = 'MR_IN', - MS = 'MS', - MS_BN = 'MS_BN', - MS_ID = 'MS_ID', - MS_MY = 'MS_MY', - MS_SG = 'MS_SG', - MT = 'MT', - MT_MT = 'MT_MT', - MUA = 'MUA', - MUA_CM = 'MUA_CM', - MY = 'MY', - MY_MM = 'MY_MM', - MZN = 'MZN', - MZN_IR = 'MZN_IR', - NAQ = 'NAQ', - NAQ_NA = 'NAQ_NA', - NB = 'NB', - NB_NO = 'NB_NO', - NB_SJ = 'NB_SJ', - ND = 'ND', - NDS = 'NDS', - NDS_DE = 'NDS_DE', - NDS_NL = 'NDS_NL', - ND_ZW = 'ND_ZW', - NE = 'NE', - NE_IN = 'NE_IN', - NE_NP = 'NE_NP', - NL = 'NL', - NL_AW = 'NL_AW', - NL_BE = 'NL_BE', - NL_BQ = 'NL_BQ', - NL_CW = 'NL_CW', - NL_NL = 'NL_NL', - NL_SR = 'NL_SR', - NL_SX = 'NL_SX', - NMG = 'NMG', - NMG_CM = 'NMG_CM', - NN = 'NN', - NNH = 'NNH', - NNH_CM = 'NNH_CM', - NN_NO = 'NN_NO', - NUS = 'NUS', - NUS_SS = 'NUS_SS', - NYN = 'NYN', - NYN_UG = 'NYN_UG', - OM = 'OM', - OM_ET = 'OM_ET', - OM_KE = 'OM_KE', - OR = 'OR', - OR_IN = 'OR_IN', - OS = 'OS', - OS_GE = 'OS_GE', - OS_RU = 'OS_RU', - PA = 'PA', - PA_ARAB = 'PA_ARAB', - PA_ARAB_PK = 'PA_ARAB_PK', - PA_GURU = 'PA_GURU', - PA_GURU_IN = 'PA_GURU_IN', - PCM = 'PCM', - PCM_NG = 'PCM_NG', - PL = 'PL', - PL_PL = 'PL_PL', - PRG = 'PRG', - PS = 'PS', - PS_AF = 'PS_AF', - PS_PK = 'PS_PK', - PT = 'PT', - PT_AO = 'PT_AO', - PT_BR = 'PT_BR', - PT_CH = 'PT_CH', - PT_CV = 'PT_CV', - PT_GQ = 'PT_GQ', - PT_GW = 'PT_GW', - PT_LU = 'PT_LU', - PT_MO = 'PT_MO', - PT_MZ = 'PT_MZ', - PT_PT = 'PT_PT', - PT_ST = 'PT_ST', - PT_TL = 'PT_TL', - QU = 'QU', - QU_BO = 'QU_BO', - QU_EC = 'QU_EC', - QU_PE = 'QU_PE', - RM = 'RM', - RM_CH = 'RM_CH', - RN = 'RN', - RN_BI = 'RN_BI', - RO = 'RO', - ROF = 'ROF', - ROF_TZ = 'ROF_TZ', - RO_MD = 'RO_MD', - RO_RO = 'RO_RO', - RU = 'RU', - RU_BY = 'RU_BY', - RU_KG = 'RU_KG', - RU_KZ = 'RU_KZ', - RU_MD = 'RU_MD', - RU_RU = 'RU_RU', - RU_UA = 'RU_UA', - RW = 'RW', - RWK = 'RWK', - RWK_TZ = 'RWK_TZ', - RW_RW = 'RW_RW', - SAH = 'SAH', - SAH_RU = 'SAH_RU', - SAQ = 'SAQ', - SAQ_KE = 'SAQ_KE', - SAT = 'SAT', - SAT_OLCK = 'SAT_OLCK', - SAT_OLCK_IN = 'SAT_OLCK_IN', - SBP = 'SBP', - SBP_TZ = 'SBP_TZ', - SD = 'SD', - SD_ARAB = 'SD_ARAB', - SD_ARAB_PK = 'SD_ARAB_PK', - SD_DEVA = 'SD_DEVA', - SD_DEVA_IN = 'SD_DEVA_IN', - SE = 'SE', - SEH = 'SEH', - SEH_MZ = 'SEH_MZ', - SES = 'SES', - SES_ML = 'SES_ML', - SE_FI = 'SE_FI', - SE_NO = 'SE_NO', - SE_SE = 'SE_SE', - SG = 'SG', - SG_CF = 'SG_CF', - SHI = 'SHI', - SHI_LATN = 'SHI_LATN', - SHI_LATN_MA = 'SHI_LATN_MA', - SHI_TFNG = 'SHI_TFNG', - SHI_TFNG_MA = 'SHI_TFNG_MA', - SI = 'SI', - SI_LK = 'SI_LK', - SK = 'SK', - SK_SK = 'SK_SK', - SL = 'SL', - SL_SI = 'SL_SI', - SMN = 'SMN', - SMN_FI = 'SMN_FI', - SN = 'SN', - SN_ZW = 'SN_ZW', - SO = 'SO', - SO_DJ = 'SO_DJ', - SO_ET = 'SO_ET', - SO_KE = 'SO_KE', - SO_SO = 'SO_SO', - SQ = 'SQ', - SQ_AL = 'SQ_AL', - SQ_MK = 'SQ_MK', - SQ_XK = 'SQ_XK', - SR = 'SR', - SR_CYRL = 'SR_CYRL', - SR_CYRL_BA = 'SR_CYRL_BA', - SR_CYRL_ME = 'SR_CYRL_ME', - SR_CYRL_RS = 'SR_CYRL_RS', - SR_CYRL_XK = 'SR_CYRL_XK', - SR_LATN = 'SR_LATN', - SR_LATN_BA = 'SR_LATN_BA', - SR_LATN_ME = 'SR_LATN_ME', - SR_LATN_RS = 'SR_LATN_RS', - SR_LATN_XK = 'SR_LATN_XK', - SU = 'SU', - SU_LATN = 'SU_LATN', - SU_LATN_ID = 'SU_LATN_ID', - SV = 'SV', - SV_AX = 'SV_AX', - SV_FI = 'SV_FI', - SV_SE = 'SV_SE', - SW = 'SW', - SW_CD = 'SW_CD', - SW_KE = 'SW_KE', - SW_TZ = 'SW_TZ', - SW_UG = 'SW_UG', - TA = 'TA', - TA_IN = 'TA_IN', - TA_LK = 'TA_LK', - TA_MY = 'TA_MY', - TA_SG = 'TA_SG', - TE = 'TE', - TEO = 'TEO', - TEO_KE = 'TEO_KE', - TEO_UG = 'TEO_UG', - TE_IN = 'TE_IN', - TG = 'TG', - TG_TJ = 'TG_TJ', - TH = 'TH', - TH_TH = 'TH_TH', - TI = 'TI', - TI_ER = 'TI_ER', - TI_ET = 'TI_ET', - TK = 'TK', - TK_TM = 'TK_TM', - TO = 'TO', - TO_TO = 'TO_TO', - TR = 'TR', - TR_CY = 'TR_CY', - TR_TR = 'TR_TR', - TT = 'TT', - TT_RU = 'TT_RU', - TWQ = 'TWQ', - TWQ_NE = 'TWQ_NE', - TZM = 'TZM', - TZM_MA = 'TZM_MA', - UG = 'UG', - UG_CN = 'UG_CN', - UK = 'UK', - UK_UA = 'UK_UA', - UR = 'UR', - UR_IN = 'UR_IN', - UR_PK = 'UR_PK', - UZ = 'UZ', - UZ_ARAB = 'UZ_ARAB', - UZ_ARAB_AF = 'UZ_ARAB_AF', - UZ_CYRL = 'UZ_CYRL', - UZ_CYRL_UZ = 'UZ_CYRL_UZ', - UZ_LATN = 'UZ_LATN', - UZ_LATN_UZ = 'UZ_LATN_UZ', - VAI = 'VAI', - VAI_LATN = 'VAI_LATN', - VAI_LATN_LR = 'VAI_LATN_LR', - VAI_VAII = 'VAI_VAII', - VAI_VAII_LR = 'VAI_VAII_LR', - VI = 'VI', - VI_VN = 'VI_VN', - VO = 'VO', - VUN = 'VUN', - VUN_TZ = 'VUN_TZ', - WAE = 'WAE', - WAE_CH = 'WAE_CH', - WO = 'WO', - WO_SN = 'WO_SN', - XH = 'XH', - XH_ZA = 'XH_ZA', - XOG = 'XOG', - XOG_UG = 'XOG_UG', - YAV = 'YAV', - YAV_CM = 'YAV_CM', - YI = 'YI', - YO = 'YO', - YO_BJ = 'YO_BJ', - YO_NG = 'YO_NG', - YUE = 'YUE', - YUE_HANS = 'YUE_HANS', - YUE_HANS_CN = 'YUE_HANS_CN', - YUE_HANT = 'YUE_HANT', - YUE_HANT_HK = 'YUE_HANT_HK', - ZGH = 'ZGH', - ZGH_MA = 'ZGH_MA', - ZH = 'ZH', - ZH_HANS = 'ZH_HANS', - ZH_HANS_CN = 'ZH_HANS_CN', - ZH_HANS_HK = 'ZH_HANS_HK', - ZH_HANS_MO = 'ZH_HANS_MO', - ZH_HANS_SG = 'ZH_HANS_SG', - ZH_HANT = 'ZH_HANT', - ZH_HANT_HK = 'ZH_HANT_HK', - ZH_HANT_MO = 'ZH_HANT_MO', - ZH_HANT_TW = 'ZH_HANT_TW', - ZU = 'ZU', - ZU_ZA = 'ZU_ZA' -} +export type _SearchAttributeOperandsQuery = { __typename: 'Query', attributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, choices: { __typename: 'AttributeValueCountableConnection', edges: Array<{ __typename: 'AttributeValueCountableEdge', node: { __typename: 'AttributeValue', id: string, name: string | null, slug: string, originalSlug: string | null } }> } | null } }> } | null }; -/** Filter input for order lines data. */ -export type LinesFilterInput = { - /** Filter by metadata fields of order lines. */ - metadata?: InputMaybe; -}; +export type _GetAttributeChoicesQueryVariables = Exact<{ + slug: Scalars['String']; + first: Scalars['Int']; + query: Scalars['String']; +}>; -/** - * Determine the mark as paid strategy for the channel. - * - * TRANSACTION_FLOW - new orders marked as paid will receive a - * `TransactionItem` object, that will cover the `order.total`. - * - * PAYMENT_FLOW - new orders marked as paid will receive a - * `Payment` object, that will cover the `order.total`. - */ -export enum MarkAsPaidStrategyEnum { - PAYMENT_FLOW = 'PAYMENT_FLOW', - TRANSACTION_FLOW = 'TRANSACTION_FLOW' -} - -export enum MeasurementUnitsEnum { - ACRE_FT = 'ACRE_FT', - ACRE_IN = 'ACRE_IN', - CM = 'CM', - CUBIC_CENTIMETER = 'CUBIC_CENTIMETER', - CUBIC_DECIMETER = 'CUBIC_DECIMETER', - CUBIC_FOOT = 'CUBIC_FOOT', - CUBIC_INCH = 'CUBIC_INCH', - CUBIC_METER = 'CUBIC_METER', - CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', - CUBIC_YARD = 'CUBIC_YARD', - DM = 'DM', - FL_OZ = 'FL_OZ', - FT = 'FT', - G = 'G', - INCH = 'INCH', - KG = 'KG', - KM = 'KM', - LB = 'LB', - LITER = 'LITER', - M = 'M', - MM = 'MM', - OZ = 'OZ', - PINT = 'PINT', - QT = 'QT', - SQ_CM = 'SQ_CM', - SQ_DM = 'SQ_DM', - SQ_FT = 'SQ_FT', - SQ_INCH = 'SQ_INCH', - SQ_KM = 'SQ_KM', - SQ_M = 'SQ_M', - SQ_MM = 'SQ_MM', - SQ_YD = 'SQ_YD', - TONNE = 'TONNE', - YD = 'YD' -} - -export type MeasurementUnitsEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; -export enum MediaChoicesSortField { - /** Sort media by ID. */ - ID = 'ID' -} +export type _GetAttributeChoicesQuery = { __typename: 'Query', attribute: { __typename: 'Attribute', choices: { __typename: 'AttributeValueCountableConnection', edges: Array<{ __typename: 'AttributeValueCountableEdge', node: { __typename: 'AttributeValue', id: string, name: string | null, slug: string, originalSlug: string | null } }> } | null } | null }; -export type MediaInput = { - /** Alt text for a product media. */ - alt?: InputMaybe; - /** Represents an image file in a multipart request. */ - image?: InputMaybe; - /** Represents an URL to an external media. */ - mediaUrl?: InputMaybe; -}; +export type _GetCollectionsChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -export type MediaSortingInput = { - /** Specifies the direction in which to sort media. */ - direction: OrderDirection; - /** Sort media by the selected field. */ - field: MediaChoicesSortField; -}; -export type MenuCreateInput = { - /** List of menu items. */ - items?: InputMaybe>; - /** Name of the menu. */ - name: Scalars['String']; - /** Slug of the menu. Will be generated if not provided. */ - slug?: InputMaybe; -}; - -export enum MenuErrorCode { - CANNOT_ASSIGN_NODE = 'CANNOT_ASSIGN_NODE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_MENU_ITEM = 'INVALID_MENU_ITEM', - NOT_FOUND = 'NOT_FOUND', - NO_MENU_ITEM_PROVIDED = 'NO_MENU_ITEM_PROVIDED', - REQUIRED = 'REQUIRED', - TOO_MANY_MENU_ITEMS = 'TOO_MANY_MENU_ITEMS', - UNIQUE = 'UNIQUE' -} - -export type MenuFilterInput = { - metadata?: InputMaybe>; - search?: InputMaybe; - slug?: InputMaybe>; - slugs?: InputMaybe>; -}; +export type _GetCollectionsChoicesQuery = { __typename: 'Query', collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, slug: string } }> } | null }; -export type MenuInput = { - /** Name of the menu. */ - name?: InputMaybe; - /** Slug of the menu. */ - slug?: InputMaybe; -}; +export type _GetCategoriesChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -export type MenuItemCreateInput = { - /** Category to which item points. */ - category?: InputMaybe; - /** Collection to which item points. */ - collection?: InputMaybe; - /** Menu to which item belongs. */ - menu: Scalars['ID']; - /** Name of the menu item. */ - name: Scalars['String']; - /** Page to which item points. */ - page?: InputMaybe; - /** ID of the parent menu. If empty, menu will be top level menu. */ - parent?: InputMaybe; - /** URL of the pointed item. */ - url?: InputMaybe; -}; -export type MenuItemFilterInput = { - metadata?: InputMaybe>; - search?: InputMaybe; -}; +export type _GetCategoriesChoicesQuery = { __typename: 'Query', categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, slug: string } }> } | null }; -export type MenuItemInput = { - /** Category to which item points. */ - category?: InputMaybe; - /** Collection to which item points. */ - collection?: InputMaybe; - /** Name of the menu item. */ - name?: InputMaybe; - /** Page to which item points. */ - page?: InputMaybe; - /** URL of the pointed item. */ - url?: InputMaybe; -}; +export type _GetProductTypesChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -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?: InputMaybe; - /** 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?: InputMaybe; -}; -export type MenuItemSortingInput = { - /** Specifies the direction in which to sort menu items. */ - direction: OrderDirection; - /** Sort menu items by the selected field. */ - field: MenuItemsSortField; -}; +export type _GetProductTypesChoicesQuery = { __typename: 'Query', productTypes: { __typename: 'ProductTypeCountableConnection', edges: Array<{ __typename: 'ProductTypeCountableEdge', node: { __typename: 'ProductType', id: string, name: string, slug: string } }> } | null }; -export enum MenuItemsSortField { - /** Sort menu items by name. */ - NAME = 'NAME' -} +export type _GetPageTypesChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -export enum MenuSortField { - /** Sort menus by items count. */ - ITEMS_COUNT = 'ITEMS_COUNT', - /** Sort menus by name. */ - NAME = 'NAME' -} -export type MenuSortingInput = { - /** Specifies the direction in which to sort menus. */ - direction: OrderDirection; - /** Sort menus by the selected field. */ - field: MenuSortField; -}; +export type _GetPageTypesChoicesQuery = { __typename: 'Query', pageTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string, slug: string } }> } | null }; -export enum MetadataErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - NOT_UPDATED = 'NOT_UPDATED', - REQUIRED = 'REQUIRED' -} +export type _GetPagesChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -export type MetadataFilter = { - /** Key of a metadata item. */ - key: Scalars['String']; - /** Value of a metadata item. */ - value?: InputMaybe; -}; -/** - * Allows filtering based on metadata key/value pairs. - * - * Examples: - * - `{key: "size"}` - * Matches objects where the metadata key "size" exists, regardless of its value. - * - `{key: "color", value: {oneOf: ["blue", "green"]}}` - * Matches objects where the metadata key "color" is set to either "blue" or "green". - * - `{key: "status", value: {eq: "active"}}` - * Matches objects where the metadata key "status" is set to "active". - */ -export type MetadataFilterInput = { - /** Key to filter by. If not other fields provided - checking the existence of the key in metadata. */ - key: Scalars['String']; - /** Value to filter by. */ - value?: InputMaybe; -}; +export type _GetPagesChoicesQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, slug: string, name: string, originalSlug: string } }> } | null }; -export type MetadataInput = { - /** Key of a metadata item. */ - key: Scalars['String']; - /** Value of a metadata item. */ - value: Scalars['String']; -}; +export type _GetProductChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -/** Define the filtering options for metadata value fields. */ -export type MetadataValueFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; -export type MoneyInput = { - /** Amount of money. */ - amount: Scalars['PositiveDecimal']; - /** Currency code. */ - currency: Scalars['String']; -}; +export type _GetProductChoicesQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, slug: string } }> } | null }; -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?: InputMaybe; -}; +export type _GetProductVariantChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -export type NameTranslationInput = { - name?: InputMaybe; -}; -export enum NavigationType { - /** Main storefront navigation. */ - MAIN = 'MAIN', - /** Secondary storefront navigation. */ - SECONDARY = 'SECONDARY' -} +export type _GetProductVariantChoicesQuery = { __typename: 'Query', productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, slug: string, originalSlug: string, product: { __typename: 'Product', name: string } } }> } | null }; -export enum OrderAction { - /** Represents the capture action. */ - CAPTURE = 'CAPTURE', - /** Represents a mark-as-paid action. */ - MARK_AS_PAID = 'MARK_AS_PAID', - /** Represents a refund action. */ - REFUND = 'REFUND', - /** Represents a void action. */ - VOID = 'VOID' -} +export type _GetGiftCardTagsChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -export type OrderAddNoteInput = { - /** Note message. */ - message: Scalars['String']; -}; -/** - * Determine a current authorize status for order. - * - * We treat the order as fully authorized when the sum of authorized and charged funds - * cover the `order.total`-`order.totalGrantedRefund`. - * We treat the order as partially authorized when the sum of authorized and charged - * funds covers only part of the `order.total`-`order.totalGrantedRefund`. - * We treat the order as not authorized when the sum of authorized and charged funds is - * 0. - * - * NONE - the funds are not authorized - * PARTIAL - the funds that are authorized and charged don't cover fully the - * `order.total`-`order.totalGrantedRefund` - * FULL - the funds that are authorized and charged fully cover the - * `order.total`-`order.totalGrantedRefund` - */ -export enum OrderAuthorizeStatusEnum { - FULL = 'FULL', - NONE = 'NONE', - PARTIAL = 'PARTIAL' -} +export type _GetGiftCardTagsChoicesQuery = { __typename: 'Query', giftCardTags: { __typename: 'GiftCardTagCountableConnection', edges: Array<{ __typename: 'GiftCardTagCountableEdge', node: { __typename: 'GiftCardTag', id: string, name: string } }> } | null }; -/** Filter by authorize status. */ -export type OrderAuthorizeStatusEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; +export type _GetCustomersChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -export type OrderBulkCreateDeliveryMethodInput = { - /** The ID of the shipping method. */ - shippingMethodId?: InputMaybe; - /** The name of the shipping method. */ - shippingMethodName?: InputMaybe; - /** The price of the shipping. */ - shippingPrice?: InputMaybe; - /** The ID of the tax class. */ - shippingTaxClassId?: InputMaybe; - /** - * Metadata of the tax class. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - shippingTaxClassMetadata?: InputMaybe>; - /** The name of the tax class. */ - shippingTaxClassName?: InputMaybe; - /** - * Private metadata of the tax class. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - shippingTaxClassPrivateMetadata?: InputMaybe>; - /** Tax rate of the shipping. */ - shippingTaxRate?: InputMaybe; - /** The ID of the warehouse. */ - warehouseId?: InputMaybe; - /** The name of the warehouse. */ - warehouseName?: InputMaybe; -}; - -export enum OrderBulkCreateErrorCode { - BULK_LIMIT = 'BULK_LIMIT', - FUTURE_DATE = 'FUTURE_DATE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID = 'INVALID', - INVALID_QUANTITY = 'INVALID_QUANTITY', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', - NEGATIVE_INDEX = 'NEGATIVE_INDEX', - NON_EXISTING_STOCK = 'NON_EXISTING_STOCK', - NOTE_LENGTH = 'NOTE_LENGTH', - NOT_FOUND = 'NOT_FOUND', - NO_RELATED_ORDER_LINE = 'NO_RELATED_ORDER_LINE', - ORDER_LINE_FULFILLMENT_LINE_MISMATCH = 'ORDER_LINE_FULFILLMENT_LINE_MISMATCH', - PRICE_ERROR = 'PRICE_ERROR', - REQUIRED = 'REQUIRED', - TOO_MANY_IDENTIFIERS = 'TOO_MANY_IDENTIFIERS', - UNIQUE = 'UNIQUE' -} - -export type OrderBulkCreateFulfillmentInput = { - /** List of items informing how to fulfill the order. */ - lines?: InputMaybe>; - /** Fulfillment's tracking code. */ - trackingCode?: InputMaybe; -}; -export type OrderBulkCreateFulfillmentLineInput = { - /** 0-based index of order line, which the fulfillment line refers to. */ - orderLineIndex: Scalars['Int']; - /** The number of line items to be fulfilled from given warehouse. */ - quantity: Scalars['Int']; - /** The external ID of the product variant. */ - variantExternalReference?: InputMaybe; - /** The ID of the product variant. */ - variantId?: InputMaybe; - /** The SKU of the product variant. */ - variantSku?: InputMaybe; - /** ID of the warehouse from which the item will be fulfilled. */ - warehouse: Scalars['ID']; -}; +export type _GetCustomersChoicesQuery = { __typename: 'Query', customers: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } }> } | null }; -export type OrderBulkCreateInput = { - /** Billing address of the customer. */ - billingAddress: AddressInput; - /** Slug of the channel associated with the order. */ - channel: Scalars['String']; - /** The date, when the order was inserted to Saleor database. */ - createdAt: Scalars['DateTime']; - /** Currency code. */ - currency: Scalars['String']; - /** Note about customer. */ - customerNote?: InputMaybe; - /** The delivery method selected for this order. */ - deliveryMethod?: InputMaybe; - /** List of discounts. */ - discounts?: InputMaybe>; - /** Determines whether displayed prices should include taxes. */ - displayGrossPrices?: InputMaybe; - /** External ID of the order. */ - externalReference?: InputMaybe; - /** Fulfillments of the order. */ - fulfillments?: InputMaybe>; - /** List of gift card codes associated with the order. */ - giftCards?: InputMaybe>; - /** Invoices related to the order. */ - invoices?: InputMaybe>; - /** Order language code. */ - languageCode: LanguageCodeEnum; - /** List of order lines. */ - lines: Array; - /** - * Metadata of the order. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Notes related to the order. */ - notes?: InputMaybe>; - /** - * Private metadata of the order. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view, where users should be redirected to see the order details. */ - redirectUrl?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** Status of the order. */ - status?: InputMaybe; - /** Transactions related to the order. */ - transactions?: InputMaybe>; - /** Customer associated with the order. */ - user: OrderBulkCreateUserInput; - /** - * Code of a voucher associated with the order. - * - * Added in Saleor 3.18. - */ - voucherCode?: InputMaybe; - /** Weight of the order in kg. */ - weight?: InputMaybe; -}; +export type _SearchCustomersOperandsQueryVariables = Exact<{ + first: Scalars['Int']; + customersIds?: InputMaybe | Scalars['ID']>; +}>; -export type OrderBulkCreateInvoiceInput = { - /** The date, when the invoice was created. */ - createdAt: Scalars['DateTime']; - /** - * Metadata of the invoice. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Invoice number. */ - number?: InputMaybe; - /** - * Private metadata of the invoice. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of the invoice to download. */ - url?: InputMaybe; -}; - -export type OrderBulkCreateNoteInput = { - /** The app ID associated with the message. */ - appId?: InputMaybe; - /** The date associated with the message. */ - date?: InputMaybe; - /** Note message. Max characters: 255. */ - message: Scalars['String']; - /** The user email associated with the message. */ - userEmail?: InputMaybe; - /** The user external ID associated with the message. */ - userExternalReference?: InputMaybe; - /** The user ID associated with the message. */ - userId?: InputMaybe; -}; - -export type OrderBulkCreateOrderLineInput = { - /** The date, when the order line was created. */ - createdAt: Scalars['DateTime']; - /** Gift card flag. */ - isGiftCard: Scalars['Boolean']; - /** Determines whether shipping of the order line items is required. */ - isShippingRequired: Scalars['Boolean']; - /** - * Metadata of the order line. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Private metadata of the order line. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** The name of the product. */ - productName?: InputMaybe; - /** - * The SKU of the product. - * - * Added in Saleor 3.18. - */ - productSku?: InputMaybe; - /** Number of items in the order line */ - quantity: Scalars['Int']; - /** The ID of the tax class. */ - taxClassId?: InputMaybe; - /** - * Metadata of the tax class. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - taxClassMetadata?: InputMaybe>; - /** The name of the tax class. */ - taxClassName?: InputMaybe; - /** - * Private metadata of the tax class. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - taxClassPrivateMetadata?: InputMaybe>; - /** Tax rate of the order line. */ - taxRate?: InputMaybe; - /** Price of the order line. */ - totalPrice: TaxedMoneyInput; - /** Translation of the product name. */ - translatedProductName?: InputMaybe; - /** Translation of the product variant name. */ - translatedVariantName?: InputMaybe; - /** Price of the order line excluding applied discount. */ - undiscountedTotalPrice: TaxedMoneyInput; - /** - * Reason of the discount on order line. - * - * Added in Saleor 3.19. - */ - unitDiscountReason?: InputMaybe; - /** - * Type of the discount: fixed or percent - * - * Added in Saleor 3.19. - */ - unitDiscountType?: InputMaybe; - /** - * Value of the discount. Can store fixed value or percent value - * - * Added in Saleor 3.19. - */ - unitDiscountValue?: InputMaybe; - /** The external ID of the product variant. */ - variantExternalReference?: InputMaybe; - /** The ID of the product variant. */ - variantId?: InputMaybe; - /** The name of the product variant. */ - variantName?: InputMaybe; - /** The SKU of the product variant. */ - variantSku?: InputMaybe; - /** The ID of the warehouse, where the line will be allocated. */ - warehouse: Scalars['ID']; -}; - -export type OrderBulkCreateUserInput = { - /** Customer email associated with the order. */ - email?: InputMaybe; - /** Customer external ID associated with the order. */ - externalReference?: InputMaybe; - /** Customer ID associated with the order. */ - id?: InputMaybe; -}; -/** - * Determine the current charge status for the order. - * - * An order is considered overcharged when the sum of the - * transactionItem's charge amounts exceeds the value of - * `order.total` - `order.totalGrantedRefund`. - * If the sum of the transactionItem's charge amounts equals - * `order.total` - `order.totalGrantedRefund`, we consider the order to be fully - * charged. - * If the sum of the transactionItem's charge amounts covers a part of the - * `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged. - * - * NONE - the funds are not charged. - * PARTIAL - the funds that are charged don't cover the - * `order.total`-`order.totalGrantedRefund` - * FULL - the funds that are charged fully cover the - * `order.total`-`order.totalGrantedRefund` - * OVERCHARGED - the charged funds are bigger than the - * `order.total`-`order.totalGrantedRefund` - */ -export enum OrderChargeStatusEnum { - FULL = 'FULL', - NONE = 'NONE', - OVERCHARGED = 'OVERCHARGED', - PARTIAL = 'PARTIAL' -} +export type _SearchCustomersOperandsQuery = { __typename: 'Query', customers: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } }> } | null }; -/** Filter by charge status. */ -export type OrderChargeStatusEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; +export type _SearchPageOperandsQueryVariables = Exact<{ + first: Scalars['Int']; + pageSlugs?: InputMaybe | Scalars['String']>; +}>; -export enum OrderCreateFromCheckoutErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - CHECKOUT_NOT_FOUND = 'CHECKOUT_NOT_FOUND', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - NO_LINES = 'NO_LINES', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - TAX_ERROR = 'TAX_ERROR', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE' -} - -export enum OrderDirection { - /** Specifies an ascending sort order. */ - ASC = 'ASC', - /** Specifies a descending sort order. */ - DESC = 'DESC' -} -export type OrderDiscountCommonInput = { - /** Explanation for the applied discount. */ - reason?: InputMaybe; - /** Value of the discount. Can store fixed value or percent value */ - value: Scalars['PositiveDecimal']; - /** Type of the discount: fixed or percent */ - valueType: DiscountValueTypeEnum; -}; +export type _SearchPageOperandsQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, slug: string, name: string, originalSlug: string } }> } | null }; -export enum OrderDiscountType { - MANUAL = 'MANUAL', - ORDER_PROMOTION = 'ORDER_PROMOTION', - PROMOTION = 'PROMOTION', - SALE = 'SALE', - VOUCHER = 'VOUCHER' -} +export type _SearchProductOperandsQueryVariables = Exact<{ + first: Scalars['Int']; + productSlugs?: InputMaybe | Scalars['String']>; +}>; -export type OrderDraftFilterInput = { - channels?: InputMaybe>; - created?: InputMaybe; - customer?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; -}; -export enum OrderErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CANNOT_CANCEL_FULFILLMENT = 'CANNOT_CANCEL_FULFILLMENT', - CANNOT_CANCEL_ORDER = 'CANNOT_CANCEL_ORDER', - CANNOT_DELETE = 'CANNOT_DELETE', - CANNOT_DISCOUNT = 'CANNOT_DISCOUNT', - CANNOT_FULFILL_UNPAID_ORDER = 'CANNOT_FULFILL_UNPAID_ORDER', - CANNOT_REFUND = 'CANNOT_REFUND', - CAPTURE_INACTIVE_PAYMENT = 'CAPTURE_INACTIVE_PAYMENT', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - FULFILL_ORDER_LINE = 'FULFILL_ORDER_LINE', - GIFT_CARD_LINE = 'GIFT_CARD_LINE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID = 'INVALID', - INVALID_QUANTITY = 'INVALID_QUANTITY', - INVALID_VOUCHER = 'INVALID_VOUCHER', - INVALID_VOUCHER_CODE = 'INVALID_VOUCHER_CODE', - MISSING_ADDRESS_DATA = 'MISSING_ADDRESS_DATA', - NON_EDITABLE_GIFT_LINE = 'NON_EDITABLE_GIFT_LINE', - NON_REMOVABLE_GIFT_LINE = 'NON_REMOVABLE_GIFT_LINE', - NOT_AVAILABLE_IN_CHANNEL = 'NOT_AVAILABLE_IN_CHANNEL', - NOT_EDITABLE = 'NOT_EDITABLE', - NOT_FOUND = 'NOT_FOUND', - ORDER_NO_SHIPPING_ADDRESS = 'ORDER_NO_SHIPPING_ADDRESS', - PAYMENT_ERROR = 'PAYMENT_ERROR', - PAYMENT_MISSING = 'PAYMENT_MISSING', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', - REQUIRED = 'REQUIRED', - SHIPPING_METHOD_NOT_APPLICABLE = 'SHIPPING_METHOD_NOT_APPLICABLE', - SHIPPING_METHOD_REQUIRED = 'SHIPPING_METHOD_REQUIRED', - TAX_ERROR = 'TAX_ERROR', - TRANSACTION_ERROR = 'TRANSACTION_ERROR', - UNIQUE = 'UNIQUE', - VOID_INACTIVE_PAYMENT = 'VOID_INACTIVE_PAYMENT', - ZERO_QUANTITY = 'ZERO_QUANTITY' -} +export type _SearchProductOperandsQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, slug: string, originalSlug: string } }> } | null }; -/** Filter input for order events data. */ -export type OrderEventFilterInput = { - /** Filter order events by date. */ - date?: InputMaybe; - /** Filter order events by type. */ - type?: InputMaybe; -}; +export type _SearchProductVariantOperandsQueryVariables = Exact<{ + first: Scalars['Int']; + ids?: InputMaybe | Scalars['ID']>; +}>; -export type OrderEventTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; -export enum OrderEventsEmailsEnum { - CONFIRMED = 'CONFIRMED', - DIGITAL_LINKS = 'DIGITAL_LINKS', - FULFILLMENT_CONFIRMATION = 'FULFILLMENT_CONFIRMATION', - ORDER_CANCEL = 'ORDER_CANCEL', - ORDER_CONFIRMATION = 'ORDER_CONFIRMATION', - ORDER_REFUND = 'ORDER_REFUND', - PAYMENT_CONFIRMATION = 'PAYMENT_CONFIRMATION', - SHIPPING_CONFIRMATION = 'SHIPPING_CONFIRMATION', - TRACKING_UPDATED = 'TRACKING_UPDATED' -} +export type _SearchProductVariantOperandsQuery = { __typename: 'Query', productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, slug: string, originalSlug: string, product: { __typename: 'Product', name: string } } }> } | null }; -/** The different order event types. */ -export enum OrderEventsEnum { - ADDED_PRODUCTS = 'ADDED_PRODUCTS', - CANCELED = 'CANCELED', - CONFIRMED = 'CONFIRMED', - DRAFT_CREATED = 'DRAFT_CREATED', - DRAFT_CREATED_FROM_REPLACE = 'DRAFT_CREATED_FROM_REPLACE', - EMAIL_SENT = 'EMAIL_SENT', - EXPIRED = 'EXPIRED', - EXTERNAL_SERVICE_NOTIFICATION = 'EXTERNAL_SERVICE_NOTIFICATION', - FULFILLMENT_AWAITS_APPROVAL = 'FULFILLMENT_AWAITS_APPROVAL', - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - FULFILLMENT_FULFILLED_ITEMS = 'FULFILLMENT_FULFILLED_ITEMS', - FULFILLMENT_REFUNDED = 'FULFILLMENT_REFUNDED', - FULFILLMENT_REPLACED = 'FULFILLMENT_REPLACED', - FULFILLMENT_RESTOCKED_ITEMS = 'FULFILLMENT_RESTOCKED_ITEMS', - FULFILLMENT_RETURNED = 'FULFILLMENT_RETURNED', - INVOICE_GENERATED = 'INVOICE_GENERATED', - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - INVOICE_SENT = 'INVOICE_SENT', - INVOICE_UPDATED = 'INVOICE_UPDATED', - NOTE_ADDED = 'NOTE_ADDED', - NOTE_UPDATED = 'NOTE_UPDATED', - ORDER_DISCOUNT_ADDED = 'ORDER_DISCOUNT_ADDED', - ORDER_DISCOUNT_AUTOMATICALLY_UPDATED = 'ORDER_DISCOUNT_AUTOMATICALLY_UPDATED', - ORDER_DISCOUNT_DELETED = 'ORDER_DISCOUNT_DELETED', - ORDER_DISCOUNT_UPDATED = 'ORDER_DISCOUNT_UPDATED', - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - ORDER_LINE_DISCOUNT_REMOVED = 'ORDER_LINE_DISCOUNT_REMOVED', - ORDER_LINE_DISCOUNT_UPDATED = 'ORDER_LINE_DISCOUNT_UPDATED', - ORDER_LINE_PRODUCT_DELETED = 'ORDER_LINE_PRODUCT_DELETED', - ORDER_LINE_VARIANT_DELETED = 'ORDER_LINE_VARIANT_DELETED', - ORDER_MARKED_AS_PAID = 'ORDER_MARKED_AS_PAID', - ORDER_REPLACEMENT_CREATED = 'ORDER_REPLACEMENT_CREATED', - OTHER = 'OTHER', - OVERSOLD_ITEMS = 'OVERSOLD_ITEMS', - PAYMENT_AUTHORIZED = 'PAYMENT_AUTHORIZED', - PAYMENT_CAPTURED = 'PAYMENT_CAPTURED', - PAYMENT_FAILED = 'PAYMENT_FAILED', - PAYMENT_REFUNDED = 'PAYMENT_REFUNDED', - PAYMENT_VOIDED = 'PAYMENT_VOIDED', - PLACED = 'PLACED', - PLACED_AUTOMATICALLY_FROM_PAID_CHECKOUT = 'PLACED_AUTOMATICALLY_FROM_PAID_CHECKOUT', - PLACED_FROM_DRAFT = 'PLACED_FROM_DRAFT', - REMOVED_PRODUCTS = 'REMOVED_PRODUCTS', - TRACKING_UPDATED = 'TRACKING_UPDATED', - TRANSACTION_CANCEL_REQUESTED = 'TRANSACTION_CANCEL_REQUESTED', - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - TRANSACTION_EVENT = 'TRANSACTION_EVENT', - TRANSACTION_MARK_AS_PAID_FAILED = 'TRANSACTION_MARK_AS_PAID_FAILED', - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', - UPDATED_ADDRESS = 'UPDATED_ADDRESS' -} +export type _GetWarehouseChoicesQueryVariables = Exact<{ + first: Scalars['Int']; + query: Scalars['String']; +}>; -export type OrderFilterInput = { - authorizeStatus?: InputMaybe>; - channels?: InputMaybe>; - chargeStatus?: InputMaybe>; - checkoutIds?: InputMaybe>; - checkoutTokens?: InputMaybe>; - created?: InputMaybe; - customer?: InputMaybe; - giftCardBought?: InputMaybe; - giftCardUsed?: InputMaybe; - ids?: InputMaybe>; - isClickAndCollect?: InputMaybe; - isPreorder?: InputMaybe; - metadata?: InputMaybe>; - numbers?: InputMaybe>; - paymentStatus?: InputMaybe>; - search?: InputMaybe; - status?: InputMaybe>; - updatedAt?: InputMaybe; -}; -export type OrderFulfillInput = { - /** If true, then allow proceed fulfillment when stock is exceeded. */ - allowStockToBeExceeded?: InputMaybe; - /** List of items informing how to fulfill the order. */ - lines: Array; - /** If true, send an email notification to the customer. */ - notifyCustomer?: InputMaybe; - /** Fulfillment tracking number. */ - trackingNumber?: InputMaybe; -}; +export type _GetWarehouseChoicesQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string, slug: string } }> } | null }; -export type OrderFulfillLineInput = { - /** The ID of the order line. */ - orderLineId?: InputMaybe; - /** List of stock items to create. */ - stocks: Array; -}; +export type _SearchWarehouseOperandsQueryVariables = Exact<{ + first: Scalars['Int']; + warehouseSlugs?: InputMaybe | Scalars['String']>; +}>; -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']; -}; -export enum OrderGrantRefundCreateErrorCode { - AMOUNT_GREATER_THAN_AVAILABLE = 'AMOUNT_GREATER_THAN_AVAILABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - SHIPPING_COSTS_ALREADY_GRANTED = 'SHIPPING_COSTS_ALREADY_GRANTED' -} +export type _SearchWarehouseOperandsQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string, slug: string } }> } | null }; -export type OrderGrantRefundCreateInput = { - /** Amount of the granted refund. If not provided, the amount will be calculated automatically based on provided `lines` and `grantRefundForShipping`. */ - amount?: InputMaybe; - /** Determine if granted refund should include shipping costs. */ - grantRefundForShipping?: InputMaybe; - /** Lines to assign to granted refund. */ - lines?: InputMaybe>; - /** Reason of the granted refund. */ - reason?: InputMaybe; - /** - * ID of a `Page` (Model) to reference in reason. - * - * Added in Saleor 3.22. - */ - reasonReference?: InputMaybe; - /** - * The ID of the transaction item related to the granted refund. If `amount` provided in the input, the transaction.chargedAmount needs to be equal or greater than provided `amount`.If `amount` is not provided in the input and calculated automatically by Saleor, the `min(calculatedAmount, transaction.chargedAmount)` will be used. Field required starting from Saleor 3.21. - * - * Added in Saleor 3.20. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - transactionId: Scalars['ID']; -}; +export type TriggerWebhookDryRunMutationVariables = Exact<{ + objectId: Scalars['ID']; + query: Scalars['String']; +}>; -export enum OrderGrantRefundCreateLineErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - QUANTITY_GREATER_THAN_AVAILABLE = 'QUANTITY_GREATER_THAN_AVAILABLE' -} -export type OrderGrantRefundCreateLineInput = { - /** The ID of the order line. */ - id: Scalars['ID']; - /** The quantity of line items to be marked to refund. */ - quantity: Scalars['Int']; - /** Reason of the granted refund for the line. */ - reason?: InputMaybe; -}; +export type TriggerWebhookDryRunMutation = { __typename: 'Mutation', webhookDryRun: { __typename: 'WebhookDryRun', payload: any | null, errors: Array<{ __typename: 'WebhookDryRunError', field: string | null, message: string | null }> } | null }; -export enum OrderGrantRefundUpdateErrorCode { - AMOUNT_GREATER_THAN_AVAILABLE = 'AMOUNT_GREATER_THAN_AVAILABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - SHIPPING_COSTS_ALREADY_GRANTED = 'SHIPPING_COSTS_ALREADY_GRANTED' -} +export type CheckoutListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; +}>; -export type OrderGrantRefundUpdateInput = { - /** Lines to assign to granted refund. */ - addLines?: InputMaybe>; - /** Amount of the granted refund. if not provided and `addLines` or `removeLines` or `grantRefundForShipping` is provided, amount will be calculated automatically. */ - amount?: InputMaybe; - /** Determine if granted refund should include shipping costs. */ - grantRefundForShipping?: InputMaybe; - /** Reason of the granted refund. */ - reason?: InputMaybe; - /** - * ID of a `Page` (Model) to reference in reason. - * - * Added in Saleor 3.22. - */ - reasonReference?: InputMaybe; - /** Lines to remove from granted refund. */ - removeLines?: InputMaybe>; - /** - * The ID of the transaction item related to the granted refund. If `amount` provided in the input, the transaction.chargedAmount needs to be equal or greater than provided `amount`.If `amount` is not provided in the input and calculated automatically by Saleor, the `min(calculatedAmount, transaction.chargedAmount)` will be used.Field will be required starting from Saleor 3.21. - * - * Added in Saleor 3.20. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - transactionId?: InputMaybe; -}; -export type OrderGrantRefundUpdateLineAddInput = { - /** The ID of the order line. */ - id: Scalars['ID']; - /** The quantity of line items to be marked to refund. */ - quantity: Scalars['Int']; - /** Reason of the granted refund for the line. */ - reason?: InputMaybe; -}; +export type CheckoutListQuery = { __typename: 'Query', checkouts: { __typename: 'CheckoutCountableConnection', edges: Array<{ __typename: 'CheckoutCountableEdge', cursor: string, node: { __typename: 'Checkout', id: string, created: any } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; -export enum OrderGrantRefundUpdateLineErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - QUANTITY_GREATER_THAN_AVAILABLE = 'QUANTITY_GREATER_THAN_AVAILABLE' -} +export type ChannelListQueryVariables = Exact<{ [key: string]: never; }>; -/** - * Represents the status of a granted refund. - * - * NONE - the refund on related transactionItem is not processed - * PENDING - the refund on related transactionItem is pending - * FULL - the refund on related transactionItem is fully processed - * FAIL - the refund on related transactionItem failed - */ -export enum OrderGrantedRefundStatusEnum { - FAILURE = 'FAILURE', - NONE = 'NONE', - PENDING = 'PENDING', - SUCCESS = 'SUCCESS' -} -export type OrderLineCreateInput = { - /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ - forceNewLine?: InputMaybe; - /** Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used. */ - price?: InputMaybe; - /** Number of variant items ordered. */ - quantity: Scalars['Int']; - /** Product variant ID. */ - variantId: Scalars['ID']; -}; +export type ChannelListQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, name: string }> | null }; -export type OrderLineInput = { - /** Number of variant items ordered. */ - quantity: Scalars['Int']; -}; +export type NavigatorSearchQueryVariables = Exact<{ + query: Scalars['String']; +}>; -export enum OrderNoteAddErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - REQUIRED = 'REQUIRED' -} -export type OrderNoteInput = { - /** Note message. */ - message: Scalars['String']; -}; +export type NavigatorSearchQuery = { __typename: 'Query', orders: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, number: string, status: OrderStatus, updatedAt: any, paymentStatus: PaymentChargeStatusEnum, chargeStatus: OrderChargeStatusEnum, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } }> } | null, categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, updatedAt: any, level: number, backgroundImage: { __typename: 'Image', url: string, alt: string | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null } }> } | null, collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, backgroundImage: { __typename: 'Image', url: string, alt: string | null } | null } }> } | null, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, updatedAt: any, category: { __typename: 'Category', name: string } | null, thumbnail: { __typename: 'Image', alt: string | null, url: string } | null } }> } | null, productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, updatedAt: any, media: Array<{ __typename: 'ProductMedia', alt: string, url: string }> | null, product: { __typename: 'Product', id: string, name: string, category: { __typename: 'Category', name: string } | null } } }> } | null, models: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string, publishedAt: any | null, pageType: { __typename: 'PageType', name: string } } }> } | null, modelTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string } }> } | null }; -export enum OrderNoteUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} +export type ShopInfoQueryVariables = Exact<{ [key: string]: never; }>; -export enum OrderOriginEnum { - BULK_CREATE = 'BULK_CREATE', - CHECKOUT = 'CHECKOUT', - DRAFT = 'DRAFT', - REISSUE = 'REISSUE' -} -export type OrderPredicateInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Defines the conditions related to checkout and order objects. */ - discountedObjectPredicate?: InputMaybe; -}; +export type ShopInfoQuery = { __typename: 'Query', shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, name: string, trackInventoryByDefault: boolean | null, version: string, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, defaultCountry: { __typename: 'CountryDisplay', country: string, code: string } | null, domain: { __typename: 'Domain', host: string, url: string }, languages: Array<{ __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string }>, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> } }; -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 ShopCountriesQueryVariables = Exact<{ + filter?: InputMaybe; +}>; -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 = { - /** The total amount of refund when the value is provided manually. */ - amountToRefund?: InputMaybe; - /** List of fulfilled lines to refund. */ - fulfillmentLines?: InputMaybe>; - /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ - includeShippingCosts?: InputMaybe; - /** List of unfulfilled lines to refund. */ - orderLines?: InputMaybe>; -}; +export type ShopCountriesQuery = { __typename: 'Query', shop: { __typename: 'Shop', countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> } }; -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?: InputMaybe; -}; +export type RefreshLimitsQueryVariables = Exact<{ + channels: Scalars['Boolean']; + orders: Scalars['Boolean']; + productVariants: Scalars['Boolean']; + staffUsers: Scalars['Boolean']; + warehouses: Scalars['Boolean']; +}>; -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?: InputMaybe; -}; -export type OrderReturnProductsInput = { - /** The total amount of refund when the value is provided manually. */ - amountToRefund?: InputMaybe; - /** List of fulfilled lines to return. */ - fulfillmentLines?: InputMaybe>; - /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ - includeShippingCosts?: InputMaybe; - /** List of unfulfilled lines to return. */ - orderLines?: InputMaybe>; - /** If true, Saleor will call refund action for all lines. */ - refund?: InputMaybe; -}; +export type RefreshLimitsQuery = { __typename: 'Query', shop: { __typename: 'Shop', limits: { __typename: 'LimitInfo', currentUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null }, allowedUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null } } } }; -export enum OrderSettingsErrorCode { - INVALID = 'INVALID' -} +export type CheckExportFileStatusQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type OrderSettingsInput = { - /** Determine if it is possible to place unpaid order by calling `checkoutComplete` mutation. */ - allowUnpaidOrders?: InputMaybe; - /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ - automaticallyConfirmAllNewOrders?: InputMaybe; - /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ - automaticallyFulfillNonShippableGiftCard?: InputMaybe; - /** The time in days after expired orders will be deleted.Allowed range is from 1 to 120. */ - deleteExpiredOrdersAfter?: InputMaybe; - /** - * Time in hours after which the draft order line price will be refreshed. Default value is 24 hours. Enter 0 or null to disable. - * - * Added in Saleor 3.21. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - draftOrderLinePriceFreezePeriod?: InputMaybe; - /** Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable. */ - expireOrdersAfter?: InputMaybe; - /** - * Specify whether a coupon applied to draft orders will count toward voucher usage. - * - * Warning: when switching this setting from `false` to `true`, the vouchers will be disconnected from all draft orders. - * - * Added in Saleor 3.18. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - includeDraftOrderInVoucherUsage?: InputMaybe; - /** - * Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. - * `PAYMENT_FLOW` - [default option] creates the `Payment` object. - * `TRANSACTION_FLOW` - creates the `TransactionItem` object. - */ - markAsPaidStrategy?: InputMaybe; - /** - * This flag only affects orders created from checkout and applies specifically to vouchers of the types: `SPECIFIC_PRODUCT` and `ENTIRE_ORDER` with `applyOncePerOrder` enabled. - * - When legacy propagation is enabled, discounts from these vouchers are represented as `OrderDiscount` objects, attached to the order and returned in the `Order.discounts` field. Additionally, percentage-based vouchers are converted to fixed-value discounts. - * - When legacy propagation is disabled, discounts are represented as `OrderLineDiscount` objects, attached to individual lines and returned in the `OrderLine.discounts` field. In this case, percentage-based vouchers retain their original type. - * In future releases, `OrderLineDiscount` will become the default behavior, and this flag will be deprecated and removed. - * - * Added in Saleor 3.21. - */ - useLegacyLineDiscountPropagation?: InputMaybe; -}; -export type OrderSettingsUpdateInput = { - /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ - automaticallyConfirmAllNewOrders?: InputMaybe; - /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ - automaticallyFulfillNonShippableGiftCard?: InputMaybe; -}; +export type CheckExportFileStatusQuery = { __typename: 'Query', exportFile: { __typename: 'ExportFile', id: string, status: JobStatusEnum } | null }; -export enum OrderSortField { - /** Sort orders by creation date. */ - CREATED_AT = 'CREATED_AT', - /** - * Sort orders by creation date - * @deprecated Use `CREATED_AT` instead. - */ - CREATION_DATE = 'CREATION_DATE', - /** Sort orders by customer. */ - CUSTOMER = 'CUSTOMER', - /** - * Sort orders by fulfillment status. - * @deprecated Use `STATUS` instead. - */ - FULFILLMENT_STATUS = 'FULFILLMENT_STATUS', - /** Sort orders by last modified date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** Sort orders by number. */ - NUMBER = 'NUMBER', - /** Sort orders by payment status. */ - PAYMENT = 'PAYMENT', - /** Sort orders by rank. Note: This option is available only with the `search` filter. */ - RANK = 'RANK', - /** - * Sort orders by order status. - * - * Added in Saleor 3.22. - */ - STATUS = 'STATUS' -} +export type CheckOrderInvoicesStatusQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type OrderSortingInput = { - /** Specifies the direction in which to sort orders. */ - direction: OrderDirection; - /** Sort orders by the selected field. */ - field: OrderSortField; -}; -export enum OrderStatus { - CANCELED = 'CANCELED', - DRAFT = 'DRAFT', - EXPIRED = 'EXPIRED', - FULFILLED = 'FULFILLED', - PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', - PARTIALLY_RETURNED = 'PARTIALLY_RETURNED', - RETURNED = 'RETURNED', - UNCONFIRMED = 'UNCONFIRMED', - UNFULFILLED = 'UNFULFILLED' -} +export type CheckOrderInvoicesStatusQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }> } | null }; -/** Filter by order status. */ -export type OrderStatusEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; +export type UpdateCustomerMutationVariables = Exact<{ + id: Scalars['ID']; + input: CustomerInput; +}>; -export enum OrderStatusFilter { - CANCELED = 'CANCELED', - FULFILLED = 'FULFILLED', - PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', - READY_TO_CAPTURE = 'READY_TO_CAPTURE', - READY_TO_FULFILL = 'READY_TO_FULFILL', - UNCONFIRMED = 'UNCONFIRMED', - UNFULFILLED = 'UNFULFILLED' -} -export type OrderUpdateInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** External ID of this order. */ - externalReference?: InputMaybe; - /** - * Order language code. - * - * Added in Saleor 3.21. - */ - languageCode?: InputMaybe; - /** - * Order public metadata. - * - * Added in Saleor 3.21.Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Order private metadata. - * - * Added in Saleor 3.21.Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; -}; +export type UpdateCustomerMutation = { __typename: 'Mutation', customerUpdate: { __typename: 'CustomerUpdate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', dateJoined: any, lastLogin: any | null, note: string | null, isActive: boolean, id: string, email: string, firstName: string, lastName: string, defaultShippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, defaultBillingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null } | null } | null }; -export type OrderUpdateShippingInput = { - /** ID of the selected shipping method, pass null to remove currently assigned shipping method. */ - shippingMethod?: InputMaybe; -}; +export type CreateCustomerMutationVariables = Exact<{ + input: UserCreateInput; +}>; -export type OrderWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by authorize status. */ - authorizeStatus?: InputMaybe; - /** Filter by billing address of the order. */ - billingAddress?: InputMaybe; - /** Filter by channel. */ - channelId?: InputMaybe; - /** Filter by charge status. */ - chargeStatus?: InputMaybe; - /** Filter by checkout id. */ - checkoutId?: InputMaybe; - /** Filter by checkout token. */ - checkoutToken?: InputMaybe; - /** Filter order by created at date. */ - createdAt?: InputMaybe; - /** Filter by order events. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - events?: InputMaybe>; - /** Filter by fulfillment data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - fulfillments?: InputMaybe>; - /** Filter by whether the order has any fulfillments. */ - hasFulfillments?: InputMaybe; - /** Filter by whether the order has any invoices. */ - hasInvoices?: InputMaybe; - ids?: InputMaybe>; - /** Filter by invoice data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - invoices?: InputMaybe>; - /** Filter by whether the order uses the click and collect delivery method. */ - isClickAndCollect?: InputMaybe; - /** Filter based on whether the order includes a gift card purchase. */ - isGiftCardBought?: InputMaybe; - /** Filter based on whether a gift card was used in the order. */ - isGiftCardUsed?: InputMaybe; - /** Filter by line items associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - lines?: InputMaybe>; - /** Filter by number of lines in the order. */ - linesCount?: InputMaybe; - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by order number. */ - number?: InputMaybe; - /** Filter by the product type of related order lines. */ - productTypeId?: InputMaybe; - /** Filter by shipping address of the order. */ - shippingAddress?: InputMaybe; - /** Filter by order status. */ - status?: InputMaybe; - /** Filter by total gross amount of the order. */ - totalGross?: InputMaybe; - /** Filter by total net amount of the order. */ - totalNet?: InputMaybe; - /** Filter by transaction data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - transactions?: InputMaybe>; - /** Filter order by updated at date. */ - updatedAt?: InputMaybe; - /** Filter by user. */ - user?: InputMaybe; - /** Filter by user email. */ - userEmail?: InputMaybe; - /** Filter by voucher code used in the order. */ - voucherCode?: InputMaybe; -}; -export type OtherPaymentMethodDetailsInput = { - /** Name of the payment method used for the transaction. */ - name: Scalars['String']; -}; +export type CreateCustomerMutation = { __typename: 'Mutation', customerCreate: { __typename: 'CustomerCreate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string } | null } | null }; -export type PageCreateInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** - * Page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; - /** Determines if page is visible in the storefront. */ - isPublished?: InputMaybe; - /** ID of the page type that page belongs to. */ - pageType: Scalars['ID']; - /** - * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Page internal name. */ - slug?: InputMaybe; - /** Page title. */ - title?: InputMaybe; -}; +export type RemoveCustomerMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export enum PageErrorCode { - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} -export type PageFilterInput = { - ids?: InputMaybe>; - metadata?: InputMaybe>; - pageTypes?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; -}; +export type RemoveCustomerMutation = { __typename: 'Mutation', customerDelete: { __typename: 'CustomerDelete', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; -export type PageInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** - * Page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; - /** Determines if page is visible in the storefront. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Page internal name. */ - slug?: InputMaybe; - /** Page title. */ - title?: InputMaybe; -}; +export type SetCustomerDefaultAddressMutationVariables = Exact<{ + addressId: Scalars['ID']; + userId: Scalars['ID']; + type: AddressTypeEnum; +}>; -export enum PageSortField { - /** Sort pages by creation date. */ - CREATED_AT = 'CREATED_AT', - /** - * Sort pages by creation date. - * @deprecated Use `CREATED_AT` instead. - */ - CREATION_DATE = 'CREATION_DATE', - /** - * Sort pages by publication date. - * @deprecated Use `PUBLISHED_AT` instead. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** Sort pages by publication date. */ - PUBLISHED_AT = 'PUBLISHED_AT', - /** Sort pages by slug. */ - SLUG = 'SLUG', - /** Sort pages by title. */ - TITLE = 'TITLE', - /** Sort pages by visibility. */ - VISIBILITY = 'VISIBILITY' -} -export type PageSortingInput = { - /** Specifies the direction in which to sort pages. */ - direction: OrderDirection; - /** Sort pages by the selected field. */ - field: PageSortField; -}; +export type SetCustomerDefaultAddressMutation = { __typename: 'Mutation', addressSetDefault: { __typename: 'AddressSetDefault', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null } | null } | null }; -export type PageTranslationInput = { - /** - * Translated page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; - seoDescription?: InputMaybe; - seoTitle?: InputMaybe; - slug?: InputMaybe; - title?: InputMaybe; -}; +export type CreateCustomerAddressMutationVariables = Exact<{ + id: Scalars['ID']; + input: AddressInput; +}>; -export type PageTypeCreateInput = { - /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; - /** Name of the page type. */ - name?: InputMaybe; - /** Page type slug. */ - slug?: InputMaybe; -}; -export type PageTypeFilterInput = { - search?: InputMaybe; - slugs?: InputMaybe>; -}; +export type CreateCustomerAddressMutation = { __typename: 'Mutation', addressCreate: { __typename: 'AddressCreate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null } | null } | null }; -export enum PageTypeSortField { - /** Sort page types by name. */ - NAME = 'NAME', - /** Sort page types by slug. */ - SLUG = 'SLUG' -} +export type UpdateCustomerAddressMutationVariables = Exact<{ + id: Scalars['ID']; + input: AddressInput; +}>; -export type PageTypeSortingInput = { - /** Specifies the direction in which to sort page types. */ - direction: OrderDirection; - /** Sort page types by the selected field. */ - field: PageTypeSortField; -}; -export type PageTypeUpdateInput = { - /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; - /** Name of the page type. */ - name?: InputMaybe; - /** List of attribute IDs to be assigned to the page type. */ - removeAttributes?: InputMaybe>; - /** Page type slug. */ - slug?: InputMaybe; -}; +export type UpdateCustomerAddressMutation = { __typename: 'Mutation', addressUpdate: { __typename: 'AddressUpdate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null } | null }; -export type PageWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by attributes associated with the page. */ - attributes?: InputMaybe>; - ids?: InputMaybe>; - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by page type. */ - pageType?: InputMaybe; - /** Filter by page slug. */ - slug?: InputMaybe; -}; +export type RemoveCustomerAddressMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export enum PaymentChargeStatusEnum { - CANCELLED = 'CANCELLED', - FULLY_CHARGED = 'FULLY_CHARGED', - FULLY_REFUNDED = 'FULLY_REFUNDED', - NOT_CHARGED = 'NOT_CHARGED', - PARTIALLY_CHARGED = 'PARTIALLY_CHARGED', - PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED', - PENDING = 'PENDING', - REFUSED = 'REFUSED' -} - -export type PaymentCheckBalanceInput = { - /** Information about card. */ - card: CardInput; - /** Slug of a channel for which the data should be returned. */ - channel: Scalars['String']; - /** An ID of a payment gateway to check. */ - gatewayId: Scalars['String']; - /** Payment method name. */ - method: Scalars['String']; -}; - -export enum PaymentErrorCode { - BALANCE_CHECK_ERROR = 'BALANCE_CHECK_ERROR', - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - CHECKOUT_COMPLETION_IN_PROGRESS = 'CHECKOUT_COMPLETION_IN_PROGRESS', - CHECKOUT_EMAIL_NOT_SET = 'CHECKOUT_EMAIL_NOT_SET', - CHECKOUT_HAS_TRANSACTION = 'CHECKOUT_HAS_TRANSACTION', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - NOT_FOUND = 'NOT_FOUND', - NOT_SUPPORTED_GATEWAY = 'NOT_SUPPORTED_GATEWAY', - NO_CHECKOUT_LINES = 'NO_CHECKOUT_LINES', - PARTIAL_PAYMENT_NOT_ALLOWED = 'PARTIAL_PAYMENT_NOT_ALLOWED', - PAYMENT_ERROR = 'PAYMENT_ERROR', - REQUIRED = 'REQUIRED', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - UNIQUE = 'UNIQUE' -} - -export type PaymentFilterInput = { - checkouts?: InputMaybe>; - /** Filter by ids. */ - ids?: InputMaybe>; -}; -export enum PaymentGatewayConfigErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} +export type RemoveCustomerAddressMutation = { __typename: 'Mutation', addressDelete: { __typename: 'AddressDelete', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null } | null } | null }; -export enum PaymentGatewayInitializeErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} +export type BulkRemoveCustomersMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export enum PaymentGatewayInitializeTokenizationErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GATEWAY_ERROR = 'GATEWAY_ERROR', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} -/** - * Result of initialize payment gateway for tokenization of payment method. - * - * The result of initialize payment gateway for tokenization of payment method. - * SUCCESSFULLY_INITIALIZED - The payment gateway was successfully initialized. - * FAILED_TO_INITIALIZE - The payment gateway was not initialized. - * FAILED_TO_DELIVER - The request to initialize payment gateway was not delivered. - */ -export enum PaymentGatewayInitializeTokenizationResult { - FAILED_TO_DELIVER = 'FAILED_TO_DELIVER', - FAILED_TO_INITIALIZE = 'FAILED_TO_INITIALIZE', - SUCCESSFULLY_INITIALIZED = 'SUCCESSFULLY_INITIALIZED' -} +export type BulkRemoveCustomersMutation = { __typename: 'Mutation', customerBulkDelete: { __typename: 'CustomerBulkDelete', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; -export type PaymentGatewayToInitialize = { - /** The data that will be passed to the payment gateway. */ - data?: InputMaybe; - /** The identifier of the payment gateway app to initialize. */ - id: Scalars['String']; -}; +export type ListCustomersQueryVariables = Exact<{ + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; + PERMISSION_MANAGE_ORDERS: Scalars['Boolean']; +}>; -export type PaymentInput = { - /** Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used. */ - amount?: InputMaybe; - /** A gateway to use with that payment. */ - gateway: Scalars['String']; - /** - * User public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** 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?: InputMaybe; - /** Payment store type. */ - storePaymentMethod?: InputMaybe; - /** Client-side generated payment token, representing customer's billing data in a secure manner. */ - token?: InputMaybe; -}; -export type PaymentMethodDetailsCardFilterInput = { - /** Filter by payment method brand used to pay for the order. */ - brand?: InputMaybe; -}; +export type ListCustomersQuery = { __typename: 'Query', customers: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, orders?: { __typename: 'OrderCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type PaymentMethodDetailsFilterInput = { - /** Filter by card details used to pay for the order. Skips `type` filter if provided. */ - card?: InputMaybe; - /** Filter by payment method type used to pay for the order. */ - type?: InputMaybe; -}; +export type CustomerDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + PERMISSION_MANAGE_ORDERS: Scalars['Boolean']; + PERMISSION_MANAGE_STAFF: Scalars['Boolean']; +}>; -/** - * Details of the payment method used for the transaction. One of `card` or `other` is required. - * - * Added in Saleor 3.22. - */ -export type PaymentMethodDetailsInput = { - /** Details of the card payment method used for the transaction. */ - card?: InputMaybe; - /** Details of the non-card payment method used for this transaction. */ - other?: InputMaybe; -}; - -export enum PaymentMethodInitializeTokenizationErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GATEWAY_ERROR = 'GATEWAY_ERROR', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export enum PaymentMethodProcessTokenizationErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GATEWAY_ERROR = 'GATEWAY_ERROR', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} -/** - * Result of tokenization of payment method. - * - * SUCCESSFULLY_TOKENIZED - The payment method was successfully tokenized. - * ADDITIONAL_ACTION_REQUIRED - The additional action is required to tokenize payment - * method. - * PENDING - The payment method is pending tokenization. - * FAILED_TO_TOKENIZE - The payment method was not tokenized. - * FAILED_TO_DELIVER - The request to tokenize payment method was not delivered. - */ -export enum PaymentMethodTokenizationResult { - ADDITIONAL_ACTION_REQUIRED = 'ADDITIONAL_ACTION_REQUIRED', - FAILED_TO_DELIVER = 'FAILED_TO_DELIVER', - FAILED_TO_TOKENIZE = 'FAILED_TO_TOKENIZE', - PENDING = 'PENDING', - SUCCESSFULLY_TOKENIZED = 'SUCCESSFULLY_TOKENIZED' -} +export type CustomerDetailsQuery = { __typename: 'Query', user: { __typename: 'User', dateJoined: any, lastLogin: any | null, note: string | null, isActive: boolean, id: string, email: string, firstName: string, lastName: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, orders?: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, created: any, number: string, paymentStatus: PaymentChargeStatusEnum, chargeStatus: OrderChargeStatusEnum, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', currency: string, amount: number } } } }> } | null, lastPlacedOrder: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, created: any } }> } | null, defaultShippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, defaultBillingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null } | null }; -/** - * Represents possible payment method types. - * - * The following types are possible: - * CARD - represents a card payment method. - * OTHER - represents any payment method that is not a card payment. - */ -export enum PaymentMethodTypeEnum { - CARD = 'CARD', - OTHER = 'OTHER' -} +export type CustomerAddressesQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type PaymentMethodTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; -export type PaymentSettingsInput = { - /** - * Specifies the earliest date on which funds for expired checkouts can begin to be released. Expired checkouts dated before this cut-off will not have their funds released. Additionally, no funds will be released for checkouts that are more than one year old, regardless of the cut-off date. - * - * Added in Saleor 3.20. - */ - checkoutReleaseFundsCutOffDate?: InputMaybe; - /** - * The time in hours after which funds for expired checkouts will be released. - * - * Added in Saleor 3.20. - */ - checkoutTtlBeforeReleasingFunds?: InputMaybe; - /** Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction. */ - defaultTransactionFlowStrategy?: InputMaybe; - /** - * Determine if the funds for expired checkouts should be released automatically. - * - * Added in Saleor 3.20. - */ - releaseFundsForExpiredCheckouts?: InputMaybe; -}; - -export enum PermissionEnum { - HANDLE_CHECKOUTS = 'HANDLE_CHECKOUTS', - HANDLE_PAYMENTS = 'HANDLE_PAYMENTS', - HANDLE_TAXES = 'HANDLE_TAXES', - IMPERSONATE_USER = 'IMPERSONATE_USER', - MANAGE_APPS = 'MANAGE_APPS', - MANAGE_CHANNELS = 'MANAGE_CHANNELS', - MANAGE_CHECKOUTS = 'MANAGE_CHECKOUTS', - MANAGE_DISCOUNTS = 'MANAGE_DISCOUNTS', - MANAGE_GIFT_CARD = 'MANAGE_GIFT_CARD', - MANAGE_MENUS = 'MANAGE_MENUS', - MANAGE_OBSERVABILITY = 'MANAGE_OBSERVABILITY', - MANAGE_ORDERS = 'MANAGE_ORDERS', - MANAGE_ORDERS_IMPORT = 'MANAGE_ORDERS_IMPORT', - MANAGE_PAGES = 'MANAGE_PAGES', - MANAGE_PAGE_TYPES_AND_ATTRIBUTES = 'MANAGE_PAGE_TYPES_AND_ATTRIBUTES', - MANAGE_PLUGINS = 'MANAGE_PLUGINS', - MANAGE_PRODUCTS = 'MANAGE_PRODUCTS', - MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES = 'MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES', - MANAGE_SETTINGS = 'MANAGE_SETTINGS', - MANAGE_SHIPPING = 'MANAGE_SHIPPING', - MANAGE_STAFF = 'MANAGE_STAFF', - MANAGE_TAXES = 'MANAGE_TAXES', - MANAGE_TRANSLATIONS = 'MANAGE_TRANSLATIONS', - MANAGE_USERS = 'MANAGE_USERS' -} +export type CustomerAddressesQuery = { __typename: 'Query', user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null } | null }; -export type PermissionGroupCreateInput = { - /** List of channels to assign to this group. */ - addChannels?: InputMaybe>; - /** List of permission code names to assign to this group. */ - addPermissions?: InputMaybe>; - /** List of users to assign to this group. */ - addUsers?: InputMaybe>; - /** Group name. */ - name: Scalars['String']; - /** Determine if the group has restricted access to channels. DEFAULT: False */ - restrictedAccessToChannels?: InputMaybe; -}; +export type CustomerCreateDataQueryVariables = Exact<{ [key: string]: never; }>; -export enum PermissionGroupErrorCode { - ASSIGN_NON_STAFF_MEMBER = 'ASSIGN_NON_STAFF_MEMBER', - CANNOT_REMOVE_FROM_LAST_GROUP = 'CANNOT_REMOVE_FROM_LAST_GROUP', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', - OUT_OF_SCOPE_CHANNEL = 'OUT_OF_SCOPE_CHANNEL', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', - OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} -export type PermissionGroupFilterInput = { - ids?: InputMaybe>; - search?: InputMaybe; -}; +export type CustomerCreateDataQuery = { __typename: 'Query', shop: { __typename: 'Shop', countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> } }; -/** Sorting options for permission groups. */ -export enum PermissionGroupSortField { - /** Sort permission group accounts by name. */ - NAME = 'NAME' -} +export type VoucherChannelListingUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: VoucherChannelListingInput; +}>; -export type PermissionGroupSortingInput = { - /** Specifies the direction in which to sort permission group. */ - direction: OrderDirection; - /** Sort permission group by the selected field. */ - field: PermissionGroupSortField; -}; -export type PermissionGroupUpdateInput = { - /** List of channels to assign to this group. */ - addChannels?: InputMaybe>; - /** List of permission code names to assign to this group. */ - addPermissions?: InputMaybe>; - /** List of users to assign to this group. */ - addUsers?: InputMaybe>; - /** Group name. */ - name?: InputMaybe; - /** List of channels to unassign from this group. */ - removeChannels?: InputMaybe>; - /** List of permission code names to unassign from this group. */ - removePermissions?: InputMaybe>; - /** List of users to unassign from this group. */ - removeUsers?: InputMaybe>; - /** Determine if the group has restricted access to channels. */ - restrictedAccessToChannels?: InputMaybe; -}; +export type VoucherChannelListingUpdateMutation = { __typename: 'Mutation', voucherChannelListingUpdate: { __typename: 'VoucherChannelListingUpdate', errors: Array<{ __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export enum PluginConfigurationType { - GLOBAL = 'GLOBAL', - PER_CHANNEL = 'PER_CHANNEL' -} +export type VoucherUpdateMutationVariables = Exact<{ + input: VoucherInput; + id: Scalars['ID']; +}>; -export enum PluginErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - PLUGIN_MISCONFIGURED = 'PLUGIN_MISCONFIGURED', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} -export type PluginFilterInput = { - search?: InputMaybe; - statusInChannels?: InputMaybe; - type?: InputMaybe; -}; +export type VoucherUpdateMutation = { __typename: 'Mutation', voucherUpdate: { __typename: 'VoucherUpdate', errors: Array<{ __typename: 'DiscountError', voucherCodes: Array | null, code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export enum PluginSortField { - IS_ACTIVE = 'IS_ACTIVE', - NAME = 'NAME' -} +export type VoucherCataloguesAddMutationVariables = Exact<{ + input: CatalogueInput; + id: Scalars['ID']; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + includeProducts: Scalars['Boolean']; + includeCollections: Scalars['Boolean']; + includeCategories: Scalars['Boolean']; + includeVariants: Scalars['Boolean']; +}>; -export type PluginSortingInput = { - /** Specifies the direction in which to sort plugins. */ - direction: OrderDirection; - /** Sort plugins by the selected field. */ - field: PluginSortField; -}; -export type PluginStatusInChannelsInput = { - active: Scalars['Boolean']; - channels: Array; -}; +export type VoucherCataloguesAddMutation = { __typename: 'Mutation', voucherCataloguesAdd: { __typename: 'VoucherAddCatalogues', errors: Array<{ __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, singleUse: boolean, id: string, name: string | null, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type PluginUpdateInput = { - /** Indicates whether the plugin should be enabled. */ - active?: InputMaybe; - /** Configuration of the plugin. */ - configuration?: InputMaybe>; -}; +export type VoucherCataloguesRemoveMutationVariables = Exact<{ + input: CatalogueInput; + id: Scalars['ID']; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + includeProducts: Scalars['Boolean']; + includeCollections: Scalars['Boolean']; + includeCategories: Scalars['Boolean']; + includeVariants: Scalars['Boolean']; +}>; -export enum PostalCodeRuleInclusionTypeEnum { - EXCLUDE = 'EXCLUDE', - INCLUDE = 'INCLUDE' -} -export type PreorderSettingsInput = { - /** The end date for preorder. */ - endDate?: InputMaybe; - /** The global threshold for preorder variant. */ - globalThreshold?: InputMaybe; -}; +export type VoucherCataloguesRemoveMutation = { __typename: 'Mutation', voucherCataloguesRemove: { __typename: 'VoucherRemoveCatalogues', errors: Array<{ __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, singleUse: boolean, id: string, name: string | null, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type PriceFilterInput = { - /** The amount of the price to filter by. */ - amount: DecimalFilterInput; - /** The currency of the price to filter by. */ - currency?: InputMaybe; -}; +export type VoucherCreateMutationVariables = Exact<{ + input: VoucherInput; +}>; -export type PriceInput = { - /** Amount of money. */ - amount: Scalars['PositiveDecimal']; - /** Currency code. */ - currency: Scalars['String']; -}; -export type PriceRangeInput = { - /** Price greater than or equal to. */ - gte?: InputMaybe; - /** Price less than or equal to. */ - lte?: InputMaybe; -}; +export type VoucherCreateMutation = { __typename: 'Mutation', voucherCreate: { __typename: 'VoucherCreate', errors: Array<{ __typename: 'DiscountError', voucherCodes: Array | null, code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ProductAttributeAssignInput = { - /** The ID of the attribute to assign. */ +export type VoucherDeleteMutationVariables = Exact<{ id: Scalars['ID']; - /** The attribute type to be assigned as. */ - type: ProductAttributeType; - /** Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. */ - variantSelection?: InputMaybe; -}; +}>; -export type ProductAttributeAssignmentUpdateInput = { - /** The ID of the attribute to assign. */ - id: Scalars['ID']; - /** Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. */ - variantSelection: Scalars['Boolean']; -}; - -export enum ProductAttributeType { - PRODUCT = 'PRODUCT', - VARIANT = 'VARIANT' -} - -export enum ProductBulkCreateErrorCode { - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', - ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - BLANK = 'BLANK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_PRICE = 'INVALID_PRICE', - MAX_LENGTH = 'MAX_LENGTH', - NOT_FOUND = 'NOT_FOUND', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', - PRODUCT_WITHOUT_CATEGORY = 'PRODUCT_WITHOUT_CATEGORY', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - UNSUPPORTED_MEDIA_PROVIDER = 'UNSUPPORTED_MEDIA_PROVIDER' -} - -export type ProductBulkCreateInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** ID of the product's category. */ - category?: InputMaybe; - /** List of channels in which the product is available. */ - channelListings?: InputMaybe>; - /** - * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - */ - chargeTaxes?: InputMaybe; - /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; - /** - * Product description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** External ID of this product. */ - externalReference?: InputMaybe; - /** List of media inputs associated with the product. */ - media?: InputMaybe>; - /** - * Fields required to update the product metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Product name. */ - name?: InputMaybe; - /** - * Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** ID of the type that product belongs to. */ - productType: Scalars['ID']; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Product slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. - */ - taxCode?: InputMaybe; - /** Input list of product variants to create. */ - variants?: InputMaybe>; - /** Weight of the Product. */ - weight?: InputMaybe; -}; -export type ProductBulkTranslateInput = { - /** External reference of an product. */ - externalReference?: InputMaybe; - /** Product ID. */ - id?: InputMaybe; - /** Translation language code. */ - languageCode: LanguageCodeEnum; - /** Translation fields. */ - translationFields: TranslationInput; -}; +export type VoucherDeleteMutation = { __typename: 'Mutation', voucherDelete: { __typename: 'VoucherDelete', errors: Array<{ __typename: 'DiscountError', voucherCodes: Array | null, code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }> } | null }; -export type ProductChannelListingAddInput = { - /** List of variants to which the channel should be assigned. */ - addVariants?: InputMaybe>; - /** A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. */ - availableForPurchaseAt?: InputMaybe; - /** - * 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. - * @deprecated Use `availableForPurchaseAt` field instead. - */ - availableForPurchaseDate?: InputMaybe; - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ - isAvailableForPurchase?: InputMaybe; - /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; - /** List of variants from which the channel should be unassigned. */ - removeVariants?: InputMaybe>; - /** Determines if product is visible in product listings (doesn't apply to product collections). */ - visibleInListings?: InputMaybe; -}; +export type VoucherBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type ProductChannelListingCreateInput = { - /** A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. */ - availableForPurchaseAt?: InputMaybe; - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ - isAvailableForPurchase?: InputMaybe; - /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; - /** Determines if product is visible in product listings (doesn't apply to product collections). */ - visibleInListings?: InputMaybe; -}; -export type ProductChannelListingUpdateInput = { - /** List of channels from which the product should be unassigned. */ - removeChannels?: InputMaybe>; - /** List of channels to which the product should be assigned or updated. */ - updateChannels?: InputMaybe>; -}; +export type VoucherBulkDeleteMutation = { __typename: 'Mutation', voucherBulkDelete: { __typename: 'VoucherBulkDelete', errors: Array<{ __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, message: string | null }> } | null }; -export type ProductCreateInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** ID of the product's category. */ - category?: InputMaybe; - /** - * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - */ - chargeTaxes?: InputMaybe; - /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; - /** - * Product description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** External ID of this product. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Product name. */ - name?: InputMaybe; - /** - * Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** ID of the type that product belongs to. */ - productType: Scalars['ID']; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Product slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. - */ - taxCode?: InputMaybe; - /** Weight of the Product. */ - weight?: InputMaybe; -}; +export type PromotionCreateMutationVariables = Exact<{ + input: PromotionCreateInput; +}>; -export enum ProductErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', - ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_PRICE = 'INVALID_PRICE', - MEDIA_ALREADY_ASSIGNED = 'MEDIA_ALREADY_ASSIGNED', - NOT_FOUND = 'NOT_FOUND', - NOT_PRODUCTS_IMAGE = 'NOT_PRODUCTS_IMAGE', - NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', - PREORDER_VARIANT_CANNOT_BE_DEACTIVATED = 'PREORDER_VARIANT_CANNOT_BE_DEACTIVATED', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', - PRODUCT_WITHOUT_CATEGORY = 'PRODUCT_WITHOUT_CATEGORY', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - UNSUPPORTED_MEDIA_PROVIDER = 'UNSUPPORTED_MEDIA_PROVIDER', - VARIANT_NO_DIGITAL_CONTENT = 'VARIANT_NO_DIGITAL_CONTENT' -} - -export enum ProductFieldEnum { - CATEGORY = 'CATEGORY', - CHARGE_TAXES = 'CHARGE_TAXES', - COLLECTIONS = 'COLLECTIONS', - DESCRIPTION = 'DESCRIPTION', - NAME = 'NAME', - PRODUCT_MEDIA = 'PRODUCT_MEDIA', - PRODUCT_TYPE = 'PRODUCT_TYPE', - PRODUCT_WEIGHT = 'PRODUCT_WEIGHT', - VARIANT_ID = 'VARIANT_ID', - VARIANT_MEDIA = 'VARIANT_MEDIA', - VARIANT_SKU = 'VARIANT_SKU', - VARIANT_WEIGHT = 'VARIANT_WEIGHT' -} -export type ProductFilterInput = { - attributes?: InputMaybe>; - /** Filter by the date of availability for purchase. */ - availableFrom?: InputMaybe; - categories?: InputMaybe>; - /** - * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - collections?: InputMaybe>; - /** Filter on whether product is a gift card or not. */ - giftCard?: InputMaybe; - hasCategory?: InputMaybe; - hasPreorderedVariants?: InputMaybe; - ids?: InputMaybe>; - /** Filter by availability for purchase. */ - isAvailable?: InputMaybe; - isPublished?: InputMaybe; - /** Filter by visibility in product listings. */ - isVisibleInListing?: InputMaybe; - metadata?: InputMaybe>; - /** Filter by the lowest variant price after discounts. */ - minimalPrice?: InputMaybe; - price?: InputMaybe; - productTypes?: InputMaybe>; - /** Filter by the publication date. */ - publishedFrom?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; - /** Filter by variants having specific stock status. */ - stockAvailability?: InputMaybe; - stocks?: InputMaybe; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; -}; +export type PromotionCreateMutation = { __typename: 'Mutation', promotionCreate: { __typename: 'PromotionCreate', errors: Array<{ __typename: 'PromotionCreateError', field: string | null, message: string | null, code: PromotionCreateErrorCode, index: number | null }>, promotion: { __typename: 'Promotion', id: string, name: string, type: PromotionTypeEnum | null, description: any | null, startDate: any, endDate: any | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null } | null } | null }; -export type ProductInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** ID of the product's category. */ - category?: InputMaybe; - /** - * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - */ - chargeTaxes?: InputMaybe; - /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; - /** - * Product description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** External ID of this product. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Product name. */ - name?: InputMaybe; - /** - * Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Product slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. - */ - taxCode?: InputMaybe; - /** Weight of the Product. */ - weight?: InputMaybe; -}; +export type PromotionUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: PromotionUpdateInput; +}>; -export type ProductMediaCreateInput = { - /** Alt text for a product media. */ - alt?: InputMaybe; - /** Represents an image file in a multipart request. */ - image?: InputMaybe; - /** Represents an URL to an external media. */ - mediaUrl?: InputMaybe; - /** ID of an product. */ - product: Scalars['ID']; -}; -export enum ProductMediaType { - IMAGE = 'IMAGE', - VIDEO = 'VIDEO' -} +export type PromotionUpdateMutation = { __typename: 'Mutation', promotionUpdate: { __typename: 'PromotionUpdate', errors: Array<{ __typename: 'PromotionUpdateError', field: string | null, message: string | null, code: PromotionUpdateErrorCode }>, promotion: { __typename: 'Promotion', id: string, name: string, type: PromotionTypeEnum | null, description: any | null, startDate: any, endDate: any | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null } | null } | null }; -export type ProductMediaUpdateInput = { - /** Alt text for a product media. */ - alt?: InputMaybe; -}; +export type PromotionDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type ProductOrder = { - /** - * Sort product by the selected attribute's values. - * Note: this doesn't take translations into account yet. - */ - attributeId?: InputMaybe; - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort products by the selected field. */ - field?: InputMaybe; -}; -export enum ProductOrderField { - /** - * Sort products by collection. Note: This option is available only for the `Collection.products` query. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - COLLECTION = 'COLLECTION', - /** Sort products by creation date. */ - CREATED_AT = 'CREATED_AT', - /** - * Sort products by update date. - * @deprecated Use `LAST_MODIFIED_AT` instead. - */ - DATE = 'DATE', - /** - * Sort products by update date. - * @deprecated Use `LAST_MODIFIED_AT` instead. - */ - LAST_MODIFIED = 'LAST_MODIFIED', - /** Sort products by update date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** - * Sort products by a minimal price of a product's variant. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - MINIMAL_PRICE = 'MINIMAL_PRICE', - /** Sort products by name. */ - NAME = 'NAME', - /** - * Sort products by price. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PRICE = 'PRICE', - /** - * Sort products by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - * @deprecated Use `PUBLISHED_AT` instead. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** - * Sort products by publication status. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED = 'PUBLISHED', - /** - * Sort products by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED_AT = 'PUBLISHED_AT', - /** Sort products by rank. Note: This option is available only with the `search` filter. */ - RANK = 'RANK', - /** Sort products by rating. */ - RATING = 'RATING', - /** Sort products by type. */ - TYPE = 'TYPE' -} +export type PromotionDeleteMutation = { __typename: 'Mutation', promotionDelete: { __typename: 'PromotionDelete', errors: Array<{ __typename: 'PromotionDeleteError', field: string | null, message: string | null, code: PromotionDeleteErrorCode }> } | null }; -export type ProductStockFilterInput = { - quantity?: InputMaybe; - warehouseIds?: InputMaybe>; -}; +export type PromotionRuleUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: PromotionRuleUpdateInput; +}>; -export enum ProductTranslateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} -export enum ProductTypeConfigurable { - CONFIGURABLE = 'CONFIGURABLE', - SIMPLE = 'SIMPLE' -} +export type PromotionRuleUpdateMutation = { __typename: 'Mutation', promotionRuleUpdate: { __typename: 'PromotionRuleUpdate', errors: Array<{ __typename: 'PromotionRuleUpdateError', field: string | null, message: string | null, code: PromotionRuleUpdateErrorCode, channels: Array | null }>, promotionRule: { __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null } | null } | null }; -export enum ProductTypeEnum { - DIGITAL = 'DIGITAL', - SHIPPABLE = 'SHIPPABLE' -} +export type PromotionRuleCreateMutationVariables = Exact<{ + input: PromotionRuleCreateInput; +}>; -export type ProductTypeFilterInput = { - configurable?: InputMaybe; - ids?: InputMaybe>; - kind?: InputMaybe; - metadata?: InputMaybe>; - productType?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; -}; -export type ProductTypeInput = { - /** 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?: InputMaybe; - /** Determines if products are digital. */ - isDigital?: InputMaybe; - /** Determines if shipping is required for products of this variant. */ - isShippingRequired?: InputMaybe; - /** The product type kind. */ - kind?: InputMaybe; - /** Name of the product type. */ - name?: InputMaybe; - /** List of attributes shared among all product variants. */ - productAttributes?: InputMaybe>; - /** Product type slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. - */ - taxCode?: InputMaybe; - /** List of attributes used to distinguish between different variants of a product. */ - variantAttributes?: InputMaybe>; - /** Weight of the ProductType items. */ - weight?: InputMaybe; -}; +export type PromotionRuleCreateMutation = { __typename: 'Mutation', promotionRuleCreate: { __typename: 'PromotionRuleCreate', errors: Array<{ __typename: 'PromotionRuleCreateError', field: string | null, message: string | null, code: PromotionRuleCreateErrorCode }>, promotionRule: { __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null } | null } | null }; -export enum ProductTypeKindEnum { - GIFT_CARD = 'GIFT_CARD', - NORMAL = 'NORMAL' -} +export type PromotionRuleDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export enum ProductTypeSortField { - /** Sort products by type. */ - DIGITAL = 'DIGITAL', - /** Sort products by name. */ - NAME = 'NAME', - /** Sort products by shipping. */ - SHIPPING_REQUIRED = 'SHIPPING_REQUIRED' -} -export type ProductTypeSortingInput = { - /** Specifies the direction in which to sort product types. */ - direction: OrderDirection; - /** Sort product types by the selected field. */ - field: ProductTypeSortField; -}; +export type PromotionRuleDeleteMutation = { __typename: 'Mutation', promotionRuleDelete: { __typename: 'PromotionRuleDelete', errors: Array<{ __typename: 'PromotionRuleDeleteError', field: string | null, message: string | null, code: PromotionRuleDeleteErrorCode }>, promotionRule: { __typename: 'PromotionRule', id: string } | null } | null }; -export type ProductVariantBulkCreateInput = { - /** List of attributes specific to this variant. */ - attributes: Array; - /** List of prices assigned to channels. */ - channelListings?: InputMaybe>; - /** External ID of this product variant. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Variant name. */ - name?: InputMaybe; - /** Determines if variant is in preorder. */ - preorder?: InputMaybe; - /** - * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ - quantityLimitPerCustomer?: InputMaybe; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Stocks of a product available for sale. */ - stocks?: InputMaybe>; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; -}; +export type SaleListQueryVariables = Exact<{ + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; + channel?: InputMaybe; +}>; -export enum ProductVariantBulkErrorCode { - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', - ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_PRICE = 'INVALID_PRICE', - NOT_FOUND = 'NOT_FOUND', - NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', - REQUIRED = 'REQUIRED', - STOCK_ALREADY_EXISTS = 'STOCK_ALREADY_EXISTS', - UNIQUE = 'UNIQUE' -} - -export type ProductVariantBulkTranslateInput = { - /** External reference of a product variant. */ - externalReference?: InputMaybe; - /** Product variant ID. */ - id?: InputMaybe; - /** Translation language code. */ - languageCode: LanguageCodeEnum; - /** Translation fields. */ - translationFields: NameTranslationInput; -}; -/** Input fields to update product variants. */ -export type ProductVariantBulkUpdateInput = { - /** List of attributes specific to this variant. */ - attributes?: InputMaybe>; - /** Channel listings input. */ - channelListings?: InputMaybe; - /** External ID of this product variant. */ - externalReference?: InputMaybe; - /** ID of the product variant to update. */ - id: Scalars['ID']; - /** - * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Variant name. */ - name?: InputMaybe; - /** Determines if variant is in preorder. */ - preorder?: InputMaybe; - /** - * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ - quantityLimitPerCustomer?: InputMaybe; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Stocks input. */ - stocks?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; -}; +export type SaleListQuery = { __typename: 'Query', sales: { __typename: 'SaleCountableConnection', edges: Array<{ __typename: 'SaleCountableEdge', node: { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductVariantChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Cost price of the variant in channel. */ - costPrice?: InputMaybe; - /** The threshold for preorder variant in channel. */ - preorderThreshold?: InputMaybe; - /** Price of the particular variant in channel. */ - price: Scalars['PositiveDecimal']; - /** - * Previous price of the variant in channel. Useful for providing promotion information required by customer protection laws such as EU Omnibus directive. - * - * Added in Saleor 3.21. - */ - priorPrice?: InputMaybe; -}; +export type PromotionsListQueryVariables = Exact<{ + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + where?: InputMaybe; + sort?: InputMaybe; +}>; -export type ProductVariantChannelListingUpdateInput = { - /** List of channels to create variant channel listings. */ - create?: InputMaybe>; - /** List of channel listings to remove. */ - remove?: InputMaybe>; - /** List of channel listings to update. */ - update?: InputMaybe>; -}; -export type ProductVariantCreateInput = { - /** List of attributes specific to this variant. */ - attributes: Array; - /** External ID of this product variant. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Variant name. */ - name?: InputMaybe; - /** Determines if variant is in preorder. */ - preorder?: InputMaybe; - /** - * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Product ID of which type is the variant. */ - product: Scalars['ID']; - /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ - quantityLimitPerCustomer?: InputMaybe; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Stocks of a product available for sale. */ - stocks?: InputMaybe>; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; -}; +export type PromotionsListQuery = { __typename: 'Query', promotions: { __typename: 'PromotionCountableConnection', edges: Array<{ __typename: 'PromotionCountableEdge', node: { __typename: 'Promotion', id: string, name: string, startDate: any, endDate: any | null, type: PromotionTypeEnum | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductVariantFilterInput = { - isPreorder?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - sku?: InputMaybe>; - updatedAt?: InputMaybe; -}; +export type VoucherListQueryVariables = Exact<{ + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; + channel?: InputMaybe; +}>; -export type ProductVariantInput = { - /** List of attributes specific to this variant. */ - attributes?: InputMaybe>; - /** External ID of this product variant. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Variant name. */ - name?: InputMaybe; - /** Determines if variant is in preorder. */ - preorder?: InputMaybe; - /** - * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ - quantityLimitPerCustomer?: InputMaybe; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; -}; -export enum ProductVariantSortField { - /** Sort product variants by last modification date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' -} +export type VoucherListQuery = { __typename: 'Query', vouchers: { __typename: 'VoucherCountableConnection', edges: Array<{ __typename: 'VoucherCountableEdge', node: { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductVariantSortingInput = { - /** Specifies the direction in which to sort productVariants. */ - direction: OrderDirection; - /** Sort productVariants by the selected field. */ - field: ProductVariantSortField; -}; +export type SaleDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + includeVariants: Scalars['Boolean']; + includeProducts: Scalars['Boolean']; + includeCollections: Scalars['Boolean']; + includeCategories: Scalars['Boolean']; +}>; -export type ProductVariantStocksUpdateInput = { - /** List of warehouses to create stocks. */ - create?: InputMaybe>; - /** List of stocks to remove. */ - remove?: InputMaybe>; - /** List of stocks to update. */ - update?: InputMaybe>; -}; -export enum ProductVariantTranslateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} +export type SaleDetailsQuery = { __typename: 'Query', sale: { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type ProductVariantWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** - * Filter by attributes associated with the variant. - * - * Added in Saleor 3.22. - */ - attributes?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; - /** Filter by product SKU. */ - sku?: InputMaybe; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; -}; +export type VoucherDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + includeProducts: Scalars['Boolean']; + includeCollections: Scalars['Boolean']; + includeCategories: Scalars['Boolean']; + includeVariants: Scalars['Boolean']; +}>; -export type ProductWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by attributes associated with the product. */ - attributes?: InputMaybe>; - /** Filter by the date of availability for purchase. */ - availableFrom?: InputMaybe; - /** Filter by product category. */ - category?: InputMaybe; - /** Filter by collection. */ - collection?: InputMaybe; - /** Filter on whether product is a gift card or not. */ - giftCard?: InputMaybe; - /** Filter by product with category assigned. */ - hasCategory?: InputMaybe; - /** Filter by product with preordered variants. */ - hasPreorderedVariants?: InputMaybe; - ids?: InputMaybe>; - /** Filter by availability for purchase. */ - isAvailable?: InputMaybe; - /** Filter by public visibility. */ - isPublished?: InputMaybe; - /** Filter by visibility on the channel. */ - isVisibleInListing?: InputMaybe; - metadata?: InputMaybe>; - /** Filter by the lowest variant price after discounts. */ - minimalPrice?: InputMaybe; - /** Filter by product name. */ - name?: InputMaybe; - /** Filter by product variant price. */ - price?: InputMaybe; - /** Filter by product type. */ - productType?: InputMaybe; - /** Filter by the publication date. */ - publishedFrom?: InputMaybe; - /** Filter by product slug. */ - slug?: InputMaybe; - /** Filter by variants having specific stock status. */ - stockAvailability?: InputMaybe; - /** Filter by stock of the product variant. */ - stocks?: InputMaybe; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; -}; -export enum PromotionCreateErrorCode { - GIFTS_NUMBER_LIMIT = 'GIFTS_NUMBER_LIMIT', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_GIFT_TYPE = 'INVALID_GIFT_TYPE', - INVALID_PRECISION = 'INVALID_PRECISION', - MISSING_CHANNELS = 'MISSING_CHANNELS', - MULTIPLE_CURRENCIES_NOT_ALLOWED = 'MULTIPLE_CURRENCIES_NOT_ALLOWED', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - RULES_NUMBER_LIMIT = 'RULES_NUMBER_LIMIT' -} +export type VoucherDetailsQuery = { __typename: 'Query', voucher: { __typename: 'Voucher', usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, singleUse: boolean, id: string, name: string | null, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type PromotionCreateInput = { - /** Promotion description. */ - description?: InputMaybe; - /** The end date of the promotion in ISO 8601 format. */ - endDate?: InputMaybe; - /** Promotion name. */ - name: Scalars['String']; - /** List of promotion rules. */ - rules?: InputMaybe>; - /** The start date of the promotion in ISO 8601 format. */ - startDate?: InputMaybe; - /** - * Defines the promotion type. Implicate the required promotion rules predicate type and whether the promotion rules will give the catalogue or order discount. - * - * Added in Saleor 3.19. - */ - type: PromotionTypeEnum; -}; +export type VoucherCodesQueryVariables = Exact<{ + id: Scalars['ID']; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}>; -export enum PromotionDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND' -} - -export enum PromotionEventsEnum { - PROMOTION_CREATED = 'PROMOTION_CREATED', - PROMOTION_ENDED = 'PROMOTION_ENDED', - PROMOTION_STARTED = 'PROMOTION_STARTED', - PROMOTION_UPDATED = 'PROMOTION_UPDATED', - RULE_CREATED = 'RULE_CREATED', - RULE_DELETED = 'RULE_DELETED', - RULE_UPDATED = 'RULE_UPDATED' -} - -export enum PromotionRuleCreateErrorCode { - GIFTS_NUMBER_LIMIT = 'GIFTS_NUMBER_LIMIT', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_GIFT_TYPE = 'INVALID_GIFT_TYPE', - INVALID_PRECISION = 'INVALID_PRECISION', - MISSING_CHANNELS = 'MISSING_CHANNELS', - MULTIPLE_CURRENCIES_NOT_ALLOWED = 'MULTIPLE_CURRENCIES_NOT_ALLOWED', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - RULES_NUMBER_LIMIT = 'RULES_NUMBER_LIMIT' -} -export type PromotionRuleCreateInput = { - /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ - cataloguePredicate?: InputMaybe; - /** List of channel ids to which the rule should apply to. */ - channels?: InputMaybe>; - /** Promotion rule description. */ - description?: InputMaybe; - /** - * Product variant IDs available as a gift to choose. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - gifts?: InputMaybe>; - /** Promotion rule name. */ - name?: InputMaybe; - /** - * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - orderPredicate?: InputMaybe; - /** The ID of the promotion that rule belongs to. */ - promotion: Scalars['ID']; - /** - * Defines the reward type of the promotion rule. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - rewardType?: InputMaybe; - /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; - /** Defines the promotion rule reward value type. Must be provided together with reward value. */ - rewardValueType?: InputMaybe; -}; +export type VoucherCodesQuery = { __typename: 'Query', voucher: { __typename: 'Voucher', codes: { __typename: 'VoucherCodeCountableConnection', edges: Array<{ __typename: 'VoucherCodeCountableEdge', node: { __typename: 'VoucherCode', code: string | null, used: number | null, isActive: boolean | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; -export enum PromotionRuleDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND' -} +export type PromotionDetailsQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type PromotionRuleInput = { - /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ - cataloguePredicate?: InputMaybe; - /** List of channel ids to which the rule should apply to. */ - channels?: InputMaybe>; - /** Promotion rule description. */ - description?: InputMaybe; - /** - * Product variant IDs available as a gift to choose. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - gifts?: InputMaybe>; - /** Promotion rule name. */ - name?: InputMaybe; - /** - * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - orderPredicate?: InputMaybe; - /** - * Defines the reward type of the promotion rule. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - rewardType?: InputMaybe; - /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; - /** Defines the promotion rule reward value type. Must be provided together with reward value. */ - rewardValueType?: InputMaybe; -}; - -export type PromotionRuleTranslationInput = { - /** - * Translated promotion description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - name?: InputMaybe; -}; -export enum PromotionRuleUpdateErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GIFTS_NUMBER_LIMIT = 'GIFTS_NUMBER_LIMIT', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_GIFT_TYPE = 'INVALID_GIFT_TYPE', - INVALID_PRECISION = 'INVALID_PRECISION', - MISSING_CHANNELS = 'MISSING_CHANNELS', - MULTIPLE_CURRENCIES_NOT_ALLOWED = 'MULTIPLE_CURRENCIES_NOT_ALLOWED', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} +export type PromotionDetailsQuery = { __typename: 'Query', promotion: { __typename: 'Promotion', id: string, name: string, type: PromotionTypeEnum | null, description: any | null, startDate: any, endDate: any | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null } | null }; -export type PromotionRuleUpdateInput = { - /** List of channel ids to add. */ - addChannels?: InputMaybe>; - /** - * List of variant IDs available as a gift to add. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - addGifts?: InputMaybe>; - /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ - cataloguePredicate?: InputMaybe; - /** Promotion rule description. */ - description?: InputMaybe; - /** Promotion rule name. */ - name?: InputMaybe; - /** - * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - orderPredicate?: InputMaybe; - /** List of channel ids to remove. */ - removeChannels?: InputMaybe>; - /** - * List of variant IDs available as a gift to remove. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - removeGifts?: InputMaybe>; - /** - * Defines the reward type of the promotion rule. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - rewardType?: InputMaybe; - /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; - /** Defines the promotion rule reward value type. Must be provided together with reward value. */ - rewardValueType?: InputMaybe; -}; +export type RuleConditionsSelectedOptionsDetailsQueryVariables = Exact<{ + categoriesIds?: InputMaybe | Scalars['ID']>; + collectionsIds?: InputMaybe | Scalars['ID']>; + productsIds?: InputMaybe | Scalars['ID']>; + variantsIds?: InputMaybe | Scalars['ID']>; +}>; -export enum PromotionSortField { - /** Sort promotions by creation date. */ - CREATED_AT = 'CREATED_AT', - /** Sort promotions by end date. */ - END_DATE = 'END_DATE', - /** Sort promotions by name. */ - NAME = 'NAME', - /** Sort promotions by start date. */ - START_DATE = 'START_DATE' -} -export type PromotionSortingInput = { - /** Specifies the direction in which to sort promotions. */ - direction: OrderDirection; - /** Sort promotions by the selected field. */ - field: PromotionSortField; -}; +export type RuleConditionsSelectedOptionsDetailsQuery = { __typename: 'Query', categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null, collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string } }> } | null, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string } }> } | null, productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', name: string } } }> } | null }; -export type PromotionTranslationInput = { - /** - * Translated promotion description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - name?: InputMaybe; -}; +export type GiftLabelsQueryVariables = Exact<{ + ids?: InputMaybe | Scalars['ID']>; +}>; -export enum PromotionTypeEnum { - CATALOGUE = 'CATALOGUE', - ORDER = 'ORDER' -} -export type PromotionTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; +export type GiftLabelsQuery = { __typename: 'Query', productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', name: string } } }> } | null }; -export enum PromotionUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} +export type PromotionDetailsQueryQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type PromotionUpdateInput = { - /** Promotion description. */ - description?: InputMaybe; - /** The end date of the promotion in ISO 8601 format. */ - endDate?: InputMaybe; - /** Promotion name. */ - name?: InputMaybe; - /** The start date of the promotion in ISO 8601 format. */ - startDate?: InputMaybe; -}; -export type PromotionWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter promotions by end date. */ - endDate?: InputMaybe; - ids?: InputMaybe>; - isOldSale?: InputMaybe; - metadata?: InputMaybe>; - /** Filter by promotion name. */ - name?: InputMaybe; - /** Filter promotions by start date. */ - startDate?: InputMaybe; - type?: InputMaybe; -}; +export type PromotionDetailsQueryQuery = { __typename: 'Query', promotion: { __typename: 'Promotion', id: string, name: string, description: any | null, startDate: any, endDate: any | null, type: PromotionTypeEnum | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null } | null }; -export type PublishableChannelListingInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; -}; +export type AppFailedPendingWebhooksQueryVariables = Exact<{ + canFetchAppEvents: Scalars['Boolean']; +}>; -export enum RefundSettingsErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - REQUIRED = 'REQUIRED' -} -export type RefundSettingsUpdateInput = { - /** - * The ID of a model type, that will be used to reference refund reasons. All models with of this type will be accepted as refund reasons. - * - * Added in Saleor 3.22. - */ - refundReasonReferenceType: Scalars['ID']; -}; +export type AppFailedPendingWebhooksQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null } }> } | null }; -export type ReorderInput = { - /** The ID of the item to move. */ +export type AppDeleteFailedInstallationMutationVariables = Exact<{ 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?: InputMaybe; -}; +}>; -export enum ReportingPeriod { - THIS_MONTH = 'THIS_MONTH', - TODAY = 'TODAY' -} -export enum RewardTypeEnum { - GIFT = 'GIFT', - SUBTOTAL_DISCOUNT = 'SUBTOTAL_DISCOUNT' -} +export type AppDeleteFailedInstallationMutation = { __typename: 'Mutation', appDeleteFailedInstallation: { __typename: 'AppDeleteFailedInstallation', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, message: string | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export enum RewardValueTypeEnum { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE' -} +export type WebhookCreateMutationVariables = Exact<{ + input: WebhookCreateInput; +}>; -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?: InputMaybe>; - /** List of channels from which the sale should be unassigned. */ - removeChannels?: InputMaybe>; -}; +export type WebhookCreateMutation = { __typename: 'Mutation', webhookCreate: { __typename: 'WebhookCreate', errors: Array<{ __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }>, webhook: { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } } | null } | null }; -export type SaleFilterInput = { - metadata?: InputMaybe>; - saleType?: InputMaybe; - search?: InputMaybe; - started?: InputMaybe; - status?: InputMaybe>; - updatedAt?: InputMaybe; -}; +export type WebhookUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: WebhookUpdateInput; +}>; -export type SaleInput = { - /** Categories related to the discount. */ - categories?: InputMaybe>; - /** Collections related to the discount. */ - collections?: InputMaybe>; - /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; - /** Voucher name. */ - name?: InputMaybe; - /** Products related to the discount. */ - products?: InputMaybe>; - /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; - /** Fixed or percentage. */ - type?: InputMaybe; - /** Value of the voucher. */ - value?: InputMaybe; - variants?: InputMaybe>; -}; -export enum SaleSortField { - /** Sort sales by creation date. */ - CREATED_AT = 'CREATED_AT', - /** Sort sales by end date. */ - END_DATE = 'END_DATE', - /** Sort sales by last modification date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** Sort sales by name. */ - NAME = 'NAME', - /** Sort sales by start date. */ - START_DATE = 'START_DATE', - /** Sort sales by type. */ - TYPE = 'TYPE', - /** - * Sort sales by value. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - VALUE = 'VALUE' -} +export type WebhookUpdateMutation = { __typename: 'Mutation', webhookUpdate: { __typename: 'WebhookUpdate', errors: Array<{ __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }>, webhook: { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } } | null } | null }; -export type SaleSortingInput = { - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort sales. */ - direction: OrderDirection; - /** Sort sales by the selected field. */ - field: SaleSortField; -}; +export type WebhookDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export enum SaleType { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE' -} -export enum SendConfirmationEmailErrorCode { - ACCOUNT_CONFIRMED = 'ACCOUNT_CONFIRMED', - CONFIRMATION_ALREADY_REQUESTED = 'CONFIRMATION_ALREADY_REQUESTED', - INVALID = 'INVALID', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG' -} +export type WebhookDeleteMutation = { __typename: 'Mutation', webhookDelete: { __typename: 'WebhookDelete', errors: Array<{ __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }> } | null }; -export type SeoInput = { - /** SEO description. */ - description?: InputMaybe; - /** SEO title. */ - title?: InputMaybe; -}; +export type PluginUpdateMutationVariables = Exact<{ + channelId?: InputMaybe; + id: Scalars['ID']; + input: PluginUpdateInput; +}>; -export enum ShippingErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LESS_THAN_MIN = 'MAX_LESS_THAN_MIN', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} -export type ShippingMethodChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Maximum order price to use this shipping method. */ - maximumOrderPrice?: InputMaybe; - /** Minimum order price to use this shipping method. */ - minimumOrderPrice?: InputMaybe; - /** Shipping price of the shipping method in this channel. */ - price?: InputMaybe; -}; +export type PluginUpdateMutation = { __typename: 'Mutation', pluginUpdate: { __typename: 'PluginUpdate', errors: Array<{ __typename: 'PluginError', code: PluginErrorCode, field: string | null, message: string | null }>, plugin: { __typename: 'Plugin', id: string, name: string, description: string, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }> } | null } | null }; -export type ShippingMethodChannelListingInput = { - /** List of channels to which the shipping method should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the shipping method should be unassigned. */ - removeChannels?: InputMaybe>; -}; +export type AppCreateMutationVariables = Exact<{ + input: AppInput; + hasManagedAppsPermission?: InputMaybe; +}>; -export enum ShippingMethodTypeEnum { - PRICE = 'PRICE', - WEIGHT = 'WEIGHT' -} -export type ShippingPostalCodeRulesCreateInputRange = { - /** End range of the postal code. */ - end?: InputMaybe; - /** Start range of the postal code. */ - start: Scalars['String']; -}; +export type AppCreateMutation = { __typename: 'Mutation', appCreate: { __typename: 'AppCreate', authToken: string | null, app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export type ShippingPriceExcludeProductsInput = { - /** List of products which will be excluded. */ - products: Array; -}; +export type AppDeleteMutationVariables = Exact<{ + id: Scalars['ID']; + hasManagedAppsPermission?: InputMaybe; +}>; -export type ShippingPriceInput = { - /** Postal code rules to add. */ - addPostalCodeRules?: InputMaybe>; - /** Postal code rules to delete. */ - deletePostalCodeRules?: InputMaybe>; - /** Shipping method description. */ - description?: InputMaybe; - /** Inclusion type for currently assigned postal code rules. */ - inclusionType?: InputMaybe; - /** Maximum number of days for delivery. */ - maximumDeliveryDays?: InputMaybe; - /** Maximum order weight to use this shipping method. */ - maximumOrderWeight?: InputMaybe; - /** Minimal number of days for delivery. */ - minimumDeliveryDays?: InputMaybe; - /** Minimum order weight to use this shipping method. */ - minimumOrderWeight?: InputMaybe; - /** Name of the shipping method. */ - name?: InputMaybe; - /** Shipping zone this method belongs to. */ - shippingZone?: InputMaybe; - /** ID of a tax class to assign to this shipping method. If not provided, the default tax class will be used. */ - taxClass?: InputMaybe; - /** Shipping type: price or weight based. */ - type?: InputMaybe; -}; -export type ShippingPriceTranslationInput = { - /** - * Translated shipping method description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - name?: InputMaybe; -}; +export type AppDeleteMutation = { __typename: 'Mutation', appDelete: { __typename: 'AppDelete', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export type ShippingZoneCreateInput = { - /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; - /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; - /** List of countries in this shipping zone. */ - countries?: InputMaybe>; - /** Default shipping zone will be used for countries not covered by other zones. */ - default?: InputMaybe; - /** Description of the shipping zone. */ - description?: InputMaybe; - /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; -}; +export type AppFetchMutationVariables = Exact<{ + manifestUrl: Scalars['String']; +}>; -export type ShippingZoneFilterInput = { - channels?: InputMaybe>; - search?: InputMaybe; -}; -export type ShippingZoneUpdateInput = { - /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; - /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; - /** List of countries in this shipping zone. */ - countries?: InputMaybe>; - /** Default shipping zone will be used for countries not covered by other zones. */ - default?: InputMaybe; - /** Description of the shipping zone. */ - description?: InputMaybe; - /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; - /** List of channels to unassign from the shipping zone. */ - removeChannels?: InputMaybe>; - /** List of warehouses to unassign from a shipping zone */ - removeWarehouses?: InputMaybe>; -}; +export type AppFetchMutation = { __typename: 'Mutation', appFetchManifest: { __typename: 'AppFetchManifest', manifest: { __typename: 'Manifest', identifier: string, version: string, about: string | null, name: string, appUrl: string | null, configurationUrl: string | null, tokenTargetUrl: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, homepageUrl: string | null, supportUrl: string | null, extensions: Array<{ __typename: 'AppManifestExtension', targetName: string, mountName: string, url: string, label: string, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> }>, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, brand: { __typename: 'AppManifestBrand', logo: { __typename: 'AppManifestBrandLogo', default: string } } | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export enum ShopErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - CANNOT_FETCH_TAX_RATES = 'CANNOT_FETCH_TAX_RATES', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} +export type AppInstallMutationVariables = Exact<{ + input: AppInstallInput; +}>; -export type ShopSettingsInput = { - /** Enable possibility to login without account confirmation. */ - allowLoginWithoutConfirmation?: InputMaybe; - /** Enable automatic fulfillment for all digital products. */ - automaticFulfillmentDigitalProducts?: InputMaybe; - /** - * Charge taxes on shipping. - * @deprecated To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. - */ - chargeTaxesOnShipping?: InputMaybe; - /** URL of a view where customers can set their password. */ - customerSetPasswordUrl?: InputMaybe; - /** Default number of max downloads per digital content URL. */ - defaultDigitalMaxDownloads?: InputMaybe; - /** Default number of days which digital content URL will be valid. */ - defaultDigitalUrlValidDays?: InputMaybe; - /** Default email sender's address. */ - defaultMailSenderAddress?: InputMaybe; - /** Default email sender's name. */ - defaultMailSenderName?: InputMaybe; - /** Default weight unit. */ - defaultWeightUnit?: InputMaybe; - /** SEO description. */ - description?: InputMaybe; - /** - * Display prices with tax in store. - * @deprecated Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - */ - displayGrossPrices?: InputMaybe; - /** Enable automatic account confirmation by email. */ - enableAccountConfirmationByEmail?: InputMaybe; - /** Enable ability to approve fulfillments which are unpaid. */ - fulfillmentAllowUnpaid?: InputMaybe; - /** Enable automatic approval of all new fulfillments. */ - fulfillmentAutoApprove?: InputMaybe; - /** Header text. */ - headerText?: InputMaybe; - /** - * Include taxes in prices. - * @deprecated Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - */ - includeTaxesInPrices?: InputMaybe; - /** Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. */ - limitQuantityPerCheckout?: InputMaybe; - /** - * Shop public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * When enabled, address fields that are not valid for a given country (according to Google's i18n address data) will be preserved instead of being removed during validation. Validation errors are still returned. - * - * Added in Saleor 3.22. - */ - preserveAllAddressFields?: InputMaybe; - /** - * Shop private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable. */ - reserveStockDurationAnonymousUser?: InputMaybe; - /** Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable. */ - reserveStockDurationAuthenticatedUser?: InputMaybe; - /** This field is used as a default value for `ProductVariant.trackInventory`. */ - trackInventoryByDefault?: InputMaybe; - /** - * Use legacy update webhook emission. When enabled, update webhooks (e.g. `customerUpdated`,`productVariantUpdated`) are sent even when only metadata changes. When disabled, update webhooks are not sent for metadata-only changes; only metadata-specific webhooks (e.g., `customerMetadataUpdated`, `productVariantMetadataUpdated`) are sent. - * - * Added in Saleor 3.22. - * @deprecated Field no longer supported - */ - useLegacyUpdateWebhookEmission?: InputMaybe; -}; -export type ShopSettingsTranslationInput = { - description?: InputMaybe; - headerText?: InputMaybe; -}; +export type AppInstallMutation = { __typename: 'Mutation', appInstall: { __typename: 'AppInstall', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, manifestUrl: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export type SiteDomainInput = { - /** Domain name for shop. */ - domain?: InputMaybe; - /** Shop site name. */ - name?: InputMaybe; -}; +export type AppRetryInstallMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -/** Fields required to create a staff user. */ -export type StaffCreateInput = { - /** List of permission group IDs to which user should be assigned. */ - addGroups?: InputMaybe>; - /** The unique email address of the user. */ - email?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** A note about the user. */ - note?: InputMaybe; - /** - * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; -}; -/** Represents status of a staff account. */ -export enum StaffMemberStatus { - /** User account has been activated. */ - ACTIVE = 'ACTIVE', - /** User account has not been activated yet. */ - DEACTIVATED = 'DEACTIVATED' -} +export type AppRetryInstallMutation = { __typename: 'Mutation', appRetryInstall: { __typename: 'AppRetryInstall', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, manifestUrl: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export type StaffNotificationRecipientInput = { - /** Determines if a notification active. */ - active?: InputMaybe; - /** Email address of a user subscribed to email notifications. */ - email?: InputMaybe; - /** The ID of the user subscribed to email notifications.. */ - user?: InputMaybe; -}; +export type AppUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: AppInput; + hasManagedAppsPermission?: InputMaybe; +}>; -/** Fields required to update a staff user. */ -export type StaffUpdateInput = { - /** List of permission group IDs to which user should be assigned. */ - addGroups?: InputMaybe>; - /** The unique email address of the user. */ - email?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** A note about the user. */ - note?: InputMaybe; - /** - * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** List of permission group IDs from which user should be unassigned. */ - removeGroups?: InputMaybe>; -}; -export type StaffUserInput = { - ids?: InputMaybe>; - search?: InputMaybe; - status?: InputMaybe; -}; +export type AppUpdateMutation = { __typename: 'Mutation', appUpdate: { __typename: 'AppUpdate', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', message: string | null, permissions: Array | null, field: string | null, code: AppErrorCode }> } | null }; -export enum StockAvailability { - IN_STOCK = 'IN_STOCK', - OUT_OF_STOCK = 'OUT_OF_STOCK' -} +export type AppTokenCreateMutationVariables = Exact<{ + input: AppTokenInput; +}>; -export enum StockBulkUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} -export type StockBulkUpdateInput = { - /** Quantity of items available for sell. */ - quantity: Scalars['Int']; - /** Variant external reference. */ - variantExternalReference?: InputMaybe; - /** Variant ID. */ - variantId?: InputMaybe; - /** Warehouse external reference. */ - warehouseExternalReference?: InputMaybe; - /** Warehouse ID. */ - warehouseId?: InputMaybe; -}; - -export enum StockErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type StockFilterInput = { - quantity?: InputMaybe; - search?: InputMaybe; -}; +export type AppTokenCreateMutation = { __typename: 'Mutation', appTokenCreate: { __typename: 'AppTokenCreate', authToken: string | null, appToken: { __typename: 'AppToken', name: string | null, authToken: string | null, id: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export type StockInput = { - /** Quantity of items available for sell. */ - quantity: Scalars['Int']; - /** Warehouse in which stock is located. */ - warehouse: Scalars['ID']; -}; +export type AppTokenDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type StockSettingsInput = { - /** Allocation strategy options. Strategy defines the preference of warehouses for allocations and reservations. */ - allocationStrategy: AllocationStrategyEnum; -}; -export type StockUpdateInput = { - /** Quantity of items available for sell. */ - quantity: Scalars['Int']; - /** Stock. */ - stock: Scalars['ID']; -}; +export type AppTokenDeleteMutation = { __typename: 'Mutation', appTokenDelete: { __typename: 'AppTokenDelete', appToken: { __typename: 'AppToken', name: string | null, authToken: string | null, id: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -/** - * Determine how stocks should be updated, while processing an order. - * - * SKIP - stocks are not checked and not updated. - * UPDATE - only do update, if there is enough stock. - * FORCE - force update, if there is not enough stock. - */ -export enum StockUpdatePolicyEnum { - FORCE = 'FORCE', - SKIP = 'SKIP', - UPDATE = 'UPDATE' -} - -/** Enum representing the type of a payment storage in a gateway. */ -export enum StorePaymentMethodEnum { - /** Storage is disabled. The payment is not stored. */ - NONE = 'NONE', - /** Off session storage type. The payment is stored to be reused even if the customer is absent. */ - OFF_SESSION = 'OFF_SESSION', - /** On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. */ - ON_SESSION = 'ON_SESSION' -} - -export enum StoredPaymentMethodRequestDeleteErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GATEWAY_ERROR = 'GATEWAY_ERROR', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} +export type AppActivateMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -/** - * Result of deleting a stored payment method. - * - * This enum is used to determine the result of deleting a stored payment method. - * SUCCESSFULLY_DELETED - The stored payment method was successfully deleted. - * FAILED_TO_DELETE - The stored payment method was not deleted. - * FAILED_TO_DELIVER - The request to delete the stored payment method was not - * delivered. - */ -export enum StoredPaymentMethodRequestDeleteResult { - FAILED_TO_DELETE = 'FAILED_TO_DELETE', - FAILED_TO_DELIVER = 'FAILED_TO_DELIVER', - SUCCESSFULLY_DELETED = 'SUCCESSFULLY_DELETED' -} -/** Define the filtering options for string fields. */ -export type StringFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; +export type AppActivateMutation = { __typename: 'Mutation', appActivate: { __typename: 'AppActivate', errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export enum TaxCalculationStrategy { - FLAT_RATES = 'FLAT_RATES', - TAX_APP = 'TAX_APP' -} +export type AppDeactivateMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export enum TaxClassCreateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} -export type TaxClassCreateInput = { - /** List of country-specific tax rates to create for this tax class. */ - createCountryRates?: InputMaybe>; - /** Name of the tax class. */ - name: Scalars['String']; -}; +export type AppDeactivateMutation = { __typename: 'Mutation', appDeactivate: { __typename: 'AppDeactivate', errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export enum TaxClassDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} +export type AppUpdatePermissionsMutationVariables = Exact<{ + id: Scalars['ID']; + permissions: Array | PermissionEnum; +}>; -export type TaxClassFilterInput = { - countries?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; -}; -export type TaxClassRateInput = { - /** Tax rate value. */ - rate?: InputMaybe; - /** ID of a tax class for which to update the tax rate */ - taxClassId?: InputMaybe; -}; +export type AppUpdatePermissionsMutation = { __typename: 'Mutation', appUpdate: { __typename: 'AppUpdate', app: { __typename: 'App', permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; -export enum TaxClassSortField { - /** Sort tax classes by name. */ - NAME = 'NAME' -} +export type InstalledAppsQueryVariables = Exact<{ + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; +}>; -export type TaxClassSortingInput = { - /** Specifies the direction in which to sort tax classes. */ - direction: OrderDirection; - /** Sort tax classes by the selected field. */ - field: TaxClassSortField; -}; -export enum TaxClassUpdateErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} +export type InstalledAppsQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, identifier: string | null, manifestUrl: string | null, isActive: boolean | null } }> } | null }; -export type TaxClassUpdateInput = { - /** Name of the tax class. */ - name?: InputMaybe; - /** List of country codes for which to remove the tax class rates. Note: It removes all rates for given country code. */ - removeCountryRates?: InputMaybe>; - /** List of country-specific tax rates to create or update for this tax class. */ - updateCountryRates?: InputMaybe>; -}; +export type InstalledAppsListQueryVariables = Exact<{ + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; +}>; -export type TaxConfigurationFilterInput = { - ids?: InputMaybe>; - metadata?: InputMaybe>; -}; -export type TaxConfigurationPerCountryInput = { - /** Determines whether taxes are charged in this country. */ - chargeTaxes: Scalars['Boolean']; - /** Country in which this configuration applies. */ - countryCode: CountryCode; - /** Determines whether displayed prices should include taxes for this country. */ - displayGrossPrices: Scalars['Boolean']; - /** - * The tax app `App.identifier` that will be used to calculate the taxes for the given channel and country. If not provided, use the value from the channel's tax configuration. - * - * Added in Saleor 3.19. - */ - taxAppId?: InputMaybe; - /** A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. */ - taxCalculationStrategy?: InputMaybe; - /** - * Determines whether to use weighted tax for shipping. When set to true, the tax rate for shipping will be calculated based on the weighted average of tax rates from the order or checkout lines. Default value is `False`.Can be used only with `taxCalculationStrategy` set to `FLAT_RATES`. - * - * Added in Saleor 3.21. - */ - useWeightedTaxForShipping?: InputMaybe; -}; +export type InstalledAppsListQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, isActive: boolean | null, name: string | null, type: AppTypeEnum | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } }> } | null }; -export enum TaxConfigurationUpdateErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} +export type EventDeliveryQueryVariables = Exact<{ + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; + canFetchAppEvents: Scalars['Boolean']; +}>; -export type TaxConfigurationUpdateInput = { - /** Determines whether taxes are charged in the given channel. */ - chargeTaxes?: InputMaybe; - /** Determines whether displayed prices should include taxes. */ - displayGrossPrices?: InputMaybe; - /** Determines whether prices are entered with the tax included. */ - pricesEnteredWithTax?: InputMaybe; - /** List of country codes for which to remove the tax configuration. */ - removeCountriesConfiguration?: InputMaybe>; - /** - * The tax app `App.identifier` that will be used to calculate the taxes for the given channel. Empty value for `TAX_APP` set as `taxCalculationStrategy` means that Saleor will iterate over all installed tax apps. If multiple tax apps exist with provided tax app id use the `App` with newest `created` date. It's possible to set plugin by using prefix `plugin:` with `PLUGIN_ID` e.g. with Avalara `plugin:mirumee.taxes.avalara`.Will become mandatory in 4.0 for `TAX_APP` `taxCalculationStrategy`. - * - * Added in Saleor 3.19. - */ - taxAppId?: InputMaybe; - /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ - taxCalculationStrategy?: InputMaybe; - /** List of tax country configurations to create or update (identified by a country code). */ - updateCountriesConfiguration?: InputMaybe>; - /** - * Determines whether to use weighted tax for shipping. When set to true, the tax rate for shipping will be calculated based on the weighted average of tax rates from the order or checkout lines. Default value is `False`.Can be used only with `taxCalculationStrategy` set to `FLAT_RATES`. - * - * Added in Saleor 3.21. - */ - useWeightedTaxForShipping?: InputMaybe; -}; - -export enum TaxCountryConfigurationDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export enum TaxCountryConfigurationUpdateErrorCode { - CANNOT_CREATE_NEGATIVE_RATE = 'CANNOT_CREATE_NEGATIVE_RATE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED = 'ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED' -} - -export enum TaxExemptionManageErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_EDITABLE_ORDER = 'NOT_EDITABLE_ORDER', - NOT_FOUND = 'NOT_FOUND' -} - -/** Indicates which part of the order the discount should affect: SUBTOTAL or SHIPPING. */ -export enum TaxableObjectDiscountTypeEnum { - SHIPPING = 'SHIPPING', - SUBTOTAL = 'SUBTOTAL' -} - -export type TaxedMoneyInput = { - /** Gross value of an item. */ - gross: Scalars['PositiveDecimal']; - /** Net value of an item. */ - net: Scalars['PositiveDecimal']; -}; - -export enum ThumbnailFormatEnum { - AVIF = 'AVIF', - ORIGINAL = 'ORIGINAL', - WEBP = 'WEBP' -} -export type TimePeriodInputType = { - /** The length of the period. */ - amount: Scalars['Int']; - /** The type of the period. */ - type: TimePeriodTypeEnum; -}; +export type EventDeliveryQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null } }> } | null }; -export enum TimePeriodTypeEnum { - DAY = 'DAY', - MONTH = 'MONTH', - WEEK = 'WEEK', - YEAR = 'YEAR' -} +export type AppsInstallationsQueryVariables = Exact<{ [key: string]: never; }>; -/** - * Represents possible tokenized payment flows that can be used to process payment. - * - * The following flows are possible: - * INTERACTIVE - Payment method can be used for 1 click checkout - it's prefilled in - * checkout form (might require additional authentication from user) - */ -export enum TokenizedPaymentFlowEnum { - INTERACTIVE = 'INTERACTIVE' -} -/** - * Represents possible actions on payment transaction. - * - * The following actions are possible: - * CHARGE - Represents the charge action. - * REFUND - Represents a refund action. - * CANCEL - Represents a cancel action. Added in Saleor 3.12. - */ -export enum TransactionActionEnum { - CANCEL = 'CANCEL', - CHARGE = 'CHARGE', - REFUND = 'REFUND' -} - -export enum TransactionCreateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - INVALID = 'INVALID', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', - NOT_FOUND = 'NOT_FOUND', - UNIQUE = 'UNIQUE' -} - -export type TransactionCreateInput = { - /** Amount authorized by this transaction. */ - amountAuthorized?: InputMaybe; - /** Amount canceled by this transaction. */ - amountCanceled?: InputMaybe; - /** Amount charged by this transaction. */ - amountCharged?: InputMaybe; - /** Amount refunded by this transaction. */ - amountRefunded?: InputMaybe; - /** List of all possible actions for the transaction */ - availableActions?: InputMaybe>; - /** The url that will allow to redirect user to payment provider page with transaction event details. */ - externalUrl?: InputMaybe; - /** The message of the transaction. */ - message?: InputMaybe; - /** - * Payment public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Payment name of the transaction. */ - name?: InputMaybe; - /** - * Details of the payment method used for the transaction. - * - * Added in Saleor 3.22. - */ - paymentMethodDetails?: InputMaybe; - /** - * Payment private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** PSP Reference of the transaction. */ - pspReference?: InputMaybe; -}; +export type AppsInstallationsQuery = { __typename: 'Query', appsInstallations: Array<{ __typename: 'AppInstallation', status: JobStatusEnum, message: string | null, appName: string, manifestUrl: string, id: string, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }> }; -export type TransactionEventInput = { - /** The message related to the event. */ - message?: InputMaybe; - /** PSP Reference related to this action. */ - pspReference?: InputMaybe; -}; +export type AppQueryVariables = Exact<{ + id: Scalars['ID']; + hasManagedAppsPermission: Scalars['Boolean']; +}>; -export enum TransactionEventReportErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INCORRECT_DETAILS = 'INCORRECT_DETAILS', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} -/** - * Represents possible event types. - * - * Added in Saleor 3.12. - * - * The following types are possible: - * AUTHORIZATION_SUCCESS - represents success authorization. - * AUTHORIZATION_FAILURE - represents failure authorization. - * AUTHORIZATION_ADJUSTMENT - represents authorization adjustment. - * AUTHORIZATION_REQUEST - represents authorization request. - * AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs - * additional actions from the customer. - * CHARGE_ACTION_REQUIRED - represents charge that needs - * additional actions from the customer. - * CHARGE_SUCCESS - represents success charge. - * CHARGE_FAILURE - represents failure charge. - * CHARGE_BACK - represents chargeback. - * CHARGE_REQUEST - represents charge request. - * REFUND_SUCCESS - represents success refund. - * REFUND_FAILURE - represents failure refund. - * REFUND_REVERSE - represents reverse refund. - * REFUND_REQUEST - represents refund request. - * CANCEL_SUCCESS - represents success cancel. - * CANCEL_FAILURE - represents failure cancel. - * CANCEL_REQUEST - represents cancel request. - * INFO - represents info event. - */ -export enum TransactionEventTypeEnum { - AUTHORIZATION_ACTION_REQUIRED = 'AUTHORIZATION_ACTION_REQUIRED', - AUTHORIZATION_ADJUSTMENT = 'AUTHORIZATION_ADJUSTMENT', - AUTHORIZATION_FAILURE = 'AUTHORIZATION_FAILURE', - AUTHORIZATION_REQUEST = 'AUTHORIZATION_REQUEST', - AUTHORIZATION_SUCCESS = 'AUTHORIZATION_SUCCESS', - CANCEL_FAILURE = 'CANCEL_FAILURE', - CANCEL_REQUEST = 'CANCEL_REQUEST', - CANCEL_SUCCESS = 'CANCEL_SUCCESS', - CHARGE_ACTION_REQUIRED = 'CHARGE_ACTION_REQUIRED', - CHARGE_BACK = 'CHARGE_BACK', - CHARGE_FAILURE = 'CHARGE_FAILURE', - CHARGE_REQUEST = 'CHARGE_REQUEST', - CHARGE_SUCCESS = 'CHARGE_SUCCESS', - INFO = 'INFO', - REFUND_FAILURE = 'REFUND_FAILURE', - REFUND_REQUEST = 'REFUND_REQUEST', - REFUND_REVERSE = 'REFUND_REVERSE', - REFUND_SUCCESS = 'REFUND_SUCCESS' -} +export type AppQuery = { __typename: 'Query', app: { __typename: 'App', aboutApp: string | null, author: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null }; -/** Filter input for transactions. */ -export type TransactionFilterInput = { - /** Filter by metadata fields of transactions. */ - metadata?: InputMaybe; - /** Filter by payment method details used to pay for the order. */ - paymentMethodDetails?: InputMaybe; -}; +export type ExtensionListQueryVariables = Exact<{ + filter: AppExtensionFilterInput; +}>; -/** - * Determine the transaction flow strategy. - * - * AUTHORIZATION - the processed transaction should be only authorized - * CHARGE - the processed transaction should be charged. - */ -export enum TransactionFlowStrategyEnum { - AUTHORIZATION = 'AUTHORIZATION', - CHARGE = 'CHARGE' -} - -export enum TransactionInitializeErrorCode { - CHECKOUT_COMPLETION_IN_PROGRESS = 'CHECKOUT_COMPLETION_IN_PROGRESS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - UNIQUE = 'UNIQUE' -} - -export enum TransactionKind { - ACTION_TO_CONFIRM = 'ACTION_TO_CONFIRM', - AUTH = 'AUTH', - CANCEL = 'CANCEL', - CAPTURE = 'CAPTURE', - CONFIRM = 'CONFIRM', - EXTERNAL = 'EXTERNAL', - PENDING = 'PENDING', - REFUND = 'REFUND', - REFUND_ONGOING = 'REFUND_ONGOING', - VOID = 'VOID' -} - -export enum TransactionProcessErrorCode { - CHECKOUT_COMPLETION_IN_PROGRESS = 'CHECKOUT_COMPLETION_IN_PROGRESS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MISSING_PAYMENT_APP = 'MISSING_PAYMENT_APP', - MISSING_PAYMENT_APP_RELATION = 'MISSING_PAYMENT_APP_RELATION', - NOT_FOUND = 'NOT_FOUND', - TRANSACTION_ALREADY_PROCESSED = 'TRANSACTION_ALREADY_PROCESSED' -} - -export enum TransactionRequestActionErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK = 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export enum TransactionRequestRefundForGrantedRefundErrorCode { - AMOUNT_GREATER_THAN_AVAILABLE = 'AMOUNT_GREATER_THAN_AVAILABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK = 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK', - NOT_FOUND = 'NOT_FOUND', - REFUND_ALREADY_PROCESSED = 'REFUND_ALREADY_PROCESSED', - REFUND_IS_PENDING = 'REFUND_IS_PENDING' -} - -export enum TransactionUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - INVALID = 'INVALID', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', - NOT_FOUND = 'NOT_FOUND', - UNIQUE = 'UNIQUE' -} - -export type TransactionUpdateInput = { - /** Amount authorized by this transaction. */ - amountAuthorized?: InputMaybe; - /** Amount canceled by this transaction. */ - amountCanceled?: InputMaybe; - /** Amount charged by this transaction. */ - amountCharged?: InputMaybe; - /** Amount refunded by this transaction. */ - amountRefunded?: InputMaybe; - /** List of all possible actions for the transaction */ - availableActions?: InputMaybe>; - /** The url that will allow to redirect user to payment provider page with transaction event details. */ - externalUrl?: InputMaybe; - /** The message of the transaction. */ - message?: InputMaybe; - /** - * Payment public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Payment name of the transaction. */ - name?: InputMaybe; - /** - * Details of the payment method used for the transaction. - * - * Added in Saleor 3.22. - */ - paymentMethodDetails?: InputMaybe; - /** - * Payment private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** PSP Reference of the transaction. */ - pspReference?: InputMaybe; -}; -export enum TranslatableKinds { - ATTRIBUTE = 'ATTRIBUTE', - ATTRIBUTE_VALUE = 'ATTRIBUTE_VALUE', - CATEGORY = 'CATEGORY', - COLLECTION = 'COLLECTION', - MENU_ITEM = 'MENU_ITEM', - PAGE = 'PAGE', - PRODUCT = 'PRODUCT', - PROMOTION = 'PROMOTION', - PROMOTION_RULE = 'PROMOTION_RULE', - SALE = 'SALE', - SHIPPING_METHOD = 'SHIPPING_METHOD', - VARIANT = 'VARIANT', - VOUCHER = 'VOUCHER' -} - -export enum TranslationErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} +export type ExtensionListQuery = { __typename: 'Query', appExtensions: { __typename: 'AppExtensionCountableConnection', edges: Array<{ __typename: 'AppExtensionCountableEdge', node: { __typename: 'AppExtension', id: string, label: string, url: string, mountName: string, targetName: string, settings: any, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum }>, app: { __typename: 'App', id: string, appUrl: string | null, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } } }> } | null }; -export type TranslationInput = { - /** - * Translated description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - name?: InputMaybe; - seoDescription?: InputMaybe; - seoTitle?: InputMaybe; - slug?: InputMaybe; -}; +export type AppWebhookDeliveriesQueryVariables = Exact<{ + appId: Scalars['ID']; +}>; -/** Define the filtering options for string fields. */ -export type UuidFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; -export type UpdateInvoiceInput = { - /** - * Fields required to update the invoice metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Invoice number */ - number?: InputMaybe; - /** - * Fields required to update the invoice private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of an invoice to download. */ - url?: InputMaybe; -}; +export type AppWebhookDeliveriesQuery = { __typename: 'Query', app: { __typename: 'App', webhooks: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', name: string }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', name: string }>, eventDeliveries: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, status: EventDeliveryStatusEnum, eventType: WebhookEventTypeEnum, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, createdAt: any, status: EventDeliveryStatusEnum, response: string | null, responseStatusCode: number | null } }> } | null } }> } | null }> | null } | null }; -export enum UploadErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR' -} +export type WebhookDetailsQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type UserCreateInput = { - /** Slug of a channel which will be used for notify user. Optional when only one channel exists. */ - channel?: InputMaybe; - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** External ID of the customer. */ - externalReference?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** - * User account is confirmed. - * @deprecated The user will be always set as unconfirmed. The confirmation will take place when the user sets the password. - */ - isConfirmed?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** A note about the user. */ - note?: InputMaybe; - /** - * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; -}; -export enum UserSortField { - /** Sort users by created at. */ - CREATED_AT = 'CREATED_AT', - /** Sort users by email. */ - EMAIL = 'EMAIL', - /** Sort users by first name. */ - FIRST_NAME = 'FIRST_NAME', - /** Sort users by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** Sort users by last name. */ - LAST_NAME = 'LAST_NAME', - /** Sort users by order count. */ - ORDER_COUNT = 'ORDER_COUNT' -} +export type WebhookDetailsQuery = { __typename: 'Query', webhook: { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } } | null }; -export type UserSortingInput = { - /** Specifies the direction in which to sort users. */ - direction: OrderDirection; - /** Sort users by the selected field. */ - field: UserSortField; -}; +export type PluginsQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; +}>; -export enum VariantAttributeScope { - ALL = 'ALL', - NOT_VARIANT_SELECTION = 'NOT_VARIANT_SELECTION', - VARIANT_SELECTION = 'VARIANT_SELECTION' -} - -export enum VolumeUnitsEnum { - ACRE_FT = 'ACRE_FT', - ACRE_IN = 'ACRE_IN', - CUBIC_CENTIMETER = 'CUBIC_CENTIMETER', - CUBIC_DECIMETER = 'CUBIC_DECIMETER', - CUBIC_FOOT = 'CUBIC_FOOT', - CUBIC_INCH = 'CUBIC_INCH', - CUBIC_METER = 'CUBIC_METER', - CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', - CUBIC_YARD = 'CUBIC_YARD', - FL_OZ = 'FL_OZ', - LITER = 'LITER', - PINT = 'PINT', - QT = 'QT' -} -export type VoucherChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Value of the voucher. */ - discountValue?: InputMaybe; - /** Min purchase amount required to apply the voucher. */ - minAmountSpent?: InputMaybe; -}; +export type PluginsQuery = { __typename: 'Query', plugins: { __typename: 'PluginCountableConnection', edges: Array<{ __typename: 'PluginCountableEdge', node: { __typename: 'Plugin', id: string, name: string, description: string, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }>, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; -export type VoucherChannelListingInput = { - /** List of channels to which the voucher should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the voucher should be unassigned. */ - removeChannels?: InputMaybe>; -}; +export type PluginQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export enum VoucherCodeBulkDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} -export enum VoucherDiscountType { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE', - SHIPPING = 'SHIPPING' -} +export type PluginQuery = { __typename: 'Query', plugin: { __typename: 'Plugin', id: string, name: string, description: string, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }> } | null }; -export type VoucherFilterInput = { - discountType?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; - search?: InputMaybe; - started?: InputMaybe; - status?: InputMaybe>; - timesUsed?: InputMaybe; -}; +export type AppsListQueryVariables = Exact<{ + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + sort?: InputMaybe; + filter?: InputMaybe; + canFetchAppEvents: Scalars['Boolean']; +}>; -export type VoucherInput = { - /** - * List of codes to add. - * - * Added in Saleor 3.18. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - addCodes?: InputMaybe>; - /** Voucher should be applied once per customer. */ - applyOncePerCustomer?: InputMaybe; - /** Voucher should be applied to the cheapest item or entire order. */ - applyOncePerOrder?: InputMaybe; - /** Categories discounted by the voucher. */ - categories?: InputMaybe>; - /** - * Code to use the voucher. - * @deprecated Use `addCodes` instead. - */ - code?: InputMaybe; - /** Collections discounted by the voucher. */ - collections?: InputMaybe>; - /** Country codes that can be used with the shipping voucher. */ - countries?: InputMaybe>; - /** Choices: fixed or percentage. */ - discountValueType?: InputMaybe; - /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; - /** Minimal quantity of checkout items required to apply the voucher. */ - minCheckoutItemsQuantity?: InputMaybe; - /** Voucher name. */ - name?: InputMaybe; - /** Voucher can be used only by staff user. */ - onlyForStaff?: InputMaybe; - /** Products discounted by the voucher. */ - products?: InputMaybe>; - /** - * When set to 'True', each voucher code can be used only once; otherwise, codes can be used multiple times depending on `usageLimit`. - * - * The option can only be changed if none of the voucher codes have been used. - * - * Added in Saleor 3.18. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - singleUse?: InputMaybe; - /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; - /** Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. */ - type?: InputMaybe; - /** Limit number of times this voucher can be used in total. */ - usageLimit?: InputMaybe; - /** Variants discounted by the voucher. */ - variants?: InputMaybe>; -}; -export enum VoucherSortField { - /** - * Sort vouchers by code. - * @deprecated Field no longer supported - */ - CODE = 'CODE', - /** Sort vouchers by end date. */ - END_DATE = 'END_DATE', - /** - * Sort vouchers by minimum spent amount. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - MINIMUM_SPENT_AMOUNT = 'MINIMUM_SPENT_AMOUNT', - /** - * Sort vouchers by name. - * - * Added in Saleor 3.18. - */ - NAME = 'NAME', - /** Sort vouchers by start date. */ - START_DATE = 'START_DATE', - /** Sort vouchers by type. */ - TYPE = 'TYPE', - /** Sort vouchers by usage limit. */ - USAGE_LIMIT = 'USAGE_LIMIT', - /** - * Sort vouchers by value. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - VALUE = 'VALUE' -} +export type AppsListQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, version: string | null, created: any | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null, webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null } }> } | null }; -export type VoucherSortingInput = { - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort vouchers. */ - direction: OrderDirection; - /** Sort vouchers by the selected field. */ - field: VoucherSortField; -}; +export type FileUploadMutationVariables = Exact<{ + file: Scalars['Upload']; +}>; -export enum VoucherTypeEnum { - ENTIRE_ORDER = 'ENTIRE_ORDER', - SHIPPING = 'SHIPPING', - SPECIFIC_PRODUCT = 'SPECIFIC_PRODUCT' -} -export enum WarehouseClickAndCollectOptionEnum { - ALL = 'ALL', - DISABLED = 'DISABLED', - LOCAL = 'LOCAL' -} +export type FileUploadMutation = { __typename: 'Mutation', fileUpload: { __typename: 'FileUpload', uploadedFile: { __typename: 'File', url: string, contentType: string | null } | null, errors: Array<{ __typename: 'UploadError', code: UploadErrorCode, field: string | null, message: string | null }> } | null }; -export type WarehouseCreateInput = { - /** Address of the warehouse. */ - address: AddressInput; - /** The email address of the warehouse. */ - email?: InputMaybe; - /** External ID of the warehouse. */ - externalReference?: InputMaybe; - /** Warehouse name. */ - name: Scalars['String']; - /** - * Shipping zones supported by the warehouse. - * @deprecated Providing the zone ids will raise a ValidationError. - */ - shippingZones?: InputMaybe>; - /** Warehouse slug. */ - slug?: InputMaybe; -}; +export type AddressFragment = { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }; -export enum WarehouseErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} +export type AppManifestFragment = { __typename: 'Manifest', identifier: string, version: string, about: string | null, name: string, appUrl: string | null, configurationUrl: string | null, tokenTargetUrl: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, homepageUrl: string | null, supportUrl: string | null, extensions: Array<{ __typename: 'AppManifestExtension', targetName: string, mountName: string, url: string, label: string, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> }>, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, brand: { __typename: 'AppManifestBrand', logo: { __typename: 'AppManifestBrandLogo', default: string } } | null }; -export type WarehouseFilterInput = { - channels?: InputMaybe>; - clickAndCollectOption?: InputMaybe; - ids?: InputMaybe>; - isPrivate?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; -}; +export type AppFragment = { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null }; -export enum WarehouseSortField { - /** Sort warehouses by name. */ - NAME = 'NAME' -} +export type AppInstallationFragment = { __typename: 'AppInstallation', status: JobStatusEnum, message: string | null, appName: string, manifestUrl: string, id: string, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }; -export type WarehouseSortingInput = { - /** Specifies the direction in which to sort warehouses. */ - direction: OrderDirection; - /** Sort warehouses by the selected field. */ - field: WarehouseSortField; -}; +export type AppListItemFragment = { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, version: string | null, created: any | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null, webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null }; -export type WarehouseUpdateInput = { - /** Address of the warehouse. */ - address?: InputMaybe; - /** Click and collect options: local, all or disabled. */ - clickAndCollectOption?: InputMaybe; - /** The email address of the warehouse. */ - email?: InputMaybe; - /** External ID of the warehouse. */ - externalReference?: InputMaybe; - /** Visibility of warehouse stocks. */ - isPrivate?: InputMaybe; - /** Warehouse name. */ - name?: InputMaybe; - /** Warehouse slug. */ - slug?: InputMaybe; -}; +export type AppPermissionFragment = { __typename: 'Permission', name: string, code: PermissionEnum }; -export type WebhookCreateInput = { - /** ID of the app to which webhook belongs. */ - app?: InputMaybe; - /** The asynchronous events that webhook wants to subscribe. */ - asyncEvents?: InputMaybe>; - /** Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed. */ - customHeaders?: InputMaybe; - /** - * The events that webhook wants to subscribe. - * @deprecated Use `asyncEvents` or `syncEvents` instead. - */ - events?: InputMaybe>; - /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; - /** The name of the webhook. */ - name?: InputMaybe; - /** Subscription query used to define a webhook payload. */ - query?: InputMaybe; - /** - * The secret key used to create a hash signature with each payload. - * @deprecated As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - */ - secretKey?: InputMaybe; - /** The synchronous events that webhook wants to subscribe. */ - syncEvents?: InputMaybe>; - /** The url to receive the payload. */ - targetUrl?: InputMaybe; -}; - -export enum WebhookDryRunErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID_ID = 'INVALID_ID', - MISSING_EVENT = 'MISSING_EVENT', - MISSING_PERMISSION = 'MISSING_PERMISSION', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - NOT_FOUND = 'NOT_FOUND', - SYNTAX = 'SYNTAX', - TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE' -} - -export enum WebhookErrorCode { - DELETE_FAILED = 'DELETE_FAILED', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS', - INVALID_NOTIFY_WITH_SUBSCRIPTION = 'INVALID_NOTIFY_WITH_SUBSCRIPTION', - MISSING_EVENT = 'MISSING_EVENT', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - SYNTAX = 'SYNTAX', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE', - UNIQUE = 'UNIQUE' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeAsyncEnum { - /** An account email change is requested. */ - ACCOUNT_CHANGE_EMAIL_REQUESTED = 'ACCOUNT_CHANGE_EMAIL_REQUESTED', - /** An account confirmation is requested. */ - ACCOUNT_CONFIRMATION_REQUESTED = 'ACCOUNT_CONFIRMATION_REQUESTED', - /** An account is confirmed. */ - ACCOUNT_CONFIRMED = 'ACCOUNT_CONFIRMED', - /** An account is deleted. */ - ACCOUNT_DELETED = 'ACCOUNT_DELETED', - /** An account delete is requested. */ - ACCOUNT_DELETE_REQUESTED = 'ACCOUNT_DELETE_REQUESTED', - /** An account email was changed */ - ACCOUNT_EMAIL_CHANGED = 'ACCOUNT_EMAIL_CHANGED', - /** Setting a new password for the account is requested. */ - ACCOUNT_SET_PASSWORD_REQUESTED = 'ACCOUNT_SET_PASSWORD_REQUESTED', - /** A new address created. */ - ADDRESS_CREATED = 'ADDRESS_CREATED', - /** An address deleted. */ - ADDRESS_DELETED = 'ADDRESS_DELETED', - /** An address updated. */ - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - /** - * All the events. - * @deprecated Field no longer supported - */ - ANY_EVENTS = 'ANY_EVENTS', - /** An app deleted. */ - APP_DELETED = 'APP_DELETED', - /** A new app installed. */ - APP_INSTALLED = 'APP_INSTALLED', - /** An app status is changed. */ - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - /** An app updated. */ - APP_UPDATED = 'APP_UPDATED', - /** A new attribute is created. */ - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - /** An attribute is deleted. */ - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - /** An attribute is updated. */ - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - /** A new attribute value is created. */ - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - /** An attribute value is deleted. */ - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - /** An attribute value is updated. */ - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - /** A new category created. */ - CATEGORY_CREATED = 'CATEGORY_CREATED', - /** A category is deleted. */ - CATEGORY_DELETED = 'CATEGORY_DELETED', - /** A category is updated. */ - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - /** A new channel created. */ - CHANNEL_CREATED = 'CHANNEL_CREATED', - /** A channel is deleted. */ - CHANNEL_DELETED = 'CHANNEL_DELETED', - /** A channel metadata is updated. */ - CHANNEL_METADATA_UPDATED = 'CHANNEL_METADATA_UPDATED', - /** A channel status is changed. */ - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - /** A channel is updated. */ - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - /** A new checkout is created. */ - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - /** - * A checkout was fully authorized (its `authorizeStatus` is `FULL`). - * - * This event is emitted only for checkouts whose payments are processed through the Transaction API. - */ - CHECKOUT_FULLY_AUTHORIZED = 'CHECKOUT_FULLY_AUTHORIZED', - /** - * A checkout was fully paid (its `chargeStatus` is `FULL` or `OVERCHARGED`). This event is not sent if payments are only authorized but not fully charged. - * - * This event is emitted only for checkouts whose payments are processed through the Transaction API. - */ - CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', - /** A checkout metadata is updated. */ - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - /** A checkout is updated. It also triggers all updates related to the checkout. */ - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - /** A new collection is created. */ - COLLECTION_CREATED = 'COLLECTION_CREATED', - /** A collection is deleted. */ - COLLECTION_DELETED = 'COLLECTION_DELETED', - /** A collection metadata is updated. */ - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - /** A collection is updated. */ - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - /** A new customer account is created. */ - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - /** A customer account is deleted. */ - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - /** A customer account metadata is updated. */ - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - /** A customer account is updated. */ - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - /** A draft order is created. */ - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - /** A draft order is deleted. */ - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - /** A draft order is updated. */ - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - /** A fulfillment is approved. */ - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - /** A fulfillment is cancelled. */ - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - /** A new fulfillment is created. */ - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - /** A fulfillment metadata is updated. */ - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - FULFILLMENT_TRACKING_NUMBER_UPDATED = 'FULFILLMENT_TRACKING_NUMBER_UPDATED', - /** A new gift card created. */ - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - /** A gift card is deleted. */ - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - /** A gift card export is completed. */ - GIFT_CARD_EXPORT_COMPLETED = 'GIFT_CARD_EXPORT_COMPLETED', - /** A gift card metadata is updated. */ - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - /** A gift card has been sent. */ - GIFT_CARD_SENT = 'GIFT_CARD_SENT', - /** A gift card status is changed. */ - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - /** A gift card is updated. */ - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - /** An invoice is deleted. */ - INVOICE_DELETED = 'INVOICE_DELETED', - /** An invoice for order requested. */ - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - /** Invoice has been sent. */ - INVOICE_SENT = 'INVOICE_SENT', - /** A new menu created. */ - MENU_CREATED = 'MENU_CREATED', - /** A menu is deleted. */ - MENU_DELETED = 'MENU_DELETED', - /** A new menu item created. */ - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - /** A menu item is deleted. */ - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - /** A menu item is updated. */ - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - /** A menu is updated. */ - MENU_UPDATED = 'MENU_UPDATED', - /** - * User notification triggered. - * @deprecated See the docs for more details about migrating from NOTIFY_USER to other events: https://docs.saleor.io/upgrade-guides/core/3-16-to-3-17#migrating-from-notify_user - */ - NOTIFY_USER = 'NOTIFY_USER', - /** An observability event is created. */ - OBSERVABILITY = 'OBSERVABILITY', - /** Orders are imported. */ - ORDER_BULK_CREATED = 'ORDER_BULK_CREATED', - /** An order is cancelled. */ - ORDER_CANCELLED = 'ORDER_CANCELLED', - /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - /** A new order is placed. */ - ORDER_CREATED = 'ORDER_CREATED', - /** An order is expired. */ - ORDER_EXPIRED = 'ORDER_EXPIRED', - /** An order is fulfilled. */ - ORDER_FULFILLED = 'ORDER_FULFILLED', - /** Payment is made and an order is fully paid. */ - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - /** The order is fully refunded. */ - ORDER_FULLY_REFUNDED = 'ORDER_FULLY_REFUNDED', - /** An order metadata is updated. */ - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - /** Payment has been made. The order may be partially or fully paid. */ - ORDER_PAID = 'ORDER_PAID', - /** The order received a refund. The order may be partially or fully refunded. */ - ORDER_REFUNDED = 'ORDER_REFUNDED', - /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - ORDER_UPDATED = 'ORDER_UPDATED', - /** A new page is created. */ - PAGE_CREATED = 'PAGE_CREATED', - /** A page is deleted. */ - PAGE_DELETED = 'PAGE_DELETED', - /** A new page type is created. */ - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - /** A page type is deleted. */ - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - /** A page type is updated. */ - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - /** A page is updated. */ - PAGE_UPDATED = 'PAGE_UPDATED', - /** A new permission group is created. */ - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - /** A permission group is deleted. */ - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - /** A permission group is updated. */ - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - /** A new product is created. */ - PRODUCT_CREATED = 'PRODUCT_CREATED', - /** A product is deleted. */ - PRODUCT_DELETED = 'PRODUCT_DELETED', - /** A product export is completed. */ - PRODUCT_EXPORT_COMPLETED = 'PRODUCT_EXPORT_COMPLETED', - /** A new product media is created. */ - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - /** A product media is deleted. */ - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - /** A product media is updated. */ - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - /** A product metadata is updated. */ - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - /** A product is updated. */ - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - /** A product variant is back in stock. */ - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - /** A new product variant is created. */ - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - /** A product variant metadata is updated. */ - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - /** A product variant is out of stock. */ - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - /** A product variant stock is updated */ - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - /** A product variant is updated. */ - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - /** A promotion is created. */ - PROMOTION_CREATED = 'PROMOTION_CREATED', - /** A promotion is deleted. */ - PROMOTION_DELETED = 'PROMOTION_DELETED', - /** A promotion is deactivated. */ - PROMOTION_ENDED = 'PROMOTION_ENDED', - /** A promotion rule is created. */ - PROMOTION_RULE_CREATED = 'PROMOTION_RULE_CREATED', - /** A promotion rule is deleted. */ - PROMOTION_RULE_DELETED = 'PROMOTION_RULE_DELETED', - /** A promotion rule is updated. */ - PROMOTION_RULE_UPDATED = 'PROMOTION_RULE_UPDATED', - /** A promotion is activated. */ - PROMOTION_STARTED = 'PROMOTION_STARTED', - /** A promotion is updated. */ - PROMOTION_UPDATED = 'PROMOTION_UPDATED', - /** A sale is created. */ - SALE_CREATED = 'SALE_CREATED', - /** A sale is deleted. */ - SALE_DELETED = 'SALE_DELETED', - /** A sale is activated or deactivated. */ - SALE_TOGGLE = 'SALE_TOGGLE', - /** A sale is updated. */ - SALE_UPDATED = 'SALE_UPDATED', - /** A new shipping price is created. */ - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - /** A shipping price is deleted. */ - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - /** A shipping price is updated. */ - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - /** A new shipping zone is created. */ - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - /** A shipping zone is deleted. */ - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - /** A shipping zone metadata is updated. */ - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - /** A shipping zone is updated. */ - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - /** Shop metadata is updated. */ - SHOP_METADATA_UPDATED = 'SHOP_METADATA_UPDATED', - /** A new staff user is created. */ - STAFF_CREATED = 'STAFF_CREATED', - /** A staff user is deleted. */ - STAFF_DELETED = 'STAFF_DELETED', - /** Setting a new password for the staff account is requested. */ - STAFF_SET_PASSWORD_REQUESTED = 'STAFF_SET_PASSWORD_REQUESTED', - /** A staff user is updated. */ - STAFF_UPDATED = 'STAFF_UPDATED', - /** A thumbnail is created. */ - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', - /** Transaction item metadata is updated. */ - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - /** A new translation is created. */ - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - /** A translation is updated. */ - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - VOUCHER_CODES_CREATED = 'VOUCHER_CODES_CREATED', - VOUCHER_CODES_DELETED = 'VOUCHER_CODES_DELETED', - /** - * A voucher code export is completed. - * - * Added in Saleor 3.18. - */ - VOUCHER_CODE_EXPORT_COMPLETED = 'VOUCHER_CODE_EXPORT_COMPLETED', - /** A new voucher created. */ - VOUCHER_CREATED = 'VOUCHER_CREATED', - /** A voucher is deleted. */ - VOUCHER_DELETED = 'VOUCHER_DELETED', - /** A voucher metadata is updated. */ - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - /** A voucher is updated. */ - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - /** A new warehouse created. */ - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - /** A warehouse is deleted. */ - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - /** A warehouse metadata is updated. */ - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - /** A warehouse is updated. */ - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeEnum { - /** An account email change is requested. */ - ACCOUNT_CHANGE_EMAIL_REQUESTED = 'ACCOUNT_CHANGE_EMAIL_REQUESTED', - /** An account confirmation is requested. */ - ACCOUNT_CONFIRMATION_REQUESTED = 'ACCOUNT_CONFIRMATION_REQUESTED', - /** An account is confirmed. */ - ACCOUNT_CONFIRMED = 'ACCOUNT_CONFIRMED', - /** An account is deleted. */ - ACCOUNT_DELETED = 'ACCOUNT_DELETED', - /** An account delete is requested. */ - ACCOUNT_DELETE_REQUESTED = 'ACCOUNT_DELETE_REQUESTED', - /** An account email was changed */ - ACCOUNT_EMAIL_CHANGED = 'ACCOUNT_EMAIL_CHANGED', - /** Setting a new password for the account is requested. */ - ACCOUNT_SET_PASSWORD_REQUESTED = 'ACCOUNT_SET_PASSWORD_REQUESTED', - /** A new address created. */ - ADDRESS_CREATED = 'ADDRESS_CREATED', - /** An address deleted. */ - ADDRESS_DELETED = 'ADDRESS_DELETED', - /** An address updated. */ - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - /** - * All the events. - * @deprecated Field no longer supported - */ - ANY_EVENTS = 'ANY_EVENTS', - /** An app deleted. */ - APP_DELETED = 'APP_DELETED', - /** A new app installed. */ - APP_INSTALLED = 'APP_INSTALLED', - /** An app status is changed. */ - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - /** An app updated. */ - APP_UPDATED = 'APP_UPDATED', - /** A new attribute is created. */ - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - /** An attribute is deleted. */ - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - /** An attribute is updated. */ - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - /** A new attribute value is created. */ - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - /** An attribute value is deleted. */ - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - /** An attribute value is updated. */ - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - /** A new category created. */ - CATEGORY_CREATED = 'CATEGORY_CREATED', - /** A category is deleted. */ - CATEGORY_DELETED = 'CATEGORY_DELETED', - /** A category is updated. */ - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - /** A new channel created. */ - CHANNEL_CREATED = 'CHANNEL_CREATED', - /** A channel is deleted. */ - CHANNEL_DELETED = 'CHANNEL_DELETED', - /** A channel metadata is updated. */ - CHANNEL_METADATA_UPDATED = 'CHANNEL_METADATA_UPDATED', - /** A channel status is changed. */ - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - /** A channel is updated. */ - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - /** Event called for checkout tax calculation. */ - CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', - /** A new checkout is created. */ - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - /** Filter shipping methods for checkout. */ - CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS', - /** - * A checkout was fully authorized (its `authorizeStatus` is `FULL`). - * - * This event is emitted only for checkouts whose payments are processed through the Transaction API. - */ - CHECKOUT_FULLY_AUTHORIZED = 'CHECKOUT_FULLY_AUTHORIZED', - /** - * A checkout was fully paid (its `chargeStatus` is `FULL` or `OVERCHARGED`). This event is not sent if payments are only authorized but not fully charged. - * - * This event is emitted only for checkouts whose payments are processed through the Transaction API. - */ - CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', - /** A checkout metadata is updated. */ - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - /** A checkout is updated. It also triggers all updates related to the checkout. */ - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - /** A new collection is created. */ - COLLECTION_CREATED = 'COLLECTION_CREATED', - /** A collection is deleted. */ - COLLECTION_DELETED = 'COLLECTION_DELETED', - /** A collection metadata is updated. */ - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - /** A collection is updated. */ - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - /** A new customer account is created. */ - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - /** A customer account is deleted. */ - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - /** A customer account metadata is updated. */ - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - /** A customer account is updated. */ - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - /** A draft order is created. */ - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - /** A draft order is deleted. */ - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - /** A draft order is updated. */ - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - /** A fulfillment is approved. */ - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - /** A fulfillment is cancelled. */ - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - /** A new fulfillment is created. */ - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - /** A fulfillment metadata is updated. */ - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - FULFILLMENT_TRACKING_NUMBER_UPDATED = 'FULFILLMENT_TRACKING_NUMBER_UPDATED', - /** A new gift card created. */ - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - /** A gift card is deleted. */ - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - /** A gift card export is completed. */ - GIFT_CARD_EXPORT_COMPLETED = 'GIFT_CARD_EXPORT_COMPLETED', - /** A gift card metadata is updated. */ - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - /** A gift card has been sent. */ - GIFT_CARD_SENT = 'GIFT_CARD_SENT', - /** A gift card status is changed. */ - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - /** A gift card is updated. */ - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - /** An invoice is deleted. */ - INVOICE_DELETED = 'INVOICE_DELETED', - /** An invoice for order requested. */ - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - /** Invoice has been sent. */ - INVOICE_SENT = 'INVOICE_SENT', - LIST_STORED_PAYMENT_METHODS = 'LIST_STORED_PAYMENT_METHODS', - /** A new menu created. */ - MENU_CREATED = 'MENU_CREATED', - /** A menu is deleted. */ - MENU_DELETED = 'MENU_DELETED', - /** A new menu item created. */ - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - /** A menu item is deleted. */ - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - /** A menu item is updated. */ - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - /** A menu is updated. */ - MENU_UPDATED = 'MENU_UPDATED', - /** - * User notification triggered. - * @deprecated See the docs for more details about migrating from NOTIFY_USER to other events: https://docs.saleor.io/upgrade-guides/core/3-16-to-3-17#migrating-from-notify_user - */ - NOTIFY_USER = 'NOTIFY_USER', - /** An observability event is created. */ - OBSERVABILITY = 'OBSERVABILITY', - /** Orders are imported. */ - ORDER_BULK_CREATED = 'ORDER_BULK_CREATED', - /** Event called for order tax calculation. */ - ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', - /** An order is cancelled. */ - ORDER_CANCELLED = 'ORDER_CANCELLED', - /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - /** A new order is placed. */ - ORDER_CREATED = 'ORDER_CREATED', - /** An order is expired. */ - ORDER_EXPIRED = 'ORDER_EXPIRED', - /** Filter shipping methods for order. */ - ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', - /** An order is fulfilled. */ - ORDER_FULFILLED = 'ORDER_FULFILLED', - /** Payment is made and an order is fully paid. */ - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - /** The order is fully refunded. */ - ORDER_FULLY_REFUNDED = 'ORDER_FULLY_REFUNDED', - /** An order metadata is updated. */ - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - /** Payment has been made. The order may be partially or fully paid. */ - ORDER_PAID = 'ORDER_PAID', - /** The order received a refund. The order may be partially or fully refunded. */ - ORDER_REFUNDED = 'ORDER_REFUNDED', - /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - ORDER_UPDATED = 'ORDER_UPDATED', - /** A new page is created. */ - PAGE_CREATED = 'PAGE_CREATED', - /** A page is deleted. */ - PAGE_DELETED = 'PAGE_DELETED', - /** A new page type is created. */ - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - /** A page type is deleted. */ - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - /** A page type is updated. */ - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - /** A page is updated. */ - PAGE_UPDATED = 'PAGE_UPDATED', - /** Authorize payment. */ - PAYMENT_AUTHORIZE = 'PAYMENT_AUTHORIZE', - /** Capture payment. */ - PAYMENT_CAPTURE = 'PAYMENT_CAPTURE', - /** Confirm payment. */ - PAYMENT_CONFIRM = 'PAYMENT_CONFIRM', - PAYMENT_GATEWAY_INITIALIZE_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_SESSION', - PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION', - /** Listing available payment gateways. */ - PAYMENT_LIST_GATEWAYS = 'PAYMENT_LIST_GATEWAYS', - PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION = 'PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION', - PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION = 'PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION', - /** Process payment. */ - PAYMENT_PROCESS = 'PAYMENT_PROCESS', - /** Refund payment. */ - PAYMENT_REFUND = 'PAYMENT_REFUND', - /** Void payment. */ - PAYMENT_VOID = 'PAYMENT_VOID', - /** A new permission group is created. */ - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - /** A permission group is deleted. */ - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - /** A permission group is updated. */ - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - /** A new product is created. */ - PRODUCT_CREATED = 'PRODUCT_CREATED', - /** A product is deleted. */ - PRODUCT_DELETED = 'PRODUCT_DELETED', - /** A product export is completed. */ - PRODUCT_EXPORT_COMPLETED = 'PRODUCT_EXPORT_COMPLETED', - /** A new product media is created. */ - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - /** A product media is deleted. */ - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - /** A product media is updated. */ - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - /** A product metadata is updated. */ - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - /** A product is updated. */ - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - /** A product variant is back in stock. */ - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - /** A new product variant is created. */ - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - /** A product variant metadata is updated. */ - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - /** A product variant is out of stock. */ - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - /** A product variant stock is updated */ - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - /** A product variant is updated. */ - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - /** A promotion is created. */ - PROMOTION_CREATED = 'PROMOTION_CREATED', - /** A promotion is deleted. */ - PROMOTION_DELETED = 'PROMOTION_DELETED', - /** A promotion is deactivated. */ - PROMOTION_ENDED = 'PROMOTION_ENDED', - /** A promotion rule is created. */ - PROMOTION_RULE_CREATED = 'PROMOTION_RULE_CREATED', - /** A promotion rule is deleted. */ - PROMOTION_RULE_DELETED = 'PROMOTION_RULE_DELETED', - /** A promotion rule is updated. */ - PROMOTION_RULE_UPDATED = 'PROMOTION_RULE_UPDATED', - /** A promotion is activated. */ - PROMOTION_STARTED = 'PROMOTION_STARTED', - /** A promotion is updated. */ - PROMOTION_UPDATED = 'PROMOTION_UPDATED', - /** A sale is created. */ - SALE_CREATED = 'SALE_CREATED', - /** A sale is deleted. */ - SALE_DELETED = 'SALE_DELETED', - /** A sale is activated or deactivated. */ - SALE_TOGGLE = 'SALE_TOGGLE', - /** A sale is updated. */ - SALE_UPDATED = 'SALE_UPDATED', - /** Fetch external shipping methods for checkout. */ - SHIPPING_LIST_METHODS_FOR_CHECKOUT = 'SHIPPING_LIST_METHODS_FOR_CHECKOUT', - /** A new shipping price is created. */ - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - /** A shipping price is deleted. */ - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - /** A shipping price is updated. */ - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - /** A new shipping zone is created. */ - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - /** A shipping zone is deleted. */ - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - /** A shipping zone metadata is updated. */ - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - /** A shipping zone is updated. */ - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - /** Shop metadata is updated. */ - SHOP_METADATA_UPDATED = 'SHOP_METADATA_UPDATED', - /** A new staff user is created. */ - STAFF_CREATED = 'STAFF_CREATED', - /** A staff user is deleted. */ - STAFF_DELETED = 'STAFF_DELETED', - /** Setting a new password for the staff account is requested. */ - STAFF_SET_PASSWORD_REQUESTED = 'STAFF_SET_PASSWORD_REQUESTED', - /** A staff user is updated. */ - STAFF_UPDATED = 'STAFF_UPDATED', - STORED_PAYMENT_METHOD_DELETE_REQUESTED = 'STORED_PAYMENT_METHOD_DELETE_REQUESTED', - /** A thumbnail is created. */ - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', - /** Event called when cancel has been requested for transaction. */ - TRANSACTION_CANCELATION_REQUESTED = 'TRANSACTION_CANCELATION_REQUESTED', - /** Event called when charge has been requested for transaction. */ - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - TRANSACTION_INITIALIZE_SESSION = 'TRANSACTION_INITIALIZE_SESSION', - /** Transaction item metadata is updated. */ - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - TRANSACTION_PROCESS_SESSION = 'TRANSACTION_PROCESS_SESSION', - /** Event called when refund has been requested for transaction. */ - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', - /** A new translation is created. */ - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - /** A translation is updated. */ - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - VOUCHER_CODES_CREATED = 'VOUCHER_CODES_CREATED', - VOUCHER_CODES_DELETED = 'VOUCHER_CODES_DELETED', - /** - * A voucher code export is completed. - * - * Added in Saleor 3.18. - */ - VOUCHER_CODE_EXPORT_COMPLETED = 'VOUCHER_CODE_EXPORT_COMPLETED', - /** A new voucher created. */ - VOUCHER_CREATED = 'VOUCHER_CREATED', - /** A voucher is deleted. */ - VOUCHER_DELETED = 'VOUCHER_DELETED', - /** A voucher metadata is updated. */ - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - /** A voucher is updated. */ - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - /** A new warehouse created. */ - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - /** A warehouse is deleted. */ - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - /** A warehouse metadata is updated. */ - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - /** A warehouse is updated. */ - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeSyncEnum { - /** Event called for checkout tax calculation. */ - CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', - /** Filter shipping methods for checkout. */ - CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS', - LIST_STORED_PAYMENT_METHODS = 'LIST_STORED_PAYMENT_METHODS', - /** Event called for order tax calculation. */ - ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', - /** Filter shipping methods for order. */ - ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', - /** Authorize payment. */ - PAYMENT_AUTHORIZE = 'PAYMENT_AUTHORIZE', - /** Capture payment. */ - PAYMENT_CAPTURE = 'PAYMENT_CAPTURE', - /** Confirm payment. */ - PAYMENT_CONFIRM = 'PAYMENT_CONFIRM', - PAYMENT_GATEWAY_INITIALIZE_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_SESSION', - PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION', - /** Listing available payment gateways. */ - PAYMENT_LIST_GATEWAYS = 'PAYMENT_LIST_GATEWAYS', - PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION = 'PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION', - PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION = 'PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION', - /** Process payment. */ - PAYMENT_PROCESS = 'PAYMENT_PROCESS', - /** Refund payment. */ - PAYMENT_REFUND = 'PAYMENT_REFUND', - /** Void payment. */ - PAYMENT_VOID = 'PAYMENT_VOID', - /** Fetch external shipping methods for checkout. */ - SHIPPING_LIST_METHODS_FOR_CHECKOUT = 'SHIPPING_LIST_METHODS_FOR_CHECKOUT', - STORED_PAYMENT_METHOD_DELETE_REQUESTED = 'STORED_PAYMENT_METHOD_DELETE_REQUESTED', - /** Event called when cancel has been requested for transaction. */ - TRANSACTION_CANCELATION_REQUESTED = 'TRANSACTION_CANCELATION_REQUESTED', - /** Event called when charge has been requested for transaction. */ - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - TRANSACTION_INITIALIZE_SESSION = 'TRANSACTION_INITIALIZE_SESSION', - TRANSACTION_PROCESS_SESSION = 'TRANSACTION_PROCESS_SESSION', - /** Event called when refund has been requested for transaction. */ - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED' -} - -export enum WebhookSampleEventTypeEnum { - ACCOUNT_CHANGE_EMAIL_REQUESTED = 'ACCOUNT_CHANGE_EMAIL_REQUESTED', - ACCOUNT_CONFIRMATION_REQUESTED = 'ACCOUNT_CONFIRMATION_REQUESTED', - ACCOUNT_CONFIRMED = 'ACCOUNT_CONFIRMED', - ACCOUNT_DELETED = 'ACCOUNT_DELETED', - ACCOUNT_DELETE_REQUESTED = 'ACCOUNT_DELETE_REQUESTED', - ACCOUNT_EMAIL_CHANGED = 'ACCOUNT_EMAIL_CHANGED', - ACCOUNT_SET_PASSWORD_REQUESTED = 'ACCOUNT_SET_PASSWORD_REQUESTED', - ADDRESS_CREATED = 'ADDRESS_CREATED', - ADDRESS_DELETED = 'ADDRESS_DELETED', - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - APP_DELETED = 'APP_DELETED', - APP_INSTALLED = 'APP_INSTALLED', - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - APP_UPDATED = 'APP_UPDATED', - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - CATEGORY_CREATED = 'CATEGORY_CREATED', - CATEGORY_DELETED = 'CATEGORY_DELETED', - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - CHANNEL_CREATED = 'CHANNEL_CREATED', - CHANNEL_DELETED = 'CHANNEL_DELETED', - CHANNEL_METADATA_UPDATED = 'CHANNEL_METADATA_UPDATED', - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - CHECKOUT_FULLY_AUTHORIZED = 'CHECKOUT_FULLY_AUTHORIZED', - CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - COLLECTION_CREATED = 'COLLECTION_CREATED', - COLLECTION_DELETED = 'COLLECTION_DELETED', - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - FULFILLMENT_TRACKING_NUMBER_UPDATED = 'FULFILLMENT_TRACKING_NUMBER_UPDATED', - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - GIFT_CARD_EXPORT_COMPLETED = 'GIFT_CARD_EXPORT_COMPLETED', - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - GIFT_CARD_SENT = 'GIFT_CARD_SENT', - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - INVOICE_DELETED = 'INVOICE_DELETED', - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - INVOICE_SENT = 'INVOICE_SENT', - MENU_CREATED = 'MENU_CREATED', - MENU_DELETED = 'MENU_DELETED', - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - MENU_UPDATED = 'MENU_UPDATED', - NOTIFY_USER = 'NOTIFY_USER', - OBSERVABILITY = 'OBSERVABILITY', - ORDER_BULK_CREATED = 'ORDER_BULK_CREATED', - ORDER_CANCELLED = 'ORDER_CANCELLED', - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - ORDER_CREATED = 'ORDER_CREATED', - ORDER_EXPIRED = 'ORDER_EXPIRED', - ORDER_FULFILLED = 'ORDER_FULFILLED', - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - ORDER_FULLY_REFUNDED = 'ORDER_FULLY_REFUNDED', - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - ORDER_PAID = 'ORDER_PAID', - ORDER_REFUNDED = 'ORDER_REFUNDED', - ORDER_UPDATED = 'ORDER_UPDATED', - PAGE_CREATED = 'PAGE_CREATED', - PAGE_DELETED = 'PAGE_DELETED', - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - PAGE_UPDATED = 'PAGE_UPDATED', - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - PRODUCT_CREATED = 'PRODUCT_CREATED', - PRODUCT_DELETED = 'PRODUCT_DELETED', - PRODUCT_EXPORT_COMPLETED = 'PRODUCT_EXPORT_COMPLETED', - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - PROMOTION_CREATED = 'PROMOTION_CREATED', - PROMOTION_DELETED = 'PROMOTION_DELETED', - PROMOTION_ENDED = 'PROMOTION_ENDED', - PROMOTION_RULE_CREATED = 'PROMOTION_RULE_CREATED', - PROMOTION_RULE_DELETED = 'PROMOTION_RULE_DELETED', - PROMOTION_RULE_UPDATED = 'PROMOTION_RULE_UPDATED', - PROMOTION_STARTED = 'PROMOTION_STARTED', - PROMOTION_UPDATED = 'PROMOTION_UPDATED', - SALE_CREATED = 'SALE_CREATED', - SALE_DELETED = 'SALE_DELETED', - SALE_TOGGLE = 'SALE_TOGGLE', - SALE_UPDATED = 'SALE_UPDATED', - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - SHOP_METADATA_UPDATED = 'SHOP_METADATA_UPDATED', - STAFF_CREATED = 'STAFF_CREATED', - STAFF_DELETED = 'STAFF_DELETED', - STAFF_SET_PASSWORD_REQUESTED = 'STAFF_SET_PASSWORD_REQUESTED', - STAFF_UPDATED = 'STAFF_UPDATED', - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - VOUCHER_CODES_CREATED = 'VOUCHER_CODES_CREATED', - VOUCHER_CODES_DELETED = 'VOUCHER_CODES_DELETED', - VOUCHER_CODE_EXPORT_COMPLETED = 'VOUCHER_CODE_EXPORT_COMPLETED', - VOUCHER_CREATED = 'VOUCHER_CREATED', - VOUCHER_DELETED = 'VOUCHER_DELETED', - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' -} - -export enum WebhookTriggerErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID_ID = 'INVALID_ID', - MISSING_EVENT = 'MISSING_EVENT', - MISSING_PERMISSION = 'MISSING_PERMISSION', - MISSING_QUERY = 'MISSING_QUERY', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - NOT_FOUND = 'NOT_FOUND', - SYNTAX = 'SYNTAX', - TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE' -} - -export type WebhookUpdateInput = { - /** ID of the app to which webhook belongs. */ - app?: InputMaybe; - /** The asynchronous events that webhook wants to subscribe. */ - asyncEvents?: InputMaybe>; - /** Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed. */ - customHeaders?: InputMaybe; - /** - * The events that webhook wants to subscribe. - * @deprecated Use `asyncEvents` or `syncEvents` instead. - */ - events?: InputMaybe>; - /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; - /** The new name of the webhook. */ - name?: InputMaybe; - /** Subscription query used to define a webhook payload. */ - query?: InputMaybe; - /** - * Use to create a hash signature with each payload. - * @deprecated As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - */ - secretKey?: InputMaybe; - /** The synchronous events that webhook wants to subscribe. */ - syncEvents?: InputMaybe>; - /** The url to receive the payload. */ - targetUrl?: InputMaybe; -}; - -export enum WeightUnitsEnum { - G = 'G', - KG = 'KG', - LB = 'LB', - OZ = 'OZ', - TONNE = 'TONNE' -} - -export type AttributeBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; -}>; - - -export type AttributeBulkDeleteMutation = { __typename: 'Mutation', attributeBulkDelete: { __typename: 'AttributeBulkDelete', errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; - -export type AttributeDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type AttributeDeleteMutation = { __typename: 'Mutation', attributeDelete: { __typename: 'AttributeDelete', errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; - -export type AttributeUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: AttributeUpdateInput; -}>; - - -export type AttributeUpdateMutation = { __typename: 'Mutation', attributeUpdate: { __typename: 'AttributeUpdate', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; - -export type AttributeValueDeleteMutationVariables = Exact<{ - id: Scalars['ID']; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; -}>; - - -export type AttributeValueDeleteMutation = { __typename: 'Mutation', attributeValueDelete: { __typename: 'AttributeValueDelete', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; - -export type AttributeValueUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: AttributeValueUpdateInput; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; -}>; - - -export type AttributeValueUpdateMutation = { __typename: 'Mutation', attributeValueUpdate: { __typename: 'AttributeValueUpdate', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; - -export type AttributeValueCreateMutationVariables = Exact<{ - id: Scalars['ID']; - input: AttributeValueCreateInput; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; -}>; - - -export type AttributeValueCreateMutation = { __typename: 'Mutation', attributeValueCreate: { __typename: 'AttributeValueCreate', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; - -export type AttributeCreateMutationVariables = Exact<{ - input: AttributeCreateInput; -}>; - - -export type AttributeCreateMutation = { __typename: 'Mutation', attributeCreate: { __typename: 'AttributeCreate', attribute: { __typename: 'Attribute', id: string } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; - -export type AttributeValueReorderMutationVariables = Exact<{ - id: Scalars['ID']; - move: ReorderInput; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; -}>; - - -export type AttributeValueReorderMutation = { __typename: 'Mutation', attributeReorderValues: { __typename: 'AttributeReorderValues', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string } }> } | null } | null, errors: Array<{ __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }> } | null }; - -export type AttributeDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; - searchValues?: InputMaybe; -}>; - - -export type AttributeDetailsQuery = { __typename: 'Query', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; - -export type AttributeListQueryVariables = Exact<{ - filter?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - sort?: InputMaybe; -}>; - - -export type AttributeListQuery = { __typename: 'Query', attributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; - -export type RequestPasswordResetMutationVariables = Exact<{ - email: Scalars['String']; - redirectUrl: Scalars['String']; -}>; - - -export type RequestPasswordResetMutation = { __typename: 'Mutation', requestPasswordReset: { __typename: 'RequestPasswordReset', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; - -export type AvailableExternalAuthenticationsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type AvailableExternalAuthenticationsQuery = { __typename: 'Query', shop: { __typename: 'Shop', availableExternalAuthentications: Array<{ __typename: 'ExternalAuthentication', id: string, name: string | null }> } }; - -export type UserDetailsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type UserDetailsQuery = { __typename: 'Query', me: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, isStaff: boolean, dateJoined: any, restrictedAccessToChannels: boolean, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null } | null }; - -export type CategoryDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type CategoryDeleteMutation = { __typename: 'Mutation', categoryDelete: { __typename: 'CategoryDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; - -export type CategoryCreateMutationVariables = Exact<{ - parent?: InputMaybe; - input: CategoryInput; -}>; - - -export type CategoryCreateMutation = { __typename: 'Mutation', categoryCreate: { __typename: 'CategoryCreate', category: { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; - -export type CategoryUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: CategoryInput; -}>; - - -export type CategoryUpdateMutation = { __typename: 'Mutation', categoryUpdate: { __typename: 'CategoryUpdate', category: { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; - -export type CategoryBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; -}>; - - -export type CategoryBulkDeleteMutation = { __typename: 'Mutation', categoryBulkDelete: { __typename: 'CategoryBulkDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; - -export type RootCategoriesQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; -}>; - - -export type RootCategoriesQuery = { __typename: 'Query', categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, children: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; - -export type CategoryDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; - - -export type CategoryDetailsQuery = { __typename: 'Query', category: { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, children: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, children: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, products: { __typename: 'ProductCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'ProductCountableEdge', cursor: string, node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null } }> } | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; - -export type ChannelCreateMutationVariables = Exact<{ - input: ChannelCreateInput; -}>; - - -export type ChannelCreateMutation = { __typename: 'Mutation', channelCreate: { __typename: 'ChannelCreate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type ChannelUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: ChannelUpdateInput; -}>; - - -export type ChannelUpdateMutation = { __typename: 'Mutation', channelUpdate: { __typename: 'ChannelUpdate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type ChannelDeleteMutationVariables = Exact<{ - id: Scalars['ID']; - input?: InputMaybe; -}>; - - -export type ChannelDeleteMutation = { __typename: 'Mutation', channelDelete: { __typename: 'ChannelDelete', errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type ChannelActivateMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type ChannelActivateMutation = { __typename: 'Mutation', channelActivate: { __typename: 'ChannelActivate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type ChannelDeactivateMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type ChannelDeactivateMutation = { __typename: 'Mutation', channelDeactivate: { __typename: 'ChannelDeactivate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type ChannelReorderWarehousesMutationVariables = Exact<{ - channelId: Scalars['ID']; - moves: Array | ReorderInput; -}>; - - -export type ChannelReorderWarehousesMutation = { __typename: 'Mutation', channelReorderWarehouses: { __typename: 'ChannelReorderWarehouses', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type BaseChannelsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type BaseChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; - -export type ChannelsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; - -export type ChannelQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type ChannelQuery = { __typename: 'Query', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null }; - -export type CollectionUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: CollectionInput; -}>; - - -export type CollectionUpdateMutation = { __typename: 'Mutation', collectionUpdate: { __typename: 'CollectionUpdate', collection: { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; - -export type CollectionAssignProductMutationVariables = Exact<{ - collectionId: Scalars['ID']; - productIds: Array | Scalars['ID']; - moves: Array | MoveProductInput; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; - - -export type CollectionAssignProductMutation = { __typename: 'Mutation', collectionAddProducts: { __typename: 'CollectionAddProducts', errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null, collectionReorderProducts: { __typename: 'CollectionReorderProducts', collection: { __typename: 'Collection', id: string, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null, errors: Array<{ __typename: 'CollectionError', message: string | null }> } | null }; - -export type CreateCollectionMutationVariables = Exact<{ - input: CollectionCreateInput; -}>; - - -export type CreateCollectionMutation = { __typename: 'Mutation', collectionCreate: { __typename: 'CollectionCreate', collection: { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; - -export type RemoveCollectionMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type RemoveCollectionMutation = { __typename: 'Mutation', collectionDelete: { __typename: 'CollectionDelete', errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; - -export type UnassignCollectionProductMutationVariables = Exact<{ - collectionId: Scalars['ID']; - productIds: Array | Scalars['ID']; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; - - -export type UnassignCollectionProductMutation = { __typename: 'Mutation', collectionRemoveProducts: { __typename: 'CollectionRemoveProducts', collection: { __typename: 'Collection', id: string, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null, errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; - -export type CollectionBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; -}>; +export type AppAvatarFragment = { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }; +export type EventDeliveryAttemptFragment = { __typename: 'EventDeliveryAttempt', id: string, createdAt: any, status: EventDeliveryStatusEnum, response: string | null, responseStatusCode: number | null }; -export type CollectionBulkDeleteMutation = { __typename: 'Mutation', collectionBulkDelete: { __typename: 'CollectionBulkDelete', errors: Array<{ __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }> } | null }; +export type AppEventDeliveriesFragment = { __typename: 'App', webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null }; -export type CollectionChannelListingUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: CollectionChannelListingUpdateInput; -}>; +export type InstalledAppFragment = { __typename: 'App', id: string, identifier: string | null, manifestUrl: string | null, isActive: boolean | null }; +export type InstalledAppDetailsFragment = { __typename: 'App', id: string, isActive: boolean | null, name: string | null, type: AppTypeEnum | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }; -export type CollectionChannelListingUpdateMutation = { __typename: 'Mutation', collectionChannelListingUpdate: { __typename: 'CollectionChannelListingUpdate', errors: Array<{ __typename: 'CollectionChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }> } | null }; +export type AttributeValueFragment = { __typename: 'AttributeValue', id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }; -export type ReorderProductsInCollectionMutationVariables = Exact<{ - collectionId: Scalars['ID']; - moves: Array | MoveProductInput; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type AttributeValueDetailsFragment = { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }; +export type AttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }; -export type ReorderProductsInCollectionMutation = { __typename: 'Mutation', collectionReorderProducts: { __typename: 'CollectionReorderProducts', collection: { __typename: 'Collection', id: string, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null, errors: Array<{ __typename: 'CollectionError', message: string | null }> } | null }; +export type AttributeDetailsFragment = { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }; -export type CollectionListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; - channel?: InputMaybe; -}>; +export type AttributeValueListFragment = { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> }; +export type AvailableAttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null }; -export type CollectionListQuery = { __typename: 'Query', collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type UserPermissionFragment = { __typename: 'UserPermission', code: PermissionEnum, name: string }; -export type CollectionDetailsQueryVariables = Exact<{ - id?: InputMaybe; -}>; +export type UserUserPermissionWithSourcePermissionGroupsFragment = { __typename: 'UserPermission', code: PermissionEnum, name: string, sourcePermissionGroups: Array<{ __typename: 'Group', id: string }> | null }; +export type UserFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string, isStaff: boolean, dateJoined: any, restrictedAccessToChannels: boolean, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; -export type CollectionDetailsQuery = { __typename: 'Query', collection: { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type UserBaseFragment = { __typename: 'User', id: string, firstName: string, lastName: string }; -export type CollectionProductsQueryVariables = Exact<{ - id: Scalars['ID']; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type UserBaseAvatarFragment = { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null }; +export type CategoryFragment = { __typename: 'Category', id: string, name: string, children: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type CollectionProductsQuery = { __typename: 'Query', collection: { __typename: 'Collection', id: string, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; +export type CategoryDetailsFragment = { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type AddressValidationRulesQueryVariables = Exact<{ - countryCode: CountryCode; -}>; +export type CategoryWithAncestorsFragment = { __typename: 'Category', id: string, name: string, level: number, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null }; +export type CategoryWithTotalProductsFragment = { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type AddressValidationRulesQuery = { __typename: 'Query', addressValidationRules: { __typename: 'AddressValidationData', allowedFields: Array, countryAreaChoices: Array<{ __typename: 'ChoiceValue', raw: string | null, verbose: string | null }> } | null }; +export type ChannelErrorFragment = { __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }; -export type _GetDynamicLeftOperandsQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type ChannelFragment = { __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; +export type ChannelDetailsFragment = { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; -export type _GetDynamicLeftOperandsQuery = { __typename: 'Query', attributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null } }> } | null }; +export type CollectionFragment = { __typename: 'Collection', id: string, name: string, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null }; -export type _GetChannelOperandsQueryVariables = Exact<{ [key: string]: never; }>; +export type CollectionDetailsFragment = { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type CollectionProductFragment = { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null }; -export type _GetChannelOperandsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', name: string, slug: string, id: string }> | null }; +export type CollectionWithTotalProductsFragment = { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type _GetLegacyChannelOperandsQueryVariables = Exact<{ [key: string]: never; }>; +export type CustomerFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string }; +export type CustomerDetailsFragment = { __typename: 'User', dateJoined: any, lastLogin: any | null, note: string | null, isActive: boolean, id: string, email: string, firstName: string, lastName: string, defaultShippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, defaultBillingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null }; -export type _GetLegacyChannelOperandsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, name: string, slug: string }> | null }; +export type CustomerAddressesFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null }; -export type _SearchCollectionsOperandsQueryVariables = Exact<{ - first: Scalars['Int']; - collectionsSlugs?: InputMaybe | Scalars['String']>; -}>; +export type SaleFragment = { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type SaleDetailsFragment = { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type _SearchCollectionsOperandsQuery = { __typename: 'Query', collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, slug: string } }> } | null }; +export type VoucherFragment = { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type _SearchCategoriesOperandsQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - categoriesSlugs?: InputMaybe | Scalars['String']>; -}>; +export type VoucherCodeFragment = { __typename: 'VoucherCode', code: string | null, used: number | null, isActive: boolean | null }; +export type VoucherDetailsFragment = { __typename: 'Voucher', usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, singleUse: boolean, id: string, name: string | null, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type _SearchCategoriesOperandsQuery = { __typename: 'Query', categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, slug: string } }> } | null }; +export type PromotionRuleChannelFragment = { __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }; -export type _SearchProductTypesOperandsQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - productTypesSlugs?: InputMaybe | Scalars['String']>; -}>; +export type PromotionRuleDetailsFragment = { __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }; +export type PromotionDetailsFragment = { __typename: 'Promotion', id: string, name: string, type: PromotionTypeEnum | null, description: any | null, startDate: any, endDate: any | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null }; -export type _SearchProductTypesOperandsQuery = { __typename: 'Query', productTypes: { __typename: 'ProductTypeCountableConnection', edges: Array<{ __typename: 'ProductTypeCountableEdge', node: { __typename: 'ProductType', id: string, name: string, slug: string } }> } | null }; +export type PromotionFragment = { __typename: 'Promotion', id: string, name: string, startDate: any, endDate: any | null, type: PromotionTypeEnum | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type _SearchPageTypesOperandsQueryVariables = Exact<{ - first: Scalars['Int']; - pageTypesSlugs?: InputMaybe | Scalars['String']>; -}>; +export type AttributeErrorFragment = { __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }; +export type ProductErrorFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type _SearchPageTypesOperandsQuery = { __typename: 'Query', pageTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string, slug: string } }> } | null }; +export type ProductErrorWithAttributesFragment = { __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }; -export type _SearchAttributeOperandsQueryVariables = Exact<{ - attributesSlugs?: InputMaybe | Scalars['String']>; - choicesIds?: InputMaybe | Scalars['ID']>; - first: Scalars['Int']; -}>; +export type ProductChannelListingErrorFragment = { __typename: 'ProductChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }; +export type CollectionChannelListingErrorFragment = { __typename: 'CollectionChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }; -export type _SearchAttributeOperandsQuery = { __typename: 'Query', attributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, choices: { __typename: 'AttributeValueCountableConnection', edges: Array<{ __typename: 'AttributeValueCountableEdge', node: { __typename: 'AttributeValue', id: string, name: string | null, slug: string, originalSlug: string | null } }> } | null } }> } | null }; +export type AccountErrorFragment = { __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }; -export type _GetAttributeChoicesQueryVariables = Exact<{ - slug: Scalars['String']; - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type DiscountErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }; +export type PromotionCreateErrorFragment = { __typename: 'PromotionCreateError', field: string | null, message: string | null, code: PromotionCreateErrorCode, index: number | null }; -export type _GetAttributeChoicesQuery = { __typename: 'Query', attribute: { __typename: 'Attribute', choices: { __typename: 'AttributeValueCountableConnection', edges: Array<{ __typename: 'AttributeValueCountableEdge', node: { __typename: 'AttributeValue', id: string, name: string | null, slug: string, originalSlug: string | null } }> } | null } | null }; +export type PromotionUpdateErrorFragment = { __typename: 'PromotionUpdateError', field: string | null, message: string | null, code: PromotionUpdateErrorCode }; -export type _GetCollectionsChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type PromotionDeleteErrorFragment = { __typename: 'PromotionDeleteError', field: string | null, message: string | null, code: PromotionDeleteErrorCode }; +export type PromotionRuleUpdateErrorFragment = { __typename: 'PromotionRuleUpdateError', field: string | null, message: string | null, code: PromotionRuleUpdateErrorCode, channels: Array | null }; -export type _GetCollectionsChoicesQuery = { __typename: 'Query', collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, slug: string } }> } | null }; +export type PromotionRuleCreateErrorFragment = { __typename: 'PromotionRuleCreateError', field: string | null, message: string | null, code: PromotionRuleCreateErrorCode }; -export type _GetCategoriesChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type PromotionRuleDeleteErrorFragment = { __typename: 'PromotionRuleDeleteError', field: string | null, message: string | null, code: PromotionRuleDeleteErrorCode }; +export type MenuErrorFragment = { __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }; -export type _GetCategoriesChoicesQuery = { __typename: 'Query', categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, slug: string } }> } | null }; +export type OrderErrorFragment = { __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }; -export type _GetProductTypesChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type OrderSettingsErrorFragment = { __typename: 'OrderSettingsError', code: OrderSettingsErrorCode, field: string | null, message: string | null }; +export type PageErrorFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; -export type _GetProductTypesChoicesQuery = { __typename: 'Query', productTypes: { __typename: 'ProductTypeCountableConnection', edges: Array<{ __typename: 'ProductTypeCountableEdge', node: { __typename: 'ProductType', id: string, name: string, slug: string } }> } | null }; +export type PageErrorWithAttributesFragment = { __typename: 'PageError', attributes: Array | null, code: PageErrorCode, field: string | null, message: string | null }; -export type _GetPageTypesChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type PermissionGroupErrorFragment = { __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }; +export type BulkProductErrorFragment = { __typename: 'BulkProductError', field: string | null, code: ProductErrorCode, index: number | null, channels: Array | null, message: string | null }; -export type _GetPageTypesChoicesQuery = { __typename: 'Query', pageTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string, slug: string } }> } | null }; +export type ProductVariantBulkErrorFragment = { __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }; -export type _GetPagesChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type BulkStockErrorFragment = { __typename: 'BulkStockError', code: ProductErrorCode, field: string | null, index: number | null, message: string | null }; +export type StockErrorFragment = { __typename: 'StockError', code: StockErrorCode, field: string | null, message: string | null }; -export type _GetPagesChoicesQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, slug: string, name: string, originalSlug: string } }> } | null }; +export type ShippingChannelsErrorFragment = { __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, channels: Array | null, message: string | null }; -export type _GetProductChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type ShippingErrorFragment = { __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }; +export type ShopErrorFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; -export type _GetProductChoicesQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, slug: string } }> } | null }; +export type StaffErrorFragment = { __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }; -export type _GetProductVariantChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type WarehouseErrorFragment = { __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }; +export type WebhookErrorFragment = { __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }; -export type _GetProductVariantChoicesQuery = { __typename: 'Query', productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, slug: string, originalSlug: string, product: { __typename: 'Product', name: string } } }> } | null }; +export type InvoiceErrorFragment = { __typename: 'InvoiceError', code: InvoiceErrorCode, field: string | null, message: string | null }; -export type _GetGiftCardTagsChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type AppErrorFragment = { __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }; +export type ExportErrorFragment = { __typename: 'ExportError', code: ExportErrorCode, field: string | null, message: string | null }; -export type _GetGiftCardTagsChoicesQuery = { __typename: 'Query', giftCardTags: { __typename: 'GiftCardTagCountableConnection', edges: Array<{ __typename: 'GiftCardTagCountableEdge', node: { __typename: 'GiftCardTag', id: string, name: string } }> } | null }; +export type PluginErrorFragment = { __typename: 'PluginError', code: PluginErrorCode, field: string | null, message: string | null }; -export type _GetCustomersChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type MetadataErrorFragment = { __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }; +export type CollectionErrorFragment = { __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }; -export type _GetCustomersChoicesQuery = { __typename: 'Query', customers: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } }> } | null }; +export type UploadErrorFragment = { __typename: 'UploadError', code: UploadErrorCode, field: string | null, message: string | null }; -export type _SearchCustomersOperandsQueryVariables = Exact<{ - first: Scalars['Int']; - customersIds?: InputMaybe | Scalars['ID']>; -}>; +export type GiftCardErrorFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; +export type GiftCardSettingsErrorFragment = { __typename: 'GiftCardSettingsError', code: GiftCardSettingsErrorCode, field: string | null, message: string | null }; -export type _SearchCustomersOperandsQuery = { __typename: 'Query', customers: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } }> } | null }; +export type SaleBulkDeleteErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, message: string | null }; -export type _SearchPageOperandsQueryVariables = Exact<{ - first: Scalars['Int']; - pageSlugs?: InputMaybe | Scalars['String']>; -}>; +export type VoucherBulkDeleteErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, message: string | null }; +export type GiftCardBulkCreateErrorFragmentFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; -export type _SearchPageOperandsQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, slug: string, name: string, originalSlug: string } }> } | null }; +export type GiftCardCreateErrorFragmentFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; -export type _SearchProductOperandsQueryVariables = Exact<{ - first: Scalars['Int']; - productSlugs?: InputMaybe | Scalars['String']>; -}>; +export type PageBulkPublishErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; +export type PageBulkRemoveErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; -export type _SearchProductOperandsQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, slug: string, originalSlug: string } }> } | null }; +export type PageTypeDeleteErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; -export type _SearchProductVariantOperandsQueryVariables = Exact<{ - first: Scalars['Int']; - ids?: InputMaybe | Scalars['ID']>; -}>; +export type ProductVariantStocksDeleteErrorFragment = { __typename: 'StockError', code: StockErrorCode, field: string | null, message: string | null }; +export type ProductTypeDeleteErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type _SearchProductVariantOperandsQuery = { __typename: 'Query', productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, slug: string, originalSlug: string, product: { __typename: 'Product', name: string } } }> } | null }; +export type ProductTypeBulkDeleteErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type _GetWarehouseChoicesQueryVariables = Exact<{ - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type ProductTypeBulkUpdateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; +export type ProductAttributeAssignErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type _GetWarehouseChoicesQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string, slug: string } }> } | null }; +export type ProductAttributeUnassignErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type _SearchWarehouseOperandsQueryVariables = Exact<{ - first: Scalars['Int']; - warehouseSlugs?: InputMaybe | Scalars['String']>; -}>; +export type ProductTypeCreateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; +export type ProductTypeReorderAttributesErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type _SearchWarehouseOperandsQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string, slug: string } }> } | null }; +export type ProductAttributeAssignmentUpdateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null, attributes: Array | null }; -export type TriggerWebhookDryRunMutationVariables = Exact<{ - objectId: Scalars['ID']; - query: Scalars['String']; -}>; +export type ShopSettingsUpdateErrorFragmentFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; +export type ShopFetchTaxRatesErrorFragmentFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; -export type TriggerWebhookDryRunMutation = { __typename: 'Mutation', webhookDryRun: { __typename: 'WebhookDryRun', payload: any | null, errors: Array<{ __typename: 'WebhookDryRunError', field: string | null, message: string | null }> } | null }; +export type ProductTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type CheckoutListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type ProductVariantTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type CategoryTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type CheckoutListQuery = { __typename: 'Query', checkouts: { __typename: 'CheckoutCountableConnection', edges: Array<{ __typename: 'CheckoutCountableEdge', cursor: string, node: { __typename: 'Checkout', id: string, created: any } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; +export type CollectionTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type ChannelListQueryVariables = Exact<{ [key: string]: never; }>; +export type PageTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type VoucherTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type ChannelListQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, name: string }> | null }; +export type SaleTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type NavigatorSearchQueryVariables = Exact<{ - query: Scalars['String']; -}>; +export type AttributeTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type AttributeValueTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type NavigatorSearchQuery = { __typename: 'Query', orders: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, number: string, status: OrderStatus, updatedAt: any, paymentStatus: PaymentChargeStatusEnum, chargeStatus: OrderChargeStatusEnum, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } }> } | null, categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, updatedAt: any, level: number, backgroundImage: { __typename: 'Image', url: string, alt: string | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null } }> } | null, collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, backgroundImage: { __typename: 'Image', url: string, alt: string | null } | null } }> } | null, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, updatedAt: any, category: { __typename: 'Category', name: string } | null, thumbnail: { __typename: 'Image', alt: string | null, url: string } | null } }> } | null, productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, updatedAt: any, media: Array<{ __typename: 'ProductMedia', alt: string, url: string }> | null, product: { __typename: 'Product', id: string, name: string, category: { __typename: 'Category', name: string } | null } } }> } | null, models: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string, publishedAt: any | null, pageType: { __typename: 'PageType', name: string } } }> } | null, modelTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string } }> } | null }; +export type ShippingPriceTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type ShopInfoQueryVariables = Exact<{ [key: string]: never; }>; +export type TaxConfigurationUpdateErrorFragment = { __typename: 'TaxConfigurationUpdateError', field: string | null, code: TaxConfigurationUpdateErrorCode, message: string | null }; +export type TaxCountryConfigurationUpdateErrorFragment = { __typename: 'TaxCountryConfigurationUpdateError', field: string | null, code: TaxCountryConfigurationUpdateErrorCode, message: string | null }; -export type ShopInfoQuery = { __typename: 'Query', shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, name: string, trackInventoryByDefault: boolean | null, version: string, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, defaultCountry: { __typename: 'CountryDisplay', country: string, code: string } | null, domain: { __typename: 'Domain', host: string, url: string }, languages: Array<{ __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string }>, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> } }; +export type TaxCountryConfigurationDeleteErrorFragment = { __typename: 'TaxCountryConfigurationDeleteError', field: string | null, code: TaxCountryConfigurationDeleteErrorCode, message: string | null }; -export type ShopCountriesQueryVariables = Exact<{ - filter?: InputMaybe; -}>; +export type TaxClassUpdateErrorFragment = { __typename: 'TaxClassUpdateError', field: string | null, code: TaxClassUpdateErrorCode, message: string | null }; +export type TaxClassCreateErrorFragment = { __typename: 'TaxClassCreateError', field: string | null, code: TaxClassCreateErrorCode, message: string | null }; -export type ShopCountriesQuery = { __typename: 'Query', shop: { __typename: 'Shop', countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> } }; +export type TaxClassDeleteErrorFragment = { __typename: 'TaxClassDeleteError', field: string | null, code: TaxClassDeleteErrorCode, message: string | null }; -export type RefreshLimitsQueryVariables = Exact<{ - channels: Scalars['Boolean']; - orders: Scalars['Boolean']; - productVariants: Scalars['Boolean']; - staffUsers: Scalars['Boolean']; - warehouses: Scalars['Boolean']; -}>; +export type TransactionRequestActionErrorFragment = { __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }; +export type TransactionCreateErrorFragment = { __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }; -export type RefreshLimitsQuery = { __typename: 'Query', shop: { __typename: 'Shop', limits: { __typename: 'LimitInfo', currentUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null }, allowedUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null } } } }; +export type OrderGrantRefundCreateErrorFragment = { __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode, lines: Array<{ __typename: 'OrderGrantRefundCreateLineError', field: string | null, message: string | null, code: OrderGrantRefundCreateLineErrorCode, lineId: string }> | null }; -export type CheckExportFileStatusQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type OrderGrantRefundUpdateErrorFragment = { __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode, addLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null, removeLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null }; +export type TransactionRequestRefundForGrantedRefundErrorFragment = { __typename: 'TransactionRequestRefundForGrantedRefundError', field: string | null, message: string | null, code: TransactionRequestRefundForGrantedRefundErrorCode }; -export type CheckExportFileStatusQuery = { __typename: 'Query', exportFile: { __typename: 'ExportFile', id: string, status: JobStatusEnum } | null }; +export type FileFragment = { __typename: 'File', url: string, contentType: string | null }; -export type CheckOrderInvoicesStatusQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type GiftCardsSettingsFragment = { __typename: 'GiftCardSettings', expiryType: GiftCardSettingsExpiryTypeEnum, expiryPeriod: { __typename: 'TimePeriod', type: TimePeriodTypeEnum, amount: number } | null }; +export type GiftCardEventFragment = { __typename: 'GiftCardEvent', expiryDate: string | null, oldExpiryDate: string | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }; -export type CheckOrderInvoicesStatusQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }> } | null }; +export type GiftCardDataFragment = { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type UpdateCustomerMutationVariables = Exact<{ - id: Scalars['ID']; - input: CustomerInput; -}>; +export type CustomerGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: string | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } }; +export type MetadataItemFragment = { __typename: 'MetadataItem', key: string, value: string }; -export type UpdateCustomerMutation = { __typename: 'Mutation', customerUpdate: { __typename: 'CustomerUpdate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', dateJoined: any, lastLogin: any | null, note: string | null, isActive: boolean, id: string, email: string, firstName: string, lastName: string, defaultShippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, defaultBillingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null } | null } | null }; +type Metadata_Address_Fragment = { __typename: 'Address', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CreateCustomerMutationVariables = Exact<{ - input: UserCreateInput; -}>; +type Metadata_App_Fragment = { __typename: 'App', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_Attribute_Fragment = { __typename: 'Attribute', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CreateCustomerMutation = { __typename: 'Mutation', customerCreate: { __typename: 'CustomerCreate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string } | null } | null }; +type Metadata_Category_Fragment = { __typename: 'Category', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type RemoveCustomerMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +type Metadata_Channel_Fragment = { __typename: 'Channel', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_Checkout_Fragment = { __typename: 'Checkout', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type RemoveCustomerMutation = { __typename: 'Mutation', customerDelete: { __typename: 'CustomerDelete', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; +type Metadata_CheckoutLine_Fragment = { __typename: 'CheckoutLine', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type SetCustomerDefaultAddressMutationVariables = Exact<{ - addressId: Scalars['ID']; - userId: Scalars['ID']; - type: AddressTypeEnum; -}>; +type Metadata_Collection_Fragment = { __typename: 'Collection', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_DigitalContent_Fragment = { __typename: 'DigitalContent', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type SetCustomerDefaultAddressMutation = { __typename: 'Mutation', addressSetDefault: { __typename: 'AddressSetDefault', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null } | null } | null }; +type Metadata_Fulfillment_Fragment = { __typename: 'Fulfillment', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CreateCustomerAddressMutationVariables = Exact<{ - id: Scalars['ID']; - input: AddressInput; -}>; +type Metadata_GiftCard_Fragment = { __typename: 'GiftCard', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_Invoice_Fragment = { __typename: 'Invoice', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CreateCustomerAddressMutation = { __typename: 'Mutation', addressCreate: { __typename: 'AddressCreate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null } | null } | null }; +type Metadata_Menu_Fragment = { __typename: 'Menu', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type UpdateCustomerAddressMutationVariables = Exact<{ - id: Scalars['ID']; - input: AddressInput; -}>; +type Metadata_MenuItem_Fragment = { __typename: 'MenuItem', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_Order_Fragment = { __typename: 'Order', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type UpdateCustomerAddressMutation = { __typename: 'Mutation', addressUpdate: { __typename: 'AddressUpdate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null } | null }; +type Metadata_OrderLine_Fragment = { __typename: 'OrderLine', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type RemoveCustomerAddressMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +type Metadata_Page_Fragment = { __typename: 'Page', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_PageType_Fragment = { __typename: 'PageType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type RemoveCustomerAddressMutation = { __typename: 'Mutation', addressDelete: { __typename: 'AddressDelete', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null } | null } | null }; +type Metadata_Payment_Fragment = { __typename: 'Payment', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type BulkRemoveCustomersMutationVariables = Exact<{ - ids: Array | Scalars['ID']; -}>; +type Metadata_Product_Fragment = { __typename: 'Product', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_ProductMedia_Fragment = { __typename: 'ProductMedia', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type BulkRemoveCustomersMutation = { __typename: 'Mutation', customerBulkDelete: { __typename: 'CustomerBulkDelete', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; +type Metadata_ProductType_Fragment = { __typename: 'ProductType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type ListCustomersQueryVariables = Exact<{ - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; - PERMISSION_MANAGE_ORDERS: Scalars['Boolean']; -}>; +type Metadata_ProductVariant_Fragment = { __typename: 'ProductVariant', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_Promotion_Fragment = { __typename: 'Promotion', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type ListCustomersQuery = { __typename: 'Query', customers: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, orders?: { __typename: 'OrderCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +type Metadata_Sale_Fragment = { __typename: 'Sale', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CustomerDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - PERMISSION_MANAGE_ORDERS: Scalars['Boolean']; - PERMISSION_MANAGE_STAFF: Scalars['Boolean']; -}>; +type Metadata_ShippingMethod_Fragment = { __typename: 'ShippingMethod', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_ShippingMethodType_Fragment = { __typename: 'ShippingMethodType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CustomerDetailsQuery = { __typename: 'Query', user: { __typename: 'User', dateJoined: any, lastLogin: any | null, note: string | null, isActive: boolean, id: string, email: string, firstName: string, lastName: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, orders?: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, created: any, number: string, paymentStatus: PaymentChargeStatusEnum, chargeStatus: OrderChargeStatusEnum, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', currency: string, amount: number } } } }> } | null, lastPlacedOrder: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, created: any } }> } | null, defaultShippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, defaultBillingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null } | null }; +type Metadata_ShippingZone_Fragment = { __typename: 'ShippingZone', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CustomerAddressesQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +type Metadata_Shop_Fragment = { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_TaxClass_Fragment = { __typename: 'TaxClass', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CustomerAddressesQuery = { __typename: 'Query', user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null } | null }; +type Metadata_TaxConfiguration_Fragment = { __typename: 'TaxConfiguration', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CustomerCreateDataQueryVariables = Exact<{ [key: string]: never; }>; +type Metadata_TransactionItem_Fragment = { __typename: 'TransactionItem', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +type Metadata_User_Fragment = { __typename: 'User', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CustomerCreateDataQuery = { __typename: 'Query', shop: { __typename: 'Shop', countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> } }; +type Metadata_Voucher_Fragment = { __typename: 'Voucher', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type VoucherChannelListingUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: VoucherChannelListingInput; -}>; +type Metadata_Warehouse_Fragment = { __typename: 'Warehouse', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type MetadataFragment = Metadata_Address_Fragment | Metadata_App_Fragment | Metadata_Attribute_Fragment | Metadata_Category_Fragment | Metadata_Channel_Fragment | Metadata_Checkout_Fragment | Metadata_CheckoutLine_Fragment | Metadata_Collection_Fragment | Metadata_DigitalContent_Fragment | Metadata_Fulfillment_Fragment | Metadata_GiftCard_Fragment | Metadata_Invoice_Fragment | Metadata_Menu_Fragment | Metadata_MenuItem_Fragment | Metadata_Order_Fragment | Metadata_OrderLine_Fragment | Metadata_Page_Fragment | Metadata_PageType_Fragment | Metadata_Payment_Fragment | Metadata_Product_Fragment | Metadata_ProductMedia_Fragment | Metadata_ProductType_Fragment | Metadata_ProductVariant_Fragment | Metadata_Promotion_Fragment | Metadata_Sale_Fragment | Metadata_ShippingMethod_Fragment | Metadata_ShippingMethodType_Fragment | Metadata_ShippingZone_Fragment | Metadata_Shop_Fragment | Metadata_TaxClass_Fragment | Metadata_TaxConfiguration_Fragment | Metadata_TransactionItem_Fragment | Metadata_User_Fragment | Metadata_Voucher_Fragment | Metadata_Warehouse_Fragment; -export type VoucherChannelListingUpdateMutation = { __typename: 'Mutation', voucherChannelListingUpdate: { __typename: 'VoucherChannelListingUpdate', errors: Array<{ __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type MenuFragment = { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string }> | null }; -export type VoucherUpdateMutationVariables = Exact<{ - input: VoucherInput; - id: Scalars['ID']; -}>; +export type MenuItemFragment = { __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }; +export type MenuItemNestedFragment = { __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }; -export type VoucherUpdateMutation = { __typename: 'Mutation', voucherUpdate: { __typename: 'VoucherUpdate', errors: Array<{ __typename: 'DiscountError', voucherCodes: Array | null, code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type MenuDetailsFragment = { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null }; -export type VoucherCataloguesAddMutationVariables = Exact<{ - input: CatalogueInput; - id: Scalars['ID']; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - includeProducts: Scalars['Boolean']; - includeCollections: Scalars['Boolean']; - includeCategories: Scalars['Boolean']; - includeVariants: Scalars['Boolean']; -}>; +export type OrderEventFragment = { __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }; +export type OrderLineFragment = { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }; -export type VoucherCataloguesAddMutation = { __typename: 'Mutation', voucherCataloguesAdd: { __typename: 'VoucherAddCatalogues', errors: Array<{ __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, singleUse: boolean, id: string, name: string | null, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderLinesUpdateFragment = { __typename: 'Order', id: string, isShippingRequired: boolean, shippingMethodName: string | null, collectionPointName: string | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, undiscountedTotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }> }; -export type VoucherCataloguesRemoveMutationVariables = Exact<{ - input: CatalogueInput; - id: Scalars['ID']; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - includeProducts: Scalars['Boolean']; - includeCollections: Scalars['Boolean']; - includeCategories: Scalars['Boolean']; - includeVariants: Scalars['Boolean']; -}>; +export type OrderLineMetadataFragment = { __typename: 'OrderLine', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, variant: { __typename: 'ProductVariant', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type OrderLineMetadataDetailsFragment = { __typename: 'OrderLine', id: string, productName: string, productSku: string | null, quantity: number, thumbnail: { __typename: 'Image', url: string } | null, variant: { __typename: 'ProductVariant', id: string, name: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type VoucherCataloguesRemoveMutation = { __typename: 'Mutation', voucherCataloguesRemove: { __typename: 'VoucherRemoveCatalogues', errors: Array<{ __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, singleUse: boolean, id: string, name: string | null, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type OrderLineWithMetadataFragment = { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type VoucherCreateMutationVariables = Exact<{ - input: VoucherInput; -}>; +export type RefundOrderLineFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }; +export type FulfillmentFragment = { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type VoucherCreateMutation = { __typename: 'Mutation', voucherCreate: { __typename: 'VoucherCreate', errors: Array<{ __typename: 'DiscountError', voucherCodes: Array | null, code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }>, voucher: { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type FulfillmentWithMetadataFragment = { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type VoucherDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type InvoiceFragment = { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }; +export type OrderDiscountFragment = { __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }; -export type VoucherDeleteMutation = { __typename: 'Mutation', voucherDelete: { __typename: 'VoucherDelete', errors: Array<{ __typename: 'DiscountError', voucherCodes: Array | null, code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }> } | null }; +export type OrderDetailsFragment = { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type VoucherBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; -}>; +export type OrderDetailsWithMetadataFragment = { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderSettingsFragment = { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean }; -export type VoucherBulkDeleteMutation = { __typename: 'Mutation', voucherBulkDelete: { __typename: 'VoucherBulkDelete', errors: Array<{ __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, message: string | null }> } | null }; +export type ShopOrderSettingsFragment = { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean }; -export type PromotionCreateMutationVariables = Exact<{ - input: PromotionCreateInput; -}>; +export type OrderFulfillLineFragment = { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, quantity: number, quantityFulfilled: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, preorder: { __typename: 'PreorderData', endDate: any | null } | null, attributes: Array<{ __typename: 'SelectedAttribute', values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null, thumbnail: { __typename: 'Image', url: string } | null }; +export type OrderLineStockDataFragment = { __typename: 'OrderLine', id: string, quantity: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', quantity: number, warehouse: { __typename: 'Warehouse', id: string } }> | null, variant: { __typename: 'ProductVariant', stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null }; -export type PromotionCreateMutation = { __typename: 'Mutation', promotionCreate: { __typename: 'PromotionCreate', errors: Array<{ __typename: 'PromotionCreateError', field: string | null, message: string | null, code: PromotionCreateErrorCode, index: number | null }>, promotion: { __typename: 'Promotion', id: string, name: string, type: PromotionTypeEnum | null, description: any | null, startDate: any, endDate: any | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null } | null } | null }; +export type TransactionBaseEventFragment = { __typename: 'TransactionEvent', id: string, pspReference: string, externalUrl: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }; -export type PromotionUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: PromotionUpdateInput; -}>; +export type TransactionEventFragment = { __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }; +export type TransactionBaseItemFragment = { __typename: 'TransactionItem', id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, externalUrl: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> }; -export type PromotionUpdateMutation = { __typename: 'Mutation', promotionUpdate: { __typename: 'PromotionUpdate', errors: Array<{ __typename: 'PromotionUpdateError', field: string | null, message: string | null, code: PromotionUpdateErrorCode }>, promotion: { __typename: 'Promotion', id: string, name: string, type: PromotionTypeEnum | null, description: any | null, startDate: any, endDate: any | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null } | null } | null }; +export type OtherPaymentMethodDetailsFragment = { __typename: 'OtherPaymentMethodDetails', name: string }; -export type PromotionDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type CardPaymentMethodDetailsFragment = { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null }; +export type TransactionItemFragment = { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }; -export type PromotionDeleteMutation = { __typename: 'Mutation', promotionDelete: { __typename: 'PromotionDelete', errors: Array<{ __typename: 'PromotionDeleteError', field: string | null, message: string | null, code: PromotionDeleteErrorCode }> } | null }; +export type OrderPaymentFragment = { __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }; -export type PromotionRuleUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: PromotionRuleUpdateInput; -}>; +export type OrderGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }; +export type OrderGiftCardEventBalanceFragment = { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null }; -export type PromotionRuleUpdateMutation = { __typename: 'Mutation', promotionRuleUpdate: { __typename: 'PromotionRuleUpdate', errors: Array<{ __typename: 'PromotionRuleUpdateError', field: string | null, message: string | null, code: PromotionRuleUpdateErrorCode, channels: Array | null }>, promotionRule: { __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null } | null } | null }; +export type OrderGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }; -export type PromotionRuleCreateMutationVariables = Exact<{ - input: PromotionRuleCreateInput; -}>; +export type OrderLineGrantRefundFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }; +export type OrderDetailsGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }; -export type PromotionRuleCreateMutation = { __typename: 'Mutation', promotionRuleCreate: { __typename: 'PromotionRuleCreate', errors: Array<{ __typename: 'PromotionRuleCreateError', field: string | null, message: string | null, code: PromotionRuleCreateErrorCode }>, promotionRule: { __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null } | null } | null }; +export type OrderFulfillmentGrantRefundFragment = { __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }; -export type PromotionRuleDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type OrderDetailsGrantRefundFragment = { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> }; +export type ActivitiesFragment = { __typename: 'OrderEvent', date: any | null, email: string | null, message: string | null, orderNumber: string | null, type: OrderEventsEnum | null, user: { __typename: 'User', email: string } | null }; -export type PromotionRuleDeleteMutation = { __typename: 'Mutation', promotionRuleDelete: { __typename: 'PromotionRuleDelete', errors: Array<{ __typename: 'PromotionRuleDeleteError', field: string | null, message: string | null, code: PromotionRuleDeleteErrorCode }>, promotionRule: { __typename: 'PromotionRule', id: string } | null } | null }; +export type PageInfoFragment = { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }; -export type SaleListQueryVariables = Exact<{ - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; - channel?: InputMaybe; -}>; +export type PageTypeFragment = { __typename: 'PageType', id: string, name: string, hasPages: boolean | null }; +export type PageTypeDetailsFragment = { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type SaleListQuery = { __typename: 'Query', sales: { __typename: 'SaleCountableConnection', edges: Array<{ __typename: 'SaleCountableEdge', node: { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type PageFragment = { __typename: 'Page', id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string } }; -export type PromotionsListQueryVariables = Exact<{ - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - where?: InputMaybe; - sort?: InputMaybe; -}>; +export type PageSelectedAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; +export type PageAttributesFragment = { __typename: 'Page', attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null } }; -export type PromotionsListQuery = { __typename: 'Query', promotions: { __typename: 'PromotionCountableConnection', edges: Array<{ __typename: 'PromotionCountableEdge', node: { __typename: 'Promotion', id: string, name: string, startDate: any, endDate: any | null, type: PromotionTypeEnum | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type PageDetailsFragment = { __typename: 'Page', content: any | null, seoTitle: string | null, seoDescription: string | null, publishedAt: any | null, id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type VoucherListQueryVariables = Exact<{ - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; - channel?: InputMaybe; -}>; +export type PermissionGroupFragment = { __typename: 'Group', id: string, name: string, userCanManage: boolean, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string }> | null }; +export type PermissionFragment = { __typename: 'Permission', code: PermissionEnum, name: string }; -export type VoucherListQuery = { __typename: 'Query', vouchers: { __typename: 'VoucherCountableConnection', edges: Array<{ __typename: 'VoucherCountableEdge', node: { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type PermissionGroupMemberFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null }; -export type SaleDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - includeVariants: Scalars['Boolean']; - includeProducts: Scalars['Boolean']; - includeCollections: Scalars['Boolean']; - includeCategories: Scalars['Boolean']; -}>; +export type PermissionGroupDetailsFragment = { __typename: 'Group', restrictedAccessToChannels: boolean, id: string, name: string, userCanManage: boolean, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null }; +export type ConfigurationItemFragment = { __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }; -export type SaleDetailsQuery = { __typename: 'Query', sale: { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type PluginConfigurationBaseFragment = { __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }; -export type VoucherDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - includeProducts: Scalars['Boolean']; - includeCollections: Scalars['Boolean']; - includeCategories: Scalars['Boolean']; - includeVariants: Scalars['Boolean']; -}>; +export type PluginConfigurationExtendedFragment = { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }; +export type PluginBaseFragment = { __typename: 'Plugin', id: string, name: string, description: string, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }>, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null }; -export type VoucherDetailsQuery = { __typename: 'Query', voucher: { __typename: 'Voucher', usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, singleUse: boolean, id: string, name: string | null, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type PluginsDetailsFragment = { __typename: 'Plugin', id: string, name: string, description: string, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }> }; -export type VoucherCodesQueryVariables = Exact<{ - id: Scalars['ID']; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}>; +export type PaymentGatewayFragment = { __typename: 'PaymentGateway', name: string, id: string }; +export type ProductTypeFragment = { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }; -export type VoucherCodesQuery = { __typename: 'Query', voucher: { __typename: 'Voucher', codes: { __typename: 'VoucherCodeCountableConnection', edges: Array<{ __typename: 'VoucherCodeCountableEdge', node: { __typename: 'VoucherCode', code: string | null, used: number | null, isActive: boolean | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; +export type ProductTypeDetailsFragment = { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type PromotionDetailsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type StockFragment = { __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }; +export type MoneyFragment = { __typename: 'Money', amount: number, currency: string }; -export type PromotionDetailsQuery = { __typename: 'Query', promotion: { __typename: 'Promotion', id: string, name: string, type: PromotionTypeEnum | null, description: any | null, startDate: any, endDate: any | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null } | null }; +export type PreorderFragment = { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null }; -export type RuleConditionsSelectedOptionsDetailsQueryVariables = Exact<{ - categoriesIds?: InputMaybe | Scalars['ID']>; - collectionsIds?: InputMaybe | Scalars['ID']>; - productsIds?: InputMaybe | Scalars['ID']>; - variantsIds?: InputMaybe | Scalars['ID']>; -}>; +export type PriceRangeFragment = { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null }; +export type ProductMediaFragment = { __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }; -export type RuleConditionsSelectedOptionsDetailsQuery = { __typename: 'Query', categories: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null, collections: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string } }> } | null, products: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string } }> } | null, productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', name: string } } }> } | null }; +export type ChannelListingProductWithoutPricingFragment = { __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }; -export type GiftLabelsQueryVariables = Exact<{ - ids?: InputMaybe | Scalars['ID']>; -}>; +export type ChannelListingProductFragment = { __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, pricing: { __typename: 'ProductPricingInfo', priceRange: { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null } | null } | null, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }; +export type ChannelListingProductVariantFragment = { __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }; -export type GiftLabelsQuery = { __typename: 'Query', productVariants: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', name: string } } }> } | null }; +export type ProductWithChannelListingsFragment = { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, category?: { __typename: 'Category', id: string, name: string } | null, collections?: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, pricing?: { __typename: 'ProductPricingInfo', priceRange: { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null } | null } | null, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null }; -export type PromotionDetailsQueryQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type ProductVariantAttributesFragment = { __typename: 'Product', id: string, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, productType: { __typename: 'ProductType', id: string, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, selectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, nonSelectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, channelListings: Array<{ __typename: 'ProductChannelListing', channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null }; + +export type ProductDetailsVariantFragment = { __typename: 'ProductVariant', id: string, sku: string | null, name: string, trackInventory: boolean, quantityLimitPerCustomer: number | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', url: string }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null }; +export type ProductFragment = { __typename: 'Product', name: string, slug: string, description: any | null, seoTitle: string | null, seoDescription: string | null, rating: number | null, isAvailable: boolean | null, id: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, category: { __typename: 'Category', id: string, name: string } | null, collections: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string, slug: string } }> | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, sku: string | null, name: string, trackInventory: boolean, quantityLimitPerCustomer: number | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', url: string }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null }> | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, isShippingRequired: boolean, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, selectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, nonSelectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type PromotionDetailsQueryQuery = { __typename: 'Query', promotion: { __typename: 'Promotion', id: string, name: string, description: any | null, startDate: any, endDate: any | null, type: PromotionTypeEnum | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null } | null }; +export type VariantAttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }; -export type AppFailedPendingWebhooksQueryVariables = Exact<{ - canFetchAppEvents: Scalars['Boolean']; -}>; +export type SelectedVariantAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; +export type ProductVariantFragment = { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type AppFailedPendingWebhooksQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null } }> } | null }; +export type SearchProductFragment = { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string } }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', channel: { __typename: 'Channel', id: string, isActive: boolean, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null }> | null }> | null, collections: Array<{ __typename: 'Collection', id: string }> | null }; -export type AppDeleteFailedInstallationMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type ExportFileFragment = { __typename: 'ExportFile', id: string, status: JobStatusEnum, url: string | null }; +export type ProductListAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string }, values: Array<{ __typename: 'AttributeValue', id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; -export type AppDeleteFailedInstallationMutation = { __typename: 'Mutation', appDeleteFailedInstallation: { __typename: 'AppDeleteFailedInstallation', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, message: string | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type ShippingZoneFragment = { __typename: 'ShippingZone', id: string, name: string, description: string | null, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type WebhookCreateMutationVariables = Exact<{ - input: WebhookCreateInput; -}>; +export type ShippingMethodWithPostalCodesFragment = { __typename: 'ShippingMethodType', id: string, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null }; +export type ShippingMethodTypeFragment = { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type WebhookCreateMutation = { __typename: 'Mutation', webhookCreate: { __typename: 'WebhookCreate', errors: Array<{ __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }>, webhook: { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } } | null } | null }; +export type ShippingMethodWithExcludedProductsFragment = { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, excludedProducts: { __typename: 'ProductCountableConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor: string | null, startCursor: string | null }, edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null } }> } | null, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type WebhookUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: WebhookUpdateInput; -}>; +export type ShippingZoneDetailsFragment = { __typename: 'ShippingZone', id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type CountryWithCodeFragment = { __typename: 'CountryDisplay', country: string, code: string }; -export type WebhookUpdateMutation = { __typename: 'Mutation', webhookUpdate: { __typename: 'WebhookUpdate', errors: Array<{ __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }>, webhook: { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } } | null } | null }; +export type LanguageFragment = { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string }; -export type WebhookDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type LimitInfoFragment = { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null }; +export type ShopLimitFragment = { __typename: 'Shop', limits: { __typename: 'LimitInfo', currentUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null }, allowedUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null } } }; -export type WebhookDeleteMutation = { __typename: 'Mutation', webhookDelete: { __typename: 'WebhookDelete', errors: Array<{ __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }> } | null }; +export type ShopFragment = { __typename: 'Shop', customerSetPasswordUrl: string | null, defaultMailSenderAddress: string | null, defaultMailSenderName: string | null, description: string | null, name: string, reserveStockDurationAnonymousUser: number | null, reserveStockDurationAuthenticatedUser: number | null, limitQuantityPerCheckout: number | null, enableAccountConfirmationByEmail: boolean | null, useLegacyUpdateWebhookEmission: boolean | null, preserveAllAddressFields: boolean, companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, domain: { __typename: 'Domain', host: string } }; -export type PluginUpdateMutationVariables = Exact<{ - channelId?: InputMaybe; - id: Scalars['ID']; - input: PluginUpdateInput; -}>; +export type StaffMemberFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string }; +export type StaffMemberDetailsFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type PluginUpdateMutation = { __typename: 'Mutation', pluginUpdate: { __typename: 'PluginUpdate', errors: Array<{ __typename: 'PluginError', code: PluginErrorCode, field: string | null, message: string | null }>, plugin: { __typename: 'Plugin', id: string, name: string, description: string, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }> } | null } | null }; +export type StaffMemberAvatarFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null }; -export type AppCreateMutationVariables = Exact<{ - input: AppInput; - hasManagedAppsPermission?: InputMaybe; -}>; +export type TaxedMoneyFragment = { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }; + +export type CountryFragment = { __typename: 'CountryDisplay', country: string, code: string }; + +export type TaxConfigurationPerCountryFragment = { __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }; + +export type TaxConfigurationFragment = { __typename: 'TaxConfiguration', id: string, displayGrossPrices: boolean, pricesEnteredWithTax: boolean, chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, channel: { __typename: 'Channel', id: string, name: string }, countries: Array<{ __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }> }; + +export type TaxCountryConfigurationFragment = { __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> }; + +export type TaxRateFragment = { __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }; +export type TaxClassBaseFragment = { __typename: 'TaxClass', id: string, name: string }; -export type AppCreateMutation = { __typename: 'Mutation', appCreate: { __typename: 'AppCreate', authToken: string | null, app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type TaxClassFragment = { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type AppDeleteMutationVariables = Exact<{ - id: Scalars['ID']; - hasManagedAppsPermission?: InputMaybe; -}>; +export type TimePeriodFragment = { __typename: 'TimePeriod', amount: number, type: TimePeriodTypeEnum }; +export type AttributeValueTranslatableFragment = { __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; -export type AppDeleteMutation = { __typename: 'Mutation', appDelete: { __typename: 'AppDelete', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type CategoryTranslationFragment = { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null }; -export type AppFetchMutationVariables = Exact<{ - manifestUrl: Scalars['String']; -}>; +export type CollectionTranslationFragment = { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null }; +export type ProductTranslationFragment = { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; -export type AppFetchMutation = { __typename: 'Mutation', appFetchManifest: { __typename: 'AppFetchManifest', manifest: { __typename: 'Manifest', identifier: string, version: string, about: string | null, name: string, appUrl: string | null, configurationUrl: string | null, tokenTargetUrl: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, homepageUrl: string | null, supportUrl: string | null, extensions: Array<{ __typename: 'AppManifestExtension', targetName: string, mountName: string, url: string, label: string, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> }>, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, brand: { __typename: 'AppManifestBrand', logo: { __typename: 'AppManifestBrandLogo', default: string } } | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type ProductVariantTranslationFragment = { __typename: 'ProductVariantTranslatableContent', name: string, productVariant: { __typename: 'ProductVariant', id: string } | null, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; -export type AppInstallMutationVariables = Exact<{ - input: AppInstallInput; -}>; +export type SaleTranslationFragment = { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; +export type VoucherTranslationFragment = { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; -export type AppInstallMutation = { __typename: 'Mutation', appInstall: { __typename: 'AppInstall', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, manifestUrl: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type ShippingMethodTranslationFragment = { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; -export type AppRetryInstallMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type PageTranslationFragment = { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; +export type PageTranslatableFragment = { __typename: 'PageTranslatableContent', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; -export type AppRetryInstallMutation = { __typename: 'Mutation', appRetryInstall: { __typename: 'AppRetryInstall', appInstallation: { __typename: 'AppInstallation', id: string, status: JobStatusEnum, appName: string, manifestUrl: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type AttributeChoicesTranslationFragment = { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> }; -export type AppUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: AppInput; - hasManagedAppsPermission?: InputMaybe; -}>; +export type AttributeTranslationFragment = { __typename: 'AttributeTranslatableContent', id: string, name: string, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null } | null }; +export type AttributeTranslationDetailsFragment = { __typename: 'AttributeTranslatableContent', translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, withChoices: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> } | null } | null }; -export type AppUpdateMutation = { __typename: 'Mutation', appUpdate: { __typename: 'AppUpdate', app: { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null, errors: Array<{ __typename: 'AppError', message: string | null, permissions: Array | null, field: string | null, code: AppErrorCode }> } | null }; +export type MenuItemTranslationFragment = { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null }; -export type AppTokenCreateMutationVariables = Exact<{ - input: AppTokenInput; -}>; +export type WarehouseFragment = { __typename: 'Warehouse', id: string, name: string }; +export type WarehouseWithShippingFragment = { __typename: 'Warehouse', id: string, name: string, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; -export type AppTokenCreateMutation = { __typename: 'Mutation', appTokenCreate: { __typename: 'AppTokenCreate', authToken: string | null, appToken: { __typename: 'AppToken', name: string | null, authToken: string | null, id: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type WarehouseDetailsFragment = { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; -export type AppTokenDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type WebhookFragment = { __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }; +export type WebhookDetailsFragment = { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } }; -export type AppTokenDeleteMutation = { __typename: 'Mutation', appTokenDelete: { __typename: 'AppTokenDelete', appToken: { __typename: 'AppToken', name: string | null, authToken: string | null, id: string } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type WeightFragment = { __typename: 'Weight', unit: WeightUnitsEnum, value: number }; -export type AppActivateMutationVariables = Exact<{ - id: Scalars['ID']; +export type GiftCardBulkCreateMutationVariables = Exact<{ + input: GiftCardBulkCreateInput; }>; -export type AppActivateMutation = { __typename: 'Mutation', appActivate: { __typename: 'AppActivate', errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type GiftCardBulkCreateMutation = { __typename: 'Mutation', giftCardBulkCreate: { __typename: 'GiftCardBulkCreate', giftCards: Array<{ __typename: 'GiftCard', id: string }>, errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; -export type AppDeactivateMutationVariables = Exact<{ - id: Scalars['ID']; +export type GiftCardCreateMutationVariables = Exact<{ + input: GiftCardCreateInput; }>; -export type AppDeactivateMutation = { __typename: 'Mutation', appDeactivate: { __typename: 'AppDeactivate', errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type GiftCardCreateMutation = { __typename: 'Mutation', giftCardCreate: { __typename: 'GiftCardCreate', giftCard: { __typename: 'GiftCard', code: string } | null, errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; -export type AppUpdatePermissionsMutationVariables = Exact<{ - id: Scalars['ID']; - permissions: Array | PermissionEnum; -}>; +export type ChannelCurrenciesQueryVariables = Exact<{ [key: string]: never; }>; -export type AppUpdatePermissionsMutation = { __typename: 'Mutation', appUpdate: { __typename: 'AppUpdate', app: { __typename: 'App', permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null } | null, errors: Array<{ __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }> } | null }; +export type ChannelCurrenciesQuery = { __typename: 'Query', shop: { __typename: 'Shop', channelCurrencies: Array } }; -export type InstalledAppsQueryVariables = Exact<{ - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; +export type ExportGiftCardsMutationVariables = Exact<{ + input: ExportGiftCardsInput; }>; -export type InstalledAppsQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, identifier: string | null, manifestUrl: string | null, isActive: boolean | null } }> } | null }; +export type ExportGiftCardsMutation = { __typename: 'Mutation', exportGiftCards: { __typename: 'ExportGiftCards', errors: Array<{ __typename: 'ExportError', code: ExportErrorCode, field: string | null, message: string | null }>, exportFile: { __typename: 'ExportFile', id: string } | null } | null }; -export type InstalledAppsListQueryVariables = Exact<{ - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; +export type GiftCardSettingsUpdateMutationVariables = Exact<{ + input: GiftCardSettingsUpdateInput; }>; -export type InstalledAppsListQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, isActive: boolean | null, name: string | null, type: AppTypeEnum | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } }> } | null }; +export type GiftCardSettingsUpdateMutation = { __typename: 'Mutation', giftCardSettingsUpdate: { __typename: 'GiftCardSettingsUpdate', errors: Array<{ __typename: 'GiftCardSettingsError', code: GiftCardSettingsErrorCode, field: string | null, message: string | null }>, giftCardSettings: { __typename: 'GiftCardSettings', expiryType: GiftCardSettingsExpiryTypeEnum, expiryPeriod: { __typename: 'TimePeriod', type: TimePeriodTypeEnum, amount: number } | null } | null } | null }; -export type EventDeliveryQueryVariables = Exact<{ - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; - canFetchAppEvents: Scalars['Boolean']; -}>; +export type GiftCardSettingsQueryVariables = Exact<{ [key: string]: never; }>; -export type EventDeliveryQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null } }> } | null }; +export type GiftCardSettingsQuery = { __typename: 'Query', giftCardSettings: { __typename: 'GiftCardSettings', expiryType: GiftCardSettingsExpiryTypeEnum, expiryPeriod: { __typename: 'TimePeriod', type: TimePeriodTypeEnum, amount: number } | null } }; -export type AppsInstallationsQueryVariables = Exact<{ [key: string]: never; }>; +export type GiftCardResendMutationVariables = Exact<{ + input: GiftCardResendInput; +}>; -export type AppsInstallationsQuery = { __typename: 'Query', appsInstallations: Array<{ __typename: 'AppInstallation', status: JobStatusEnum, message: string | null, appName: string, manifestUrl: string, id: string, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }> }; +export type GiftCardResendMutation = { __typename: 'Mutation', giftCardResend: { __typename: 'GiftCardResend', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type AppQueryVariables = Exact<{ +export type GiftCardActivateMutationVariables = Exact<{ id: Scalars['ID']; - hasManagedAppsPermission: Scalars['Boolean']; }>; -export type AppQuery = { __typename: 'Query', app: { __typename: 'App', aboutApp: string | null, author: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null } | null }; +export type GiftCardActivateMutation = { __typename: 'Mutation', giftCardActivate: { __typename: 'GiftCardActivate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ExtensionListQueryVariables = Exact<{ - filter: AppExtensionFilterInput; +export type GiftCardDeactivateMutationVariables = Exact<{ + id: Scalars['ID']; }>; -export type ExtensionListQuery = { __typename: 'Query', appExtensions: { __typename: 'AppExtensionCountableConnection', edges: Array<{ __typename: 'AppExtensionCountableEdge', node: { __typename: 'AppExtension', id: string, label: string, url: string, mountName: string, targetName: string, settings: any, accessToken: string | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum }>, app: { __typename: 'App', id: string, appUrl: string | null, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } } }> } | null }; +export type GiftCardDeactivateMutation = { __typename: 'Mutation', giftCardDeactivate: { __typename: 'GiftCardDeactivate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type AppWebhookDeliveriesQueryVariables = Exact<{ - appId: Scalars['ID']; +export type GiftCardUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: GiftCardUpdateInput; + showCreatedBy: Scalars['Boolean']; }>; -export type AppWebhookDeliveriesQuery = { __typename: 'Query', app: { __typename: 'App', webhooks: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', name: string }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', name: string }>, eventDeliveries: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, status: EventDeliveryStatusEnum, eventType: WebhookEventTypeEnum, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, createdAt: any, status: EventDeliveryStatusEnum, response: string | null, responseStatusCode: number | null } }> } | null } }> } | null }> | null } | null }; +export type GiftCardUpdateMutation = { __typename: 'Mutation', giftCardUpdate: { __typename: 'GiftCardUpdate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy?: { __typename: 'User', id: string, firstName: string, lastName: string } | null, events: Array<{ __typename: 'GiftCardEvent', expiryDate: string | null, oldExpiryDate: string | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }>, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type WebhookDetailsQueryVariables = Exact<{ +export type GiftCardAddNoteMutationVariables = Exact<{ id: Scalars['ID']; + input: GiftCardAddNoteInput; }>; -export type WebhookDetailsQuery = { __typename: 'Query', webhook: { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } } | null }; +export type GiftCardAddNoteMutation = { __typename: 'Mutation', giftCardAddNote: { __typename: 'GiftCardAddNote', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, event: { __typename: 'GiftCardEvent', expiryDate: string | null, oldExpiryDate: string | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null } | null } | null }; -export type PluginsQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; +export type GiftCardBulkActivateMutationVariables = Exact<{ + ids: Array | Scalars['ID']; }>; -export type PluginsQuery = { __typename: 'Query', plugins: { __typename: 'PluginCountableConnection', edges: Array<{ __typename: 'PluginCountableEdge', node: { __typename: 'Plugin', id: string, name: string, description: string, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }>, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; +export type GiftCardBulkActivateMutation = { __typename: 'Mutation', giftCardBulkActivate: { __typename: 'GiftCardBulkActivate', count: number, errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; -export type PluginQueryVariables = Exact<{ - id: Scalars['ID']; +export type GiftCardBulkDeactivateMutationVariables = Exact<{ + ids: Array | Scalars['ID']; }>; -export type PluginQuery = { __typename: 'Query', plugin: { __typename: 'Plugin', id: string, name: string, description: string, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }> } | null }; +export type GiftCardBulkDeactivateMutation = { __typename: 'Mutation', giftCardBulkDeactivate: { __typename: 'GiftCardBulkDeactivate', count: number, errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; -export type AppsListQueryVariables = Exact<{ - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - sort?: InputMaybe; - filter?: InputMaybe; - canFetchAppEvents: Scalars['Boolean']; +export type GiftCardDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + canSeeApp: Scalars['Boolean']; + canSeeUser: Scalars['Boolean']; }>; -export type AppsListQuery = { __typename: 'Query', apps: { __typename: 'AppCountableConnection', totalCount: number | null, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ __typename: 'AppCountableEdge', node: { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, version: string | null, created: any | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null, webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null } }> } | null }; +export type GiftCardDetailsQuery = { __typename: 'Query', giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, events: Array<{ __typename: 'GiftCardEvent', expiryDate: string | null, oldExpiryDate: string | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, app?: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, user?: { __typename: 'User', email: string, id: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }>, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type FileUploadMutationVariables = Exact<{ - file: Scalars['Upload']; -}>; +export type GiftCardCurrenciesQueryVariables = Exact<{ [key: string]: never; }>; -export type FileUploadMutation = { __typename: 'Mutation', fileUpload: { __typename: 'FileUpload', uploadedFile: { __typename: 'File', url: string, contentType: string | null } | null, errors: Array<{ __typename: 'UploadError', code: UploadErrorCode, field: string | null, message: string | null }> } | null }; +export type GiftCardCurrenciesQuery = { __typename: 'Query', giftCardCurrencies: Array }; -export type AddressFragment = { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }; +export type DeleteGiftCardMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type AppManifestFragment = { __typename: 'Manifest', identifier: string, version: string, about: string | null, name: string, appUrl: string | null, configurationUrl: string | null, tokenTargetUrl: string | null, dataPrivacy: string | null, dataPrivacyUrl: string | null, homepageUrl: string | null, supportUrl: string | null, extensions: Array<{ __typename: 'AppManifestExtension', targetName: string, mountName: string, url: string, label: string, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> }>, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, brand: { __typename: 'AppManifestBrand', logo: { __typename: 'AppManifestBrandLogo', default: string } } | null }; -export type AppFragment = { __typename: 'App', id: string, name: string | null, created: any | null, isActive: boolean | null, type: AppTypeEnum | null, homepageUrl: string | null, appUrl: string | null, manifestUrl: string | null, configurationUrl: string | null, supportUrl: string | null, version: string | null, accessToken: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, metadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }>, tokens?: Array<{ __typename: 'AppToken', authToken: string | null, id: string, name: string | null }> | null, webhooks?: Array<{ __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }> | null }; +export type DeleteGiftCardMutation = { __typename: 'Mutation', giftCardDelete: { __typename: 'GiftCardDelete', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; -export type AppInstallationFragment = { __typename: 'AppInstallation', status: JobStatusEnum, message: string | null, appName: string, manifestUrl: string, id: string, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }; +export type BulkDeleteGiftCardMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type AppListItemFragment = { __typename: 'App', id: string, name: string | null, isActive: boolean | null, type: AppTypeEnum | null, appUrl: string | null, manifestUrl: string | null, version: string | null, created: any | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null, permissions: Array<{ __typename: 'Permission', name: string, code: PermissionEnum }> | null, webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null }; -export type AppPermissionFragment = { __typename: 'Permission', name: string, code: PermissionEnum }; +export type BulkDeleteGiftCardMutation = { __typename: 'Mutation', giftCardBulkDelete: { __typename: 'GiftCardBulkDelete', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; -export type AppAvatarFragment = { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }; +export type GiftCardListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; +}>; -export type EventDeliveryAttemptFragment = { __typename: 'EventDeliveryAttempt', id: string, createdAt: any, status: EventDeliveryStatusEnum, response: string | null, responseStatusCode: number | null }; -export type AppEventDeliveriesFragment = { __typename: 'App', webhooks?: Array<{ __typename: 'Webhook', failedDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, createdAt: any, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null, pendingDelivers: { __typename: 'EventDeliveryCountableConnection', edges: Array<{ __typename: 'EventDeliveryCountableEdge', node: { __typename: 'EventDelivery', id: string, attempts: { __typename: 'EventDeliveryAttemptCountableConnection', edges: Array<{ __typename: 'EventDeliveryAttemptCountableEdge', node: { __typename: 'EventDeliveryAttempt', id: string, status: EventDeliveryStatusEnum, createdAt: any } }> } | null } }> } | null }> | null }; +export type GiftCardListQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'GiftCardCountableEdge', node: { __typename: 'GiftCard', id: string, usedByEmail: string | null, last4CodeChars: string, isActive: boolean, expiryDate: string | null, product: { __typename: 'Product', id: string, name: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type InstalledAppFragment = { __typename: 'App', id: string, identifier: string | null, manifestUrl: string | null, isActive: boolean | null }; +export type GiftCardTotalCountQueryVariables = Exact<{ [key: string]: never; }>; -export type InstalledAppDetailsFragment = { __typename: 'App', id: string, isActive: boolean | null, name: string | null, type: AppTypeEnum | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }; -export type AttributeValueFragment = { __typename: 'AttributeValue', id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }; +export type GiftCardTotalCountQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', totalCount: number | null } | null }; -export type AttributeValueDetailsFragment = { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }; +export type GiftCardProductsCountQueryVariables = Exact<{ + channel: Scalars['String']; +}>; -export type AttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }; -export type AttributeDetailsFragment = { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }; +export type GiftCardProductsCountQuery = { __typename: 'Query', giftCardProductTypes: { __typename: 'ProductTypeCountableConnection', totalCount: number | null } | null, giftCardProducts: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type AttributeValueListFragment = { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> }; +export type CustomerGiftCardListQueryVariables = Exact<{ + first?: InputMaybe; + filter?: InputMaybe; +}>; -export type AvailableAttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null }; -export type UserPermissionFragment = { __typename: 'UserPermission', code: PermissionEnum, name: string }; +export type CustomerGiftCardListQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', edges: Array<{ __typename: 'GiftCardCountableEdge', node: { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: string | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } } }> } | null }; -export type UserUserPermissionWithSourcePermissionGroupsFragment = { __typename: 'UserPermission', code: PermissionEnum, name: string, sourcePermissionGroups: Array<{ __typename: 'Group', id: string }> | null }; +export type PageTypeUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: PageTypeUpdateInput; +}>; -export type UserFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string, isStaff: boolean, dateJoined: any, restrictedAccessToChannels: boolean, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; -export type UserBaseFragment = { __typename: 'User', id: string, firstName: string, lastName: string }; +export type PageTypeUpdateMutation = { __typename: 'Mutation', pageTypeUpdate: { __typename: 'PageTypeUpdate', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type UserBaseAvatarFragment = { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null }; +export type PageTypeCreateMutationVariables = Exact<{ + input: PageTypeCreateInput; +}>; -export type CategoryFragment = { __typename: 'Category', id: string, name: string, children: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type CategoryDetailsFragment = { __typename: 'Category', id: string, name: string, slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, parent: { __typename: 'Category', id: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type PageTypeCreateMutation = { __typename: 'Mutation', pageTypeCreate: { __typename: 'PageTypeCreate', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type CategoryWithAncestorsFragment = { __typename: 'Category', id: string, name: string, level: number, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null }; +export type AssignPageAttributeMutationVariables = Exact<{ + id: Scalars['ID']; + ids: Array | Scalars['ID']; +}>; -export type CategoryWithTotalProductsFragment = { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type ChannelErrorFragment = { __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }; +export type AssignPageAttributeMutation = { __typename: 'Mutation', pageAttributeAssign: { __typename: 'PageAttributeAssign', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ChannelFragment = { __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; +export type UnassignPageAttributeMutationVariables = Exact<{ + id: Scalars['ID']; + ids: Array | Scalars['ID']; +}>; -export type ChannelDetailsFragment = { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: number, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; -export type CollectionFragment = { __typename: 'Collection', id: string, name: string, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null }; +export type UnassignPageAttributeMutation = { __typename: 'Mutation', pageAttributeUnassign: { __typename: 'PageAttributeUnassign', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type CollectionDetailsFragment = { __typename: 'Collection', slug: string, description: any | null, seoDescription: string | null, seoTitle: string | null, id: string, name: string, backgroundImage: { __typename: 'Image', alt: string | null, url: string } | null, channelListings: Array<{ __typename: 'CollectionChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type PageTypeDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type CollectionProductFragment = { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null }; -export type CollectionWithTotalProductsFragment = { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; +export type PageTypeDeleteMutation = { __typename: 'Mutation', pageTypeDelete: { __typename: 'PageTypeDelete', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string } | null } | null }; -export type CustomerFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string }; +export type PageTypeBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type CustomerDetailsFragment = { __typename: 'User', dateJoined: any, lastLogin: any | null, note: string | null, isActive: boolean, id: string, email: string, firstName: string, lastName: string, defaultShippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, defaultBillingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null }; -export type CustomerAddressesFragment = { __typename: 'User', id: string, email: string, firstName: string, lastName: string, addresses: Array<{ __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }>, defaultBillingAddress: { __typename: 'Address', id: string } | null, defaultShippingAddress: { __typename: 'Address', id: string } | null }; +export type PageTypeBulkDeleteMutation = { __typename: 'Mutation', pageTypeBulkDelete: { __typename: 'PageTypeBulkDelete', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }> } | null }; -export type SaleFragment = { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type PageTypeAttributeReorderMutationVariables = Exact<{ + move: ReorderInput; + pageTypeId: Scalars['ID']; +}>; -export type SaleDetailsFragment = { __typename: 'Sale', id: string, name: string, type: SaleType, startDate: any, endDate: any | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, channelListings: Array<{ __typename: 'SaleChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type VoucherFragment = { __typename: 'Voucher', id: string, name: string | null, startDate: any, endDate: any | null, usageLimit: number | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type PageTypeAttributeReorderMutation = { __typename: 'Mutation', pageTypeReorderAttributes: { __typename: 'PageTypeReorderAttributes', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type VoucherCodeFragment = { __typename: 'VoucherCode', code: string | null, used: number | null, isActive: boolean | null }; +export type PageTypeListQueryVariables = Exact<{ + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; +}>; -export type VoucherDetailsFragment = { __typename: 'Voucher', usageLimit: number | null, used: number, applyOncePerOrder: boolean, applyOncePerCustomer: boolean, onlyForStaff: boolean, singleUse: boolean, id: string, name: string | null, startDate: any, endDate: any | null, type: VoucherTypeEnum, discountValueType: DiscountValueTypeEnum, minCheckoutItemsQuantity: number | null, variantsCount: { __typename: 'ProductVariantCountableConnection', totalCount: number | null } | null, productsCount: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, collectionsCount: { __typename: 'CollectionCountableConnection', totalCount: number | null } | null, categoriesCount: { __typename: 'CategoryCountableConnection', totalCount: number | null } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, variants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> | null, channelListings: Array<{ __typename: 'VoucherChannelListing', id: string, discountValue: number, currency: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, minSpent: { __typename: 'Money', amount: number, currency: string } | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type PromotionRuleChannelFragment = { __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }; +export type PageTypeListQuery = { __typename: 'Query', pageTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type PromotionRuleDetailsFragment = { __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }; +export type PageTypeDetailsQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type PromotionDetailsFragment = { __typename: 'Promotion', id: string, name: string, type: PromotionTypeEnum | null, description: any | null, startDate: any, endDate: any | null, rules: Array<{ __typename: 'PromotionRule', id: string, name: string | null, description: any | null, giftIds: Array | null, rewardType: RewardTypeEnum | null, rewardValueType: RewardValueTypeEnum | null, rewardValue: any | null, cataloguePredicate: any | null, orderPredicate: any | null, channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string } }> | null }> | null }; -export type PromotionFragment = { __typename: 'Promotion', id: string, name: string, startDate: any, endDate: any | null, type: PromotionTypeEnum | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type PageTypeDetailsQuery = { __typename: 'Query', pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type AttributeErrorFragment = { __typename: 'AttributeError', code: AttributeErrorCode, field: string | null, message: string | null }; +export type PageCreateMutationVariables = Exact<{ + input: PageCreateInput; +}>; -export type ProductErrorFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type ProductErrorWithAttributesFragment = { __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }; +export type PageCreateMutation = { __typename: 'Mutation', pageCreate: { __typename: 'PageCreate', errors: Array<{ __typename: 'PageError', attributes: Array | null, code: PageErrorCode, field: string | null, message: string | null }>, page: { __typename: 'Page', id: string } | null } | null }; -export type ProductChannelListingErrorFragment = { __typename: 'ProductChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }; +export type PageUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: PageInput; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; + searchValues?: InputMaybe; +}>; -export type CollectionChannelListingErrorFragment = { __typename: 'CollectionChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }; -export type AccountErrorFragment = { __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }; +export type PageUpdateMutation = { __typename: 'Mutation', pageUpdate: { __typename: 'PageUpdate', errors: Array<{ __typename: 'PageError', attributes: Array | null, code: PageErrorCode, field: string | null, message: string | null }>, page: { __typename: 'Page', content: any | null, seoTitle: string | null, seoDescription: string | null, publishedAt: any | null, id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type DiscountErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, channels: Array | null, message: string | null }; +export type PageRemoveMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type PromotionCreateErrorFragment = { __typename: 'PromotionCreateError', field: string | null, message: string | null, code: PromotionCreateErrorCode, index: number | null }; -export type PromotionUpdateErrorFragment = { __typename: 'PromotionUpdateError', field: string | null, message: string | null, code: PromotionUpdateErrorCode }; +export type PageRemoveMutation = { __typename: 'Mutation', pageDelete: { __typename: 'PageDelete', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }> } | null }; -export type PromotionDeleteErrorFragment = { __typename: 'PromotionDeleteError', field: string | null, message: string | null, code: PromotionDeleteErrorCode }; +export type PageBulkPublishMutationVariables = Exact<{ + ids: Array | Scalars['ID']; + isPublished: Scalars['Boolean']; +}>; -export type PromotionRuleUpdateErrorFragment = { __typename: 'PromotionRuleUpdateError', field: string | null, message: string | null, code: PromotionRuleUpdateErrorCode, channels: Array | null }; -export type PromotionRuleCreateErrorFragment = { __typename: 'PromotionRuleCreateError', field: string | null, message: string | null, code: PromotionRuleCreateErrorCode }; +export type PageBulkPublishMutation = { __typename: 'Mutation', pageBulkPublish: { __typename: 'PageBulkPublish', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }> } | null }; -export type PromotionRuleDeleteErrorFragment = { __typename: 'PromotionRuleDeleteError', field: string | null, message: string | null, code: PromotionRuleDeleteErrorCode }; +export type PageBulkRemoveMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type MenuErrorFragment = { __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }; -export type OrderErrorFragment = { __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }; +export type PageBulkRemoveMutation = { __typename: 'Mutation', pageBulkDelete: { __typename: 'PageBulkDelete', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }> } | null }; -export type OrderSettingsErrorFragment = { __typename: 'OrderSettingsError', code: OrderSettingsErrorCode, field: string | null, message: string | null }; +export type PageListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + sort?: InputMaybe; + filter?: InputMaybe; +}>; -export type PageErrorFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; -export type PageErrorWithAttributesFragment = { __typename: 'PageError', attributes: Array | null, code: PageErrorCode, field: string | null, message: string | null }; +export type PageListQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string } } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; -export type PermissionGroupErrorFragment = { __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }; +export type PageDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; + searchValues?: InputMaybe; +}>; -export type BulkProductErrorFragment = { __typename: 'BulkProductError', field: string | null, code: ProductErrorCode, index: number | null, channels: Array | null, message: string | null }; -export type ProductVariantBulkErrorFragment = { __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }; +export type PageDetailsQuery = { __typename: 'Query', page: { __typename: 'Page', content: any | null, seoTitle: string | null, seoDescription: string | null, publishedAt: any | null, id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type BulkStockErrorFragment = { __typename: 'BulkStockError', code: ProductErrorCode, field: string | null, index: number | null, message: string | null }; +export type PageTypeQueryVariables = Exact<{ + id: Scalars['ID']; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; + searchValues?: InputMaybe; +}>; -export type StockErrorFragment = { __typename: 'StockError', code: StockErrorCode, field: string | null, message: string | null }; -export type ShippingChannelsErrorFragment = { __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, channels: Array | null, message: string | null }; +export type PageTypeQuery = { __typename: 'Query', pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null } | null }; -export type ShippingErrorFragment = { __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }; +export type PageCountQueryVariables = Exact<{ + filter?: InputMaybe; +}>; -export type ShopErrorFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; -export type StaffErrorFragment = { __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }; +export type PageCountQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', totalCount: number | null } | null }; -export type WarehouseErrorFragment = { __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }; +export type ModelsOfTypeQueryVariables = Exact<{ + pageTypeId: Scalars['ID']; +}>; -export type WebhookErrorFragment = { __typename: 'WebhookError', code: WebhookErrorCode, field: string | null, message: string | null }; -export type InvoiceErrorFragment = { __typename: 'InvoiceError', code: InvoiceErrorCode, field: string | null, message: string | null }; +export type ModelsOfTypeQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string } }> } | null }; -export type AppErrorFragment = { __typename: 'AppError', field: string | null, message: string | null, code: AppErrorCode, permissions: Array | null }; +export type OrderCancelMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type ExportErrorFragment = { __typename: 'ExportError', code: ExportErrorCode, field: string | null, message: string | null }; -export type PluginErrorFragment = { __typename: 'PluginError', code: PluginErrorCode, field: string | null, message: string | null }; +export type OrderCancelMutation = { __typename: 'Mutation', orderCancel: { __typename: 'OrderCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type MetadataErrorFragment = { __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }; +export type OrderDiscountAddMutationVariables = Exact<{ + input: OrderDiscountCommonInput; + orderId: Scalars['ID']; +}>; -export type CollectionErrorFragment = { __typename: 'CollectionError', code: CollectionErrorCode, field: string | null, message: string | null }; -export type UploadErrorFragment = { __typename: 'UploadError', code: UploadErrorCode, field: string | null, message: string | null }; +export type OrderDiscountAddMutation = { __typename: 'Mutation', orderDiscountAdd: { __typename: 'OrderDiscountAdd', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type GiftCardErrorFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; +export type OrderDiscountDeleteMutationVariables = Exact<{ + discountId: Scalars['ID']; +}>; -export type GiftCardSettingsErrorFragment = { __typename: 'GiftCardSettingsError', code: GiftCardSettingsErrorCode, field: string | null, message: string | null }; -export type SaleBulkDeleteErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, message: string | null }; +export type OrderDiscountDeleteMutation = { __typename: 'Mutation', orderDiscountDelete: { __typename: 'OrderDiscountDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type VoucherBulkDeleteErrorFragment = { __typename: 'DiscountError', code: DiscountErrorCode, field: string | null, message: string | null }; +export type OrderLineDiscountRemoveMutationVariables = Exact<{ + orderLineId: Scalars['ID']; +}>; -export type GiftCardBulkCreateErrorFragmentFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; -export type GiftCardCreateErrorFragmentFragment = { __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }; +export type OrderLineDiscountRemoveMutation = { __typename: 'Mutation', orderLineDiscountRemove: { __typename: 'OrderLineDiscountRemove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type PageBulkPublishErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; +export type OrderLineDiscountUpdateMutationVariables = Exact<{ + input: OrderDiscountCommonInput; + orderLineId: Scalars['ID']; +}>; -export type PageBulkRemoveErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; -export type PageTypeDeleteErrorFragmentFragment = { __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }; +export type OrderLineDiscountUpdateMutation = { __typename: 'Mutation', orderLineDiscountUpdate: { __typename: 'OrderLineDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ProductVariantStocksDeleteErrorFragment = { __typename: 'StockError', code: StockErrorCode, field: string | null, message: string | null }; +export type OrderDiscountUpdateMutationVariables = Exact<{ + input: OrderDiscountCommonInput; + discountId: Scalars['ID']; +}>; -export type ProductTypeDeleteErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type ProductTypeBulkDeleteErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; +export type OrderDiscountUpdateMutation = { __typename: 'Mutation', orderDiscountUpdate: { __typename: 'OrderDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ProductTypeBulkUpdateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; +export type OrderDraftCancelMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type ProductAttributeAssignErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type ProductAttributeUnassignErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; +export type OrderDraftCancelMutation = { __typename: 'Mutation', draftOrderDelete: { __typename: 'DraftOrderDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ProductTypeCreateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; +export type OrderDraftBulkCancelMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type ProductTypeReorderAttributesErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }; -export type ProductAttributeAssignmentUpdateErrorFragmentFragment = { __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null, attributes: Array | null }; +export type OrderDraftBulkCancelMutation = { __typename: 'Mutation', draftOrderBulkDelete: { __typename: 'DraftOrderBulkDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }> } | null }; -export type ShopSettingsUpdateErrorFragmentFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; +export type OrderConfirmMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type ShopFetchTaxRatesErrorFragmentFragment = { __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }; -export type ProductTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type OrderConfirmMutation = { __typename: 'Mutation', orderConfirm: { __typename: 'OrderConfirm', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ProductVariantTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type OrderDraftFinalizeMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type CategoryTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type CollectionTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type OrderDraftFinalizeMutation = { __typename: 'Mutation', draftOrderComplete: { __typename: 'DraftOrderComplete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type PageTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type FulfillmentReturnProductsMutationVariables = Exact<{ + id: Scalars['ID']; + input: OrderReturnProductsInput; +}>; -export type VoucherTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type SaleTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type FulfillmentReturnProductsMutation = { __typename: 'Mutation', orderFulfillmentReturnProducts: { __typename: 'FulfillmentReturnProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, replaceOrder: { __typename: 'Order', id: string } | null } | null }; -export type AttributeTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type OrderRefundMutationVariables = Exact<{ + id: Scalars['ID']; + amount: Scalars['PositiveDecimal']; +}>; -export type AttributeValueTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; -export type ShippingPriceTranslateErrorFragmentFragment = { __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }; +export type OrderRefundMutation = { __typename: 'Mutation', orderRefund: { __typename: 'OrderRefund', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type TaxConfigurationUpdateErrorFragment = { __typename: 'TaxConfigurationUpdateError', field: string | null, code: TaxConfigurationUpdateErrorCode, message: string | null }; +export type OrderFulfillmentRefundProductsMutationVariables = Exact<{ + input: OrderRefundProductsInput; + order: Scalars['ID']; +}>; -export type TaxCountryConfigurationUpdateErrorFragment = { __typename: 'TaxCountryConfigurationUpdateError', field: string | null, code: TaxCountryConfigurationUpdateErrorCode, message: string | null }; -export type TaxCountryConfigurationDeleteErrorFragment = { __typename: 'TaxCountryConfigurationDeleteError', field: string | null, code: TaxCountryConfigurationDeleteErrorCode, message: string | null }; +export type OrderFulfillmentRefundProductsMutation = { __typename: 'Mutation', orderFulfillmentRefundProducts: { __typename: 'FulfillmentRefundProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, fulfillment: { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type TaxClassUpdateErrorFragment = { __typename: 'TaxClassUpdateError', field: string | null, code: TaxClassUpdateErrorCode, message: string | null }; +export type OrderVoidMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type TaxClassCreateErrorFragment = { __typename: 'TaxClassCreateError', field: string | null, code: TaxClassCreateErrorCode, message: string | null }; -export type TaxClassDeleteErrorFragment = { __typename: 'TaxClassDeleteError', field: string | null, code: TaxClassDeleteErrorCode, message: string | null }; +export type OrderVoidMutation = { __typename: 'Mutation', orderVoid: { __typename: 'OrderVoid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type TransactionRequestActionErrorFragment = { __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }; +export type OrderMarkAsPaidMutationVariables = Exact<{ + id: Scalars['ID']; + transactionReference?: InputMaybe; +}>; -export type TransactionCreateErrorFragment = { __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }; -export type OrderGrantRefundCreateErrorFragment = { __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode, lines: Array<{ __typename: 'OrderGrantRefundCreateLineError', field: string | null, message: string | null, code: OrderGrantRefundCreateLineErrorCode, lineId: string }> | null }; +export type OrderMarkAsPaidMutation = { __typename: 'Mutation', orderMarkAsPaid: { __typename: 'OrderMarkAsPaid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type OrderGrantRefundUpdateErrorFragment = { __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode, addLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null, removeLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null }; +export type OrderCaptureMutationVariables = Exact<{ + id: Scalars['ID']; + amount: Scalars['PositiveDecimal']; +}>; -export type TransactionRequestRefundForGrantedRefundErrorFragment = { __typename: 'TransactionRequestRefundForGrantedRefundError', field: string | null, message: string | null, code: TransactionRequestRefundForGrantedRefundErrorCode }; -export type FileFragment = { __typename: 'File', url: string, contentType: string | null }; +export type OrderCaptureMutation = { __typename: 'Mutation', orderCapture: { __typename: 'OrderCapture', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type GiftCardsSettingsFragment = { __typename: 'GiftCardSettings', expiryType: GiftCardSettingsExpiryTypeEnum, expiryPeriod: { __typename: 'TimePeriod', type: TimePeriodTypeEnum, amount: number } | null }; +export type OrderFulfillmentUpdateTrackingMutationVariables = Exact<{ + id: Scalars['ID']; + input: FulfillmentUpdateTrackingInput; +}>; -export type GiftCardEventFragment = { __typename: 'GiftCardEvent', expiryDate: string | null, oldExpiryDate: string | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }; -export type GiftCardDataFragment = { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderFulfillmentUpdateTrackingMutation = { __typename: 'Mutation', orderFulfillmentUpdateTracking: { __typename: 'FulfillmentUpdateTracking', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type CustomerGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: string | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } }; +export type OrderFulfillmentApproveMutationVariables = Exact<{ + id: Scalars['ID']; + notifyCustomer: Scalars['Boolean']; + allowStockToBeExceeded?: InputMaybe; +}>; -export type MetadataItemFragment = { __typename: 'MetadataItem', key: string, value: string }; -type Metadata_Address_Fragment = { __typename: 'Address', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderFulfillmentApproveMutation = { __typename: 'Mutation', orderFulfillmentApprove: { __typename: 'FulfillmentApprove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -type Metadata_App_Fragment = { __typename: 'App', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderFulfillmentCancelMutationVariables = Exact<{ + id: Scalars['ID']; + input: FulfillmentCancelInput; +}>; -type Metadata_Attribute_Fragment = { __typename: 'Attribute', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_Category_Fragment = { __typename: 'Category', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderFulfillmentCancelMutation = { __typename: 'Mutation', orderFulfillmentCancel: { __typename: 'FulfillmentCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -type Metadata_Channel_Fragment = { __typename: 'Channel', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderNoteAddMutationVariables = Exact<{ + order: Scalars['ID']; + input: OrderNoteInput; +}>; -type Metadata_Checkout_Fragment = { __typename: 'Checkout', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_CheckoutLine_Fragment = { __typename: 'CheckoutLine', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderNoteAddMutation = { __typename: 'Mutation', orderNoteAdd: { __typename: 'OrderNoteAdd', errors: Array<{ __typename: 'OrderNoteAddError', code: OrderNoteAddErrorCode | null, field: string | null, message: string | null }>, order: { __typename: 'Order', id: string, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }> } | null } | null }; -type Metadata_Collection_Fragment = { __typename: 'Collection', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderNoteUpdateMutationVariables = Exact<{ + order: Scalars['ID']; + input: OrderNoteInput; +}>; -type Metadata_DigitalContent_Fragment = { __typename: 'DigitalContent', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_Fulfillment_Fragment = { __typename: 'Fulfillment', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderNoteUpdateMutation = { __typename: 'Mutation', orderNoteUpdate: { __typename: 'OrderNoteUpdate', errors: Array<{ __typename: 'OrderNoteUpdateError', code: OrderNoteUpdateErrorCode | null, field: string | null, message: string | null }>, order: { __typename: 'Order', id: string, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }> } | null } | null }; -type Metadata_GiftCard_Fragment = { __typename: 'GiftCard', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: OrderUpdateInput; +}>; -type Metadata_Invoice_Fragment = { __typename: 'Invoice', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_Menu_Fragment = { __typename: 'Menu', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderUpdateMutation = { __typename: 'Mutation', orderUpdate: { __typename: 'OrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -type Metadata_MenuItem_Fragment = { __typename: 'MenuItem', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderDraftUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: DraftOrderInput; +}>; -type Metadata_Order_Fragment = { __typename: 'Order', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_OrderLine_Fragment = { __typename: 'OrderLine', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderDraftUpdateMutation = { __typename: 'Mutation', draftOrderUpdate: { __typename: 'DraftOrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -type Metadata_Page_Fragment = { __typename: 'Page', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderShippingMethodUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: OrderUpdateShippingInput; +}>; -type Metadata_PageType_Fragment = { __typename: 'PageType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_Payment_Fragment = { __typename: 'Payment', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderShippingMethodUpdateMutation = { __typename: 'Mutation', orderUpdateShipping: { __typename: 'OrderUpdateShipping', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, shippingMethodName: string | null, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, total: { __typename: 'TaxedMoney', tax: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string, name: string, price: { __typename: 'Money', amount: number, currency: string } } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -type Metadata_Product_Fragment = { __typename: 'Product', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderDraftCreateMutationVariables = Exact<{ + input: DraftOrderCreateInput; +}>; -type Metadata_ProductMedia_Fragment = { __typename: 'ProductMedia', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_ProductType_Fragment = { __typename: 'ProductType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderDraftCreateMutation = { __typename: 'Mutation', draftOrderCreate: { __typename: 'DraftOrderCreate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string } | null } | null }; -type Metadata_ProductVariant_Fragment = { __typename: 'ProductVariant', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderLineDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -type Metadata_Promotion_Fragment = { __typename: 'Promotion', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_Sale_Fragment = { __typename: 'Sale', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderLineDeleteMutation = { __typename: 'Mutation', orderLineDelete: { __typename: 'OrderLineDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, isShippingRequired: boolean, shippingMethodName: string | null, collectionPointName: string | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, undiscountedTotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; -type Metadata_ShippingMethod_Fragment = { __typename: 'ShippingMethod', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderLinesAddMutationVariables = Exact<{ + id: Scalars['ID']; + input: Array | OrderLineCreateInput; +}>; -type Metadata_ShippingMethodType_Fragment = { __typename: 'ShippingMethodType', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_ShippingZone_Fragment = { __typename: 'ShippingZone', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderLinesAddMutation = { __typename: 'Mutation', orderLinesCreate: { __typename: 'OrderLinesCreate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, isShippingRequired: boolean, shippingMethodName: string | null, collectionPointName: string | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, undiscountedTotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; -type Metadata_Shop_Fragment = { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderLineUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: OrderLineInput; +}>; -type Metadata_TaxClass_Fragment = { __typename: 'TaxClass', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_TaxConfiguration_Fragment = { __typename: 'TaxConfiguration', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderLineUpdateMutation = { __typename: 'Mutation', orderLineUpdate: { __typename: 'OrderLineUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, order: { __typename: 'Order', id: string, isShippingRequired: boolean, shippingMethodName: string | null, collectionPointName: string | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, undiscountedTotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; -type Metadata_TransactionItem_Fragment = { __typename: 'TransactionItem', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type FulfillOrderMutationVariables = Exact<{ + orderId: Scalars['ID']; + input: OrderFulfillInput; +}>; -type Metadata_User_Fragment = { __typename: 'User', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -type Metadata_Voucher_Fragment = { __typename: 'Voucher', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type FulfillOrderMutation = { __typename: 'Mutation', orderFulfill: { __typename: 'OrderFulfill', errors: Array<{ __typename: 'OrderError', warehouse: string | null, code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -type Metadata_Warehouse_Fragment = { __typename: 'Warehouse', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type InvoiceRequestMutationVariables = Exact<{ + orderId: Scalars['ID']; +}>; -export type MetadataFragment = Metadata_Address_Fragment | Metadata_App_Fragment | Metadata_Attribute_Fragment | Metadata_Category_Fragment | Metadata_Channel_Fragment | Metadata_Checkout_Fragment | Metadata_CheckoutLine_Fragment | Metadata_Collection_Fragment | Metadata_DigitalContent_Fragment | Metadata_Fulfillment_Fragment | Metadata_GiftCard_Fragment | Metadata_Invoice_Fragment | Metadata_Menu_Fragment | Metadata_MenuItem_Fragment | Metadata_Order_Fragment | Metadata_OrderLine_Fragment | Metadata_Page_Fragment | Metadata_PageType_Fragment | Metadata_Payment_Fragment | Metadata_Product_Fragment | Metadata_ProductMedia_Fragment | Metadata_ProductType_Fragment | Metadata_ProductVariant_Fragment | Metadata_Promotion_Fragment | Metadata_Sale_Fragment | Metadata_ShippingMethod_Fragment | Metadata_ShippingMethodType_Fragment | Metadata_ShippingZone_Fragment | Metadata_Shop_Fragment | Metadata_TaxClass_Fragment | Metadata_TaxConfiguration_Fragment | Metadata_TransactionItem_Fragment | Metadata_User_Fragment | Metadata_Voucher_Fragment | Metadata_Warehouse_Fragment; -export type MenuFragment = { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string }> | null }; +export type InvoiceRequestMutation = { __typename: 'Mutation', invoiceRequest: { __typename: 'InvoiceRequest', errors: Array<{ __typename: 'InvoiceError', code: InvoiceErrorCode, field: string | null, message: string | null }>, invoice: { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum } | null, order: { __typename: 'Order', id: string, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }> } | null } | null }; -export type MenuItemFragment = { __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }; +export type InvoiceEmailSendMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type MenuItemNestedFragment = { __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }; -export type MenuDetailsFragment = { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null }; +export type InvoiceEmailSendMutation = { __typename: 'Mutation', invoiceSendNotification: { __typename: 'InvoiceSendNotification', errors: Array<{ __typename: 'InvoiceError', code: InvoiceErrorCode, field: string | null, message: string | null }>, invoice: { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum } | null } | null }; -export type OrderEventFragment = { __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }; +export type OrderSettingsUpdateMutationVariables = Exact<{ + orderSettingsInput: OrderSettingsUpdateInput; + shopSettingsInput: ShopSettingsInput; +}>; -export type OrderLineFragment = { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }; -export type OrderLinesUpdateFragment = { __typename: 'Order', id: string, isShippingRequired: boolean, shippingMethodName: string | null, collectionPointName: string | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, undiscountedTotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }> }; +export type OrderSettingsUpdateMutation = { __typename: 'Mutation', orderSettingsUpdate: { __typename: 'OrderSettingsUpdate', errors: Array<{ __typename: 'OrderSettingsError', code: OrderSettingsErrorCode, field: string | null, message: string | null }>, orderSettings: { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean } | null } | null, shopSettingsUpdate: { __typename: 'ShopSettingsUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean } | null } | null }; -export type OrderLineMetadataFragment = { __typename: 'OrderLine', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, variant: { __typename: 'ProductVariant', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type OrderTransactionRequestActionMutationVariables = Exact<{ + action: TransactionActionEnum; + transactionId: Scalars['ID']; + amount?: InputMaybe; + reason?: InputMaybe; + reasonReferenceId?: InputMaybe; +}>; -export type OrderLineMetadataDetailsFragment = { __typename: 'OrderLine', id: string, productName: string, productSku: string | null, quantity: number, thumbnail: { __typename: 'Image', url: string } | null, variant: { __typename: 'ProductVariant', id: string, name: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type OrderLineWithMetadataFragment = { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderTransactionRequestActionMutation = { __typename: 'Mutation', transactionRequestAction: { __typename: 'TransactionRequestAction', errors: Array<{ __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }> } | null }; -export type RefundOrderLineFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }; +export type OrderGrantRefundAddMutationVariables = Exact<{ + orderId: Scalars['ID']; + amount?: InputMaybe; + reason?: InputMaybe; + reasonReferenceId?: InputMaybe; + lines?: InputMaybe | OrderGrantRefundCreateLineInput>; + grantRefundForShipping?: InputMaybe; + transactionId: Scalars['ID']; +}>; -export type FulfillmentFragment = { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type FulfillmentWithMetadataFragment = { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderGrantRefundAddMutation = { __typename: 'Mutation', orderGrantRefundCreate: { __typename: 'OrderGrantRefundCreate', errors: Array<{ __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode, lines: Array<{ __typename: 'OrderGrantRefundCreateLineError', field: string | null, message: string | null, code: OrderGrantRefundCreateLineErrorCode, lineId: string }> | null }>, grantedRefund: { __typename: 'OrderGrantedRefund', id: string } | null } | null }; -export type InvoiceFragment = { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }; +export type OrderGrantRefundAddWithOrderMutationVariables = Exact<{ + orderId: Scalars['ID']; + amount?: InputMaybe; + reason?: InputMaybe; + lines?: InputMaybe | OrderGrantRefundCreateLineInput>; + grantRefundForShipping?: InputMaybe; + transactionId: Scalars['ID']; +}>; -export type OrderDiscountFragment = { __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }; -export type OrderDetailsFragment = { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderGrantRefundAddWithOrderMutation = { __typename: 'Mutation', orderGrantRefundCreate: { __typename: 'OrderGrantRefundCreate', errors: Array<{ __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode, lines: Array<{ __typename: 'OrderGrantRefundCreateLineError', field: string | null, message: string | null, code: OrderGrantRefundCreateLineErrorCode, lineId: string }> | null }>, grantedRefund: { __typename: 'OrderGrantedRefund', id: string } | null, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type OrderDetailsWithMetadataFragment = { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderGrantRefundEditMutationVariables = Exact<{ + refundId: Scalars['ID']; + amount?: InputMaybe; + reason?: InputMaybe; + addLines?: InputMaybe | OrderGrantRefundUpdateLineAddInput>; + removeLines?: InputMaybe | Scalars['ID']>; + grantRefundForShipping?: InputMaybe; + transactionId?: InputMaybe; + reasonReferenceId?: InputMaybe; +}>; -export type OrderSettingsFragment = { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean }; -export type ShopOrderSettingsFragment = { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean }; +export type OrderGrantRefundEditMutation = { __typename: 'Mutation', orderGrantRefundUpdate: { __typename: 'OrderGrantRefundUpdate', errors: Array<{ __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode, addLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null, removeLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null }>, order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; -export type OrderFulfillLineFragment = { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, quantity: number, quantityFulfilled: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, preorder: { __typename: 'PreorderData', endDate: any | null } | null, attributes: Array<{ __typename: 'SelectedAttribute', values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null, thumbnail: { __typename: 'Image', url: string } | null }; +export type OrderSendRefundMutationVariables = Exact<{ + amount: Scalars['PositiveDecimal']; + transactionId: Scalars['ID']; +}>; -export type OrderLineStockDataFragment = { __typename: 'OrderLine', id: string, quantity: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', quantity: number, warehouse: { __typename: 'Warehouse', id: string } }> | null, variant: { __typename: 'ProductVariant', stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null }; -export type TransactionBaseEventFragment = { __typename: 'TransactionEvent', id: string, pspReference: string, externalUrl: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }; +export type OrderSendRefundMutation = { __typename: 'Mutation', transactionRequestAction: { __typename: 'TransactionRequestAction', transaction: { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }> } | null }; -export type TransactionEventFragment = { __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }; +export type OrderSendRefundForGrantedRefundMutationVariables = Exact<{ + grantedRefundId: Scalars['ID']; + transactionId: Scalars['ID']; +}>; -export type TransactionBaseItemFragment = { __typename: 'TransactionItem', id: string, name: string, actions: Array, events: Array<{ __typename: 'TransactionEvent', id: string, pspReference: string, externalUrl: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }> }; -export type OtherPaymentMethodDetailsFragment = { __typename: 'OtherPaymentMethodDetails', name: string }; +export type OrderSendRefundForGrantedRefundMutation = { __typename: 'Mutation', transactionRequestRefundForGrantedRefund: { __typename: 'TransactionRequestRefundForGrantedRefund', transaction: { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionRequestRefundForGrantedRefundError', field: string | null, message: string | null, code: TransactionRequestRefundForGrantedRefundErrorCode }> } | null }; -export type CardPaymentMethodDetailsFragment = { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null }; +export type CreateManualTransactionCaptureMutationVariables = Exact<{ + orderId: Scalars['ID']; + amount: Scalars['PositiveDecimal']; + currency: Scalars['String']; + description?: InputMaybe; + pspReference?: InputMaybe; +}>; -export type TransactionItemFragment = { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }; -export type OrderPaymentFragment = { __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }; +export type CreateManualTransactionCaptureMutation = { __typename: 'Mutation', transactionCreate: { __typename: 'TransactionCreate', transaction: { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }> } | null }; -export type OrderGiftCardFragment = { __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }; +export type CreateManualTransactionRefundMutationVariables = Exact<{ + orderId: Scalars['ID']; + amount: Scalars['PositiveDecimal']; + currency: Scalars['String']; + description?: InputMaybe; + pspReference?: InputMaybe; +}>; -export type OrderGiftCardEventBalanceFragment = { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null }; -export type OrderGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }; +export type CreateManualTransactionRefundMutation = { __typename: 'Mutation', transactionCreate: { __typename: 'TransactionCreate', transaction: { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }> } | null }; -export type OrderLineGrantRefundFragment = { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }; +export type OrderListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + where?: InputMaybe; + search?: InputMaybe; + sort?: InputMaybe; +}>; -export type OrderDetailsGrantedRefundFragment = { __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }; -export type OrderFulfillmentGrantRefundFragment = { __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }; +export type OrderListQuery = { __typename: 'Query', orders: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', created: any, id: string, number: string, paymentStatus: PaymentChargeStatusEnum, status: OrderStatus, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, channel: { __typename: 'Channel', name: string, id: string }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; -export type OrderDetailsGrantRefundFragment = { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> }; +export type OrderDraftListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; +}>; -export type ActivitiesFragment = { __typename: 'OrderEvent', date: any | null, email: string | null, message: string | null, orderNumber: string | null, type: OrderEventsEnum | null, user: { __typename: 'User', email: string } | null }; -export type PageInfoFragment = { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }; +export type OrderDraftListQuery = { __typename: 'Query', draftOrders: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', created: any, id: string, number: string, paymentStatus: PaymentChargeStatusEnum, status: OrderStatus, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, channel: { __typename: 'Channel', name: string, id: string }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; -export type PageTypeFragment = { __typename: 'PageType', id: string, name: string, hasPages: boolean | null }; +export type OrderDetailsQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type PageTypeDetailsFragment = { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type PageFragment = { __typename: 'Page', id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string } }; +export type OrderDetailsQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; -export type PageSelectedAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; +export type OrderDetailsWithMetadataQueryVariables = Exact<{ + id: Scalars['ID']; + hasManageProducts: Scalars['Boolean']; +}>; -export type PageAttributesFragment = { __typename: 'Page', attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null } }; -export type PageDetailsFragment = { __typename: 'Page', content: any | null, seoTitle: string | null, seoDescription: string | null, publishedAt: any | null, id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderDetailsWithMetadataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; -export type PermissionGroupFragment = { __typename: 'Group', id: string, name: string, userCanManage: boolean, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string }> | null }; +export type OrderLinesMetadataQueryVariables = Exact<{ + id: Scalars['ID']; + hasManageProducts: Scalars['Boolean']; +}>; -export type PermissionFragment = { __typename: 'Permission', code: PermissionEnum, name: string }; -export type PermissionGroupMemberFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null }; +export type OrderLinesMetadataQuery = { __typename: 'Query', order: { __typename: 'Order', lines: Array<{ __typename: 'OrderLine', id: string, productName: string, productSku: string | null, quantity: number, thumbnail: { __typename: 'Image', url: string } | null, variant: { __typename: 'ProductVariant', id: string, name: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> } | null }; -export type PermissionGroupDetailsFragment = { __typename: 'Group', restrictedAccessToChannels: boolean, id: string, name: string, userCanManage: boolean, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null }; +export type OrderDetailsGrantRefundQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type ConfigurationItemFragment = { __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }; -export type PluginConfigurationBaseFragment = { __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }; +export type OrderDetailsGrantRefundQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null }; -export type PluginConfigurationExtendedFragment = { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }; +export type OrderDetailsGrantRefundEditQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type PluginBaseFragment = { __typename: 'Plugin', id: string, name: string, description: string, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }>, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null }; -export type PluginsDetailsFragment = { __typename: 'Plugin', id: string, name: string, description: string, globalConfiguration: { __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null } | null, channelConfigurations: Array<{ __typename: 'PluginConfiguration', active: boolean, configuration: Array<{ __typename: 'ConfigurationItem', name: string, value: string | null, type: ConfigurationTypeFieldEnum | null, helpText: string | null, label: string | null }> | null, channel: { __typename: 'Channel', id: string, name: string, slug: string } | null }> }; +export type OrderDetailsGrantRefundEditQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null }; -export type PaymentGatewayFragment = { __typename: 'PaymentGateway', name: string, id: string }; +export type OrderFulfillDataQueryVariables = Exact<{ + orderId: Scalars['ID']; +}>; -export type ProductTypeFragment = { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }; -export type ProductTypeDetailsFragment = { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderFulfillDataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, isPaid: boolean, number: string, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, quantity: number, quantityFulfilled: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, preorder: { __typename: 'PreorderData', endDate: any | null } | null, attributes: Array<{ __typename: 'SelectedAttribute', values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null, thumbnail: { __typename: 'Image', url: string } | null }> } | null }; -export type StockFragment = { __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }; +export type OrderFulfillSettingsQueryVariables = Exact<{ [key: string]: never; }>; -export type MoneyFragment = { __typename: 'Money', amount: number, currency: string }; -export type PreorderFragment = { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null }; +export type OrderFulfillSettingsQuery = { __typename: 'Query', shop: { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean } }; -export type PriceRangeFragment = { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null }; +export type OrderSettingsQueryVariables = Exact<{ [key: string]: never; }>; -export type ProductMediaFragment = { __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }; -export type ChannelListingProductWithoutPricingFragment = { __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }; +export type OrderSettingsQuery = { __typename: 'Query', orderSettings: { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean } | null, shop: { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean } }; -export type ChannelListingProductFragment = { __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, pricing: { __typename: 'ProductPricingInfo', priceRange: { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null } | null } | null, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }; +export type OrderRefundDataQueryVariables = Exact<{ + orderId: Scalars['ID']; +}>; -export type ChannelListingProductVariantFragment = { __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }; -export type ProductWithChannelListingsFragment = { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, category?: { __typename: 'Category', id: string, name: string } | null, collections?: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, pricing?: { __typename: 'ProductPricingInfo', priceRange: { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null } | null } | null, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null }; +export type OrderRefundDataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, lines: Array<{ __typename: 'OrderLine', quantityToFulfill: number, id: string, productName: string, quantity: number, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, status: FulfillmentStatus, fulfillmentOrder: number, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null }> } | null }; -export type ProductVariantAttributesFragment = { __typename: 'Product', id: string, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, productType: { __typename: 'ProductType', id: string, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, selectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, nonSelectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, channelListings: Array<{ __typename: 'ProductChannelListing', channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null }; +export type OrderTransactionsDataQueryVariables = Exact<{ + orderId: Scalars['ID']; +}>; -export type ProductDetailsVariantFragment = { __typename: 'ProductVariant', id: string, sku: string | null, name: string, trackInventory: boolean, quantityLimitPerCustomer: number | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', url: string }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null }; -export type ProductFragment = { __typename: 'Product', name: string, slug: string, description: any | null, seoTitle: string | null, seoDescription: string | null, rating: number | null, isAvailable: boolean | null, id: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, category: { __typename: 'Category', id: string, name: string } | null, collections: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string, slug: string } }> | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, sku: string | null, name: string, trackInventory: boolean, quantityLimitPerCustomer: number | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', url: string }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null }> | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, isShippingRequired: boolean, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, selectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, nonSelectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type OrderTransactionsDataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }; -export type VariantAttributeFragment = { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }; +export type ChannelUsabilityDataQueryVariables = Exact<{ + channel: Scalars['String']; +}>; -export type SelectedVariantAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; -export type ProductVariantFragment = { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type ChannelUsabilityDataQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type SearchProductFragment = { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string } }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', channel: { __typename: 'Channel', id: string, isActive: boolean, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null }> | null }> | null, collections: Array<{ __typename: 'Collection', id: string }> | null }; +export type OrderDetailsGraphiQlQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type ExportFileFragment = { __typename: 'ExportFile', id: string, status: JobStatusEnum, url: string | null }; -export type ProductListAttributeFragment = { __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string }, values: Array<{ __typename: 'AttributeValue', id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }; +export type OrderDetailsGraphiQlQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, status: OrderStatus, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, paymentStatus: PaymentChargeStatusEnum, userEmail: string | null, isPaid: boolean } | null }; -export type ShippingZoneFragment = { __typename: 'ShippingZone', id: string, name: string, description: string | null, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type DevModeRunQueryVariables = Exact<{ + filter?: InputMaybe; + sortBy?: InputMaybe; +}>; -export type ShippingMethodWithPostalCodesFragment = { __typename: 'ShippingMethodType', id: string, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null }; -export type ShippingMethodTypeFragment = { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type DevModeRunQuery = { __typename: 'Query', orders: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, number: string, status: OrderStatus, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, paymentStatus: PaymentChargeStatusEnum, userEmail: string | null, isPaid: boolean } }> } | null }; -export type ShippingMethodWithExcludedProductsFragment = { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, excludedProducts: { __typename: 'ProductCountableConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor: string | null, startCursor: string | null }, edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null } }> } | null, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type RefundSettingsQueryVariables = Exact<{ [key: string]: never; }>; -export type ShippingZoneDetailsFragment = { __typename: 'ShippingZone', id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; -export type CountryWithCodeFragment = { __typename: 'CountryDisplay', country: string, code: string }; +export type RefundSettingsQuery = { __typename: 'Query', refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null } }; -export type LanguageFragment = { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string }; +export type PermissionGroupDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type LimitInfoFragment = { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null }; -export type ShopLimitFragment = { __typename: 'Shop', limits: { __typename: 'LimitInfo', currentUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null }, allowedUsage: { __typename: 'Limits', channels?: number | null, orders?: number | null, productVariants?: number | null, staffUsers?: number | null, warehouses?: number | null } } }; +export type PermissionGroupDeleteMutation = { __typename: 'Mutation', permissionGroupDelete: { __typename: 'PermissionGroupDelete', errors: Array<{ __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }> } | null }; -export type ShopFragment = { __typename: 'Shop', customerSetPasswordUrl: string | null, defaultMailSenderAddress: string | null, defaultMailSenderName: string | null, description: string | null, name: string, reserveStockDurationAnonymousUser: number | null, reserveStockDurationAuthenticatedUser: number | null, limitQuantityPerCheckout: number | null, enableAccountConfirmationByEmail: boolean | null, useLegacyUpdateWebhookEmission: boolean | null, preserveAllAddressFields: boolean, companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, domain: { __typename: 'Domain', host: string } }; +export type PermissionGroupCreateMutationVariables = Exact<{ + input: PermissionGroupCreateInput; +}>; -export type StaffMemberFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string }; -export type StaffMemberDetailsFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type PermissionGroupCreateMutation = { __typename: 'Mutation', permissionGroupCreate: { __typename: 'PermissionGroupCreate', errors: Array<{ __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }>, group: { __typename: 'Group', restrictedAccessToChannels: boolean, id: string, name: string, userCanManage: boolean, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null } | null } | null }; -export type StaffMemberAvatarFragment = { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null }; +export type PermissionGroupUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: PermissionGroupUpdateInput; +}>; -export type TaxedMoneyFragment = { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }; -export type CountryFragment = { __typename: 'CountryDisplay', country: string, code: string }; +export type PermissionGroupUpdateMutation = { __typename: 'Mutation', permissionGroupUpdate: { __typename: 'PermissionGroupUpdate', errors: Array<{ __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }>, group: { __typename: 'Group', restrictedAccessToChannels: boolean, id: string, name: string, userCanManage: boolean, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null } | null } | null }; -export type TaxConfigurationPerCountryFragment = { __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }; +export type PermissionGroupListQueryVariables = Exact<{ + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; +}>; -export type TaxConfigurationFragment = { __typename: 'TaxConfiguration', id: string, displayGrossPrices: boolean, pricesEnteredWithTax: boolean, chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, channel: { __typename: 'Channel', id: string, name: string }, countries: Array<{ __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }> }; -export type TaxCountryConfigurationFragment = { __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> }; +export type PermissionGroupListQuery = { __typename: 'Query', permissionGroups: { __typename: 'GroupCountableConnection', edges: Array<{ __typename: 'GroupCountableEdge', node: { __typename: 'Group', id: string, name: string, userCanManage: boolean, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type TaxRateFragment = { __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }; +export type PermissionGroupDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + userId: Scalars['ID']; +}>; -export type TaxClassBaseFragment = { __typename: 'TaxClass', id: string, name: string }; -export type TaxClassFragment = { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }; +export type PermissionGroupDetailsQuery = { __typename: 'Query', permissionGroup: { __typename: 'Group', restrictedAccessToChannels: boolean, id: string, name: string, userCanManage: boolean, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null } | null, user: { __typename: 'User', editableGroups: Array<{ __typename: 'Group', id: string }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, sourcePermissionGroups: Array<{ __typename: 'Group', id: string }> | null }> | null } | null }; -export type TimePeriodFragment = { __typename: 'TimePeriod', amount: number, type: TimePeriodTypeEnum }; +export type ProductTypeDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type AttributeValueTranslatableFragment = { __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; -export type CategoryTranslationFragment = { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null }; +export type ProductTypeDeleteMutation = { __typename: 'Mutation', productTypeDelete: { __typename: 'ProductTypeDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string } | null } | null }; -export type CollectionTranslationFragment = { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null }; +export type ProductTypeBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type ProductTranslationFragment = { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; -export type ProductVariantTranslationFragment = { __typename: 'ProductVariantTranslatableContent', name: string, productVariant: { __typename: 'ProductVariant', id: string } | null, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; +export type ProductTypeBulkDeleteMutation = { __typename: 'Mutation', productTypeBulkDelete: { __typename: 'ProductTypeBulkDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type SaleTranslationFragment = { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; +export type ProductTypeUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: ProductTypeInput; +}>; -export type VoucherTranslationFragment = { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; -export type ShippingMethodTranslationFragment = { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; +export type ProductTypeUpdateMutation = { __typename: 'Mutation', productTypeUpdate: { __typename: 'ProductTypeUpdate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type PageTranslationFragment = { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> }; +export type AssignProductAttributeMutationVariables = Exact<{ + id: Scalars['ID']; + operations: Array | ProductAttributeAssignInput; +}>; -export type PageTranslatableFragment = { __typename: 'PageTranslatableContent', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }; -export type AttributeChoicesTranslationFragment = { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> }; +export type AssignProductAttributeMutation = { __typename: 'Mutation', productAttributeAssign: { __typename: 'ProductAttributeAssign', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type AttributeTranslationFragment = { __typename: 'AttributeTranslatableContent', id: string, name: string, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null } | null }; +export type UnassignProductAttributeMutationVariables = Exact<{ + id: Scalars['ID']; + ids: Array | Scalars['ID']; +}>; -export type AttributeTranslationDetailsFragment = { __typename: 'AttributeTranslatableContent', translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, withChoices: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> } | null } | null }; -export type MenuItemTranslationFragment = { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null }; +export type UnassignProductAttributeMutation = { __typename: 'Mutation', productAttributeUnassign: { __typename: 'ProductAttributeUnassign', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type WarehouseFragment = { __typename: 'Warehouse', id: string, name: string }; +export type ProductTypeCreateMutationVariables = Exact<{ + input: ProductTypeInput; +}>; -export type WarehouseWithShippingFragment = { __typename: 'Warehouse', id: string, name: string, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; -export type WarehouseDetailsFragment = { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; +export type ProductTypeCreateMutation = { __typename: 'Mutation', productTypeCreate: { __typename: 'ProductTypeCreate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type WebhookFragment = { __typename: 'Webhook', id: string, name: string | null, isActive: boolean, app: { __typename: 'App', id: string, name: string | null } }; +export type ProductTypeAttributeReorderMutationVariables = Exact<{ + move: ReorderInput; + productTypeId: Scalars['ID']; + type: ProductAttributeType; +}>; -export type WebhookDetailsFragment = { __typename: 'Webhook', secretKey: string | null, targetUrl: string, subscriptionQuery: string | null, customHeaders: any | null, id: string, name: string | null, isActive: boolean, syncEvents: Array<{ __typename: 'WebhookEventSync', eventType: WebhookEventTypeSyncEnum }>, asyncEvents: Array<{ __typename: 'WebhookEventAsync', eventType: WebhookEventTypeAsyncEnum }>, app: { __typename: 'App', id: string, name: string | null } }; -export type WeightFragment = { __typename: 'Weight', unit: WeightUnitsEnum, value: number }; +export type ProductTypeAttributeReorderMutation = { __typename: 'Mutation', productTypeReorderAttributes: { __typename: 'ProductTypeReorderAttributes', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type GiftCardBulkCreateMutationVariables = Exact<{ - input: GiftCardBulkCreateInput; +export type ProductAttributeAssignmentUpdateMutationVariables = Exact<{ + operations: Array | ProductAttributeAssignmentUpdateInput; + productTypeId: Scalars['ID']; }>; -export type GiftCardBulkCreateMutation = { __typename: 'Mutation', giftCardBulkCreate: { __typename: 'GiftCardBulkCreate', giftCards: Array<{ __typename: 'GiftCard', id: string }>, errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; +export type ProductAttributeAssignmentUpdateMutation = { __typename: 'Mutation', productAttributeAssignmentUpdate: { __typename: 'ProductAttributeAssignmentUpdate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null, attributes: Array | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type GiftCardCreateMutationVariables = Exact<{ - input: GiftCardCreateInput; +export type ProductTypeListQueryVariables = Exact<{ + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; }>; -export type GiftCardCreateMutation = { __typename: 'Mutation', giftCardCreate: { __typename: 'GiftCardCreate', giftCard: { __typename: 'GiftCard', code: string } | null, errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; +export type ProductTypeListQuery = { __typename: 'Query', productTypes: { __typename: 'ProductTypeCountableConnection', edges: Array<{ __typename: 'ProductTypeCountableEdge', node: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, taxClass: { __typename: 'TaxClass', id: string, name: string } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ChannelCurrenciesQueryVariables = Exact<{ [key: string]: never; }>; +export type ProductTypeDetailsQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type ChannelCurrenciesQuery = { __typename: 'Query', shop: { __typename: 'Shop', channelCurrencies: Array } }; +export type ProductTypeDetailsQuery = { __typename: 'Query', productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null } }; -export type ExportGiftCardsMutationVariables = Exact<{ - input: ExportGiftCardsInput; -}>; +export type ProductTypeCreateDataQueryVariables = Exact<{ [key: string]: never; }>; -export type ExportGiftCardsMutation = { __typename: 'Mutation', exportGiftCards: { __typename: 'ExportGiftCards', errors: Array<{ __typename: 'ExportError', code: ExportErrorCode, field: string | null, message: string | null }>, exportFile: { __typename: 'ExportFile', id: string } | null } | null }; +export type ProductTypeCreateDataQuery = { __typename: 'Query', shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null } }; -export type GiftCardSettingsUpdateMutationVariables = Exact<{ - input: GiftCardSettingsUpdateInput; +export type ProductMediaCreateMutationVariables = Exact<{ + product: Scalars['ID']; + image?: InputMaybe; + alt?: InputMaybe; + mediaUrl?: InputMaybe; }>; -export type GiftCardSettingsUpdateMutation = { __typename: 'Mutation', giftCardSettingsUpdate: { __typename: 'GiftCardSettingsUpdate', errors: Array<{ __typename: 'GiftCardSettingsError', code: GiftCardSettingsErrorCode, field: string | null, message: string | null }>, giftCardSettings: { __typename: 'GiftCardSettings', expiryType: GiftCardSettingsExpiryTypeEnum, expiryPeriod: { __typename: 'TimePeriod', type: TimePeriodTypeEnum, amount: number } | null } | null } | null }; +export type ProductMediaCreateMutation = { __typename: 'Mutation', productMediaCreate: { __typename: 'ProductMediaCreate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null } | null } | null }; -export type GiftCardSettingsQueryVariables = Exact<{ [key: string]: never; }>; +export type ProductDeleteMutationVariables = Exact<{ + id: Scalars['ID']; +}>; -export type GiftCardSettingsQuery = { __typename: 'Query', giftCardSettings: { __typename: 'GiftCardSettings', expiryType: GiftCardSettingsExpiryTypeEnum, expiryPeriod: { __typename: 'TimePeriod', type: TimePeriodTypeEnum, amount: number } | null } }; +export type ProductDeleteMutation = { __typename: 'Mutation', productDelete: { __typename: 'ProductDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string } | null } | null }; -export type GiftCardResendMutationVariables = Exact<{ - input: GiftCardResendInput; +export type ProductMediaReorderMutationVariables = Exact<{ + productId: Scalars['ID']; + mediaIds: Array | Scalars['ID']; }>; -export type GiftCardResendMutation = { __typename: 'Mutation', giftCardResend: { __typename: 'GiftCardResend', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductMediaReorderMutation = { __typename: 'Mutation', productMediaReorder: { __typename: 'ProductMediaReorder', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string }> | null } | null } | null }; -export type GiftCardActivateMutationVariables = Exact<{ - id: Scalars['ID']; +export type ProductVariantSetDefaultMutationVariables = Exact<{ + productId: Scalars['ID']; + variantId: Scalars['ID']; }>; -export type GiftCardActivateMutation = { __typename: 'Mutation', giftCardActivate: { __typename: 'GiftCardActivate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductVariantSetDefaultMutation = { __typename: 'Mutation', productVariantSetDefault: { __typename: 'ProductVariantSetDefault', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, defaultVariant: { __typename: 'ProductVariant', id: string, name: string } | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string }> | null } | null } | null }; -export type GiftCardDeactivateMutationVariables = Exact<{ +export type ProductUpdateMutationVariables = Exact<{ id: Scalars['ID']; + input: ProductInput; }>; -export type GiftCardDeactivateMutation = { __typename: 'Mutation', giftCardDeactivate: { __typename: 'GiftCardDeactivate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductUpdateMutation = { __typename: 'Mutation', productUpdate: { __typename: 'ProductUpdate', errors: Array<{ __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type GiftCardUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: GiftCardUpdateInput; - showCreatedBy: Scalars['Boolean']; +export type ProductCreateMutationVariables = Exact<{ + input: ProductCreateInput; }>; -export type GiftCardUpdateMutation = { __typename: 'Mutation', giftCardUpdate: { __typename: 'GiftCardUpdate', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy?: { __typename: 'User', id: string, firstName: string, lastName: string } | null, events: Array<{ __typename: 'GiftCardEvent', expiryDate: string | null, oldExpiryDate: string | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }>, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductCreateMutation = { __typename: 'Mutation', productCreate: { __typename: 'ProductCreate', errors: Array<{ __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string } | null } | null }; -export type GiftCardAddNoteMutationVariables = Exact<{ +export type VariantDeleteMutationVariables = Exact<{ id: Scalars['ID']; - input: GiftCardAddNoteInput; }>; -export type GiftCardAddNoteMutation = { __typename: 'Mutation', giftCardAddNote: { __typename: 'GiftCardAddNote', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }>, giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, event: { __typename: 'GiftCardEvent', expiryDate: string | null, oldExpiryDate: string | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null } | null } | null }; +export type VariantDeleteMutation = { __typename: 'Mutation', productVariantDelete: { __typename: 'ProductVariantDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string } | null } | null }; -export type GiftCardBulkActivateMutationVariables = Exact<{ - ids: Array | Scalars['ID']; +export type VariantUpdateMutationVariables = Exact<{ + addStocks: Array | StockInput; + removeStocks: Array | Scalars['ID']; + id: Scalars['ID']; + attributes?: InputMaybe | AttributeValueInput>; + sku?: InputMaybe; + quantityLimitPerCustomer?: InputMaybe; + trackInventory: Scalars['Boolean']; + stocks: Array | StockInput; + preorder?: InputMaybe; + weight?: InputMaybe; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; + name: Scalars['String']; }>; -export type GiftCardBulkActivateMutation = { __typename: 'Mutation', giftCardBulkActivate: { __typename: 'GiftCardBulkActivate', count: number, errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; +export type VariantUpdateMutation = { __typename: 'Mutation', productVariantStocksDelete: { __typename: 'ProductVariantStocksDelete', errors: Array<{ __typename: 'StockError', code: StockErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null } | null, productVariantStocksCreate: { __typename: 'ProductVariantStocksCreate', errors: Array<{ __typename: 'BulkStockError', code: ProductErrorCode, field: string | null, index: number | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null } | null, productVariantStocksUpdate: { __typename: 'ProductVariantStocksUpdate', errors: Array<{ __typename: 'BulkStockError', code: ProductErrorCode, field: string | null, index: number | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null, productVariantUpdate: { __typename: 'ProductVariantUpdate', errors: Array<{ __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type GiftCardBulkDeactivateMutationVariables = Exact<{ - ids: Array | Scalars['ID']; +export type VariantCreateMutationVariables = Exact<{ + input: ProductVariantCreateInput; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; }>; -export type GiftCardBulkDeactivateMutation = { __typename: 'Mutation', giftCardBulkDeactivate: { __typename: 'GiftCardBulkDeactivate', count: number, errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; +export type VariantCreateMutation = { __typename: 'Mutation', productVariantCreate: { __typename: 'ProductVariantCreate', errors: Array<{ __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type GiftCardDetailsQueryVariables = Exact<{ +export type ProductMediaDeleteMutationVariables = Exact<{ id: Scalars['ID']; - canSeeApp: Scalars['Boolean']; - canSeeUser: Scalars['Boolean']; }>; -export type GiftCardDetailsQuery = { __typename: 'Query', giftCard: { __typename: 'GiftCard', last4CodeChars: string, boughtInChannel: string | null, usedByEmail: string | null, createdByEmail: string | null, created: any, expiryDate: string | null, lastUsedOn: any | null, isActive: boolean, id: string, events: Array<{ __typename: 'GiftCardEvent', expiryDate: string | null, oldExpiryDate: string | null, id: string, date: any | null, type: GiftCardEventsEnum | null, message: string | null, email: string | null, orderId: string | null, orderNumber: string | null, tags: Array | null, oldTags: Array | null, app?: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, user?: { __typename: 'User', email: string, id: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }>, createdBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, product: { __typename: 'Product', id: string, name: string } | null, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, initialBalance: { __typename: 'Money', amount: number, currency: string }, currentBalance: { __typename: 'Money', amount: number, currency: string }, tags: Array<{ __typename: 'GiftCardTag', name: string }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; - -export type GiftCardCurrenciesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GiftCardCurrenciesQuery = { __typename: 'Query', giftCardCurrencies: Array }; +export type ProductMediaDeleteMutation = { __typename: 'Mutation', productMediaDelete: { __typename: 'ProductMediaDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string }> | null } | null } | null }; -export type DeleteGiftCardMutationVariables = Exact<{ +export type ProductMediaUpdateMutationVariables = Exact<{ id: Scalars['ID']; + alt: Scalars['String']; }>; -export type DeleteGiftCardMutation = { __typename: 'Mutation', giftCardDelete: { __typename: 'GiftCardDelete', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; +export type ProductMediaUpdateMutation = { __typename: 'Mutation', productMediaUpdate: { __typename: 'ProductMediaUpdate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null } | null } | null }; -export type BulkDeleteGiftCardMutationVariables = Exact<{ - ids: Array | Scalars['ID']; +export type VariantMediaAssignMutationVariables = Exact<{ + variantId: Scalars['ID']; + mediaId: Scalars['ID']; }>; -export type BulkDeleteGiftCardMutation = { __typename: 'Mutation', giftCardBulkDelete: { __typename: 'GiftCardBulkDelete', errors: Array<{ __typename: 'GiftCardError', code: GiftCardErrorCode, field: string | null, message: string | null }> } | null }; +export type VariantMediaAssignMutation = { __typename: 'Mutation', variantMediaAssign: { __typename: 'VariantMediaAssign', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null }> | null } } | null } | null }; -export type GiftCardListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; +export type VariantMediaUnassignMutationVariables = Exact<{ + variantId: Scalars['ID']; + mediaId: Scalars['ID']; }>; -export type GiftCardListQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'GiftCardCountableEdge', node: { __typename: 'GiftCard', id: string, usedByEmail: string | null, last4CodeChars: string, isActive: boolean, expiryDate: string | null, product: { __typename: 'Product', id: string, name: string } | null, tags: Array<{ __typename: 'GiftCardTag', name: string }>, usedBy: { __typename: 'User', id: string, firstName: string, lastName: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type VariantMediaUnassignMutation = { __typename: 'Mutation', variantMediaUnassign: { __typename: 'VariantMediaUnassign', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null }> | null } } | null } | null }; -export type GiftCardTotalCountQueryVariables = Exact<{ [key: string]: never; }>; +export type ProductBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; +}>; -export type GiftCardTotalCountQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', totalCount: number | null } | null }; +export type ProductBulkDeleteMutation = { __typename: 'Mutation', productBulkDelete: { __typename: 'ProductBulkDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type GiftCardProductsCountQueryVariables = Exact<{ - channel: Scalars['String']; +export type ProductVariantBulkCreateMutationVariables = Exact<{ + id: Scalars['ID']; + inputs: Array | ProductVariantBulkCreateInput; + errorPolicy?: InputMaybe; }>; -export type GiftCardProductsCountQuery = { __typename: 'Query', giftCardProductTypes: { __typename: 'ProductTypeCountableConnection', totalCount: number | null } | null, giftCardProducts: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; +export type ProductVariantBulkCreateMutation = { __typename: 'Mutation', productVariantBulkCreate: { __typename: 'ProductVariantBulkCreate', errors: Array<{ __typename: 'BulkProductError', field: string | null, code: ProductErrorCode, index: number | null, channels: Array | null, message: string | null }>, results: Array<{ __typename: 'ProductVariantBulkResult', errors: Array<{ __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }> | null, productVariant: { __typename: 'ProductVariant', id: string, name: string } | null }>, productVariants: Array<{ __typename: 'ProductVariant', id: string, name: string }> } | null }; -export type CustomerGiftCardListQueryVariables = Exact<{ - first?: InputMaybe; - filter?: InputMaybe; +export type ProductVariantBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; }>; -export type CustomerGiftCardListQuery = { __typename: 'Query', giftCards: { __typename: 'GiftCardCountableConnection', edges: Array<{ __typename: 'GiftCardCountableEdge', node: { __typename: 'GiftCard', id: string, last4CodeChars: string, expiryDate: string | null, isActive: boolean, currentBalance: { __typename: 'Money', amount: number, currency: string } } }> } | null }; +export type ProductVariantBulkDeleteMutation = { __typename: 'Mutation', productVariantBulkDelete: { __typename: 'ProductVariantBulkDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type PageTypeUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: PageTypeUpdateInput; +export type ProductExportMutationVariables = Exact<{ + input: ExportProductsInput; }>; -export type PageTypeUpdateMutation = { __typename: 'Mutation', pageTypeUpdate: { __typename: 'PageTypeUpdate', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductExportMutation = { __typename: 'Mutation', exportProducts: { __typename: 'ExportProducts', exportFile: { __typename: 'ExportFile', id: string, status: JobStatusEnum, url: string | null } | null, errors: Array<{ __typename: 'ExportError', code: ExportErrorCode, field: string | null, message: string | null }> } | null }; -export type PageTypeCreateMutationVariables = Exact<{ - input: PageTypeCreateInput; +export type ProductChannelListingUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: ProductChannelListingUpdateInput; }>; -export type PageTypeCreateMutation = { __typename: 'Mutation', pageTypeCreate: { __typename: 'PageTypeCreate', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductChannelListingUpdateMutation = { __typename: 'Mutation', productChannelListingUpdate: { __typename: 'ProductChannelListingUpdate', errors: Array<{ __typename: 'ProductChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }>, product: { __typename: 'Product', id: string, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } | null } | null }; -export type AssignPageAttributeMutationVariables = Exact<{ - id: Scalars['ID']; - ids: Array | Scalars['ID']; +export type ProductVariantReorderMutationVariables = Exact<{ + move: ReorderInput; + productId: Scalars['ID']; }>; -export type AssignPageAttributeMutation = { __typename: 'Mutation', pageAttributeAssign: { __typename: 'PageAttributeAssign', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductVariantReorderMutation = { __typename: 'Mutation', productVariantReorder: { __typename: 'ProductVariantReorder', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, variants: Array<{ __typename: 'ProductVariant', id: string }> | null } | null } | null }; -export type UnassignPageAttributeMutationVariables = Exact<{ +export type ProductVariantChannelListingUpdateMutationVariables = Exact<{ id: Scalars['ID']; - ids: Array | Scalars['ID']; + input: Array | ProductVariantChannelListingAddInput; }>; -export type UnassignPageAttributeMutation = { __typename: 'Mutation', pageAttributeUnassign: { __typename: 'PageAttributeUnassign', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductVariantChannelListingUpdateMutation = { __typename: 'Mutation', productVariantChannelListingUpdate: { __typename: 'ProductVariantChannelListingUpdate', variant: { __typename: 'ProductVariant', id: string, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, product: { __typename: 'Product', id: string, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } | null, errors: Array<{ __typename: 'ProductChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }> } | null }; -export type PageTypeDeleteMutationVariables = Exact<{ +export type ProductVariantPreorderDeactivateMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type PageTypeDeleteMutation = { __typename: 'Mutation', pageTypeDelete: { __typename: 'PageTypeDelete', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string } | null } | null }; +export type ProductVariantPreorderDeactivateMutation = { __typename: 'Mutation', productVariantPreorderDeactivate: { __typename: 'ProductVariantPreorderDeactivate', productVariant: { __typename: 'ProductVariant', id: string, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null } | null, errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; -export type PageTypeBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; +export type ProductVariantBulkUpdateMutationVariables = Exact<{ + product: Scalars['ID']; + input: Array | ProductVariantBulkUpdateInput; + errorPolicy?: InputMaybe; }>; -export type PageTypeBulkDeleteMutation = { __typename: 'Mutation', pageTypeBulkDelete: { __typename: 'PageTypeBulkDelete', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }> } | null }; +export type ProductVariantBulkUpdateMutation = { __typename: 'Mutation', productVariantBulkUpdate: { __typename: 'ProductVariantBulkUpdate', errors: Array<{ __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }>, results: Array<{ __typename: 'ProductVariantBulkResult', errors: Array<{ __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }> | null }> } | null }; -export type PageTypeAttributeReorderMutationVariables = Exact<{ - move: ReorderInput; - pageTypeId: Scalars['ID']; +export type ProductListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + search?: InputMaybe; + where?: InputMaybe; + channel?: InputMaybe; + sort?: InputMaybe; + hasChannel: Scalars['Boolean']; + includeCategories: Scalars['Boolean']; + includeCollections: Scalars['Boolean']; }>; -export type PageTypeAttributeReorderMutation = { __typename: 'Mutation', pageTypeReorderAttributes: { __typename: 'PageTypeReorderAttributes', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }>, pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductListQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', updatedAt: any, created: any, description: any | null, id: string, name: string, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string }, values: Array<{ __typename: 'AttributeValue', id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, category?: { __typename: 'Category', id: string, name: string } | null, collections?: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, pricing?: { __typename: 'ProductPricingInfo', priceRange: { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null } | null } | null, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; -export type PageTypeListQueryVariables = Exact<{ - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; +export type ProductCountQueryVariables = Exact<{ + filter?: InputMaybe; + channel?: InputMaybe; }>; -export type PageTypeListQuery = { __typename: 'Query', pageTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type ProductCountQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type PageTypeDetailsQueryVariables = Exact<{ +export type ProductDetailsQueryVariables = Exact<{ id: Scalars['ID']; + channel?: InputMaybe; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; + searchValues?: InputMaybe; }>; -export type PageTypeDetailsQuery = { __typename: 'Query', pageType: { __typename: 'PageType', id: string, name: string, hasPages: boolean | null, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type ProductDetailsQuery = { __typename: 'Query', product: { __typename: 'Product', name: string, slug: string, description: any | null, seoTitle: string | null, seoDescription: string | null, rating: number | null, isAvailable: boolean | null, id: string, category: { __typename: 'Category', id: string, name: string, level: number, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null } | null, defaultVariant: { __typename: 'ProductVariant', id: string } | null, collections: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string, slug: string } }> | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, sku: string | null, name: string, trackInventory: boolean, quantityLimitPerCustomer: number | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', url: string }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null }> | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, isShippingRequired: boolean, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, selectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, nonSelectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type PageCreateMutationVariables = Exact<{ - input: PageCreateInput; +export type ProductTypeQueryVariables = Exact<{ + id: Scalars['ID']; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; + searchValues?: InputMaybe; }>; -export type PageCreateMutation = { __typename: 'Mutation', pageCreate: { __typename: 'PageCreate', errors: Array<{ __typename: 'PageError', attributes: Array | null, code: PageErrorCode, field: string | null, message: string | null }>, page: { __typename: 'Page', id: string } | null } | null }; +export type ProductTypeQuery = { __typename: 'Query', productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, productAttributes: Array<{ __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null } | null }; -export type PageUpdateMutationVariables = Exact<{ +export type ProductVariantDetailsQueryVariables = Exact<{ id: Scalars['ID']; - input: PageInput; firstValues?: InputMaybe; afterValues?: InputMaybe; lastValues?: InputMaybe; beforeValues?: InputMaybe; - searchValues?: InputMaybe; }>; -export type PageUpdateMutation = { __typename: 'Mutation', pageUpdate: { __typename: 'PageUpdate', errors: Array<{ __typename: 'PageError', attributes: Array | null, code: PageErrorCode, field: string | null, message: string | null }>, page: { __typename: 'Page', content: any | null, seoTitle: string | null, seoDescription: string | null, publishedAt: any | null, id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ProductVariantDetailsQuery = { __typename: 'Query', productVariant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type PageRemoveMutationVariables = Exact<{ +export type ProductVariantCreateDataQueryVariables = Exact<{ id: Scalars['ID']; + firstValues?: InputMaybe; + afterValues?: InputMaybe; + lastValues?: InputMaybe; + beforeValues?: InputMaybe; }>; -export type PageRemoveMutation = { __typename: 'Mutation', pageDelete: { __typename: 'PageDelete', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }> } | null }; +export type ProductVariantCreateDataQuery = { __typename: 'Query', product: { __typename: 'Product', id: string, name: string, media: Array<{ __typename: 'ProductMedia', id: string, sortOrder: number | null, url: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, selectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, nonSelectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, thumbnail: { __typename: 'Image', url: string } | null, defaultVariant: { __typename: 'ProductVariant', id: string } | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType }> | null }> | null } | null }; -export type PageBulkPublishMutationVariables = Exact<{ - ids: Array | Scalars['ID']; - isPublished: Scalars['Boolean']; +export type ProductMediaByIdQueryVariables = Exact<{ + productId: Scalars['ID']; + mediaId: Scalars['ID']; }>; -export type PageBulkPublishMutation = { __typename: 'Mutation', pageBulkPublish: { __typename: 'PageBulkPublish', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }> } | null }; +export type ProductMediaByIdQuery = { __typename: 'Query', product: { __typename: 'Product', id: string, name: string, mainImage: { __typename: 'ProductMedia', id: string, alt: string, url: string, type: ProductMediaType, oembedData: any } | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, alt: string, type: ProductMediaType, oembedData: any }> | null } | null }; -export type PageBulkRemoveMutationVariables = Exact<{ +export type GridAttributesQueryVariables = Exact<{ ids: Array | Scalars['ID']; + hasAttributes: Scalars['Boolean']; + type: AttributeTypeEnum; }>; -export type PageBulkRemoveMutation = { __typename: 'Mutation', pageBulkDelete: { __typename: 'PageBulkDelete', errors: Array<{ __typename: 'PageError', code: PageErrorCode, field: string | null, message: string | null }> } | null }; +export type GridAttributesQuery = { __typename: 'Query', availableAttributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, selectedAttributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }> } | null }; -export type PageListQueryVariables = Exact<{ - first?: InputMaybe; +export type AvailableColumnAttributesQueryVariables = Exact<{ + search: Scalars['String']; + type: AttributeTypeEnum; + before?: InputMaybe; after?: InputMaybe; + first?: InputMaybe; last?: InputMaybe; - before?: InputMaybe; - sort?: InputMaybe; - filter?: InputMaybe; }>; -export type PageListQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string } } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; +export type AvailableColumnAttributesQuery = { __typename: 'Query', attributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type PageDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; - searchValues?: InputMaybe; +export type GridWarehousesQueryVariables = Exact<{ + ids: Array | Scalars['ID']; + hasWarehouses: Scalars['Boolean']; }>; -export type PageDetailsQuery = { __typename: 'Query', page: { __typename: 'Page', content: any | null, seoTitle: string | null, seoDescription: string | null, publishedAt: any | null, id: string, title: string, slug: string, isPublished: boolean, pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type GridWarehousesQuery = { __typename: 'Query', availableWarehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, selectedWarehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string } }> } | null }; -export type PageTypeQueryVariables = Exact<{ - id: Scalars['ID']; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; - searchValues?: InputMaybe; +export type ChannelDiagnosticsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ChannelDiagnosticsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string, isActive: boolean, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }> }> | null, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string, channels: Array<{ __typename: 'Channel', id: string }>, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> } }> } | null }; + +export type SetRefundReasonTypeMutationVariables = Exact<{ + modelTypeId: Scalars['ID']; +}>; + + +export type SetRefundReasonTypeMutation = { __typename: 'Mutation', refundSettingsUpdate: { __typename: 'RefundSettingsUpdate', refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null }, errors: Array<{ __typename: 'RefundSettingsUpdateError', message: string | null, code: RefundSettingsErrorCode }> } | null }; + +export type ClearRefundReasonTypeMutationVariables = Exact<{ [key: string]: never; }>; + + +export type ClearRefundReasonTypeMutation = { __typename: 'Mutation', refundReasonReferenceClear: { __typename: 'RefundReasonReferenceTypeClear', errors: Array<{ __typename: 'RefundReasonReferenceTypeClearError', message: string | null, code: RefundSettingsErrorCode }>, refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null } } | null }; + +export type RefundsSettingsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type RefundsSettingsQuery = { __typename: 'Query', refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null } }; + +export type ModelTypesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ModelTypesQuery = { __typename: 'Query', pageTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string } }> } | null }; + +export type GlobalSearchQueryVariables = Exact<{ + query: Scalars['String']; + includeOrders: Scalars['Boolean']; + includeCategories: Scalars['Boolean']; + includeCollections: Scalars['Boolean']; + includeProducts: Scalars['Boolean']; + includeVariants: Scalars['Boolean']; + includeModels: Scalars['Boolean']; + includeModelTypes: Scalars['Boolean']; }>; -export type PageTypeQuery = { __typename: 'Query', pageType: { __typename: 'PageType', id: string, name: string, attributes: Array<{ __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null } | null }; +export type GlobalSearchQuery = { __typename: 'Query', orders?: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, number: string, status: OrderStatus, updatedAt: any, paymentStatus: PaymentChargeStatusEnum, chargeStatus: OrderChargeStatusEnum, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } }> } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, updatedAt: any, level: number, backgroundImage: { __typename: 'Image', url: string, alt: string | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null } }> } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, backgroundImage: { __typename: 'Image', url: string, alt: string | null } | null } }> } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, updatedAt: any, category: { __typename: 'Category', name: string } | null, thumbnail: { __typename: 'Image', alt: string | null, url: string } | null } }> } | null, productVariants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, updatedAt: any, media: Array<{ __typename: 'ProductMedia', alt: string, url: string }> | null, product: { __typename: 'Product', id: string, name: string, category: { __typename: 'Category', name: string } | null } } }> } | null, models: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string, publishedAt: any | null, pageType: { __typename: 'PageType', name: string } } }> } | null, modelTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string } }> } | null }; -export type PageCountQueryVariables = Exact<{ - filter?: InputMaybe; +export type SearchAttributesQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type PageCountQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', totalCount: number | null } | null }; +export type SearchAttributesQuery = { __typename: 'Query', search: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ModelsOfTypeQueryVariables = Exact<{ - pageTypeId: Scalars['ID']; +export type SearchAttributeValuesQueryVariables = Exact<{ + id?: InputMaybe; + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type ModelsOfTypeQuery = { __typename: 'Query', pages: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string } }> } | null }; +export type SearchAttributeValuesQuery = { __typename: 'Query', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', edges: Array<{ __typename: 'AttributeValueCountableEdge', node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; -export type OrderCancelMutationVariables = Exact<{ - id: Scalars['ID']; +export type SearchAvailableInGridAttributesQueryVariables = Exact<{ + first: Scalars['Int']; + after?: InputMaybe; + query: Scalars['String']; }>; -export type OrderCancelMutation = { __typename: 'Mutation', orderCancel: { __typename: 'OrderCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchAvailableInGridAttributesQuery = { __typename: 'Query', availableInGrid: { __typename: 'AttributeCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderDiscountAddMutationVariables = Exact<{ - input: OrderDiscountCommonInput; - orderId: Scalars['ID']; +export type SearchAvailablePageAttributesQueryVariables = Exact<{ + id: Scalars['ID']; + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type OrderDiscountAddMutation = { __typename: 'Mutation', orderDiscountAdd: { __typename: 'OrderDiscountAdd', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchAvailablePageAttributesQuery = { __typename: 'Query', pageType: { __typename: 'PageType', id: string, availableAttributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; -export type OrderDiscountDeleteMutationVariables = Exact<{ - discountId: Scalars['ID']; +export type SearchAvailableProductAttributesQueryVariables = Exact<{ + id: Scalars['ID']; + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type OrderDiscountDeleteMutation = { __typename: 'Mutation', orderDiscountDelete: { __typename: 'OrderDiscountDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchAvailableProductAttributesQuery = { __typename: 'Query', productType: { __typename: 'ProductType', id: string, availableAttributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; -export type OrderLineDiscountRemoveMutationVariables = Exact<{ - orderLineId: Scalars['ID']; +export type SearchCategoriesQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type OrderLineDiscountRemoveMutation = { __typename: 'Mutation', orderLineDiscountRemove: { __typename: 'OrderLineDiscountRemove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchCategoriesQuery = { __typename: 'Query', search: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, level: number, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderLineDiscountUpdateMutationVariables = Exact<{ - input: OrderDiscountCommonInput; - orderLineId: Scalars['ID']; +export type SearchCategoriesWithTotalProductsQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + filter?: InputMaybe; }>; -export type OrderLineDiscountUpdateMutation = { __typename: 'Mutation', orderLineDiscountUpdate: { __typename: 'OrderLineDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchCategoriesWithTotalProductsQuery = { __typename: 'Query', search: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderDiscountUpdateMutationVariables = Exact<{ - input: OrderDiscountCommonInput; - discountId: Scalars['ID']; +export type SearchCollectionsQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; + channel?: InputMaybe; }>; -export type OrderDiscountUpdateMutation = { __typename: 'Mutation', orderDiscountUpdate: { __typename: 'OrderDiscountUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchCollectionsQuery = { __typename: 'Query', search: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderDraftCancelMutationVariables = Exact<{ - id: Scalars['ID']; +export type SearchCollectionsWithTotalProductsQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; + channel?: InputMaybe; }>; -export type OrderDraftCancelMutation = { __typename: 'Mutation', draftOrderDelete: { __typename: 'DraftOrderDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchCollectionsWithTotalProductsQuery = { __typename: 'Query', search: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderDraftBulkCancelMutationVariables = Exact<{ - ids: Array | Scalars['ID']; +export type SearchCustomersQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type OrderDraftBulkCancelMutation = { __typename: 'Mutation', draftOrderBulkDelete: { __typename: 'DraftOrderBulkDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }> } | null }; +export type SearchCustomersQuery = { __typename: 'Query', search: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderConfirmMutationVariables = Exact<{ - id: Scalars['ID']; +export type SearchGiftCardTagsQueryVariables = Exact<{ + query: Scalars['String']; + first: Scalars['Int']; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type OrderConfirmMutation = { __typename: 'Mutation', orderConfirm: { __typename: 'OrderConfirm', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchGiftCardTagsQuery = { __typename: 'Query', search: { __typename: 'GiftCardTagCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'GiftCardTagCountableEdge', node: { __typename: 'GiftCardTag', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderDraftFinalizeMutationVariables = Exact<{ - id: Scalars['ID']; +export type SearchOrderVariantQueryVariables = Exact<{ + channel: Scalars['String']; + first: Scalars['Int']; + query: Scalars['String']; + after?: InputMaybe; + address?: InputMaybe; + isPublished?: InputMaybe; + stockAvailability?: InputMaybe; }>; -export type OrderDraftFinalizeMutation = { __typename: 'Mutation', draftOrderComplete: { __typename: 'DraftOrderComplete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchOrderVariantQuery = { __typename: 'Query', search: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, pricing: { __typename: 'VariantPricingInfo', onSale: boolean | null, priceUndiscounted: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } | null, price: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } | null } | null }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type FulfillmentReturnProductsMutationVariables = Exact<{ - id: Scalars['ID']; - input: OrderReturnProductsInput; +export type SearchPagesQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; + where?: InputMaybe; }>; -export type FulfillmentReturnProductsMutation = { __typename: 'Mutation', orderFulfillmentReturnProducts: { __typename: 'FulfillmentReturnProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, replaceOrder: { __typename: 'Order', id: string } | null } | null }; +export type SearchPagesQuery = { __typename: 'Query', search: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderRefundMutationVariables = Exact<{ - id: Scalars['ID']; - amount: Scalars['PositiveDecimal']; +export type SearchPageTypesQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type OrderRefundMutation = { __typename: 'Mutation', orderRefund: { __typename: 'OrderRefund', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchPageTypesQuery = { __typename: 'Query', search: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderFulfillmentRefundProductsMutationVariables = Exact<{ - input: OrderRefundProductsInput; - order: Scalars['ID']; +export type SearchPermissionGroupsQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type OrderFulfillmentRefundProductsMutation = { __typename: 'Mutation', orderFulfillmentRefundProducts: { __typename: 'FulfillmentRefundProducts', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, fulfillment: { __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchPermissionGroupsQuery = { __typename: 'Query', search: { __typename: 'GroupCountableConnection', edges: Array<{ __typename: 'GroupCountableEdge', node: { __typename: 'Group', id: string, name: string, userCanManage: boolean } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderVoidMutationVariables = Exact<{ - id: Scalars['ID']; +export type SearchProductsQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; + channel?: InputMaybe; + where?: InputMaybe; }>; -export type OrderVoidMutation = { __typename: 'Mutation', orderVoid: { __typename: 'OrderVoid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchProductsQuery = { __typename: 'Query', search: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string } }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', channel: { __typename: 'Channel', id: string, isActive: boolean, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null }> | null }> | null, collections: Array<{ __typename: 'Collection', id: string }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderMarkAsPaidMutationVariables = Exact<{ - id: Scalars['ID']; - transactionReference?: InputMaybe; +export type SearchProductTypesQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type OrderMarkAsPaidMutation = { __typename: 'Mutation', orderMarkAsPaid: { __typename: 'OrderMarkAsPaid', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchProductTypesQuery = { __typename: 'Query', search: { __typename: 'ProductTypeCountableConnection', edges: Array<{ __typename: 'ProductTypeCountableEdge', node: { __typename: 'ProductType', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderCaptureMutationVariables = Exact<{ - id: Scalars['ID']; - amount: Scalars['PositiveDecimal']; +export type SearchShippingZonesQueryVariables = Exact<{ + query: Scalars['String']; + first: Scalars['Int']; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type OrderCaptureMutation = { __typename: 'Mutation', orderCapture: { __typename: 'OrderCapture', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchShippingZonesQuery = { __typename: 'Query', search: { __typename: 'ShippingZoneCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderFulfillmentUpdateTrackingMutationVariables = Exact<{ - id: Scalars['ID']; - input: FulfillmentUpdateTrackingInput; +export type SearchStaffMembersQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; }>; -export type OrderFulfillmentUpdateTrackingMutation = { __typename: 'Mutation', orderFulfillmentUpdateTracking: { __typename: 'FulfillmentUpdateTracking', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchStaffMembersQuery = { __typename: 'Query', search: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, isActive: boolean, avatar: { __typename: 'Image', alt: string | null, url: string } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderFulfillmentApproveMutationVariables = Exact<{ - id: Scalars['ID']; - notifyCustomer: Scalars['Boolean']; - allowStockToBeExceeded?: InputMaybe; +export type SearchVariantsQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; + channel?: InputMaybe; }>; -export type OrderFulfillmentApproveMutation = { __typename: 'Mutation', orderFulfillmentApprove: { __typename: 'FulfillmentApprove', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchVariantsQuery = { __typename: 'Query', search: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderFulfillmentCancelMutationVariables = Exact<{ - id: Scalars['ID']; - input: FulfillmentCancelInput; +export type SearchVariantsWithProductDataQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; + channel?: InputMaybe; }>; -export type OrderFulfillmentCancelMutation = { __typename: 'Mutation', orderFulfillmentCancel: { __typename: 'FulfillmentCancel', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type SearchVariantsWithProductDataQuery = { __typename: 'Query', search: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', name: string } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderNoteAddMutationVariables = Exact<{ - order: Scalars['ID']; - input: OrderNoteInput; +export type SearchWarehousesQueryVariables = Exact<{ + after?: InputMaybe; + first: Scalars['Int']; + query: Scalars['String']; + channnelsId?: InputMaybe | Scalars['ID']>; }>; -export type OrderNoteAddMutation = { __typename: 'Mutation', orderNoteAdd: { __typename: 'OrderNoteAdd', errors: Array<{ __typename: 'OrderNoteAddError', code: OrderNoteAddErrorCode | null, field: string | null, message: string | null }>, order: { __typename: 'Order', id: string, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }> } | null } | null }; +export type SearchWarehousesQuery = { __typename: 'Query', search: { __typename: 'WarehouseCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderNoteUpdateMutationVariables = Exact<{ - order: Scalars['ID']; - input: OrderNoteInput; +export type DeleteShippingZoneMutationVariables = Exact<{ + id: Scalars['ID']; }>; -export type OrderNoteUpdateMutation = { __typename: 'Mutation', orderNoteUpdate: { __typename: 'OrderNoteUpdate', errors: Array<{ __typename: 'OrderNoteUpdateError', code: OrderNoteUpdateErrorCode | null, field: string | null, message: string | null }>, order: { __typename: 'Order', id: string, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }> } | null } | null }; +export type DeleteShippingZoneMutation = { __typename: 'Mutation', shippingZoneDelete: { __typename: 'ShippingZoneDelete', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; -export type OrderUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: OrderUpdateInput; +export type BulkDeleteShippingZoneMutationVariables = Exact<{ + ids: Array | Scalars['ID']; }>; -export type OrderUpdateMutation = { __typename: 'Mutation', orderUpdate: { __typename: 'OrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type BulkDeleteShippingZoneMutation = { __typename: 'Mutation', shippingZoneBulkDelete: { __typename: 'ShippingZoneBulkDelete', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; -export type OrderDraftUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: DraftOrderInput; +export type UpdateDefaultWeightUnitMutationVariables = Exact<{ + unit?: InputMaybe; }>; -export type OrderDraftUpdateMutation = { __typename: 'Mutation', draftOrderUpdate: { __typename: 'DraftOrderUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type UpdateDefaultWeightUnitMutation = { __typename: 'Mutation', shopSettingsUpdate: { __typename: 'ShopSettingsUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null } | null } | null }; -export type OrderShippingMethodUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: OrderUpdateShippingInput; +export type CreateShippingZoneMutationVariables = Exact<{ + input: ShippingZoneCreateInput; }>; -export type OrderShippingMethodUpdateMutation = { __typename: 'Mutation', orderUpdateShipping: { __typename: 'OrderUpdateShipping', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, shippingMethodName: string | null, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, total: { __typename: 'TaxedMoney', tax: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string, name: string, price: { __typename: 'Money', amount: number, currency: string } } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type CreateShippingZoneMutation = { __typename: 'Mutation', shippingZoneCreate: { __typename: 'ShippingZoneCreate', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingZone: { __typename: 'ShippingZone', id: string, name: string, description: string | null, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type OrderDraftCreateMutationVariables = Exact<{ - input: DraftOrderCreateInput; +export type UpdateShippingZoneMutationVariables = Exact<{ + id: Scalars['ID']; + input: ShippingZoneUpdateInput; }>; -export type OrderDraftCreateMutation = { __typename: 'Mutation', draftOrderCreate: { __typename: 'DraftOrderCreate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string } | null } | null }; +export type UpdateShippingZoneMutation = { __typename: 'Mutation', shippingZoneUpdate: { __typename: 'ShippingZoneUpdate', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingZone: { __typename: 'ShippingZone', id: string, name: string, description: string | null, channels: Array<{ __typename: 'Channel', id: string, name: string, currencyCode: string }>, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type OrderLineDeleteMutationVariables = Exact<{ +export type UpdateShippingRateMutationVariables = Exact<{ id: Scalars['ID']; + input: ShippingPriceInput; }>; -export type OrderLineDeleteMutation = { __typename: 'Mutation', orderLineDelete: { __typename: 'OrderLineDelete', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, isShippingRequired: boolean, shippingMethodName: string | null, collectionPointName: string | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, undiscountedTotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; +export type UpdateShippingRateMutation = { __typename: 'Mutation', shippingPriceUpdate: { __typename: 'ShippingPriceUpdate', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingMethod: { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type OrderLinesAddMutationVariables = Exact<{ - id: Scalars['ID']; - input: Array | OrderLineCreateInput; +export type CreateShippingRateMutationVariables = Exact<{ + input: ShippingPriceInput; }>; -export type OrderLinesAddMutation = { __typename: 'Mutation', orderLinesCreate: { __typename: 'OrderLinesCreate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, isShippingRequired: boolean, shippingMethodName: string | null, collectionPointName: string | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, undiscountedTotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; +export type CreateShippingRateMutation = { __typename: 'Mutation', shippingPriceCreate: { __typename: 'ShippingPriceCreate', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingZone: { __typename: 'ShippingZone', id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shippingMethod: { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type OrderLineUpdateMutationVariables = Exact<{ +export type DeleteShippingRateMutationVariables = Exact<{ id: Scalars['ID']; - input: OrderLineInput; }>; -export type OrderLineUpdateMutation = { __typename: 'Mutation', orderLineUpdate: { __typename: 'OrderLineUpdate', errors: Array<{ __typename: 'OrderError', code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null, order: { __typename: 'Order', id: string, isShippingRequired: boolean, shippingMethodName: string | null, collectionPointName: string | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, undiscountedTotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; +export type DeleteShippingRateMutation = { __typename: 'Mutation', shippingPriceDelete: { __typename: 'ShippingPriceDelete', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingZone: { __typename: 'ShippingZone', id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type FulfillOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: OrderFulfillInput; +export type BulkDeleteShippingRateMutationVariables = Exact<{ + ids: Array | Scalars['ID']; }>; -export type FulfillOrderMutation = { __typename: 'Mutation', orderFulfill: { __typename: 'OrderFulfill', errors: Array<{ __typename: 'OrderError', warehouse: string | null, code: OrderErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null, orderLines: Array | null }>, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type BulkDeleteShippingRateMutation = { __typename: 'Mutation', shippingPriceBulkDelete: { __typename: 'ShippingPriceBulkDelete', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; -export type InvoiceRequestMutationVariables = Exact<{ - orderId: Scalars['ID']; +export type ShippingMethodChannelListingUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: ShippingMethodChannelListingInput; }>; -export type InvoiceRequestMutation = { __typename: 'Mutation', invoiceRequest: { __typename: 'InvoiceRequest', errors: Array<{ __typename: 'InvoiceError', code: InvoiceErrorCode, field: string | null, message: string | null }>, invoice: { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum } | null, order: { __typename: 'Order', id: string, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }> } | null } | null }; +export type ShippingMethodChannelListingUpdateMutation = { __typename: 'Mutation', shippingMethodChannelListingUpdate: { __typename: 'ShippingMethodChannelListingUpdate', shippingMethod: { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, channels: Array | null, message: string | null }> } | null }; -export type InvoiceEmailSendMutationVariables = Exact<{ +export type ShippingPriceExcludeProductMutationVariables = Exact<{ id: Scalars['ID']; + input: ShippingPriceExcludeProductsInput; }>; -export type InvoiceEmailSendMutation = { __typename: 'Mutation', invoiceSendNotification: { __typename: 'InvoiceSendNotification', errors: Array<{ __typename: 'InvoiceError', code: InvoiceErrorCode, field: string | null, message: string | null }>, invoice: { __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum } | null } | null }; +export type ShippingPriceExcludeProductMutation = { __typename: 'Mutation', shippingPriceExcludeProducts: { __typename: 'ShippingPriceExcludeProducts', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; -export type OrderSettingsUpdateMutationVariables = Exact<{ - orderSettingsInput: OrderSettingsUpdateInput; - shopSettingsInput: ShopSettingsInput; +export type ShippingPriceRemoveProductFromExcludeMutationVariables = Exact<{ + id: Scalars['ID']; + products: Array | Scalars['ID']; }>; -export type OrderSettingsUpdateMutation = { __typename: 'Mutation', orderSettingsUpdate: { __typename: 'OrderSettingsUpdate', errors: Array<{ __typename: 'OrderSettingsError', code: OrderSettingsErrorCode, field: string | null, message: string | null }>, orderSettings: { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean } | null } | null, shopSettingsUpdate: { __typename: 'ShopSettingsUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean } | null } | null }; +export type ShippingPriceRemoveProductFromExcludeMutation = { __typename: 'Mutation', shippingPriceRemoveProductFromExclude: { __typename: 'ShippingPriceRemoveProductFromExclude', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; -export type OrderTransactionRequestActionMutationVariables = Exact<{ - action: TransactionActionEnum; - transactionId: Scalars['ID']; - amount?: InputMaybe; - reason?: InputMaybe; - reasonReferenceId?: InputMaybe; +export type ShippingZonesQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; }>; -export type OrderTransactionRequestActionMutation = { __typename: 'Mutation', transactionRequestAction: { __typename: 'TransactionRequestAction', errors: Array<{ __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }> } | null }; +export type ShippingZonesQuery = { __typename: 'Query', shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string, description: string | null, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type OrderGrantRefundAddMutationVariables = Exact<{ - orderId: Scalars['ID']; - amount?: InputMaybe; - reason?: InputMaybe; - reasonReferenceId?: InputMaybe; - lines?: InputMaybe | OrderGrantRefundCreateLineInput>; - grantRefundForShipping?: InputMaybe; - transactionId: Scalars['ID']; +export type ShippingZoneQueryVariables = Exact<{ + id: Scalars['ID']; + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }>; -export type OrderGrantRefundAddMutation = { __typename: 'Mutation', orderGrantRefundCreate: { __typename: 'OrderGrantRefundCreate', errors: Array<{ __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode, lines: Array<{ __typename: 'OrderGrantRefundCreateLineError', field: string | null, message: string | null, code: OrderGrantRefundCreateLineErrorCode, lineId: string }> | null }>, grantedRefund: { __typename: 'OrderGrantedRefund', id: string } | null } | null }; +export type ShippingZoneQuery = { __typename: 'Query', shippingZone: { __typename: 'ShippingZone', default: boolean, id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, excludedProducts: { __typename: 'ProductCountableConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor: string | null, startCursor: string | null }, edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null } }> } | null, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, channels: Array<{ __typename: 'Channel', id: string, name: string, currencyCode: string }>, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type OrderGrantRefundAddWithOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - amount?: InputMaybe; - reason?: InputMaybe; - lines?: InputMaybe | OrderGrantRefundCreateLineInput>; - grantRefundForShipping?: InputMaybe; - transactionId: Scalars['ID']; +export type ShippingZoneChannelsQueryVariables = Exact<{ + id: Scalars['ID']; }>; -export type OrderGrantRefundAddWithOrderMutation = { __typename: 'Mutation', orderGrantRefundCreate: { __typename: 'OrderGrantRefundCreate', errors: Array<{ __typename: 'OrderGrantRefundCreateError', field: string | null, message: string | null, code: OrderGrantRefundCreateErrorCode, lines: Array<{ __typename: 'OrderGrantRefundCreateLineError', field: string | null, message: string | null, code: OrderGrantRefundCreateLineErrorCode, lineId: string }> | null }>, grantedRefund: { __typename: 'OrderGrantedRefund', id: string } | null, order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ShippingZoneChannelsQuery = { __typename: 'Query', shippingZone: { __typename: 'ShippingZone', id: string, channels: Array<{ __typename: 'Channel', id: string, name: string, currencyCode: string }> } | null }; -export type OrderGrantRefundEditMutationVariables = Exact<{ - refundId: Scalars['ID']; - amount?: InputMaybe; - reason?: InputMaybe; - addLines?: InputMaybe | OrderGrantRefundUpdateLineAddInput>; - removeLines?: InputMaybe | Scalars['ID']>; - grantRefundForShipping?: InputMaybe; - transactionId?: InputMaybe; - reasonReferenceId?: InputMaybe; +export type ChannelShippingZonesQueryVariables = Exact<{ + filter?: InputMaybe; }>; -export type OrderGrantRefundEditMutation = { __typename: 'Mutation', orderGrantRefundUpdate: { __typename: 'OrderGrantRefundUpdate', errors: Array<{ __typename: 'OrderGrantRefundUpdateError', field: string | null, message: string | null, code: OrderGrantRefundUpdateErrorCode, addLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null, removeLines: Array<{ __typename: 'OrderGrantRefundUpdateLineError', field: string | null, message: string | null, code: OrderGrantRefundUpdateLineErrorCode, lineId: string }> | null }>, order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null } | null }; +export type ChannelShippingZonesQuery = { __typename: 'Query', shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } | null }; -export type OrderSendRefundMutationVariables = Exact<{ - amount: Scalars['PositiveDecimal']; - transactionId: Scalars['ID']; -}>; +export type ShippingZonesCountQueryVariables = Exact<{ [key: string]: never; }>; -export type OrderSendRefundMutation = { __typename: 'Mutation', transactionRequestAction: { __typename: 'TransactionRequestAction', transaction: { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionRequestActionError', field: string | null, message: string | null, code: TransactionRequestActionErrorCode }> } | null }; +export type ShippingZonesCountQuery = { __typename: 'Query', shippingZones: { __typename: 'ShippingZoneCountableConnection', totalCount: number | null } | null }; -export type OrderSendRefundForGrantedRefundMutationVariables = Exact<{ - grantedRefundId: Scalars['ID']; - transactionId: Scalars['ID']; +export type ShopSettingsUpdateMutationVariables = Exact<{ + shopSettingsInput: ShopSettingsInput; + addressInput?: InputMaybe; }>; -export type OrderSendRefundForGrantedRefundMutation = { __typename: 'Mutation', transactionRequestRefundForGrantedRefund: { __typename: 'TransactionRequestRefundForGrantedRefund', transaction: { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionRequestRefundForGrantedRefundError', field: string | null, message: string | null, code: TransactionRequestRefundForGrantedRefundErrorCode }> } | null }; +export type ShopSettingsUpdateMutation = { __typename: 'Mutation', shopSettingsUpdate: { __typename: 'ShopSettingsUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', customerSetPasswordUrl: string | null, defaultMailSenderAddress: string | null, defaultMailSenderName: string | null, description: string | null, name: string, reserveStockDurationAnonymousUser: number | null, reserveStockDurationAuthenticatedUser: number | null, limitQuantityPerCheckout: number | null, enableAccountConfirmationByEmail: boolean | null, useLegacyUpdateWebhookEmission: boolean | null, preserveAllAddressFields: boolean, companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, domain: { __typename: 'Domain', host: string } } | null } | null, shopAddressUpdate: { __typename: 'ShopAddressUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null } | null } | null }; -export type CreateManualTransactionCaptureMutationVariables = Exact<{ - orderId: Scalars['ID']; - amount: Scalars['PositiveDecimal']; - currency: Scalars['String']; - description?: InputMaybe; - pspReference?: InputMaybe; +export type RefundSettingsUpdateMutationVariables = Exact<{ + refundSettingsInput: RefundSettingsUpdateInput; }>; -export type CreateManualTransactionCaptureMutation = { __typename: 'Mutation', transactionCreate: { __typename: 'TransactionCreate', transaction: { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }> } | null }; +export type RefundSettingsUpdateMutation = { __typename: 'Mutation', refundSettingsUpdate: { __typename: 'RefundSettingsUpdate', errors: Array<{ __typename: 'RefundSettingsUpdateError', code: RefundSettingsErrorCode, message: string | null }>, refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', name: string, id: string } | null } } | null }; -export type CreateManualTransactionRefundMutationVariables = Exact<{ - orderId: Scalars['ID']; - amount: Scalars['PositiveDecimal']; - currency: Scalars['String']; - description?: InputMaybe; - pspReference?: InputMaybe; -}>; +export type RefundReasonReferenceClearMutationVariables = Exact<{ [key: string]: never; }>; -export type CreateManualTransactionRefundMutation = { __typename: 'Mutation', transactionCreate: { __typename: 'TransactionCreate', transaction: { __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } } | null, errors: Array<{ __typename: 'TransactionCreateError', field: string | null, message: string | null, code: TransactionCreateErrorCode }> } | null }; +export type RefundReasonReferenceClearMutation = { __typename: 'Mutation', refundReasonReferenceClear: { __typename: 'RefundReasonReferenceTypeClear', refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null }, errors: Array<{ __typename: 'RefundReasonReferenceTypeClearError', code: RefundSettingsErrorCode, message: string | null }> } | null }; -export type OrderListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - where?: InputMaybe; - search?: InputMaybe; - sort?: InputMaybe; -}>; +export type SiteSettingsQueryVariables = Exact<{ [key: string]: never; }>; -export type OrderListQuery = { __typename: 'Query', orders: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', created: any, id: string, number: string, paymentStatus: PaymentChargeStatusEnum, status: OrderStatus, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, channel: { __typename: 'Channel', name: string, id: string }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; +export type SiteSettingsQuery = { __typename: 'Query', shop: { __typename: 'Shop', customerSetPasswordUrl: string | null, defaultMailSenderAddress: string | null, defaultMailSenderName: string | null, description: string | null, name: string, reserveStockDurationAnonymousUser: number | null, reserveStockDurationAuthenticatedUser: number | null, limitQuantityPerCheckout: number | null, enableAccountConfirmationByEmail: boolean | null, useLegacyUpdateWebhookEmission: boolean | null, preserveAllAddressFields: boolean, companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, domain: { __typename: 'Domain', host: string } } }; -export type OrderDraftListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; +export type StaffMemberAddMutationVariables = Exact<{ + input: StaffCreateInput; }>; -export type OrderDraftListQuery = { __typename: 'Query', draftOrders: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', created: any, id: string, number: string, paymentStatus: PaymentChargeStatusEnum, status: OrderStatus, userEmail: string | null, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, channel: { __typename: 'Channel', name: string, id: string }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; +export type StaffMemberAddMutation = { __typename: 'Mutation', staffCreate: { __typename: 'StaffCreate', errors: Array<{ __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }>, user: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type OrderDetailsQueryVariables = Exact<{ +export type StaffMemberUpdateMutationVariables = Exact<{ id: Scalars['ID']; + input: StaffUpdateInput; }>; -export type OrderDetailsQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; +export type StaffMemberUpdateMutation = { __typename: 'Mutation', staffUpdate: { __typename: 'StaffUpdate', errors: Array<{ __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }>, user: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type OrderDetailsWithMetadataQueryVariables = Exact<{ - id: Scalars['ID']; - hasManageProducts: Scalars['Boolean']; +export type UserPassowrdChangeMutationVariables = Exact<{ + newPassword: Scalars['String']; + oldPassword: Scalars['String']; }>; -export type OrderDetailsWithMetadataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, displayGrossPrices: boolean, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, number: string, isPaid: boolean, paymentStatus: PaymentChargeStatusEnum, shippingMethodName: string | null, collectionPointName: string | null, status: OrderStatus, actions: Array, userEmail: string | null, chargeStatus: OrderChargeStatusEnum, authorizeStatus: OrderAuthorizeStatusEnum, fulfillments: Array<{ __typename: 'Fulfillment', id: string, created: any, fulfillmentOrder: number, status: FulfillmentStatus, trackingNumber: string, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }> | null, warehouse: { __typename: 'Warehouse', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }>, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, billingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, payments: Array<{ __typename: 'Payment', id: string, isActive: boolean, actions: Array, gateway: string, paymentMethodType: string, modified: any, availableCaptureAmount: { __typename: 'Money', amount: number, currency: string } | null, capturedAmount: { __typename: 'Money', amount: number, currency: string } | null, total: { __typename: 'Money', amount: number, currency: string } | null, availableRefundAmount: { __typename: 'Money', amount: number, currency: string } | null, transactions: Array<{ __typename: 'Transaction', id: string, token: string, created: any, kind: TransactionKind, isSuccess: boolean }> | null }>, giftCards: Array<{ __typename: 'GiftCard', id: string, last4CodeChars: string, events: Array<{ __typename: 'GiftCardEvent', id: string, type: GiftCardEventsEnum | null, orderId: string | null, date: any | null, balance: { __typename: 'GiftCardEventBalance', initialBalance: { __typename: 'Money', amount: number, currency: string } | null, currentBalance: { __typename: 'Money', amount: number, currency: string }, oldInitialBalance: { __typename: 'Money', amount: number, currency: string } | null, oldCurrentBalance: { __typename: 'Money', amount: number, currency: string } | null } | null }> }>, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, createdAt: any, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reason: string | null, amount: { __typename: 'Money', currency: string, amount: number }, transactionEvents: Array<{ __typename: 'TransactionEvent', id: string }> | null, reasonReference: { __typename: 'Page', id: string, title: string } | null, user: { __typename: 'User', id: string, firstName: string, lastName: string, email: string, avatar: { __typename: 'Image', url: string, alt: string | null } | null } | null, app: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string } }> | null }>, discounts: Array<{ __typename: 'OrderDiscount', id: string, type: OrderDiscountType, name: string | null, value: any, reason: string | null, calculationMode: DiscountValueTypeEnum, amount: { __typename: 'Money', amount: number, currency: string } }>, events: Array<{ __typename: 'OrderEvent', id: string, amount: number | null, shippingCostsIncluded: boolean | null, date: any | null, email: string | null, emailType: OrderEventsEmailsEnum | null, invoiceNumber: string | null, message: string | null, quantity: number | null, transactionReference: string | null, type: OrderEventsEnum | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, relatedOrder: { __typename: 'Order', id: string, number: string } | null, related: { __typename: 'OrderEvent', id: string } | null, user: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, app: { __typename: 'App', id: string, name: string | null, appUrl: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | null, lines: Array<{ __typename: 'OrderEventOrderLineObject', quantity: number | null, itemName: string | null, discount: { __typename: 'OrderEventDiscountObject', valueType: DiscountValueTypeEnum, value: any, reason: string | null, oldValueType: DiscountValueTypeEnum | null, oldValue: any | null, amount: { __typename: 'Money', amount: number, currency: string } | null, oldAmount: { __typename: 'Money', amount: number, currency: string } | null } | null, orderLine: { __typename: 'OrderLine', id: string, productName: string, variantName: string } | null }> | null }>, shippingAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, shippingMethod: { __typename: 'ShippingMethod', id: string } | null, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, subtotal: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string }, tax: { __typename: 'Money', amount: number, currency: string } }, totalRemainingGrant: { __typename: 'Money', amount: number, currency: string }, totalGrantedRefund: { __typename: 'Money', amount: number, currency: string }, totalRefundPending: { __typename: 'Money', amount: number, currency: string }, totalRefunded: { __typename: 'Money', amount: number, currency: string }, totalAuthorizePending: { __typename: 'Money', amount: number, currency: string }, totalAuthorized: { __typename: 'Money', amount: number, currency: string }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, totalCharged: { __typename: 'Money', amount: number, currency: string }, totalChargePending: { __typename: 'Money', amount: number, currency: string }, totalCanceled: { __typename: 'Money', amount: number, currency: string }, totalCancelPending: { __typename: 'Money', amount: number, currency: string }, totalBalance: { __typename: 'Money', amount: number, currency: string }, undiscountedTotal: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, user: { __typename: 'User', id: string, email: string } | null, shippingMethods: Array<{ __typename: 'ShippingMethod', id: string, name: string, active: boolean, message: string | null, price: { __typename: 'Money', amount: number, currency: string } }>, invoices: Array<{ __typename: 'Invoice', id: string, number: string | null, createdAt: any, url: string | null, status: JobStatusEnum }>, channel: { __typename: 'Channel', isActive: boolean, id: string, name: string, currencyCode: string, slug: string, defaultCountry: { __typename: 'CountryDisplay', code: string }, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null, fulfillmentAllowUnpaid: boolean, fulfillmentAutoApprove: boolean, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, availablePaymentGateways: Array<{ __typename: 'PaymentGateway', name: string, id: string }> } }; +export type UserPassowrdChangeMutation = { __typename: 'Mutation', passwordChange: { __typename: 'PasswordChange', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; -export type OrderLinesMetadataQueryVariables = Exact<{ - id: Scalars['ID']; - hasManageProducts: Scalars['Boolean']; +export type UserAccountUpdateMutationVariables = Exact<{ + input: AccountInput; }>; -export type OrderLinesMetadataQuery = { __typename: 'Query', order: { __typename: 'Order', lines: Array<{ __typename: 'OrderLine', id: string, productName: string, productSku: string | null, quantity: number, thumbnail: { __typename: 'Image', url: string } | null, variant: { __typename: 'ProductVariant', id: string, name: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata?: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> } | null }; +export type UserAccountUpdateMutation = { __typename: 'Mutation', accountUpdate: { __typename: 'AccountUpdate', user: { __typename: 'User', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; -export type OrderDetailsGrantRefundQueryVariables = Exact<{ +export type StaffMemberDeleteMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderDetailsGrantRefundQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null }; +export type StaffMemberDeleteMutation = { __typename: 'Mutation', staffDelete: { __typename: 'StaffDelete', errors: Array<{ __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }> } | null }; -export type OrderDetailsGrantRefundEditQueryVariables = Exact<{ - id: Scalars['ID']; +export type UserAvatarUpdateMutationVariables = Exact<{ + image: Scalars['Upload']; }>; -export type OrderDetailsGrantRefundEditQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, lines: Array<{ __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, fulfillmentOrder: number, status: FulfillmentStatus, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, quantityToFulfill: number, variantName: string, thumbnail: { __typename: 'Image', url: string } | null, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }> | null }>, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, grantedRefunds: Array<{ __typename: 'OrderGrantedRefund', id: string, reason: string | null, shippingCostsIncluded: boolean, status: OrderGrantedRefundStatusEnum, reasonReference: { __typename: 'Page', id: string, title: string } | null, amount: { __typename: 'Money', amount: number, currency: string }, transaction: { __typename: 'TransactionItem', id: string } | null, lines: Array<{ __typename: 'OrderGrantedRefundLine', id: string, quantity: number, reason: string | null, orderLine: { __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, productSku: string | null, isGift: boolean | null, quantity: number, quantityFulfilled: number, quantityToFulfill: number, unitDiscountValue: any, unitDiscountReason: string | null, unitDiscountType: DiscountValueTypeEnum | null, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, quantityAvailable: number | null, preorder: { __typename: 'PreorderData', endDate: any | null } | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, product: { __typename: 'Product', id: string, isAvailableForPurchase: boolean | null } } | null, totalPrice: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string }, gross: { __typename: 'Money', amount: number, currency: string } }, unitDiscount: { __typename: 'Money', amount: number, currency: string }, undiscountedUnitPrice: { __typename: 'TaxedMoney', currency: string, gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string }, net: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } }> | null }>, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }> } | null }; +export type UserAvatarUpdateMutation = { __typename: 'Mutation', userAvatarUpdate: { __typename: 'UserAvatarUpdate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string, avatar: { __typename: 'Image', url: string } | null } | null } | null }; -export type OrderFulfillDataQueryVariables = Exact<{ - orderId: Scalars['ID']; -}>; +export type UserAvatarDeleteMutationVariables = Exact<{ [key: string]: never; }>; -export type OrderFulfillDataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, isPaid: boolean, number: string, deliveryMethod: { __typename: 'ShippingMethod', id: string } | { __typename: 'Warehouse', id: string, clickAndCollectOption: WarehouseClickAndCollectOptionEnum } | null, lines: Array<{ __typename: 'OrderLine', id: string, isShippingRequired: boolean, productName: string, quantity: number, quantityFulfilled: number, quantityToFulfill: number, allocations: Array<{ __typename: 'Allocation', id: string, quantity: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, variant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, preorder: { __typename: 'PreorderData', endDate: any | null } | null, attributes: Array<{ __typename: 'SelectedAttribute', values: Array<{ __typename: 'AttributeValue', id: string, name: string | null }> }>, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null, thumbnail: { __typename: 'Image', url: string } | null }> } | null }; +export type UserAvatarDeleteMutation = { __typename: 'Mutation', userAvatarDelete: { __typename: 'UserAvatarDelete', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string, avatar: { __typename: 'Image', url: string } | null } | null } | null }; -export type OrderFulfillSettingsQueryVariables = Exact<{ [key: string]: never; }>; +export type ChangeUserPasswordMutationVariables = Exact<{ + newPassword: Scalars['String']; + oldPassword: Scalars['String']; +}>; -export type OrderFulfillSettingsQuery = { __typename: 'Query', shop: { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean } }; +export type ChangeUserPasswordMutation = { __typename: 'Mutation', passwordChange: { __typename: 'PasswordChange', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; -export type OrderSettingsQueryVariables = Exact<{ [key: string]: never; }>; +export type StaffListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; +}>; -export type OrderSettingsQuery = { __typename: 'Query', orderSettings: { __typename: 'OrderSettings', automaticallyConfirmAllNewOrders: boolean, automaticallyFulfillNonShippableGiftCard: boolean } | null, shop: { __typename: 'Shop', fulfillmentAutoApprove: boolean, fulfillmentAllowUnpaid: boolean } }; +export type StaffListQuery = { __typename: 'Query', staffUsers: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', cursor: string, node: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; -export type OrderRefundDataQueryVariables = Exact<{ - orderId: Scalars['ID']; +export type StaffMemberDetailsQueryVariables = Exact<{ + id: Scalars['ID']; }>; -export type OrderRefundDataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, totalCaptured: { __typename: 'Money', amount: number, currency: string }, shippingPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, lines: Array<{ __typename: 'OrderLine', quantityToFulfill: number, id: string, productName: string, quantity: number, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null }>, fulfillments: Array<{ __typename: 'Fulfillment', id: string, status: FulfillmentStatus, fulfillmentOrder: number, lines: Array<{ __typename: 'FulfillmentLine', id: string, quantity: number, orderLine: { __typename: 'OrderLine', id: string, productName: string, quantity: number, unitPrice: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } }, thumbnail: { __typename: 'Image', url: string } | null } | null }> | null }> } | null }; +export type StaffMemberDetailsQuery = { __typename: 'Query', user: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; -export type OrderTransactionsDataQueryVariables = Exact<{ - orderId: Scalars['ID']; +export type MenuCreateMutationVariables = Exact<{ + input: MenuCreateInput; }>; -export type OrderTransactionsDataQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, transactions: Array<{ __typename: 'TransactionItem', pspReference: string, externalUrl: string, createdAt: any, id: string, name: string, actions: Array, createdBy: { __typename: 'App', name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User' } | null, paymentMethodDetails: { __typename: 'CardPaymentMethodDetails', name: string, brand: string | null, expMonth: number | null, expYear: number | null, firstDigits: string | null, lastDigits: string | null } | { __typename: 'OtherPaymentMethodDetails', name: string } | null, events: Array<{ __typename: 'TransactionEvent', externalUrl: string, id: string, pspReference: string, type: TransactionEventTypeEnum | null, message: string, createdAt: any, createdBy: { __typename: 'App', id: string, name: string | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null } | { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } | null, amount: { __typename: 'Money', amount: number, currency: string }, reasonReference: { __typename: 'Page', id: string, title: string } | null }>, authorizedAmount: { __typename: 'Money', amount: number, currency: string }, chargedAmount: { __typename: 'Money', amount: number, currency: string }, refundedAmount: { __typename: 'Money', amount: number, currency: string }, canceledAmount: { __typename: 'Money', amount: number, currency: string }, authorizePendingAmount: { __typename: 'Money', amount: number, currency: string }, chargePendingAmount: { __typename: 'Money', amount: number, currency: string }, refundPendingAmount: { __typename: 'Money', amount: number, currency: string }, cancelPendingAmount: { __typename: 'Money', amount: number, currency: string } }>, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } | null }; +export type MenuCreateMutation = { __typename: 'Mutation', menuCreate: { __typename: 'MenuCreate', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }>, menu: { __typename: 'Menu', id: string } | null } | null }; -export type ChannelUsabilityDataQueryVariables = Exact<{ - channel: Scalars['String']; +export type MenuBulkDeleteMutationVariables = Exact<{ + ids: Array | Scalars['ID']; }>; -export type ChannelUsabilityDataQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; +export type MenuBulkDeleteMutation = { __typename: 'Mutation', menuBulkDelete: { __typename: 'MenuBulkDelete', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null }; -export type OrderDetailsGraphiQlQueryVariables = Exact<{ +export type MenuDeleteMutationVariables = Exact<{ id: Scalars['ID']; }>; -export type OrderDetailsGraphiQlQuery = { __typename: 'Query', order: { __typename: 'Order', id: string, number: string, status: OrderStatus, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, paymentStatus: PaymentChargeStatusEnum, userEmail: string | null, isPaid: boolean } | null }; +export type MenuDeleteMutation = { __typename: 'Mutation', menuDelete: { __typename: 'MenuDelete', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null }; -export type DevModeRunQueryVariables = Exact<{ - filter?: InputMaybe; - sortBy?: InputMaybe; +export type MenuItemCreateMutationVariables = Exact<{ + input: MenuItemCreateInput; }>; -export type DevModeRunQuery = { __typename: 'Query', orders: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, number: string, status: OrderStatus, isShippingRequired: boolean, canFinalize: boolean, created: any, customerNote: string, paymentStatus: PaymentChargeStatusEnum, userEmail: string | null, isPaid: boolean } }> } | null }; +export type MenuItemCreateMutation = { __typename: 'Mutation', menuItemCreate: { __typename: 'MenuItemCreate', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }>, menuItem: { __typename: 'MenuItem', menu: { __typename: 'Menu', id: string, items: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null } } | null } | null }; -export type RefundSettingsQueryVariables = Exact<{ [key: string]: never; }>; +export type MenuUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + name: Scalars['String']; + moves: Array | MenuItemMoveInput; + removeIds: Array | Scalars['ID']; +}>; -export type RefundSettingsQuery = { __typename: 'Query', refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null } }; +export type MenuUpdateMutation = { __typename: 'Mutation', menuUpdate: { __typename: 'MenuUpdate', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null, menuItemMove: { __typename: 'MenuItemMove', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null, menuItemBulkDelete: { __typename: 'MenuItemBulkDelete', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null }; -export type PermissionGroupDeleteMutationVariables = Exact<{ +export type MenuItemUpdateMutationVariables = Exact<{ id: Scalars['ID']; + input: MenuItemInput; }>; -export type PermissionGroupDeleteMutation = { __typename: 'Mutation', permissionGroupDelete: { __typename: 'PermissionGroupDelete', errors: Array<{ __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }> } | null }; +export type MenuItemUpdateMutation = { __typename: 'Mutation', menuItemUpdate: { __typename: 'MenuItemUpdate', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }>, menuItem: { __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null } | null } | null }; -export type PermissionGroupCreateMutationVariables = Exact<{ - input: PermissionGroupCreateInput; +export type MenuListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + sort?: InputMaybe; +}>; + + +export type MenuListQuery = { __typename: 'Query', menus: { __typename: 'MenuCountableConnection', edges: Array<{ __typename: 'MenuCountableEdge', node: { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; + +export type MenuDetailsQueryVariables = Exact<{ + id: Scalars['ID']; }>; -export type PermissionGroupCreateMutation = { __typename: 'Mutation', permissionGroupCreate: { __typename: 'PermissionGroupCreate', errors: Array<{ __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }>, group: { __typename: 'Group', restrictedAccessToChannels: boolean, id: string, name: string, userCanManage: boolean, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null } | null } | null }; +export type MenuDetailsQuery = { __typename: 'Query', menu: { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null } | null }; -export type PermissionGroupUpdateMutationVariables = Exact<{ +export type TaxConfigurationUpdateMutationVariables = Exact<{ id: Scalars['ID']; - input: PermissionGroupUpdateInput; + input: TaxConfigurationUpdateInput; }>; -export type PermissionGroupUpdateMutation = { __typename: 'Mutation', permissionGroupUpdate: { __typename: 'PermissionGroupUpdate', errors: Array<{ __typename: 'PermissionGroupError', code: PermissionGroupErrorCode, field: string | null, message: string | null }>, group: { __typename: 'Group', restrictedAccessToChannels: boolean, id: string, name: string, userCanManage: boolean, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null } | null } | null }; +export type TaxConfigurationUpdateMutation = { __typename: 'Mutation', taxConfigurationUpdate: { __typename: 'TaxConfigurationUpdate', errors: Array<{ __typename: 'TaxConfigurationUpdateError', field: string | null, code: TaxConfigurationUpdateErrorCode, message: string | null }>, taxConfiguration: { __typename: 'TaxConfiguration', id: string, displayGrossPrices: boolean, pricesEnteredWithTax: boolean, chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, channel: { __typename: 'Channel', id: string, name: string }, countries: Array<{ __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }> } | null } | null }; -export type PermissionGroupListQueryVariables = Exact<{ - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; +export type TaxCountryConfigurationUpdateMutationVariables = Exact<{ + countryCode: CountryCode; + updateTaxClassRates: Array | TaxClassRateInput; }>; -export type PermissionGroupListQuery = { __typename: 'Query', permissionGroups: { __typename: 'GroupCountableConnection', edges: Array<{ __typename: 'GroupCountableEdge', node: { __typename: 'Group', id: string, name: string, userCanManage: boolean, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type TaxCountryConfigurationUpdateMutation = { __typename: 'Mutation', taxCountryConfigurationUpdate: { __typename: 'TaxCountryConfigurationUpdate', errors: Array<{ __typename: 'TaxCountryConfigurationUpdateError', field: string | null, code: TaxCountryConfigurationUpdateErrorCode, message: string | null }>, taxCountryConfiguration: { __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> } | null } | null }; -export type PermissionGroupDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - userId: Scalars['ID']; +export type TaxCountryConfigurationDeleteMutationVariables = Exact<{ + countryCode: CountryCode; }>; -export type PermissionGroupDetailsQuery = { __typename: 'Query', permissionGroup: { __typename: 'Group', restrictedAccessToChannels: boolean, id: string, name: string, userCanManage: boolean, accessibleChannels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null, permissions: Array<{ __typename: 'Permission', code: PermissionEnum, name: string }> | null, users: Array<{ __typename: 'User', id: string, firstName: string, lastName: string, email: string, isActive: boolean, avatar: { __typename: 'Image', url: string } | null }> | null } | null, user: { __typename: 'User', editableGroups: Array<{ __typename: 'Group', id: string }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, sourcePermissionGroups: Array<{ __typename: 'Group', id: string }> | null }> | null } | null }; +export type TaxCountryConfigurationDeleteMutation = { __typename: 'Mutation', taxCountryConfigurationDelete: { __typename: 'TaxCountryConfigurationDelete', errors: Array<{ __typename: 'TaxCountryConfigurationDeleteError', field: string | null, code: TaxCountryConfigurationDeleteErrorCode, message: string | null }>, taxCountryConfiguration: { __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> } | null } | null }; -export type ProductTypeDeleteMutationVariables = Exact<{ +export type TaxClassUpdateMutationVariables = Exact<{ id: Scalars['ID']; + input: TaxClassUpdateInput; }>; -export type ProductTypeDeleteMutation = { __typename: 'Mutation', productTypeDelete: { __typename: 'ProductTypeDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string } | null } | null }; +export type TaxClassUpdateMutation = { __typename: 'Mutation', taxClassUpdate: { __typename: 'TaxClassUpdate', errors: Array<{ __typename: 'TaxClassUpdateError', field: string | null, code: TaxClassUpdateErrorCode, message: string | null }>, taxClass: { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ProductTypeBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; +export type TaxClassCreateMutationVariables = Exact<{ + input: TaxClassCreateInput; }>; -export type ProductTypeBulkDeleteMutation = { __typename: 'Mutation', productTypeBulkDelete: { __typename: 'ProductTypeBulkDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; +export type TaxClassCreateMutation = { __typename: 'Mutation', taxClassCreate: { __typename: 'TaxClassCreate', errors: Array<{ __typename: 'TaxClassCreateError', field: string | null, code: TaxClassCreateErrorCode, message: string | null }>, taxClass: { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type ProductTypeUpdateMutationVariables = Exact<{ +export type TaxClassDeleteMutationVariables = Exact<{ id: Scalars['ID']; - input: ProductTypeInput; }>; -export type ProductTypeUpdateMutation = { __typename: 'Mutation', productTypeUpdate: { __typename: 'ProductTypeUpdate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type TaxClassDeleteMutation = { __typename: 'Mutation', taxClassDelete: { __typename: 'TaxClassDelete', errors: Array<{ __typename: 'TaxClassDeleteError', field: string | null, code: TaxClassDeleteErrorCode, message: string | null }> } | null }; -export type AssignProductAttributeMutationVariables = Exact<{ - id: Scalars['ID']; - operations: Array | ProductAttributeAssignInput; +export type TaxConfigurationsListQueryVariables = Exact<{ + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; }>; -export type AssignProductAttributeMutation = { __typename: 'Mutation', productAttributeAssign: { __typename: 'ProductAttributeAssign', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type TaxConfigurationsListQuery = { __typename: 'Query', taxConfigurations: { __typename: 'TaxConfigurationCountableConnection', edges: Array<{ __typename: 'TaxConfigurationCountableEdge', node: { __typename: 'TaxConfiguration', id: string, displayGrossPrices: boolean, pricesEnteredWithTax: boolean, chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, channel: { __typename: 'Channel', id: string, name: string }, countries: Array<{ __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }> } }> } | null }; -export type UnassignProductAttributeMutationVariables = Exact<{ - id: Scalars['ID']; - ids: Array | Scalars['ID']; -}>; +export type TaxCountriesListQueryVariables = Exact<{ [key: string]: never; }>; -export type UnassignProductAttributeMutation = { __typename: 'Mutation', productAttributeUnassign: { __typename: 'ProductAttributeUnassign', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type TaxCountriesListQuery = { __typename: 'Query', taxCountryConfigurations: Array<{ __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> }> | null }; -export type ProductTypeCreateMutationVariables = Exact<{ - input: ProductTypeInput; +export type TaxClassesListQueryVariables = Exact<{ + before?: InputMaybe; + after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + filter?: InputMaybe; + sortBy?: InputMaybe; }>; -export type ProductTypeCreateMutation = { __typename: 'Mutation', productTypeCreate: { __typename: 'ProductTypeCreate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type TaxClassesListQuery = { __typename: 'Query', taxClasses: { __typename: 'TaxClassCountableConnection', edges: Array<{ __typename: 'TaxClassCountableEdge', node: { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }> } | null }; -export type ProductTypeAttributeReorderMutationVariables = Exact<{ - move: ReorderInput; - productTypeId: Scalars['ID']; - type: ProductAttributeType; +export type TaxClassAssignQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; }>; -export type ProductTypeAttributeReorderMutation = { __typename: 'Mutation', productTypeReorderAttributes: { __typename: 'ProductTypeReorderAttributes', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type TaxClassAssignQuery = { __typename: 'Query', taxClasses: { __typename: 'TaxClassCountableConnection', edges: Array<{ __typename: 'TaxClassCountableEdge', node: { __typename: 'TaxClass', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, endCursor: string | null } } | null }; -export type ProductAttributeAssignmentUpdateMutationVariables = Exact<{ - operations: Array | ProductAttributeAssignmentUpdateInput; - productTypeId: Scalars['ID']; -}>; +export type TaxStrategyChoicesQueryVariables = Exact<{ [key: string]: never; }>; -export type ProductAttributeAssignmentUpdateMutation = { __typename: 'Mutation', productAttributeAssignmentUpdate: { __typename: 'ProductAttributeAssignmentUpdate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null, attributes: Array | null }>, productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type TaxStrategyChoicesQuery = { __typename: 'Query', shop: { __typename: 'Shop', availableTaxApps: Array<{ __typename: 'App', id: string, name: string | null, version: string | null, identifier: string | null, created: any | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }> } }; -export type ProductTypeListQueryVariables = Exact<{ - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; +export type UpdateProductTranslationsMutationVariables = Exact<{ + id: Scalars['ID']; + input: TranslationInput; + language: LanguageCodeEnum; }>; -export type ProductTypeListQuery = { __typename: 'Query', productTypes: { __typename: 'ProductTypeCountableConnection', edges: Array<{ __typename: 'ProductTypeCountableEdge', node: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, taxClass: { __typename: 'TaxClass', id: string, name: string } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type UpdateProductTranslationsMutation = { __typename: 'Mutation', productTranslate: { __typename: 'ProductTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null, translation: { __typename: 'ProductTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null } | null }; -export type ProductTypeDetailsQueryVariables = Exact<{ +export type UpdateProductVariantTranslationsMutationVariables = Exact<{ id: Scalars['ID']; + input: NameTranslationInput; + language: LanguageCodeEnum; }>; -export type ProductTypeDetailsQuery = { __typename: 'Query', productType: { __typename: 'ProductType', id: string, name: string, slug: string, kind: ProductTypeKindEnum, hasVariants: boolean, isShippingRequired: boolean, productAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null }> | null, assignedVariantAttributes: Array<{ __typename: 'AssignedVariantAttribute', variantSelection: boolean, attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null } }> | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null } }; +export type UpdateProductVariantTranslationsMutation = { __typename: 'Mutation', productVariantTranslate: { __typename: 'ProductVariantTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, name: string, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null } | null }; -export type ProductTypeCreateDataQueryVariables = Exact<{ [key: string]: never; }>; +export type UpdateCategoryTranslationsMutationVariables = Exact<{ + id: Scalars['ID']; + input: TranslationInput; + language: LanguageCodeEnum; +}>; -export type ProductTypeCreateDataQuery = { __typename: 'Query', shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null } }; +export type UpdateCategoryTranslationsMutation = { __typename: 'Mutation', categoryTranslate: { __typename: 'CategoryTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null, translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | null } | null }; -export type ProductMediaCreateMutationVariables = Exact<{ - product: Scalars['ID']; - image?: InputMaybe; - alt?: InputMaybe; - mediaUrl?: InputMaybe; +export type UpdateCollectionTranslationsMutationVariables = Exact<{ + id: Scalars['ID']; + input: TranslationInput; + language: LanguageCodeEnum; }>; -export type ProductMediaCreateMutation = { __typename: 'Mutation', productMediaCreate: { __typename: 'ProductMediaCreate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null } | null } | null }; +export type UpdateCollectionTranslationsMutation = { __typename: 'Mutation', collectionTranslate: { __typename: 'CollectionTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | null } | null }; -export type ProductDeleteMutationVariables = Exact<{ +export type UpdatePageTranslationsMutationVariables = Exact<{ id: Scalars['ID']; + input: PageTranslationInput; + language: LanguageCodeEnum; }>; -export type ProductDeleteMutation = { __typename: 'Mutation', productDelete: { __typename: 'ProductDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string } | null } | null }; +export type UpdatePageTranslationsMutation = { __typename: 'Mutation', pageTranslate: { __typename: 'PageTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, page: { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | null } | null }; -export type ProductMediaReorderMutationVariables = Exact<{ - productId: Scalars['ID']; - mediaIds: Array | Scalars['ID']; +export type UpdateVoucherTranslationsMutationVariables = Exact<{ + id: Scalars['ID']; + input: NameTranslationInput; + language: LanguageCodeEnum; }>; -export type ProductMediaReorderMutation = { __typename: 'Mutation', productMediaReorder: { __typename: 'ProductMediaReorder', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string }> | null } | null } | null }; +export type UpdateVoucherTranslationsMutation = { __typename: 'Mutation', voucherTranslate: { __typename: 'VoucherTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, voucher: { __typename: 'Voucher', id: string, name: string | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null } | null }; -export type ProductVariantSetDefaultMutationVariables = Exact<{ - productId: Scalars['ID']; - variantId: Scalars['ID']; +export type UpdateSaleTranslationsMutationVariables = Exact<{ + id: Scalars['ID']; + input: NameTranslationInput; + language: LanguageCodeEnum; }>; -export type ProductVariantSetDefaultMutation = { __typename: 'Mutation', productVariantSetDefault: { __typename: 'ProductVariantSetDefault', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, defaultVariant: { __typename: 'ProductVariant', id: string, name: string } | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string }> | null } | null } | null }; +export type UpdateSaleTranslationsMutation = { __typename: 'Mutation', saleTranslate: { __typename: 'SaleTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, sale: { __typename: 'Sale', id: string, name: string, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null } | null }; -export type ProductUpdateMutationVariables = Exact<{ +export type UpdateAttributeTranslationsMutationVariables = Exact<{ id: Scalars['ID']; - input: ProductInput; + input: NameTranslationInput; + language: LanguageCodeEnum; }>; -export type ProductUpdateMutation = { __typename: 'Mutation', productUpdate: { __typename: 'ProductUpdate', errors: Array<{ __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }> } | null }; +export type UpdateAttributeTranslationsMutation = { __typename: 'Mutation', attributeTranslate: { __typename: 'AttributeTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, attribute: { __typename: 'Attribute', id: string, name: string | null, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null } | null } | null }; -export type ProductCreateMutationVariables = Exact<{ - input: ProductCreateInput; +export type UpdateAttributeValueTranslationsMutationVariables = Exact<{ + id: Scalars['ID']; + input: AttributeValueTranslationInput; + language: LanguageCodeEnum; }>; -export type ProductCreateMutation = { __typename: 'Mutation', productCreate: { __typename: 'ProductCreate', errors: Array<{ __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string } | null } | null }; +export type UpdateAttributeValueTranslationsMutation = { __typename: 'Mutation', attributeValueTranslate: { __typename: 'AttributeValueTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, attributeValue: { __typename: 'AttributeValue', id: string, name: string | null, richText: any | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, richText: any | null } | null } | null } | null }; -export type VariantDeleteMutationVariables = Exact<{ +export type UpdateShippingMethodTranslationsMutationVariables = Exact<{ id: Scalars['ID']; + input: ShippingPriceTranslationInput; + language: LanguageCodeEnum; }>; -export type VariantDeleteMutation = { __typename: 'Mutation', productVariantDelete: { __typename: 'ProductVariantDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string } | null } | null }; +export type UpdateShippingMethodTranslationsMutation = { __typename: 'Mutation', shippingPriceTranslate: { __typename: 'ShippingPriceTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, shippingMethod: { __typename: 'ShippingMethodType', id: string, name: string, description: any | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | null } | null }; -export type VariantUpdateMutationVariables = Exact<{ - addStocks: Array | StockInput; - removeStocks: Array | Scalars['ID']; +export type UpdateMenuItemTranslationsMutationVariables = Exact<{ id: Scalars['ID']; - attributes?: InputMaybe | AttributeValueInput>; - sku?: InputMaybe; - quantityLimitPerCustomer?: InputMaybe; - trackInventory: Scalars['Boolean']; - stocks: Array | StockInput; - preorder?: InputMaybe; - weight?: InputMaybe; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; - name: Scalars['String']; + input: NameTranslationInput; + language: LanguageCodeEnum; }>; -export type VariantUpdateMutation = { __typename: 'Mutation', productVariantStocksDelete: { __typename: 'ProductVariantStocksDelete', errors: Array<{ __typename: 'StockError', code: StockErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null } | null, productVariantStocksCreate: { __typename: 'ProductVariantStocksCreate', errors: Array<{ __typename: 'BulkStockError', code: ProductErrorCode, field: string | null, index: number | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null } | null } | null, productVariantStocksUpdate: { __typename: 'ProductVariantStocksUpdate', errors: Array<{ __typename: 'BulkStockError', code: ProductErrorCode, field: string | null, index: number | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null, productVariantUpdate: { __typename: 'ProductVariantUpdate', errors: Array<{ __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type UpdateMenuItemTranslationsMutation = { __typename: 'Mutation', menuItemTranslate: { __typename: 'MenuItemTranslate', errors: Array<{ __typename: 'TranslationError', field: string | null, message: string | null }>, menuItem: { __typename: 'MenuItem', id: string, name: string, translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null } | null } | null }; -export type VariantCreateMutationVariables = Exact<{ - input: ProductVariantCreateInput; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; +export type CategoryTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type VariantCreateMutation = { __typename: 'Mutation', productVariantCreate: { __typename: 'ProductVariantCreate', errors: Array<{ __typename: 'ProductError', attributes: Array | null, code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type CategoryTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductMediaDeleteMutationVariables = Exact<{ - id: Scalars['ID']; +export type CollectionTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type ProductMediaDeleteMutation = { __typename: 'Mutation', productMediaDelete: { __typename: 'ProductMediaDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string }> | null } | null } | null }; +export type CollectionTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductMediaUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - alt: Scalars['String']; +export type ProductTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type ProductMediaUpdateMutation = { __typename: 'Mutation', productMediaUpdate: { __typename: 'ProductMediaUpdate', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null } | null } | null }; +export type ProductTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type VariantMediaAssignMutationVariables = Exact<{ - variantId: Scalars['ID']; - mediaId: Scalars['ID']; +export type PageTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type VariantMediaAssignMutation = { __typename: 'Mutation', variantMediaAssign: { __typename: 'VariantMediaAssign', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null }> | null } } | null } | null }; +export type PageTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type VariantMediaUnassignMutationVariables = Exact<{ - variantId: Scalars['ID']; - mediaId: Scalars['ID']; +export type VoucherTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type VariantMediaUnassignMutation = { __typename: 'Mutation', variantMediaUnassign: { __typename: 'VariantMediaUnassign', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null }> | null } } | null } | null }; +export type VoucherTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; +export type SaleTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type ProductBulkDeleteMutation = { __typename: 'Mutation', productBulkDelete: { __typename: 'ProductBulkDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; +export type SaleTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductVariantBulkCreateMutationVariables = Exact<{ - id: Scalars['ID']; - inputs: Array | ProductVariantBulkCreateInput; - errorPolicy?: InputMaybe; +export type AttributeTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type ProductVariantBulkCreateMutation = { __typename: 'Mutation', productVariantBulkCreate: { __typename: 'ProductVariantBulkCreate', errors: Array<{ __typename: 'BulkProductError', field: string | null, code: ProductErrorCode, index: number | null, channels: Array | null, message: string | null }>, results: Array<{ __typename: 'ProductVariantBulkResult', errors: Array<{ __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }> | null, productVariant: { __typename: 'ProductVariant', id: string, name: string } | null }>, productVariants: Array<{ __typename: 'ProductVariant', id: string, name: string }> } | null }; +export type AttributeTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent', id: string, name: string, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null } | null } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductVariantBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; +export type ShippingMethodTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type ProductVariantBulkDeleteMutation = { __typename: 'Mutation', productVariantBulkDelete: { __typename: 'ProductVariantBulkDelete', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; +export type ShippingMethodTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductExportMutationVariables = Exact<{ - input: ExportProductsInput; +export type MenuItemTranslationsQueryVariables = Exact<{ + language: LanguageCodeEnum; + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; }>; -export type ProductExportMutation = { __typename: 'Mutation', exportProducts: { __typename: 'ExportProducts', exportFile: { __typename: 'ExportFile', id: string, status: JobStatusEnum, url: string | null } | null, errors: Array<{ __typename: 'ExportError', code: ExportErrorCode, field: string | null, message: string | null }> } | null }; +export type MenuItemTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type ProductChannelListingUpdateMutationVariables = Exact<{ +export type ProductTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; - input: ProductChannelListingUpdateInput; + language: LanguageCodeEnum; }>; -export type ProductChannelListingUpdateMutation = { __typename: 'Mutation', productChannelListingUpdate: { __typename: 'ProductChannelListingUpdate', errors: Array<{ __typename: 'ProductChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }>, product: { __typename: 'Product', id: string, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } | null } | null }; +export type ProductTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductVariantReorderMutationVariables = Exact<{ - move: ReorderInput; - productId: Scalars['ID']; +export type ProductVariantListQueryVariables = Exact<{ + id: Scalars['ID']; }>; -export type ProductVariantReorderMutation = { __typename: 'Mutation', productVariantReorder: { __typename: 'ProductVariantReorder', errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, variants: Array<{ __typename: 'ProductVariant', id: string }> | null } | null } | null }; +export type ProductVariantListQuery = { __typename: 'Query', product: { __typename: 'Product', id: string, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null }> | null } | null }; -export type ProductVariantChannelListingUpdateMutationVariables = Exact<{ +export type ProductVariantTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; - input: Array | ProductVariantChannelListingAddInput; + language: LanguageCodeEnum; }>; -export type ProductVariantChannelListingUpdateMutation = { __typename: 'Mutation', productVariantChannelListingUpdate: { __typename: 'ProductVariantChannelListingUpdate', variant: { __typename: 'ProductVariant', id: string, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, product: { __typename: 'Product', id: string, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } } | null, errors: Array<{ __typename: 'ProductChannelListingError', code: ProductErrorCode, field: string | null, message: string | null, channels: Array | null }> } | null }; +export type ProductVariantTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent', name: string, productVariant: { __typename: 'ProductVariant', id: string } | null, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductVariantPreorderDeactivateMutationVariables = Exact<{ +export type CategoryTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; + language: LanguageCodeEnum; }>; -export type ProductVariantPreorderDeactivateMutation = { __typename: 'Mutation', productVariantPreorderDeactivate: { __typename: 'ProductVariantPreorderDeactivate', productVariant: { __typename: 'ProductVariant', id: string, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null } | null, errors: Array<{ __typename: 'ProductError', code: ProductErrorCode, field: string | null, message: string | null }> } | null }; +export type CategoryTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductVariantBulkUpdateMutationVariables = Exact<{ - product: Scalars['ID']; - input: Array | ProductVariantBulkUpdateInput; - errorPolicy?: InputMaybe; +export type CollectionTranslationDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + language: LanguageCodeEnum; }>; -export type ProductVariantBulkUpdateMutation = { __typename: 'Mutation', productVariantBulkUpdate: { __typename: 'ProductVariantBulkUpdate', errors: Array<{ __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }>, results: Array<{ __typename: 'ProductVariantBulkResult', errors: Array<{ __typename: 'ProductVariantBulkError', field: string | null, code: ProductVariantBulkErrorCode, message: string | null, attributes: Array | null, values: Array | null, warehouses: Array | null, channels: Array | null }> | null }> } | null }; +export type CollectionTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; - search?: InputMaybe; - where?: InputMaybe; - channel?: InputMaybe; - sort?: InputMaybe; - hasChannel: Scalars['Boolean']; - includeCategories: Scalars['Boolean']; - includeCollections: Scalars['Boolean']; +export type PageTranslationDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + language: LanguageCodeEnum; }>; -export type ProductListQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', updatedAt: any, created: any, description: any | null, id: string, name: string, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string }, values: Array<{ __typename: 'AttributeValue', id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, category?: { __typename: 'Category', id: string, name: string } | null, collections?: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, pricing?: { __typename: 'ProductPricingInfo', priceRange: { __typename: 'TaxedMoneyRange', start: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null, stop: { __typename: 'TaxedMoney', net: { __typename: 'Money', amount: number, currency: string } } | null } | null } | null, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; +export type PageTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductCountQueryVariables = Exact<{ - filter?: InputMaybe; - channel?: InputMaybe; +export type SaleTranslationDetailsQueryVariables = Exact<{ + id: Scalars['ID']; + language: LanguageCodeEnum; }>; -export type ProductCountQuery = { __typename: 'Query', products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; +export type SaleTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductDetailsQueryVariables = Exact<{ +export type VoucherTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; - channel?: InputMaybe; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; - searchValues?: InputMaybe; + language: LanguageCodeEnum; }>; -export type ProductDetailsQuery = { __typename: 'Query', product: { __typename: 'Product', name: string, slug: string, description: any | null, seoTitle: string | null, seoDescription: string | null, rating: number | null, isAvailable: boolean | null, id: string, category: { __typename: 'Category', id: string, name: string, level: number, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null } | null, defaultVariant: { __typename: 'ProductVariant', id: string } | null, collections: Array<{ __typename: 'Collection', id: string, name: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string, slug: string } }> | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, sku: string | null, name: string, trackInventory: boolean, quantityLimitPerCustomer: number | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', url: string }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null }> | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, isShippingRequired: boolean, variantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, selectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, nonSelectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null, attributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type VoucherTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null }; -export type ProductTypeQueryVariables = Exact<{ +export type AttributeTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; + language: LanguageCodeEnum; firstValues?: InputMaybe; afterValues?: InputMaybe; lastValues?: InputMaybe; beforeValues?: InputMaybe; - searchValues?: InputMaybe; }>; -export type ProductTypeQuery = { __typename: 'Query', productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, productAttributes: Array<{ __typename: 'Attribute', availableInGrid: boolean, entityType: AttributeEntityTypeEnum | null, storefrontSearchPosition: number, valueRequired: boolean, id: string, name: string | null, slug: string | null, type: AttributeTypeEnum | null, visibleInStorefront: boolean, filterableInDashboard: boolean, filterableInStorefront: boolean, unit: MeasurementUnitsEnum | null, inputType: AttributeInputTypeEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, taxClass: { __typename: 'TaxClass', id: string, name: string } | null } | null }; +export type AttributeTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent', translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, withChoices: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> } | null } | null } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductVariantDetailsQueryVariables = Exact<{ +export type ShippingMethodTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; + language: LanguageCodeEnum; }>; -export type ProductVariantDetailsQuery = { __typename: 'Query', productVariant: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, trackInventory: boolean, quantityLimitPerCustomer: number | null, selectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, nonSelectionAttributes: Array<{ __typename: 'SelectedAttribute', attribute: { __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }, values: Array<{ __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null }> }>, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null, product: { __typename: 'Product', id: string, name: string, defaultVariant: { __typename: 'ProductVariant', id: string } | null, media: Array<{ __typename: 'ProductMedia', id: string, alt: string, sortOrder: number | null, url: string, type: ProductMediaType, oembedData: any }> | null, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean }, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, publishedAt: any | null, isPublished: boolean, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType, oembedData: any }> | null }> | null }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, costPrice: { __typename: 'Money', amount: number, currency: string } | null, preorderThreshold: { __typename: 'PreorderThreshold', quantity: number | null, soldUnits: number } | null }> | null, stocks: Array<{ __typename: 'Stock', id: string, quantity: number, quantityAllocated: number, warehouse: { __typename: 'Warehouse', id: string, name: string } }> | null, preorder: { __typename: 'PreorderData', globalThreshold: number | null, globalSoldUnits: number, endDate: any | null } | null, weight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type ShippingMethodTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductVariantCreateDataQueryVariables = Exact<{ +export type MenuItemTranslationDetailsQueryVariables = Exact<{ id: Scalars['ID']; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; + language: LanguageCodeEnum; }>; -export type ProductVariantCreateDataQuery = { __typename: 'Query', product: { __typename: 'Product', id: string, name: string, media: Array<{ __typename: 'ProductMedia', id: string, sortOrder: number | null, url: string }> | null, channelListings: Array<{ __typename: 'ProductChannelListing', isPublished: boolean, publishedAt: any | null, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string } }> | null, productType: { __typename: 'ProductType', id: string, name: string, hasVariants: boolean, selectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null, nonSelectionVariantAttributes: Array<{ __typename: 'Attribute', id: string, name: string | null, slug: string | null, inputType: AttributeInputTypeEnum | null, entityType: AttributeEntityTypeEnum | null, valueRequired: boolean, unit: MeasurementUnitsEnum | null, referenceTypes: Array<{ __typename: 'PageType', id: string, name: string } | { __typename: 'ProductType', id: string, name: string }> | null, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }> } | null }> | null }, thumbnail: { __typename: 'Image', url: string } | null, defaultVariant: { __typename: 'ProductVariant', id: string } | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, type: ProductMediaType }> | null }> | null } | null }; +export type MenuItemTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; -export type ProductMediaByIdQueryVariables = Exact<{ - productId: Scalars['ID']; - mediaId: Scalars['ID']; +export type UpdateMetadataMutationVariables = Exact<{ + id: Scalars['ID']; + input: Array | MetadataInput; + keysToDelete: Array | Scalars['String']; }>; -export type ProductMediaByIdQuery = { __typename: 'Query', product: { __typename: 'Product', id: string, name: string, mainImage: { __typename: 'ProductMedia', id: string, alt: string, url: string, type: ProductMediaType, oembedData: any } | null, media: Array<{ __typename: 'ProductMedia', id: string, url: string, alt: string, type: ProductMediaType, oembedData: any }> | null } | null }; +export type UpdateMetadataMutation = { __typename: 'Mutation', updateMetadata: { __typename: 'UpdateMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }>, item: { __typename: 'Address', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'App', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Attribute', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Category', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Channel', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Checkout', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'CheckoutLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Collection', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'DigitalContent', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Fulfillment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'GiftCard', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Invoice', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Menu', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'MenuItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Order', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'OrderLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Page', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'PageType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Payment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Product', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductMedia', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductVariant', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Promotion', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Sale', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethod', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethodType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingZone', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxClass', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxConfiguration', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TransactionItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'User', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Voucher', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Warehouse', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null, deleteMetadata: { __typename: 'DeleteMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }>, item: { __typename: 'Address', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'App', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Attribute', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Category', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Channel', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Checkout', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'CheckoutLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Collection', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'DigitalContent', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Fulfillment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'GiftCard', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Invoice', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Menu', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'MenuItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Order', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'OrderLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Page', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'PageType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Payment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Product', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductMedia', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductVariant', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Promotion', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Sale', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethod', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethodType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingZone', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxClass', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxConfiguration', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TransactionItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'User', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Voucher', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Warehouse', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type GridAttributesQueryVariables = Exact<{ - ids: Array | Scalars['ID']; - hasAttributes: Scalars['Boolean']; - type: AttributeTypeEnum; +export type UpdatePrivateMetadataMutationVariables = Exact<{ + id: Scalars['ID']; + input: Array | MetadataInput; + keysToDelete: Array | Scalars['String']; }>; -export type GridAttributesQuery = { __typename: 'Query', availableAttributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, selectedAttributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }> } | null }; +export type UpdatePrivateMetadataMutation = { __typename: 'Mutation', updatePrivateMetadata: { __typename: 'UpdatePrivateMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }>, item: { __typename: 'Address', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'App', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Attribute', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Category', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Channel', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Checkout', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'CheckoutLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Collection', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'DigitalContent', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Fulfillment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'GiftCard', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Invoice', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Menu', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'MenuItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Order', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'OrderLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Page', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'PageType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Payment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Product', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductMedia', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductVariant', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Promotion', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Sale', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethod', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethodType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingZone', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxClass', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxConfiguration', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TransactionItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'User', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Voucher', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Warehouse', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null, deletePrivateMetadata: { __typename: 'DeletePrivateMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }>, item: { __typename: 'Address', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'App', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Attribute', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Category', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Channel', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Checkout', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'CheckoutLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Collection', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'DigitalContent', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Fulfillment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'GiftCard', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Invoice', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Menu', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'MenuItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Order', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'OrderLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Page', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'PageType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Payment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Product', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductMedia', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductVariant', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Promotion', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Sale', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethod', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethodType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingZone', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxClass', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxConfiguration', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TransactionItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'User', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Voucher', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Warehouse', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; -export type AvailableColumnAttributesQueryVariables = Exact<{ - search: Scalars['String']; - type: AttributeTypeEnum; - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; +export type WarehouseDeleteMutationVariables = Exact<{ + id: Scalars['ID']; }>; -export type AvailableColumnAttributesQuery = { __typename: 'Query', attributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type WarehouseDeleteMutation = { __typename: 'Mutation', deleteWarehouse: { __typename: 'WarehouseDelete', errors: Array<{ __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }> } | null }; -export type GridWarehousesQueryVariables = Exact<{ - ids: Array | Scalars['ID']; - hasWarehouses: Scalars['Boolean']; +export type WarehouseCreateMutationVariables = Exact<{ + input: WarehouseCreateInput; }>; -export type GridWarehousesQuery = { __typename: 'Query', availableWarehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null, selectedWarehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string } }> } | null }; - -export type ChannelDiagnosticsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ChannelDiagnosticsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string, isActive: boolean, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }> }> | null, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string, channels: Array<{ __typename: 'Channel', id: string }>, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }> } }> } | null }; +export type WarehouseCreateMutation = { __typename: 'Mutation', createWarehouse: { __typename: 'WarehouseCreate', errors: Array<{ __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }>, warehouse: { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } } | null } | null }; -export type SetRefundReasonTypeMutationVariables = Exact<{ - modelTypeId: Scalars['ID']; +export type WarehouseUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: WarehouseUpdateInput; }>; -export type SetRefundReasonTypeMutation = { __typename: 'Mutation', refundSettingsUpdate: { __typename: 'RefundSettingsUpdate', refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null }, errors: Array<{ __typename: 'RefundSettingsUpdateError', message: string | null, code: RefundSettingsErrorCode }> } | null }; +export type WarehouseUpdateMutation = { __typename: 'Mutation', updateWarehouse: { __typename: 'WarehouseUpdate', errors: Array<{ __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }>, warehouse: { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } } | null } | null }; -export type ClearRefundReasonTypeMutationVariables = Exact<{ [key: string]: never; }>; +export type WarehouseListQueryVariables = Exact<{ + first?: InputMaybe; + after?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + filter?: InputMaybe; + sort?: InputMaybe; +}>; -export type ClearRefundReasonTypeMutation = { __typename: 'Mutation', refundReasonReferenceClear: { __typename: 'RefundReasonReferenceTypeClear', errors: Array<{ __typename: 'RefundReasonReferenceTypeClearError', message: string | null, code: RefundSettingsErrorCode }>, refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null } } | null }; +export type WarehouseListQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; -export type RefundsSettingsQueryVariables = Exact<{ [key: string]: never; }>; +export type WarehouseDetailsQueryVariables = Exact<{ + id: Scalars['ID']; +}>; -export type RefundsSettingsQuery = { __typename: 'Query', refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null } }; +export type WarehouseDetailsQuery = { __typename: 'Query', warehouse: { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } } | null }; -export type ModelTypesQueryVariables = Exact<{ [key: string]: never; }>; +export type WarehousesCountQueryVariables = Exact<{ [key: string]: never; }>; -export type ModelTypesQuery = { __typename: 'Query', pageTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string } }> } | null }; +export type WarehousesCountQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', totalCount: number | null } | null }; -export type GlobalSearchQueryVariables = Exact<{ - query: Scalars['String']; - includeOrders: Scalars['Boolean']; - includeCategories: Scalars['Boolean']; - includeCollections: Scalars['Boolean']; - includeProducts: Scalars['Boolean']; - includeVariants: Scalars['Boolean']; - includeModels: Scalars['Boolean']; - includeModelTypes: Scalars['Boolean']; +export type SaveOnBoardingStateMutationVariables = Exact<{ + id: Scalars['ID']; + input: Array | MetadataInput; }>; -export type GlobalSearchQuery = { __typename: 'Query', orders?: { __typename: 'OrderCountableConnection', edges: Array<{ __typename: 'OrderCountableEdge', node: { __typename: 'Order', id: string, number: string, status: OrderStatus, updatedAt: any, paymentStatus: PaymentChargeStatusEnum, chargeStatus: OrderChargeStatusEnum, total: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } } }> } | null, categories?: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, updatedAt: any, level: number, backgroundImage: { __typename: 'Image', url: string, alt: string | null } | null, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null } }> } | null, collections?: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null, backgroundImage: { __typename: 'Image', url: string, alt: string | null } | null } }> } | null, products?: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, updatedAt: any, category: { __typename: 'Category', name: string } | null, thumbnail: { __typename: 'Image', alt: string | null, url: string } | null } }> } | null, productVariants?: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, sku: string | null, updatedAt: any, media: Array<{ __typename: 'ProductMedia', alt: string, url: string }> | null, product: { __typename: 'Product', id: string, name: string, category: { __typename: 'Category', name: string } | null } } }> } | null, models: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string, publishedAt: any | null, pageType: { __typename: 'PageType', name: string } } }> } | null, modelTypes: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string } }> } | null }; +export type SaveOnBoardingStateMutation = { __typename: 'Mutation', updateMetadata: { __typename: 'UpdateMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }> } | null }; -export type SearchAttributesQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; +export type WelcomePageActivitiesQueryVariables = Exact<{ + hasPermissionToManageOrders: Scalars['Boolean']; }>; -export type SearchAttributesQuery = { __typename: 'Query', search: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type WelcomePageActivitiesQuery = { __typename: 'Query', activities: { __typename: 'OrderEventCountableConnection', edges: Array<{ __typename: 'OrderEventCountableEdge', node: { __typename: 'OrderEvent', date: any | null, email: string | null, message: string | null, orderNumber: string | null, type: OrderEventsEnum | null, user: { __typename: 'User', email: string } | null } }> } | null }; -export type SearchAttributeValuesQueryVariables = Exact<{ - id?: InputMaybe; - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; +export type WelcomePageAnalyticsQueryVariables = Exact<{ + channel: Scalars['String']; + hasPermissionToManageOrders: Scalars['Boolean']; }>; -export type SearchAttributeValuesQuery = { __typename: 'Query', attribute: { __typename: 'Attribute', id: string, choices: { __typename: 'AttributeValueCountableConnection', edges: Array<{ __typename: 'AttributeValueCountableEdge', node: { __typename: 'AttributeValue', plainText: string | null, richText: any | null, id: string, name: string | null, slug: string | null, reference: string | null, boolean: boolean | null, date: string | null, dateTime: any | null, value: string | null, file: { __typename: 'File', url: string, contentType: string | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; +export type WelcomePageAnalyticsQuery = { __typename: 'Query', salesToday: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } | null }; -export type SearchAvailableInGridAttributesQueryVariables = Exact<{ - first: Scalars['Int']; - after?: InputMaybe; - query: Scalars['String']; +export type WelcomePageNotificationsQueryVariables = Exact<{ + channel: Scalars['String']; }>; -export type SearchAvailableInGridAttributesQuery = { __typename: 'Query', availableInGrid: { __typename: 'AttributeCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type WelcomePageNotificationsQuery = { __typename: 'Query', productsOutOfStock: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; -export type SearchAvailablePageAttributesQueryVariables = Exact<{ - id: Scalars['ID']; - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; -}>; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + /** + * The `Date` scalar type represents a Date + * value as specified by + * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). + */ + Date: { input: string; output: string; } + /** + * The `DateTime` scalar type represents a DateTime + * value as specified by + * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). + */ + DateTime: { input: any; output: any; } + /** The `Day` scalar type represents number of days by integer value. */ + Day: { input: number; output: number; } + /** + * Custom Decimal implementation. + * + * Returns Decimal as a float in the API, + * parses float to the Decimal on the way back. + */ + Decimal: { input: any; output: any; } + /** + * The `GenericScalar` scalar type represents a generic + * GraphQL scalar value that could be: + * String, Boolean, Int, Float, List or Object. + */ + GenericScalar: { input: any; output: any; } + /** The `Hour` scalar type represents number of hours by integer value. */ + Hour: { input: number; output: number; } + JSON: { input: any; output: any; } + JSONString: { input: any; output: any; } + /** + * Metadata is a map of key-value pairs, both keys and values are `String`. + * + * Example: + * ``` + * { + * "key1": "value1", + * "key2": "value2" + * } + * ``` + */ + Metadata: { input: any; output: any; } + /** The `Minute` scalar type represents number of minutes by integer value. */ + Minute: { input: any; output: any; } + /** + * Nonnegative Decimal scalar implementation. + * + * Should be used in places where value must be nonnegative (0 or greater). + */ + PositiveDecimal: { input: any; output: any; } + /** + * Positive Integer scalar implementation. + * + * Should be used in places where value must be positive (greater than 0). + */ + PositiveInt: { input: any; output: any; } + UUID: { input: any; output: 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: { input: any; output: any; } + WeightScalar: { input: any; output: any; } + /** _Any value scalar as defined by Federation spec. */ + _Any: { input: any; output: any; } +}; + +export type AccountErrorCode = + | 'ACCOUNT_NOT_CONFIRMED' + | 'ACTIVATE_OWN_ACCOUNT' + | 'ACTIVATE_SUPERUSER_ACCOUNT' + | 'CHANNEL_INACTIVE' + | 'DEACTIVATE_OWN_ACCOUNT' + | 'DEACTIVATE_SUPERUSER_ACCOUNT' + | 'DELETE_NON_STAFF_USER' + | 'DELETE_OWN_ACCOUNT' + | 'DELETE_STAFF_ACCOUNT' + | 'DELETE_SUPERUSER_ACCOUNT' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INACTIVE' + | 'INVALID' + | 'INVALID_CREDENTIALS' + | 'INVALID_PASSWORD' + | 'JWT_DECODE_ERROR' + | 'JWT_INVALID_CSRF_TOKEN' + | 'JWT_INVALID_TOKEN' + | 'JWT_MISSING_TOKEN' + | 'JWT_SIGNATURE_EXPIRED' + | 'LEFT_NOT_MANAGEABLE_PERMISSION' + | 'LOGIN_ATTEMPT_DELAYED' + | 'MISSING_CHANNEL_SLUG' + | 'NOT_FOUND' + | 'OUT_OF_SCOPE_GROUP' + | 'OUT_OF_SCOPE_PERMISSION' + | 'OUT_OF_SCOPE_USER' + | 'PASSWORD_ENTIRELY_NUMERIC' + | 'PASSWORD_RESET_ALREADY_REQUESTED' + | 'PASSWORD_TOO_COMMON' + | 'PASSWORD_TOO_SHORT' + | 'PASSWORD_TOO_SIMILAR' + | 'REQUIRED' + | 'UNIQUE' + | 'UNKNOWN_IP_ADDRESS'; +/** Fields required to update the user. */ +export type AccountInput = { + /** Billing address of the customer. */ + defaultBillingAddress?: InputMaybe; + /** Shipping address of the customer. */ + defaultShippingAddress?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User language code. */ + languageCode?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** + * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; +}; -export type SearchAvailablePageAttributesQuery = { __typename: 'Query', pageType: { __typename: 'PageType', id: string, availableAttributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; +/** Filtering options for addresses. */ +export type AddressFilterInput = { + country?: InputMaybe; + phoneNumber?: InputMaybe; +}; -export type SearchAvailableProductAttributesQueryVariables = Exact<{ - id: Scalars['ID']; - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type AddressInput = { + /** City. */ + city?: InputMaybe; + /** District. */ + cityArea?: InputMaybe; + /** Company or organization. */ + companyName?: InputMaybe; + /** Country. */ + country?: InputMaybe; + /** State or province. */ + countryArea?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** + * Address public metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** + * Phone number. + * + * Phone numbers are validated with Google's [libphonenumber](https://github.com/google/libphonenumber) library. + */ + phone?: InputMaybe; + /** Postal code. */ + postalCode?: InputMaybe; + /** + * Determine if the address should be validated. By default, Saleor accepts only address inputs matching ruleset from [Google Address Data]{https://chromium-i18n.appspot.com/ssl-address), using [i18naddress](https://github.com/mirumee/google-i18n-address) library. Some mutations may require additional permissions to use the the field. More info about permissions can be found in relevant mutation. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + skipValidation?: InputMaybe; + /** Address. */ + streetAddress1?: InputMaybe; + /** Address. */ + streetAddress2?: InputMaybe; +}; +export type AddressTypeEnum = + | 'BILLING' + | 'SHIPPING'; -export type SearchAvailableProductAttributesQuery = { __typename: 'Query', productType: { __typename: 'ProductType', id: string, availableAttributes: { __typename: 'AttributeCountableConnection', edges: Array<{ __typename: 'AttributeCountableEdge', node: { __typename: 'Attribute', id: string, name: string | null, slug: string | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null } | null }; +/** + * Determine the allocation strategy for the channel. + * + * PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order + * within the channel + * + * PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock + */ +export type AllocationStrategyEnum = + | 'PRIORITIZE_HIGH_STOCK' + | 'PRIORITIZE_SORTING_ORDER'; + +export type AppErrorCode = + | 'FORBIDDEN' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_CUSTOM_HEADERS' + | 'INVALID_MANIFEST_FORMAT' + | 'INVALID_PERMISSION' + | 'INVALID_STATUS' + | 'INVALID_URL_FORMAT' + | 'MANIFEST_URL_CANT_CONNECT' + | 'NOT_FOUND' + | 'OUT_OF_SCOPE_APP' + | 'OUT_OF_SCOPE_PERMISSION' + | 'REQUIRED' + | 'UNIQUE' + | 'UNSUPPORTED_SALEOR_VERSION'; -export type SearchCategoriesQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type AppExtensionFilterInput = { + /** + * DEPRECATED: Use `mountName` instead. + * @deprecated Field no longer supported + */ + mount?: InputMaybe>; + /** + * Plain-text mount name (case insensitive) + * + * Added in Saleor 3.22. + */ + mountName?: InputMaybe>; + /** + * DEPRECATED: Use `targetName` instead. + * @deprecated Field no longer supported + */ + target?: InputMaybe; + /** + * Plain-text target name (case insensitive) + * + * Added in Saleor 3.22. + */ + targetName?: InputMaybe; +}; +/** All places where app extension can be mounted. */ +export type AppExtensionMountEnum = + | 'CATEGORY_DETAILS_MORE_ACTIONS' + | 'CATEGORY_OVERVIEW_CREATE' + | 'CATEGORY_OVERVIEW_MORE_ACTIONS' + | 'COLLECTION_DETAILS_MORE_ACTIONS' + | 'COLLECTION_DETAILS_WIDGETS' + | 'COLLECTION_OVERVIEW_CREATE' + | 'COLLECTION_OVERVIEW_MORE_ACTIONS' + | 'CUSTOMER_DETAILS_MORE_ACTIONS' + | 'CUSTOMER_DETAILS_WIDGETS' + | 'CUSTOMER_OVERVIEW_CREATE' + | 'CUSTOMER_OVERVIEW_MORE_ACTIONS' + | 'DISCOUNT_DETAILS_MORE_ACTIONS' + | 'DISCOUNT_OVERVIEW_CREATE' + | 'DISCOUNT_OVERVIEW_MORE_ACTIONS' + | 'DRAFT_ORDER_DETAILS_MORE_ACTIONS' + | 'DRAFT_ORDER_DETAILS_WIDGETS' + | 'DRAFT_ORDER_OVERVIEW_CREATE' + | 'DRAFT_ORDER_OVERVIEW_MORE_ACTIONS' + | 'GIFT_CARD_DETAILS_MORE_ACTIONS' + | 'GIFT_CARD_DETAILS_WIDGETS' + | 'GIFT_CARD_OVERVIEW_CREATE' + | 'GIFT_CARD_OVERVIEW_MORE_ACTIONS' + | 'MENU_DETAILS_MORE_ACTIONS' + | 'MENU_OVERVIEW_CREATE' + | 'MENU_OVERVIEW_MORE_ACTIONS' + | 'NAVIGATION_CATALOG' + | 'NAVIGATION_CUSTOMERS' + | 'NAVIGATION_DISCOUNTS' + | 'NAVIGATION_ORDERS' + | 'NAVIGATION_PAGES' + | 'NAVIGATION_TRANSLATIONS' + | 'ORDER_DETAILS_MORE_ACTIONS' + | 'ORDER_DETAILS_WIDGETS' + | 'ORDER_OVERVIEW_CREATE' + | 'ORDER_OVERVIEW_MORE_ACTIONS' + | 'PAGE_DETAILS_MORE_ACTIONS' + | 'PAGE_OVERVIEW_CREATE' + | 'PAGE_OVERVIEW_MORE_ACTIONS' + | 'PAGE_TYPE_DETAILS_MORE_ACTIONS' + | 'PAGE_TYPE_OVERVIEW_CREATE' + | 'PAGE_TYPE_OVERVIEW_MORE_ACTIONS' + | 'PRODUCT_DETAILS_MORE_ACTIONS' + | 'PRODUCT_DETAILS_WIDGETS' + | 'PRODUCT_OVERVIEW_CREATE' + | 'PRODUCT_OVERVIEW_MORE_ACTIONS' + | 'TRANSLATIONS_MORE_ACTIONS' + | 'VOUCHER_DETAILS_MORE_ACTIONS' + | 'VOUCHER_DETAILS_WIDGETS' + | 'VOUCHER_OVERVIEW_CREATE' + | 'VOUCHER_OVERVIEW_MORE_ACTIONS'; -export type SearchCategoriesQuery = { __typename: 'Query', search: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, level: number, parent: { __typename: 'Category', id: string, name: string } | null, ancestors: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string } }> } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +/** + * All available ways of opening an app extension. + * + * POPUP - app's extension will be mounted as a popup window + * APP_PAGE - redirect to app's page + */ +export type AppExtensionTargetEnum = + | 'APP_PAGE' + | 'NEW_TAB' + | 'POPUP' + | 'WIDGET'; -export type SearchCategoriesWithTotalProductsQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - filter?: InputMaybe; -}>; +export type AppFilterInput = { + isActive?: InputMaybe; + search?: InputMaybe; + type?: InputMaybe; +}; +export type AppInput = { + /** + * Canonical app ID. If not provided, the identifier will be generated based on app.id. + * + * Added in Saleor 3.19. + */ + identifier?: InputMaybe; + /** Name of the app. */ + name?: InputMaybe; + /** List of permission code names to assign to this app. */ + permissions?: InputMaybe>; +}; -export type SearchCategoriesWithTotalProductsQuery = { __typename: 'Query', search: { __typename: 'CategoryCountableConnection', edges: Array<{ __typename: 'CategoryCountableEdge', node: { __typename: 'Category', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AppInstallInput = { + /** Determine if app will be set active or not. */ + activateAfterInstallation?: InputMaybe; + /** Name of the app to install. */ + appName?: InputMaybe; + /** URL to app's manifest in JSON format. */ + manifestUrl?: InputMaybe; + /** List of permission code names to assign to this app. */ + permissions?: InputMaybe>; +}; -export type SearchCollectionsQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; - channel?: InputMaybe; -}>; +export type AppSortField = + /** Sort apps by creation date. */ + | 'CREATION_DATE' + /** Sort apps by name. */ + | 'NAME'; +export type AppSortingInput = { + /** Specifies the direction in which to sort apps. */ + direction: OrderDirection; + /** Sort apps by the selected field. */ + field: AppSortField; +}; -export type SearchCollectionsQuery = { __typename: 'Query', search: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AppTokenInput = { + /** ID of app. */ + app: Scalars['ID']['input']; + /** Name of the token. */ + name?: InputMaybe; +}; -export type SearchCollectionsWithTotalProductsQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; - channel?: InputMaybe; -}>; +/** Enum determining type of your App. */ +export type AppTypeEnum = + /** Local Saleor App. The app is fully manageable from dashboard. You can change assigned permissions, add webhooks, or authentication token */ + | 'LOCAL' + /** Third party external App. Installation is fully automated. Saleor uses a defined App manifest to gather all required information. */ + | 'THIRDPARTY'; +export type AssignedAttributeReferenceInput = { + /** Returns objects with a reference pointing to a category identified by the given slug. */ + categorySlugs?: InputMaybe; + /** Returns objects with a reference pointing to a collection identified by the given slug. */ + collectionSlugs?: InputMaybe; + /** Returns objects with a reference pointing to a page identified by the given slug. */ + pageSlugs?: InputMaybe; + /** Returns objects with a reference pointing to a product identified by the given slug. */ + productSlugs?: InputMaybe; + /** Returns objects with a reference pointing to a product variant identified by the given sku. */ + productVariantSkus?: InputMaybe; + /** Returns objects with a reference pointing to an object identified by the given ID. */ + referencedIds?: InputMaybe; +}; -export type SearchCollectionsWithTotalProductsQuery = { __typename: 'Query', search: { __typename: 'CollectionCountableConnection', edges: Array<{ __typename: 'CollectionCountableEdge', node: { __typename: 'Collection', id: string, name: string, products: { __typename: 'ProductCountableConnection', totalCount: number | null } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AssignedAttributeValueInput = { + /** Filter by boolean value for attributes of boolean type. */ + boolean?: InputMaybe; + /** Filter by date value for attributes of date type. */ + date?: InputMaybe; + /** Filter by date time value for attributes of date time type. */ + dateTime?: InputMaybe; + /** Filter by name assigned to AttributeValue. */ + name?: InputMaybe; + /** Filter by numeric value for attributes of numeric type. */ + numeric?: InputMaybe; + /** Filter by reference attribute value. */ + reference?: InputMaybe; + /** Filter by slug assigned to AttributeValue. */ + slug?: InputMaybe; +}; -export type SearchCustomersQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type AssignedAttributeWhereInput = { + /** Filter by attribute slug. */ + slug?: InputMaybe; + /** Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. */ + value?: InputMaybe; +}; +/** + * Represents an input for create of attribute. + * + * NOTE: Deprecated fields `filterableInStorefront`, `storefrontSearchPosition` and `availableInGrid` are not supported in bulk mutations: `attributeBulkCreate`, `attributeBulkUpdate`. + */ +export type AttributeCreateInput = { + /** + * Whether the attribute can be displayed in the admin product list. + * @deprecated Field no longer supported + */ + availableInGrid?: InputMaybe; + /** The entity type which can be used as a reference. */ + entityType?: InputMaybe; + /** External ID of this attribute. */ + externalReference?: InputMaybe; + /** Whether the attribute can be filtered in dashboard. */ + filterableInDashboard?: InputMaybe; + /** + * Whether the attribute can be filtered in storefront. + * @deprecated Field no longer supported + */ + filterableInStorefront?: InputMaybe; + /** The input type to use for entering attribute values in the dashboard. */ + inputType?: InputMaybe; + /** Whether the attribute is for variants only. */ + isVariantOnly?: InputMaybe; + /** Name of an attribute displayed in the interface. */ + name: Scalars['String']['input']; + /** + * Specifies reference types to narrow down the choices of reference objects. Applicable only for `REFERENCE` and `SINGLE_REFERENCE` attributes with `PRODUCT`, `PRODUCT_VARIANT` and `PAGE` entity types. Accepts `ProductType` IDs for `PRODUCT` and `PRODUCT_VARIANT` entity types, and `PageType` IDs for `PAGE` entity type. If omitted, all objects of the selected entity type are available as attribute values. + * + * A maximum of 100 reference types can be specified. + * + * Added in Saleor 3.22. + */ + referenceTypes?: InputMaybe>; + /** Internal representation of an attribute name. */ + slug?: InputMaybe; + /** + * The position of the attribute in the storefront navigation (0 by default). + * @deprecated Field no longer supported + */ + storefrontSearchPosition?: InputMaybe; + /** The attribute type. */ + type: AttributeTypeEnum; + /** The unit of attribute values. */ + unit?: InputMaybe; + /** Whether the attribute requires values to be passed or not. */ + valueRequired?: InputMaybe; + /** List of attribute's values. */ + values?: InputMaybe>; + /** Whether the attribute should be visible or not in storefront. */ + visibleInStorefront?: InputMaybe; +}; -export type SearchCustomersQuery = { __typename: 'Query', search: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AttributeEntityTypeEnum = + | 'CATEGORY' + | 'COLLECTION' + | 'PAGE' + | 'PRODUCT' + | 'PRODUCT_VARIANT'; -export type SearchGiftCardTagsQueryVariables = Exact<{ - query: Scalars['String']; - first: Scalars['Int']; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type AttributeErrorCode = + | 'ALREADY_EXISTS' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; +export type AttributeFilterInput = { + availableInGrid?: InputMaybe; + /** + * Specifies the channel by which the data should be filtered. + * @deprecated Use root-level channel argument instead. + */ + channel?: InputMaybe; + filterableInDashboard?: InputMaybe; + filterableInStorefront?: InputMaybe; + ids?: InputMaybe>; + inCategory?: InputMaybe; + inCollection?: InputMaybe; + isVariantOnly?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; + type?: InputMaybe; + valueRequired?: InputMaybe; + visibleInStorefront?: InputMaybe; +}; -export type SearchGiftCardTagsQuery = { __typename: 'Query', search: { __typename: 'GiftCardTagCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'GiftCardTagCountableEdge', node: { __typename: 'GiftCardTag', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AttributeInput = { + /** + * The boolean value of the attribute. Requires `slug` to be provided. + * @deprecated Use `value` instead. + */ + boolean?: InputMaybe; + /** + * The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. Requires `slug` to be provided. + * @deprecated Use `value` instead. + */ + date?: InputMaybe; + /** + * The date/time range that the returned values should be in. Requires `slug` to be provided. + * @deprecated Use `value` instead. + */ + dateTime?: InputMaybe; + /** Internal representation of an attribute name. */ + slug?: InputMaybe; + /** Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. Cannot be combined with deprecated fields of `AttributeInput`. */ + value?: InputMaybe; + /** + * Slugs identifying the attributeValues associated with the Attribute. When specified, it filters the results to include only records with one of the matching values. Requires `slug` to be provided. + * @deprecated Use `value` instead. + */ + values?: InputMaybe>; + /** + * The range that the returned values should be in. Requires `slug` to be provided. + * @deprecated Use `value` instead. + */ + valuesRange?: InputMaybe; +}; -export type SearchOrderVariantQueryVariables = Exact<{ - channel: Scalars['String']; - first: Scalars['Int']; - query: Scalars['String']; - after?: InputMaybe; - address?: InputMaybe; - isPublished?: InputMaybe; - stockAvailability?: InputMaybe; -}>; +export type AttributeInputTypeEnum = + | 'BOOLEAN' + | 'DATE' + | 'DATE_TIME' + | 'DROPDOWN' + | 'FILE' + | 'MULTISELECT' + | 'NUMERIC' + | 'PLAIN_TEXT' + | 'REFERENCE' + | 'RICH_TEXT' + | 'SINGLE_REFERENCE' + | 'SWATCH'; + +export type AttributeSortField = + /** Sort attributes based on whether they can be displayed or not in a product grid. */ + | 'AVAILABLE_IN_GRID' + /** Sort attributes by the filterable in dashboard flag */ + | 'FILTERABLE_IN_DASHBOARD' + /** Sort attributes by the filterable in storefront flag */ + | 'FILTERABLE_IN_STOREFRONT' + /** Sort attributes by the variant only flag */ + | 'IS_VARIANT_ONLY' + /** Sort attributes by name */ + | 'NAME' + /** Sort attributes by slug */ + | 'SLUG' + /** Sort attributes by their position in storefront */ + | 'STOREFRONT_SEARCH_POSITION' + /** Sort attributes by the value required flag */ + | 'VALUE_REQUIRED' + /** Sort attributes by visibility in the storefront */ + | 'VISIBLE_IN_STOREFRONT'; +export type AttributeSortingInput = { + /** Specifies the direction in which to sort attributes. */ + direction: OrderDirection; + /** Sort attributes by the selected field. */ + field: AttributeSortField; +}; -export type SearchOrderVariantQuery = { __typename: 'Query', search: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, pricing: { __typename: 'VariantPricingInfo', onSale: boolean | null, priceUndiscounted: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } | null, price: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } | null } | null }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AttributeTypeEnum = + | 'PAGE_TYPE' + | 'PRODUCT_TYPE'; -export type SearchPagesQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; - where?: InputMaybe; -}>; +/** + * Represents an input for update of attribute. + * + * NOTE: Deprecated fields `filterableInStorefront`, `storefrontSearchPosition` and `availableInGrid` are not supported in bulk mutations: `attributeBulkCreate`, `attributeBulkUpdate`. + */ +export type AttributeUpdateInput = { + /** New values to be created for this attribute. */ + addValues?: InputMaybe>; + /** + * Whether the attribute can be displayed in the admin product list. + * @deprecated Field no longer supported + */ + availableInGrid?: InputMaybe; + /** External ID of this product. */ + externalReference?: InputMaybe; + /** Whether the attribute can be filtered in dashboard. */ + filterableInDashboard?: InputMaybe; + /** + * Whether the attribute can be filtered in storefront. + * @deprecated Field no longer supported + */ + filterableInStorefront?: InputMaybe; + /** Whether the attribute is for variants only. */ + isVariantOnly?: InputMaybe; + /** Name of an attribute displayed in the interface. */ + name?: InputMaybe; + /** + * Specifies reference types to narrow down the choices of reference objects. Applicable only for `REFERENCE` and `SINGLE_REFERENCE` attributes with `PRODUCT`, `PRODUCT_VARIANT` and `PAGE` entity types. Accepts `ProductType` IDs for `PRODUCT` and `PRODUCT_VARIANT` entity types, and `PageType` IDs for `PAGE` entity type. If omitted, all objects of the selected entity type are available as attribute values. + * + * A maximum of 100 reference types can be specified. + * + * Added in Saleor 3.22. + */ + referenceTypes?: InputMaybe>; + /** IDs of values to be removed from this attribute. */ + removeValues?: InputMaybe>; + /** Internal representation of an attribute name. */ + slug?: InputMaybe; + /** + * The position of the attribute in the storefront navigation (0 by default). + * @deprecated Field no longer supported + */ + storefrontSearchPosition?: InputMaybe; + /** The unit of attribute values. */ + unit?: InputMaybe; + /** Whether the attribute requires values to be passed or not. */ + valueRequired?: InputMaybe; + /** Whether the attribute should be visible or not in storefront. */ + visibleInStorefront?: InputMaybe; +}; +export type AttributeValueCreateInput = { + /** File content type. */ + contentType?: InputMaybe; + /** External ID of this attribute value. */ + externalReference?: InputMaybe; + /** URL of the file attribute. Every time, a new value is created. */ + fileUrl?: InputMaybe; + /** Name of a value displayed in the interface. */ + name: Scalars['String']['input']; + /** + * Represents the text of the attribute value, plain text without formatting. + * @deprecated The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + */ + plainText?: InputMaybe; + /** + * Represents the text of the attribute value, includes formatting. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + */ + richText?: InputMaybe; + /** Represent value of the attribute value (e.g. color values for swatch attributes). */ + value?: InputMaybe; +}; -export type SearchPagesQuery = { __typename: 'Query', search: { __typename: 'PageCountableConnection', edges: Array<{ __typename: 'PageCountableEdge', node: { __typename: 'Page', id: string, title: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AttributeValueInput = { + /** Represents the boolean value of the attribute value. */ + boolean?: InputMaybe; + /** File content type. */ + contentType?: InputMaybe; + /** Represents the date value of the attribute value. */ + date?: InputMaybe; + /** Represents the date/time value of the attribute value. */ + dateTime?: InputMaybe; + /** Attribute value ID or external reference. */ + dropdown?: InputMaybe; + /** External ID of this attribute. */ + externalReference?: InputMaybe; + /** URL of the file attribute. Every time, a new value is created. */ + file?: InputMaybe; + /** ID of the selected attribute. */ + id?: InputMaybe; + /** List of attribute value IDs or external references. */ + multiselect?: InputMaybe>; + /** Numeric value of an attribute. */ + numeric?: InputMaybe; + /** Plain text content. */ + plainText?: InputMaybe; + /** + * ID of the referenced entity for single reference attribute. + * + * Added in Saleor 3.22. + */ + reference?: InputMaybe; + /** List of entity IDs that will be used as references. */ + references?: InputMaybe>; + /** Text content in JSON format. */ + richText?: InputMaybe; + /** Attribute value ID or external reference. */ + swatch?: InputMaybe; + /** + * The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. + * @deprecated Field no longer supported + */ + values?: InputMaybe>; +}; -export type SearchPageTypesQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; -}>; +/** + * Represents attribute value. + * 1. If ID is provided, then attribute value will be resolved by ID. + * 2. If externalReference is provided, then attribute value will be resolved by external reference. + * 3. If value is provided, then attribute value will be resolved by value. If this attribute value doesn't exist, then it will be created. + * 4. If externalReference and value is provided then new attribute value will be created. + */ +export type AttributeValueSelectableTypeInput = { + /** External reference of an attribute value. */ + externalReference?: InputMaybe; + /** ID of an attribute value. */ + id?: InputMaybe; + /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ + value?: InputMaybe; +}; +export type AttributeValueTranslationInput = { + name?: InputMaybe; + /** Translated text. */ + plainText?: InputMaybe; + /** + * Translated text. + * + * Rich text format. For reference see https://editorjs.io/ + */ + richText?: InputMaybe; +}; -export type SearchPageTypesQuery = { __typename: 'Query', search: { __typename: 'PageTypeCountableConnection', edges: Array<{ __typename: 'PageTypeCountableEdge', node: { __typename: 'PageType', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type AttributeValueUpdateInput = { + /** File content type. */ + contentType?: InputMaybe; + /** External ID of this attribute value. */ + externalReference?: InputMaybe; + /** URL of the file attribute. Every time, a new value is created. */ + fileUrl?: InputMaybe; + /** Name of a value displayed in the interface. */ + name?: InputMaybe; + /** + * Represents the text of the attribute value, plain text without formatting. + * @deprecated The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + */ + plainText?: InputMaybe; + /** + * Represents the text of the attribute value, includes formatting. + * + * Rich text format. For reference see https://editorjs.io/ + * @deprecated The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. + */ + richText?: InputMaybe; + /** Represent value of the attribute value (e.g. color values for swatch attributes). */ + value?: InputMaybe; +}; -export type SearchPermissionGroupsQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type BulkAttributeValueInput = { + /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ + boolean?: InputMaybe; + /** File content type. */ + contentType?: InputMaybe; + /** Represents the date value of the attribute value. */ + date?: InputMaybe; + /** Represents the date/time value of the attribute value. */ + dateTime?: InputMaybe; + /** Attribute value ID. */ + dropdown?: InputMaybe; + /** External ID of this attribute. */ + externalReference?: InputMaybe; + /** URL of the file attribute. Every time, a new value is created. */ + file?: InputMaybe; + /** ID of the selected attribute. */ + id?: InputMaybe; + /** List of attribute value IDs. */ + multiselect?: InputMaybe>; + /** Numeric value of an attribute. */ + numeric?: InputMaybe; + /** Plain text content. */ + plainText?: InputMaybe; + /** + * ID of the referenced entity for single reference attribute. + * + * Added in Saleor 3.22. + */ + reference?: InputMaybe; + /** List of entity IDs that will be used as references. */ + references?: InputMaybe>; + /** Text content in JSON format. */ + richText?: InputMaybe; + /** Attribute value ID. */ + swatch?: InputMaybe; + /** + * The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. + * @deprecated Field no longer supported + */ + values?: InputMaybe>; +}; +export type CatalogueInput = { + /** Categories related to the discount. */ + categories?: InputMaybe>; + /** Collections related to the discount. */ + collections?: InputMaybe>; + /** Products related to the discount. */ + products?: InputMaybe>; + /** Product variant related to the discount. */ + variants?: InputMaybe>; +}; -export type SearchPermissionGroupsQuery = { __typename: 'Query', search: { __typename: 'GroupCountableConnection', edges: Array<{ __typename: 'GroupCountableEdge', node: { __typename: 'Group', id: string, name: string, userCanManage: boolean } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type CataloguePredicateInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** Defines the category conditions to be met. */ + categoryPredicate?: InputMaybe; + /** Defines the collection conditions to be met. */ + collectionPredicate?: InputMaybe; + /** Defines the product conditions to be met. */ + productPredicate?: InputMaybe; + /** Defines the product variant conditions to be met. */ + variantPredicate?: InputMaybe; +}; -export type SearchProductsQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; - channel?: InputMaybe; - where?: InputMaybe; -}>; +export type CategoryFilterInput = { + ids?: InputMaybe>; + metadata?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; + /** Filter by when was the most recent update. */ + updatedAt?: InputMaybe; +}; +export type CategoryInput = { + /** Background image file. */ + backgroundImage?: InputMaybe; + /** Alt text for a product media. */ + backgroundImageAlt?: InputMaybe; + /** + * Category description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + /** + * Fields required to update the category metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Category name. */ + name?: InputMaybe; + /** + * Fields required to update the category private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Category slug. */ + slug?: InputMaybe; +}; -export type SearchProductsQuery = { __typename: 'Query', search: { __typename: 'ProductCountableConnection', edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, productType: { __typename: 'ProductType', id: string, name: string }, thumbnail: { __typename: 'Image', url: string } | null, channelListings: Array<{ __typename: 'ProductChannelListing', id: string, isPublished: boolean, publishedAt: any | null, isAvailableForPurchase: boolean | null, availableForPurchaseAt: any | null, visibleInListings: boolean, channel: { __typename: 'Channel', id: string, name: string, slug: string, currencyCode: string } }> | null, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null, product: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null, productType: { __typename: 'ProductType', id: string, name: string } }, channelListings: Array<{ __typename: 'ProductVariantChannelListing', channel: { __typename: 'Channel', id: string, isActive: boolean, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null }> | null }> | null, collections: Array<{ __typename: 'Collection', id: string }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type CategorySortField = + /** Sort categories by name. */ + | 'NAME' + /** Sort categories by product count. */ + | 'PRODUCT_COUNT' + /** Sort categories by subcategory count. */ + | 'SUBCATEGORY_COUNT'; -export type SearchProductTypesQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type CategorySortingInput = { + /** + * Specifies the channel in which to sort the data. + * @deprecated Use root-level channel argument instead. + */ + channel?: InputMaybe; + /** Specifies the direction in which to sort categories. */ + direction: OrderDirection; + /** Sort categories by the selected field. */ + field: CategorySortField; +}; +export type CategoryWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + ids?: InputMaybe>; + metadata?: InputMaybe>; +}; -export type SearchProductTypesQuery = { __typename: 'Query', search: { __typename: 'ProductTypeCountableConnection', edges: Array<{ __typename: 'ProductTypeCountableEdge', node: { __typename: 'ProductType', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type ChannelCreateInput = { + /** List of shipping zones to assign to the channel. */ + addShippingZones?: InputMaybe>; + /** List of warehouses to assign to the channel. */ + addWarehouses?: InputMaybe>; + /** The channel checkout settings */ + checkoutSettings?: InputMaybe; + /** Currency of the channel. */ + currencyCode: Scalars['String']['input']; + /** Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. */ + defaultCountry: CountryCode; + /** Determine if channel will be set active or not. */ + isActive?: InputMaybe; + /** + * Channel public metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Name of the channel. */ + name: Scalars['String']['input']; + /** The channel order settings */ + orderSettings?: InputMaybe; + /** The channel payment settings */ + paymentSettings?: InputMaybe; + /** + * Channel private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** Slug of the channel. */ + slug: Scalars['String']['input']; + /** The channel stock settings. */ + stockSettings?: InputMaybe; +}; -export type SearchShippingZonesQueryVariables = Exact<{ - query: Scalars['String']; - first: Scalars['Int']; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type ChannelDeleteInput = { + /** ID of a channel to migrate orders from the origin channel. Target channel has to have the same currency as the origin. */ + channelId: Scalars['ID']['input']; +}; +export type ChannelErrorCode = + | 'ALREADY_EXISTS' + | 'CHANNELS_CURRENCY_MUST_BE_THE_SAME' + | 'CHANNEL_WITH_ORDERS' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; -export type SearchShippingZonesQuery = { __typename: 'Query', search: { __typename: 'ShippingZoneCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type ChannelListingUpdateInput = { + /** ID of a channel listing. */ + channelListing: Scalars['ID']['input']; + /** Cost price of the variant in channel. */ + costPrice?: InputMaybe; + /** The threshold for preorder variant in channel. */ + preorderThreshold?: InputMaybe; + /** Price of the particular variant in channel. */ + price?: InputMaybe; + /** Price of the variant before discount. */ + priorPrice?: InputMaybe; +}; -export type SearchStaffMembersQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; -}>; +export type ChannelUpdateInput = { + /** List of shipping zones to assign to the channel. */ + addShippingZones?: InputMaybe>; + /** List of warehouses to assign to the channel. */ + addWarehouses?: InputMaybe>; + /** The channel checkout settings */ + checkoutSettings?: InputMaybe; + /** Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. */ + defaultCountry?: InputMaybe; + /** Determine if channel will be set active or not. */ + isActive?: InputMaybe; + /** + * Channel public metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Name of the channel. */ + name?: InputMaybe; + /** The channel order settings */ + orderSettings?: InputMaybe; + /** The channel payment settings */ + paymentSettings?: InputMaybe; + /** + * Channel private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** List of shipping zones to unassign from the channel. */ + removeShippingZones?: InputMaybe>; + /** List of warehouses to unassign from the channel. */ + removeWarehouses?: InputMaybe>; + /** Slug of the channel. */ + slug?: InputMaybe; + /** The channel stock settings. */ + stockSettings?: InputMaybe; +}; +/** + * Determine a current authorize status for checkout. + * + * We treat the checkout as fully authorized when the sum of authorized and charged + * funds cover the checkout.total. + * We treat the checkout as partially authorized when the sum of authorized and charged + * funds covers only part of the checkout.total + * We treat the checkout as not authorized when the sum of authorized and charged funds + * is 0. + * + * NONE - the funds are not authorized + * PARTIAL - the cover funds don't cover fully the checkout's total + * FULL - the cover funds covers the checkout's total + */ +export type CheckoutAuthorizeStatusEnum = + | 'FULL' + | 'NONE' + | 'PARTIAL'; -export type SearchStaffMembersQuery = { __typename: 'Query', search: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', node: { __typename: 'User', id: string, email: string, firstName: string, lastName: string, isActive: boolean, avatar: { __typename: 'Image', alt: string | null, url: string } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type CheckoutAutoCompleteInput = { + /** Specifies the earliest date on which fully paid checkouts can begin to be automatically completed. Fully paid checkouts dated before this cut-off will not be automatically completed. Must be less than the threshold of the oldest modified checkout eligible for automatic completion. Default is current date time. */ + cutOffDate?: InputMaybe; + /** The time in minutes after which the fully paid checkout will be automatically completed. Default is 30. Set to 0 for immediate completion. Should be less than the threshold for the oldest modified checkout eligible for automatic completion. */ + delay?: InputMaybe; + /** Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `charge_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. */ + enabled: Scalars['Boolean']['input']; +}; -export type SearchVariantsQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; - channel?: InputMaybe; -}>; +/** + * Determine the current charge status for the checkout. + * + * The checkout is considered overcharged when the sum of the transactionItem's charge + * amounts exceeds the value of `checkout.total`. + * If the sum of the transactionItem's charge amounts equals + * `checkout.total`, we consider the checkout to be fully charged. + * If the sum of the transactionItem's charge amounts covers a part of the + * `checkout.total`, we treat the checkout as partially charged. + * + * + * NONE - the funds are not charged. + * PARTIAL - the funds that are charged don't cover the checkout's total + * FULL - the funds that are charged fully cover the checkout's total + * OVERCHARGED - the charged funds are bigger than checkout's total + */ +export type CheckoutChargeStatusEnum = + | 'FULL' + | 'NONE' + | 'OVERCHARGED' + | 'PARTIAL'; + +export type CheckoutSettingsInput = { + /** + * Settings for automatic completion of fully paid checkouts. + * + * Added in Saleor 3.22. + */ + automaticCompletion?: InputMaybe; + /** + * Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `authorize_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. + * + * Added in Saleor 3.20. + * @deprecated Use `automatic_completion` instead. + */ + automaticallyCompleteFullyPaidCheckouts?: InputMaybe; + /** + * Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one. + * @deprecated Field no longer supported + */ + useLegacyErrorFlow?: InputMaybe; +}; +/** Enum determining the state of a circuit breaker. */ +export type CircuitBreakerStateEnum = + /** The breaker is conducting (requests are passing through). */ + | 'CLOSED' + /** The breaker is in a trial period (to close or open). Note that unlike classic breaker patterns, this is not a state where we are throttling the number of requests, it's a state similar to CLOSED but with different thresholds. */ + | 'HALF_OPEN' + /** The breaker is tripped (no requests are passing). Breaker will enter half-open state after cooldown period. */ + | 'OPEN'; -export type SearchVariantsQuery = { __typename: 'Query', search: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type CollectionChannelListingUpdateInput = { + /** List of channels to which the collection should be assigned. */ + addChannels?: InputMaybe>; + /** List of channels from which the collection should be unassigned. */ + removeChannels?: InputMaybe>; +}; -export type SearchVariantsWithProductDataQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; - channel?: InputMaybe; -}>; +export type CollectionCreateInput = { + /** Background image file. */ + backgroundImage?: InputMaybe; + /** Alt text for an image. */ + backgroundImageAlt?: InputMaybe; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + /** Informs whether a collection is published. */ + isPublished?: InputMaybe; + /** + * Fields required to update the collection metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Name of the collection. */ + name?: InputMaybe; + /** + * Fields required to update the collection private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** List of products to be added to the collection. */ + products?: InputMaybe>; + /** + * Publication date. ISO 8601 standard. + * @deprecated Field no longer supported + */ + publicationDate?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Slug of the collection. */ + slug?: InputMaybe; +}; +export type CollectionErrorCode = + | 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; -export type SearchVariantsWithProductDataQuery = { __typename: 'Query', search: { __typename: 'ProductVariantCountableConnection', edges: Array<{ __typename: 'ProductVariantCountableEdge', node: { __typename: 'ProductVariant', id: string, name: string, product: { __typename: 'Product', name: string } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type CollectionFilterInput = { + /** + * Specifies the channel by which the data should be filtered. + * @deprecated Use root-level channel argument instead. + */ + channel?: InputMaybe; + ids?: InputMaybe>; + metadata?: InputMaybe>; + published?: InputMaybe; + search?: InputMaybe; + slugs?: InputMaybe>; +}; -export type SearchWarehousesQueryVariables = Exact<{ - after?: InputMaybe; - first: Scalars['Int']; - query: Scalars['String']; - channnelsId?: InputMaybe | Scalars['ID']>; -}>; +export type CollectionInput = { + /** Background image file. */ + backgroundImage?: InputMaybe; + /** Alt text for an image. */ + backgroundImageAlt?: InputMaybe; + /** + * Description of the collection. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + /** Informs whether a collection is published. */ + isPublished?: InputMaybe; + /** + * Fields required to update the collection metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Name of the collection. */ + name?: InputMaybe; + /** + * Fields required to update the collection private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** + * Publication date. ISO 8601 standard. + * @deprecated Field no longer supported + */ + publicationDate?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Slug of the collection. */ + slug?: InputMaybe; +}; +export type CollectionPublished = + | 'HIDDEN' + | 'PUBLISHED'; -export type SearchWarehousesQuery = { __typename: 'Query', search: { __typename: 'WarehouseCountableConnection', totalCount: number | null, edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type CollectionSortField = + /** + * Sort collections by availability. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'AVAILABILITY' + /** Sort collections by name. */ + | 'NAME' + /** Sort collections by product count. */ + | 'PRODUCT_COUNT' + /** + * Sort collections by publication date. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'PUBLICATION_DATE' + /** + * Sort collections by published at. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'PUBLISHED_AT'; -export type DeleteShippingZoneMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type CollectionSortingInput = { + /** + * Specifies the channel in which to sort the data. + * @deprecated Use root-level channel argument instead. + */ + channel?: InputMaybe; + /** Specifies the direction in which to sort collections. */ + direction: OrderDirection; + /** Sort collections by the selected field. */ + field: CollectionSortField; +}; +export type CollectionWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + ids?: InputMaybe>; + metadata?: InputMaybe>; +}; -export type DeleteShippingZoneMutation = { __typename: 'Mutation', shippingZoneDelete: { __typename: 'ShippingZoneDelete', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; +export type ConfigurationItemInput = { + /** Name of the field to update. */ + name: Scalars['String']['input']; + /** Value of the given field to update. */ + value?: InputMaybe; +}; -export type BulkDeleteShippingZoneMutationVariables = Exact<{ - ids: Array | Scalars['ID']; -}>; +export type ConfigurationTypeFieldEnum = + | 'BOOLEAN' + | 'MULTILINE' + | 'OUTPUT' + | 'PASSWORD' + | 'SECRET' + | 'SECRETMULTILINE' + | 'STRING'; +/** Define the filtering options for fields that can contain multiple values. */ +export type ContainsFilterInput = { + /** The field contains all of the specified values. */ + containsAll?: InputMaybe>; + /** The field contains at least one of the specified values. */ + containsAny?: InputMaybe>; +}; -export type BulkDeleteShippingZoneMutation = { __typename: 'Mutation', shippingZoneBulkDelete: { __typename: 'ShippingZoneBulkDelete', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; +/** + * Represents country codes defined by the ISO 3166-1 alpha-2 standard. + * + * The `EU` value is DEPRECATED and will be removed in Saleor 3.21. + */ +export type CountryCode = + | 'AD' + | 'AE' + | 'AF' + | 'AG' + | 'AI' + | 'AL' + | 'AM' + | 'AO' + | 'AQ' + | 'AR' + | 'AS' + | 'AT' + | 'AU' + | 'AW' + | 'AX' + | 'AZ' + | 'BA' + | 'BB' + | 'BD' + | 'BE' + | 'BF' + | 'BG' + | 'BH' + | 'BI' + | 'BJ' + | 'BL' + | 'BM' + | 'BN' + | 'BO' + | 'BQ' + | 'BR' + | 'BS' + | 'BT' + | 'BV' + | 'BW' + | 'BY' + | 'BZ' + | 'CA' + | 'CC' + | 'CD' + | 'CF' + | 'CG' + | 'CH' + | 'CI' + | 'CK' + | 'CL' + | 'CM' + | 'CN' + | 'CO' + | 'CR' + | 'CU' + | 'CV' + | 'CW' + | 'CX' + | 'CY' + | 'CZ' + | 'DE' + | 'DJ' + | 'DK' + | 'DM' + | 'DO' + | 'DZ' + | 'EC' + | 'EE' + | 'EG' + | 'EH' + | 'ER' + | 'ES' + | 'ET' + | 'EU' + | 'FI' + | 'FJ' + | 'FK' + | 'FM' + | 'FO' + | 'FR' + | 'GA' + | 'GB' + | 'GD' + | 'GE' + | 'GF' + | 'GG' + | 'GH' + | 'GI' + | 'GL' + | 'GM' + | 'GN' + | 'GP' + | 'GQ' + | 'GR' + | 'GS' + | 'GT' + | 'GU' + | 'GW' + | 'GY' + | 'HK' + | 'HM' + | 'HN' + | 'HR' + | 'HT' + | 'HU' + | 'ID' + | 'IE' + | 'IL' + | 'IM' + | 'IN' + | 'IO' + | 'IQ' + | 'IR' + | 'IS' + | 'IT' + | 'JE' + | 'JM' + | 'JO' + | 'JP' + | 'KE' + | 'KG' + | 'KH' + | 'KI' + | 'KM' + | 'KN' + | 'KP' + | 'KR' + | 'KW' + | 'KY' + | 'KZ' + | 'LA' + | 'LB' + | 'LC' + | 'LI' + | 'LK' + | 'LR' + | 'LS' + | 'LT' + | 'LU' + | 'LV' + | 'LY' + | 'MA' + | 'MC' + | 'MD' + | 'ME' + | 'MF' + | 'MG' + | 'MH' + | 'MK' + | 'ML' + | 'MM' + | 'MN' + | 'MO' + | 'MP' + | 'MQ' + | 'MR' + | 'MS' + | 'MT' + | 'MU' + | 'MV' + | 'MW' + | 'MX' + | 'MY' + | 'MZ' + | 'NA' + | 'NC' + | 'NE' + | 'NF' + | 'NG' + | 'NI' + | 'NL' + | 'NO' + | 'NP' + | 'NR' + | 'NU' + | 'NZ' + | 'OM' + | 'PA' + | 'PE' + | 'PF' + | 'PG' + | 'PH' + | 'PK' + | 'PL' + | 'PM' + | 'PN' + | 'PR' + | 'PS' + | 'PT' + | 'PW' + | 'PY' + | 'QA' + | 'RE' + | 'RO' + | 'RS' + | 'RU' + | 'RW' + | 'SA' + | 'SB' + | 'SC' + | 'SD' + | 'SE' + | 'SG' + | 'SH' + | 'SI' + | 'SJ' + | 'SK' + | 'SL' + | 'SM' + | 'SN' + | 'SO' + | 'SR' + | 'SS' + | 'ST' + | 'SV' + | 'SX' + | 'SY' + | 'SZ' + | 'TC' + | 'TD' + | 'TF' + | 'TG' + | 'TH' + | 'TJ' + | 'TK' + | 'TL' + | 'TM' + | 'TN' + | 'TO' + | 'TR' + | 'TT' + | 'TV' + | 'TW' + | 'TZ' + | 'UA' + | 'UG' + | 'UM' + | 'US' + | 'UY' + | 'UZ' + | 'VA' + | 'VC' + | 'VE' + | 'VG' + | 'VI' + | 'VN' + | 'VU' + | 'WF' + | 'WS' + | 'XK' + | 'YE' + | 'YT' + | 'ZA' + | 'ZM' + | 'ZW'; -export type UpdateDefaultWeightUnitMutationVariables = Exact<{ - unit?: InputMaybe; -}>; +/** Filter by country code. */ +export type CountryCodeEnumFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value not included in. */ + notOneOf?: InputMaybe>; + /** The value included in. */ + oneOf?: InputMaybe>; +}; +export type CountryFilterInput = { + /** Boolean for filtering countries by having shipping zone assigned.If 'true', return countries with shipping zone assigned.If 'false', return countries without any shipping zone assigned.If the argument is not provided (null), return all countries. */ + attachedToShippingZones?: InputMaybe; +}; -export type UpdateDefaultWeightUnitMutation = { __typename: 'Mutation', shopSettingsUpdate: { __typename: 'ShopSettingsUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', defaultWeightUnit: WeightUnitsEnum | null } | null } | null }; +export type CountryRateInput = { + /** Country in which this rate applies. */ + countryCode: CountryCode; + /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. */ + rate: Scalars['Float']['input']; +}; -export type CreateShippingZoneMutationVariables = Exact<{ - input: ShippingZoneCreateInput; -}>; +export type CountryRateUpdateInput = { + /** Country in which this rate applies. */ + countryCode: CountryCode; + /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. Provide `null` to remove the particular rate. */ + rate?: InputMaybe; +}; + +export type CustomerEventsEnum = + | 'ACCOUNT_ACTIVATED' + | 'ACCOUNT_CREATED' + | 'ACCOUNT_DEACTIVATED' + | 'CUSTOMER_DELETED' + | 'DIGITAL_LINK_DOWNLOADED' + | 'EMAIL_ASSIGNED' + | 'EMAIL_CHANGED' + | 'EMAIL_CHANGED_REQUEST' + | 'NAME_ASSIGNED' + | 'NOTE_ADDED' + | 'NOTE_ADDED_TO_ORDER' + | 'PASSWORD_CHANGED' + | 'PASSWORD_RESET' + | 'PASSWORD_RESET_LINK_SENT' + | 'PLACED_ORDER'; +export type CustomerFilterInput = { + dateJoined?: InputMaybe; + /** Filter by ids. */ + ids?: InputMaybe>; + metadata?: InputMaybe>; + numberOfOrders?: InputMaybe; + placedOrders?: InputMaybe; + search?: InputMaybe; + updatedAt?: InputMaybe; +}; -export type CreateShippingZoneMutation = { __typename: 'Mutation', shippingZoneCreate: { __typename: 'ShippingZoneCreate', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingZone: { __typename: 'ShippingZone', id: string, name: string, description: string | null, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type CustomerInput = { + /** Billing address of the customer. */ + defaultBillingAddress?: InputMaybe; + /** Shipping address of the customer. */ + defaultShippingAddress?: InputMaybe; + /** The unique email address of the user. */ + email?: InputMaybe; + /** External ID of the customer. */ + externalReference?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User account is active. */ + isActive?: InputMaybe; + /** User account is confirmed. */ + isConfirmed?: InputMaybe; + /** User language code. */ + languageCode?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** + * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** A note about the user. */ + note?: InputMaybe; + /** + * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; +}; -export type UpdateShippingZoneMutationVariables = Exact<{ - id: Scalars['ID']; - input: ShippingZoneUpdateInput; -}>; +export type DateRangeInput = { + /** Start date. */ + gte?: InputMaybe; + /** End date. */ + lte?: InputMaybe; +}; +/** Define the filtering options for date time fields. */ +export type DateTimeFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; + /** The value in range. */ + range?: InputMaybe; +}; -export type UpdateShippingZoneMutation = { __typename: 'Mutation', shippingZoneUpdate: { __typename: 'ShippingZoneUpdate', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingZone: { __typename: 'ShippingZone', id: string, name: string, description: string | null, channels: Array<{ __typename: 'Channel', id: string, name: string, currencyCode: string }>, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type DateTimeRangeInput = { + /** Start date. */ + gte?: InputMaybe; + /** End date. */ + lte?: InputMaybe; +}; -export type UpdateShippingRateMutationVariables = Exact<{ - id: Scalars['ID']; - input: ShippingPriceInput; -}>; +/** Define the filtering options for decimal fields. */ +export type DecimalFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; + /** The value in range. */ + range?: InputMaybe; +}; +export type DecimalRangeInput = { + /** Decimal value greater than or equal to. */ + gte?: InputMaybe; + /** Decimal value less than or equal to. */ + lte?: InputMaybe; +}; -export type UpdateShippingRateMutation = { __typename: 'Mutation', shippingPriceUpdate: { __typename: 'ShippingPriceUpdate', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingMethod: { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type DiscountErrorCode = + | 'ALREADY_EXISTS' + | 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE' + | 'VOUCHER_ALREADY_USED'; -export type CreateShippingRateMutationVariables = Exact<{ - input: ShippingPriceInput; -}>; +export type DiscountStatusEnum = + | 'ACTIVE' + | 'EXPIRED' + | 'SCHEDULED'; +export type DiscountValueTypeEnum = + | 'FIXED' + | 'PERCENTAGE'; -export type CreateShippingRateMutation = { __typename: 'Mutation', shippingPriceCreate: { __typename: 'ShippingPriceCreate', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingZone: { __typename: 'ShippingZone', id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, shippingMethod: { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type DiscountedObjectWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** Filter by the base subtotal price. */ + baseSubtotalPrice?: InputMaybe; + /** Filter by the base total price. */ + baseTotalPrice?: InputMaybe; +}; -export type DeleteShippingRateMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type DraftOrderCreateInput = { + /** Billing address of the customer. */ + billingAddress?: InputMaybe; + /** ID of the channel associated with the order. */ + channelId?: InputMaybe; + /** A note from a customer. Visible by customers in the order summary. */ + customerNote?: InputMaybe; + /** + * Discount amount for the order. + * @deprecated Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. + */ + discount?: InputMaybe; + /** External ID of this order. */ + externalReference?: InputMaybe; + /** + * Order language code. + * + * Added in Saleor 3.21. + */ + languageCode?: InputMaybe; + /** Variant line input consisting of variant ID and quantity of products. */ + lines?: InputMaybe>; + /** + * Order public metadata. + * + * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** + * Order private metadata. + * + * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ + redirectUrl?: InputMaybe; + /** + * Indicates whether the billing address should be saved to the user’s address book upon draft order completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to not save the address. + * + * Added in Saleor 3.21. + */ + saveBillingAddress?: InputMaybe; + /** + * Indicates whether the shipping address should be saved to the user’s address book upon draft order completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to not save the address. + * + * Added in Saleor 3.21. + */ + saveShippingAddress?: InputMaybe; + /** Shipping address of the customer. */ + shippingAddress?: InputMaybe; + /** ID of a selected shipping method. */ + shippingMethod?: InputMaybe; + /** Customer associated with the draft order. */ + user?: InputMaybe; + /** Email address of the customer. */ + userEmail?: InputMaybe; + /** ID of the voucher associated with the order. */ + voucher?: InputMaybe; + /** + * A code of the voucher associated with the order. + * + * Added in Saleor 3.18. + */ + voucherCode?: InputMaybe; +}; +export type DraftOrderInput = { + /** Billing address of the customer. */ + billingAddress?: InputMaybe; + /** ID of the channel associated with the order. */ + channelId?: InputMaybe; + /** A note from a customer. Visible by customers in the order summary. */ + customerNote?: InputMaybe; + /** + * Discount amount for the order. + * @deprecated Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. + */ + discount?: InputMaybe; + /** External ID of this order. */ + externalReference?: InputMaybe; + /** + * Order language code. + * + * Added in Saleor 3.21. + */ + languageCode?: InputMaybe; + /** + * Order public metadata. + * + * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** + * Order private metadata. + * + * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ + redirectUrl?: InputMaybe; + /** + * Indicates whether the billing address should be saved to the user’s address book upon draft order completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to not save the address. + * + * Added in Saleor 3.21. + */ + saveBillingAddress?: InputMaybe; + /** + * Indicates whether the shipping address should be saved to the user’s address book upon draft order completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to not save the address. + * + * Added in Saleor 3.21. + */ + saveShippingAddress?: InputMaybe; + /** Shipping address of the customer. */ + shippingAddress?: InputMaybe; + /** ID of a selected shipping method. */ + shippingMethod?: InputMaybe; + /** Customer associated with the draft order. */ + user?: InputMaybe; + /** Email address of the customer. */ + userEmail?: InputMaybe; + /** ID of the voucher associated with the order. */ + voucher?: InputMaybe; + /** + * A code of the voucher associated with the order. + * + * Added in Saleor 3.18. + */ + voucherCode?: InputMaybe; +}; -export type DeleteShippingRateMutation = { __typename: 'Mutation', shippingPriceDelete: { __typename: 'ShippingPriceDelete', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }>, shippingZone: { __typename: 'ShippingZone', id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type ErrorPolicyEnum = + /** Save what is possible within a single row. If there are errors in an input data row, try to save it partially and skip the invalid part. */ + | 'IGNORE_FAILED' + /** Reject all rows if there is at least one error in any of them. */ + | 'REJECT_EVERYTHING' + /** Reject rows with errors. */ + | 'REJECT_FAILED_ROWS'; + +export type EventDeliveryStatusEnum = + | 'FAILED' + | 'PENDING' + | 'SUCCESS'; + +export type ExportErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; + +export type ExportEventsEnum = + | 'EXPORTED_FILE_SENT' + | 'EXPORT_DELETED' + | 'EXPORT_FAILED' + | 'EXPORT_FAILED_INFO_SENT' + | 'EXPORT_PENDING' + | 'EXPORT_SUCCESS'; -export type BulkDeleteShippingRateMutationVariables = Exact<{ - ids: Array | Scalars['ID']; -}>; +export type ExportGiftCardsInput = { + /** Type of exported file. */ + fileType: FileTypesEnum; + /** Filtering options for gift cards. */ + filter?: InputMaybe; + /** List of gift cards IDs to export. */ + ids?: InputMaybe>; + /** Determine which gift cards should be exported. */ + scope: ExportScope; +}; +export type ExportInfoInput = { + /** List of attribute ids witch should be exported. */ + attributes?: InputMaybe>; + /** List of channels ids which should be exported. */ + channels?: InputMaybe>; + /** List of product fields witch should be exported. */ + fields?: InputMaybe>; + /** List of warehouse ids witch should be exported. */ + warehouses?: InputMaybe>; +}; -export type BulkDeleteShippingRateMutation = { __typename: 'Mutation', shippingPriceBulkDelete: { __typename: 'ShippingPriceBulkDelete', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; +export type ExportProductsInput = { + /** Input with info about fields which should be exported. */ + exportInfo?: InputMaybe; + /** Type of exported file. */ + fileType: FileTypesEnum; + /** Filtering options for products. */ + filter?: InputMaybe; + /** List of products IDs to export. */ + ids?: InputMaybe>; + /** Determine which products should be exported. */ + scope: ExportScope; +}; -export type ShippingMethodChannelListingUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: ShippingMethodChannelListingInput; -}>; +export type ExportScope = + /** Export all products. */ + | 'ALL' + /** Export the filtered products. */ + | 'FILTER' + /** Export products with given ids. */ + | 'IDS'; +export type FileTypesEnum = + | 'CSV' + | 'XLSX'; -export type ShippingMethodChannelListingUpdateMutation = { __typename: 'Mutation', shippingMethodChannelListingUpdate: { __typename: 'ShippingMethodChannelListingUpdate', shippingMethod: { __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, channels: Array | null, message: string | null }> } | null }; +export type FulfillmentCancelInput = { + /** ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. */ + warehouseId?: InputMaybe; +}; -export type ShippingPriceExcludeProductMutationVariables = Exact<{ - id: Scalars['ID']; - input: ShippingPriceExcludeProductsInput; -}>; +/** Filter input for order fulfillments data. */ +export type FulfillmentFilterInput = { + /** Filter by metadata fields. */ + metadata?: InputMaybe; + /** Filter by fulfillment status. */ + status?: InputMaybe; + /** Filter by fulfillment warehouse. */ + warehouse?: InputMaybe; +}; +export type FulfillmentStatus = + | 'CANCELED' + | 'FULFILLED' + | 'REFUNDED' + | 'REFUNDED_AND_RETURNED' + | 'REPLACED' + | 'RETURNED' + | 'WAITING_FOR_APPROVAL'; -export type ShippingPriceExcludeProductMutation = { __typename: 'Mutation', shippingPriceExcludeProducts: { __typename: 'ShippingPriceExcludeProducts', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; +/** Filter by fulfillment status. */ +export type FulfillmentStatusEnumFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type ShippingPriceRemoveProductFromExcludeMutationVariables = Exact<{ - id: Scalars['ID']; - products: Array | Scalars['ID']; -}>; +export type FulfillmentUpdateTrackingInput = { + /** If true, send an email notification to the customer. */ + notifyCustomer?: InputMaybe; + /** Fulfillment tracking number. */ + trackingNumber?: InputMaybe; +}; +/** Filter input for fulfillment warehouses. */ +export type FulfillmentWarehouseFilterInput = { + /** Filter fulfillments by warehouse external reference. */ + externalReference?: InputMaybe; + /** Filter fulfillments by warehouse ID. */ + id?: InputMaybe; + /** Filter fulfillments by warehouse slug. */ + slug?: InputMaybe; +}; -export type ShippingPriceRemoveProductFromExcludeMutation = { __typename: 'Mutation', shippingPriceRemoveProductFromExclude: { __typename: 'ShippingPriceRemoveProductFromExclude', errors: Array<{ __typename: 'ShippingError', code: ShippingErrorCode, field: string | null, message: string | null }> } | null }; +export type GiftCardAddNoteInput = { + /** Note message. */ + message: Scalars['String']['input']; +}; -export type ShippingZonesQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; -}>; +export type GiftCardBulkCreateInput = { + /** Balance of the gift card. */ + balance: PriceInput; + /** The number of cards to issue. */ + count: Scalars['Int']['input']; + /** The gift card expiry date. */ + expiryDate?: InputMaybe; + /** Determine if gift card is active. */ + isActive: Scalars['Boolean']['input']; + /** The gift card tags. */ + tags?: InputMaybe>; +}; +export type GiftCardCreateInput = { + /** The gift card tags to add. */ + addTags?: InputMaybe>; + /** Balance of the gift card. */ + balance: PriceInput; + /** Slug of a channel from which the email should be sent. */ + channel?: InputMaybe; + /** + * Code to use the gift card. + * @deprecated The code is now auto generated. + */ + code?: InputMaybe; + /** + * End date of the gift card in ISO 8601 format. + * @deprecated Use `expiryDate` from `expirySettings` instead. + */ + endDate?: InputMaybe; + /** The gift card expiry date. */ + expiryDate?: InputMaybe; + /** Determine if gift card is active. */ + isActive: Scalars['Boolean']['input']; + /** + * Gift Card public metadata. + * + * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** The gift card note from the staff member. */ + note?: InputMaybe; + /** + * Gift Card private metadata. + * + * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** + * Start date of the gift card in ISO 8601 format. + * @deprecated Field no longer supported + */ + startDate?: InputMaybe; + /** Email of the customer to whom gift card will be sent. */ + userEmail?: InputMaybe; +}; + +export type GiftCardErrorCode = + | 'ALREADY_EXISTS' + | 'DUPLICATED_INPUT_ITEM' + | 'EXPIRED_GIFT_CARD' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; + +export type GiftCardEventsEnum = + | 'ACTIVATED' + | 'BALANCE_RESET' + | 'BOUGHT' + | 'DEACTIVATED' + | 'EXPIRY_DATE_UPDATED' + | 'ISSUED' + | 'NOTE_ADDED' + | 'RESENT' + | 'SENT_TO_CUSTOMER' + | 'TAGS_UPDATED' + | 'UPDATED' + | 'USED_IN_ORDER'; -export type ShippingZonesQuery = { __typename: 'Query', shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string, description: string | null, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type GiftCardFilterInput = { + code?: InputMaybe; + createdByEmail?: InputMaybe; + currency?: InputMaybe; + currentBalance?: InputMaybe; + initialBalance?: InputMaybe; + isActive?: InputMaybe; + metadata?: InputMaybe>; + products?: InputMaybe>; + tags?: InputMaybe>; + used?: InputMaybe; + usedBy?: InputMaybe>; +}; -export type ShippingZoneQueryVariables = Exact<{ - id: Scalars['ID']; - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}>; +export type GiftCardResendInput = { + /** Slug of a channel from which the email should be sent. */ + channel: Scalars['String']['input']; + /** Email to which gift card should be send. */ + email?: InputMaybe; + /** ID of a gift card to resend. */ + id: Scalars['ID']['input']; +}; +export type GiftCardSettingsErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'REQUIRED'; -export type ShippingZoneQuery = { __typename: 'Query', shippingZone: { __typename: 'ShippingZone', default: boolean, id: string, name: string, description: string | null, shippingMethods: Array<{ __typename: 'ShippingMethodType', minimumDeliveryDays: number | null, maximumDeliveryDays: number | null, name: string, description: any | null, type: ShippingMethodTypeEnum | null, id: string, excludedProducts: { __typename: 'ProductCountableConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor: string | null, startCursor: string | null }, edges: Array<{ __typename: 'ProductCountableEdge', node: { __typename: 'Product', id: string, name: string, thumbnail: { __typename: 'Image', url: string } | null } }> } | null, taxClass: { __typename: 'TaxClass', name: string, id: string } | null, minimumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, maximumOrderWeight: { __typename: 'Weight', unit: WeightUnitsEnum, value: number } | null, channelListings: Array<{ __typename: 'ShippingMethodChannelListing', id: string, channel: { __typename: 'Channel', id: string, name: string, currencyCode: string }, price: { __typename: 'Money', amount: number, currency: string } | null, minimumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null, maximumOrderPrice: { __typename: 'Money', amount: number, currency: string } | null }> | null, postalCodeRules: Array<{ __typename: 'ShippingMethodPostalCodeRule', id: string, inclusionType: PostalCodeRuleInclusionTypeEnum | null, start: string | null, end: string | null }> | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> }> | null, channels: Array<{ __typename: 'Channel', id: string, name: string, currencyCode: string }>, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, countries: Array<{ __typename: 'CountryDisplay', country: string, code: string }>, priceRange: { __typename: 'MoneyRange', start: { __typename: 'Money', amount: number, currency: string } | null, stop: { __typename: 'Money', amount: number, currency: string } | null } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +export type GiftCardSettingsExpiryTypeEnum = + | 'EXPIRY_PERIOD' + | 'NEVER_EXPIRE'; -export type ShippingZoneChannelsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type GiftCardSettingsUpdateInput = { + /** Defines gift card expiry period. */ + expiryPeriod?: InputMaybe; + /** Defines gift card default expiry settings. */ + expiryType?: InputMaybe; +}; +export type GiftCardSortField = + /** Sort gift cards by created at. */ + | 'CREATED_AT' + /** Sort gift cards by current balance. */ + | 'CURRENT_BALANCE' + /** Sort gift cards by product. */ + | 'PRODUCT' + /** Sort gift cards by used by. */ + | 'USED_BY'; -export type ShippingZoneChannelsQuery = { __typename: 'Query', shippingZone: { __typename: 'ShippingZone', id: string, channels: Array<{ __typename: 'Channel', id: string, name: string, currencyCode: string }> } | null }; +export type GiftCardSortingInput = { + /** Specifies the direction in which to sort gift cards. */ + direction: OrderDirection; + /** Sort gift cards by the selected field. */ + field: GiftCardSortField; +}; -export type ChannelShippingZonesQueryVariables = Exact<{ - filter?: InputMaybe; -}>; +export type GiftCardUpdateInput = { + /** The gift card tags to add. */ + addTags?: InputMaybe>; + /** The gift card balance amount. */ + balanceAmount?: InputMaybe; + /** + * End date of the gift card in ISO 8601 format. + * @deprecated Use `expiryDate` from `expirySettings` instead. + */ + endDate?: InputMaybe; + /** The gift card expiry date. */ + expiryDate?: InputMaybe; + /** + * Gift Card public metadata. + * + * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** + * Gift Card private metadata. + * + * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** The gift card tags to remove. */ + removeTags?: InputMaybe>; + /** + * Start date of the gift card in ISO 8601 format. + * @deprecated Field no longer supported + */ + startDate?: InputMaybe; +}; +/** Define the filtering options for foreign key fields. */ +export type GlobalIdFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type ChannelShippingZonesQuery = { __typename: 'Query', shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } | null }; +export type HttpMethod = + | 'GET' + | 'POST'; -export type ShippingZonesCountQueryVariables = Exact<{ [key: string]: never; }>; +/** Define the filtering options for integer fields. */ +export type IntFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; + /** The value in range. */ + range?: InputMaybe; +}; +export type IntRangeInput = { + /** Value greater than or equal to. */ + gte?: InputMaybe; + /** Value less than or equal to. */ + lte?: InputMaybe; +}; -export type ShippingZonesCountQuery = { __typename: 'Query', shippingZones: { __typename: 'ShippingZoneCountableConnection', totalCount: number | null } | null }; +export type InvoiceErrorCode = + | 'EMAIL_NOT_SET' + | 'INVALID_STATUS' + | 'NOT_FOUND' + | 'NOT_READY' + | 'NO_INVOICE_PLUGIN' + | 'NUMBER_NOT_SET' + | 'REQUIRED' + | 'URL_NOT_SET'; -export type ShopSettingsUpdateMutationVariables = Exact<{ - shopSettingsInput: ShopSettingsInput; - addressInput?: InputMaybe; -}>; +/** Filter input for invoices. */ +export type InvoiceFilterInput = { + /** Filter invoices by creation date. */ + createdAt?: InputMaybe; +}; +export type JobStatusEnum = + | 'DELETED' + | 'FAILED' + | 'PENDING' + | 'SUCCESS'; + +export type LanguageCodeEnum = + | 'AF' + | 'AF_NA' + | 'AF_ZA' + | 'AGQ' + | 'AGQ_CM' + | 'AK' + | 'AK_GH' + | 'AM' + | 'AM_ET' + | 'AR' + | 'AR_AE' + | 'AR_BH' + | 'AR_DJ' + | 'AR_DZ' + | 'AR_EG' + | 'AR_EH' + | 'AR_ER' + | 'AR_IL' + | 'AR_IQ' + | 'AR_JO' + | 'AR_KM' + | 'AR_KW' + | 'AR_LB' + | 'AR_LY' + | 'AR_MA' + | 'AR_MR' + | 'AR_OM' + | 'AR_PS' + | 'AR_QA' + | 'AR_SA' + | 'AR_SD' + | 'AR_SO' + | 'AR_SS' + | 'AR_SY' + | 'AR_TD' + | 'AR_TN' + | 'AR_YE' + | 'AS' + | 'ASA' + | 'ASA_TZ' + | 'AST' + | 'AST_ES' + | 'AS_IN' + | 'AZ' + | 'AZ_CYRL' + | 'AZ_CYRL_AZ' + | 'AZ_LATN' + | 'AZ_LATN_AZ' + | 'BAS' + | 'BAS_CM' + | 'BE' + | 'BEM' + | 'BEM_ZM' + | 'BEZ' + | 'BEZ_TZ' + | 'BE_BY' + | 'BG' + | 'BG_BG' + | 'BM' + | 'BM_ML' + | 'BN' + | 'BN_BD' + | 'BN_IN' + | 'BO' + | 'BO_CN' + | 'BO_IN' + | 'BR' + | 'BRX' + | 'BRX_IN' + | 'BR_FR' + | 'BS' + | 'BS_CYRL' + | 'BS_CYRL_BA' + | 'BS_LATN' + | 'BS_LATN_BA' + | 'CA' + | 'CA_AD' + | 'CA_ES' + | 'CA_ES_VALENCIA' + | 'CA_FR' + | 'CA_IT' + | 'CCP' + | 'CCP_BD' + | 'CCP_IN' + | 'CE' + | 'CEB' + | 'CEB_PH' + | 'CE_RU' + | 'CGG' + | 'CGG_UG' + | 'CHR' + | 'CHR_US' + | 'CKB' + | 'CKB_IQ' + | 'CKB_IR' + | 'CS' + | 'CS_CZ' + | 'CU' + | 'CU_RU' + | 'CY' + | 'CY_GB' + | 'DA' + | 'DAV' + | 'DAV_KE' + | 'DA_DK' + | 'DA_GL' + | 'DE' + | 'DE_AT' + | 'DE_BE' + | 'DE_CH' + | 'DE_DE' + | 'DE_IT' + | 'DE_LI' + | 'DE_LU' + | 'DJE' + | 'DJE_NE' + | 'DSB' + | 'DSB_DE' + | 'DUA' + | 'DUA_CM' + | 'DYO' + | 'DYO_SN' + | 'DZ' + | 'DZ_BT' + | 'EBU' + | 'EBU_KE' + | 'EE' + | 'EE_GH' + | 'EE_TG' + | 'EL' + | 'EL_CY' + | 'EL_GR' + | 'EN' + | 'EN_AE' + | 'EN_AG' + | 'EN_AI' + | 'EN_AS' + | 'EN_AT' + | 'EN_AU' + | 'EN_BB' + | 'EN_BE' + | 'EN_BI' + | 'EN_BM' + | 'EN_BS' + | 'EN_BW' + | 'EN_BZ' + | 'EN_CA' + | 'EN_CC' + | 'EN_CH' + | 'EN_CK' + | 'EN_CM' + | 'EN_CX' + | 'EN_CY' + | 'EN_DE' + | 'EN_DG' + | 'EN_DK' + | 'EN_DM' + | 'EN_ER' + | 'EN_FI' + | 'EN_FJ' + | 'EN_FK' + | 'EN_FM' + | 'EN_GB' + | 'EN_GD' + | 'EN_GG' + | 'EN_GH' + | 'EN_GI' + | 'EN_GM' + | 'EN_GU' + | 'EN_GY' + | 'EN_HK' + | 'EN_IE' + | 'EN_IL' + | 'EN_IM' + | 'EN_IN' + | 'EN_IO' + | 'EN_JE' + | 'EN_JM' + | 'EN_KE' + | 'EN_KI' + | 'EN_KN' + | 'EN_KY' + | 'EN_LC' + | 'EN_LR' + | 'EN_LS' + | 'EN_MG' + | 'EN_MH' + | 'EN_MO' + | 'EN_MP' + | 'EN_MS' + | 'EN_MT' + | 'EN_MU' + | 'EN_MW' + | 'EN_MY' + | 'EN_NA' + | 'EN_NF' + | 'EN_NG' + | 'EN_NL' + | 'EN_NR' + | 'EN_NU' + | 'EN_NZ' + | 'EN_PG' + | 'EN_PH' + | 'EN_PK' + | 'EN_PN' + | 'EN_PR' + | 'EN_PW' + | 'EN_RW' + | 'EN_SB' + | 'EN_SC' + | 'EN_SD' + | 'EN_SE' + | 'EN_SG' + | 'EN_SH' + | 'EN_SI' + | 'EN_SL' + | 'EN_SS' + | 'EN_SX' + | 'EN_SZ' + | 'EN_TC' + | 'EN_TK' + | 'EN_TO' + | 'EN_TT' + | 'EN_TV' + | 'EN_TZ' + | 'EN_UG' + | 'EN_UM' + | 'EN_US' + | 'EN_VC' + | 'EN_VG' + | 'EN_VI' + | 'EN_VU' + | 'EN_WS' + | 'EN_ZA' + | 'EN_ZM' + | 'EN_ZW' + | 'EO' + | 'ES' + | 'ES_AR' + | 'ES_BO' + | 'ES_BR' + | 'ES_BZ' + | 'ES_CL' + | 'ES_CO' + | 'ES_CR' + | 'ES_CU' + | 'ES_DO' + | 'ES_EA' + | 'ES_EC' + | 'ES_ES' + | 'ES_GQ' + | 'ES_GT' + | 'ES_HN' + | 'ES_IC' + | 'ES_MX' + | 'ES_NI' + | 'ES_PA' + | 'ES_PE' + | 'ES_PH' + | 'ES_PR' + | 'ES_PY' + | 'ES_SV' + | 'ES_US' + | 'ES_UY' + | 'ES_VE' + | 'ET' + | 'ET_EE' + | 'EU' + | 'EU_ES' + | 'EWO' + | 'EWO_CM' + | 'FA' + | 'FA_AF' + | 'FA_IR' + | 'FF' + | 'FF_ADLM' + | 'FF_ADLM_BF' + | 'FF_ADLM_CM' + | 'FF_ADLM_GH' + | 'FF_ADLM_GM' + | 'FF_ADLM_GN' + | 'FF_ADLM_GW' + | 'FF_ADLM_LR' + | 'FF_ADLM_MR' + | 'FF_ADLM_NE' + | 'FF_ADLM_NG' + | 'FF_ADLM_SL' + | 'FF_ADLM_SN' + | 'FF_LATN' + | 'FF_LATN_BF' + | 'FF_LATN_CM' + | 'FF_LATN_GH' + | 'FF_LATN_GM' + | 'FF_LATN_GN' + | 'FF_LATN_GW' + | 'FF_LATN_LR' + | 'FF_LATN_MR' + | 'FF_LATN_NE' + | 'FF_LATN_NG' + | 'FF_LATN_SL' + | 'FF_LATN_SN' + | 'FI' + | 'FIL' + | 'FIL_PH' + | 'FI_FI' + | 'FO' + | 'FO_DK' + | 'FO_FO' + | 'FR' + | 'FR_BE' + | 'FR_BF' + | 'FR_BI' + | 'FR_BJ' + | 'FR_BL' + | 'FR_CA' + | 'FR_CD' + | 'FR_CF' + | 'FR_CG' + | 'FR_CH' + | 'FR_CI' + | 'FR_CM' + | 'FR_DJ' + | 'FR_DZ' + | 'FR_FR' + | 'FR_GA' + | 'FR_GF' + | 'FR_GN' + | 'FR_GP' + | 'FR_GQ' + | 'FR_HT' + | 'FR_KM' + | 'FR_LU' + | 'FR_MA' + | 'FR_MC' + | 'FR_MF' + | 'FR_MG' + | 'FR_ML' + | 'FR_MQ' + | 'FR_MR' + | 'FR_MU' + | 'FR_NC' + | 'FR_NE' + | 'FR_PF' + | 'FR_PM' + | 'FR_RE' + | 'FR_RW' + | 'FR_SC' + | 'FR_SN' + | 'FR_SY' + | 'FR_TD' + | 'FR_TG' + | 'FR_TN' + | 'FR_VU' + | 'FR_WF' + | 'FR_YT' + | 'FUR' + | 'FUR_IT' + | 'FY' + | 'FY_NL' + | 'GA' + | 'GA_GB' + | 'GA_IE' + | 'GD' + | 'GD_GB' + | 'GL' + | 'GL_ES' + | 'GSW' + | 'GSW_CH' + | 'GSW_FR' + | 'GSW_LI' + | 'GU' + | 'GUZ' + | 'GUZ_KE' + | 'GU_IN' + | 'GV' + | 'GV_IM' + | 'HA' + | 'HAW' + | 'HAW_US' + | 'HA_GH' + | 'HA_NE' + | 'HA_NG' + | 'HE' + | 'HE_IL' + | 'HI' + | 'HI_IN' + | 'HR' + | 'HR_BA' + | 'HR_HR' + | 'HSB' + | 'HSB_DE' + | 'HU' + | 'HU_HU' + | 'HY' + | 'HY_AM' + | 'IA' + | 'ID' + | 'ID_ID' + | 'IG' + | 'IG_NG' + | 'II' + | 'II_CN' + | 'IS' + | 'IS_IS' + | 'IT' + | 'IT_CH' + | 'IT_IT' + | 'IT_SM' + | 'IT_VA' + | 'JA' + | 'JA_JP' + | 'JGO' + | 'JGO_CM' + | 'JMC' + | 'JMC_TZ' + | 'JV' + | 'JV_ID' + | 'KA' + | 'KAB' + | 'KAB_DZ' + | 'KAM' + | 'KAM_KE' + | 'KA_GE' + | 'KDE' + | 'KDE_TZ' + | 'KEA' + | 'KEA_CV' + | 'KHQ' + | 'KHQ_ML' + | 'KI' + | 'KI_KE' + | 'KK' + | 'KKJ' + | 'KKJ_CM' + | 'KK_KZ' + | 'KL' + | 'KLN' + | 'KLN_KE' + | 'KL_GL' + | 'KM' + | 'KM_KH' + | 'KN' + | 'KN_IN' + | 'KO' + | 'KOK' + | 'KOK_IN' + | 'KO_KP' + | 'KO_KR' + | 'KS' + | 'KSB' + | 'KSB_TZ' + | 'KSF' + | 'KSF_CM' + | 'KSH' + | 'KSH_DE' + | 'KS_ARAB' + | 'KS_ARAB_IN' + | 'KU' + | 'KU_TR' + | 'KW' + | 'KW_GB' + | 'KY' + | 'KY_KG' + | 'LAG' + | 'LAG_TZ' + | 'LB' + | 'LB_LU' + | 'LG' + | 'LG_UG' + | 'LKT' + | 'LKT_US' + | 'LN' + | 'LN_AO' + | 'LN_CD' + | 'LN_CF' + | 'LN_CG' + | 'LO' + | 'LO_LA' + | 'LRC' + | 'LRC_IQ' + | 'LRC_IR' + | 'LT' + | 'LT_LT' + | 'LU' + | 'LUO' + | 'LUO_KE' + | 'LUY' + | 'LUY_KE' + | 'LU_CD' + | 'LV' + | 'LV_LV' + | 'MAI' + | 'MAI_IN' + | 'MAS' + | 'MAS_KE' + | 'MAS_TZ' + | 'MER' + | 'MER_KE' + | 'MFE' + | 'MFE_MU' + | 'MG' + | 'MGH' + | 'MGH_MZ' + | 'MGO' + | 'MGO_CM' + | 'MG_MG' + | 'MI' + | 'MI_NZ' + | 'MK' + | 'MK_MK' + | 'ML' + | 'ML_IN' + | 'MN' + | 'MNI' + | 'MNI_BENG' + | 'MNI_BENG_IN' + | 'MN_MN' + | 'MR' + | 'MR_IN' + | 'MS' + | 'MS_BN' + | 'MS_ID' + | 'MS_MY' + | 'MS_SG' + | 'MT' + | 'MT_MT' + | 'MUA' + | 'MUA_CM' + | 'MY' + | 'MY_MM' + | 'MZN' + | 'MZN_IR' + | 'NAQ' + | 'NAQ_NA' + | 'NB' + | 'NB_NO' + | 'NB_SJ' + | 'ND' + | 'NDS' + | 'NDS_DE' + | 'NDS_NL' + | 'ND_ZW' + | 'NE' + | 'NE_IN' + | 'NE_NP' + | 'NL' + | 'NL_AW' + | 'NL_BE' + | 'NL_BQ' + | 'NL_CW' + | 'NL_NL' + | 'NL_SR' + | 'NL_SX' + | 'NMG' + | 'NMG_CM' + | 'NN' + | 'NNH' + | 'NNH_CM' + | 'NN_NO' + | 'NUS' + | 'NUS_SS' + | 'NYN' + | 'NYN_UG' + | 'OM' + | 'OM_ET' + | 'OM_KE' + | 'OR' + | 'OR_IN' + | 'OS' + | 'OS_GE' + | 'OS_RU' + | 'PA' + | 'PA_ARAB' + | 'PA_ARAB_PK' + | 'PA_GURU' + | 'PA_GURU_IN' + | 'PCM' + | 'PCM_NG' + | 'PL' + | 'PL_PL' + | 'PRG' + | 'PS' + | 'PS_AF' + | 'PS_PK' + | 'PT' + | 'PT_AO' + | 'PT_BR' + | 'PT_CH' + | 'PT_CV' + | 'PT_GQ' + | 'PT_GW' + | 'PT_LU' + | 'PT_MO' + | 'PT_MZ' + | 'PT_PT' + | 'PT_ST' + | 'PT_TL' + | 'QU' + | 'QU_BO' + | 'QU_EC' + | 'QU_PE' + | 'RM' + | 'RM_CH' + | 'RN' + | 'RN_BI' + | 'RO' + | 'ROF' + | 'ROF_TZ' + | 'RO_MD' + | 'RO_RO' + | 'RU' + | 'RU_BY' + | 'RU_KG' + | 'RU_KZ' + | 'RU_MD' + | 'RU_RU' + | 'RU_UA' + | 'RW' + | 'RWK' + | 'RWK_TZ' + | 'RW_RW' + | 'SAH' + | 'SAH_RU' + | 'SAQ' + | 'SAQ_KE' + | 'SAT' + | 'SAT_OLCK' + | 'SAT_OLCK_IN' + | 'SBP' + | 'SBP_TZ' + | 'SD' + | 'SD_ARAB' + | 'SD_ARAB_PK' + | 'SD_DEVA' + | 'SD_DEVA_IN' + | 'SE' + | 'SEH' + | 'SEH_MZ' + | 'SES' + | 'SES_ML' + | 'SE_FI' + | 'SE_NO' + | 'SE_SE' + | 'SG' + | 'SG_CF' + | 'SHI' + | 'SHI_LATN' + | 'SHI_LATN_MA' + | 'SHI_TFNG' + | 'SHI_TFNG_MA' + | 'SI' + | 'SI_LK' + | 'SK' + | 'SK_SK' + | 'SL' + | 'SL_SI' + | 'SMN' + | 'SMN_FI' + | 'SN' + | 'SN_ZW' + | 'SO' + | 'SO_DJ' + | 'SO_ET' + | 'SO_KE' + | 'SO_SO' + | 'SQ' + | 'SQ_AL' + | 'SQ_MK' + | 'SQ_XK' + | 'SR' + | 'SR_CYRL' + | 'SR_CYRL_BA' + | 'SR_CYRL_ME' + | 'SR_CYRL_RS' + | 'SR_CYRL_XK' + | 'SR_LATN' + | 'SR_LATN_BA' + | 'SR_LATN_ME' + | 'SR_LATN_RS' + | 'SR_LATN_XK' + | 'SU' + | 'SU_LATN' + | 'SU_LATN_ID' + | 'SV' + | 'SV_AX' + | 'SV_FI' + | 'SV_SE' + | 'SW' + | 'SW_CD' + | 'SW_KE' + | 'SW_TZ' + | 'SW_UG' + | 'TA' + | 'TA_IN' + | 'TA_LK' + | 'TA_MY' + | 'TA_SG' + | 'TE' + | 'TEO' + | 'TEO_KE' + | 'TEO_UG' + | 'TE_IN' + | 'TG' + | 'TG_TJ' + | 'TH' + | 'TH_TH' + | 'TI' + | 'TI_ER' + | 'TI_ET' + | 'TK' + | 'TK_TM' + | 'TO' + | 'TO_TO' + | 'TR' + | 'TR_CY' + | 'TR_TR' + | 'TT' + | 'TT_RU' + | 'TWQ' + | 'TWQ_NE' + | 'TZM' + | 'TZM_MA' + | 'UG' + | 'UG_CN' + | 'UK' + | 'UK_UA' + | 'UR' + | 'UR_IN' + | 'UR_PK' + | 'UZ' + | 'UZ_ARAB' + | 'UZ_ARAB_AF' + | 'UZ_CYRL' + | 'UZ_CYRL_UZ' + | 'UZ_LATN' + | 'UZ_LATN_UZ' + | 'VAI' + | 'VAI_LATN' + | 'VAI_LATN_LR' + | 'VAI_VAII' + | 'VAI_VAII_LR' + | 'VI' + | 'VI_VN' + | 'VO' + | 'VUN' + | 'VUN_TZ' + | 'WAE' + | 'WAE_CH' + | 'WO' + | 'WO_SN' + | 'XH' + | 'XH_ZA' + | 'XOG' + | 'XOG_UG' + | 'YAV' + | 'YAV_CM' + | 'YI' + | 'YO' + | 'YO_BJ' + | 'YO_NG' + | 'YUE' + | 'YUE_HANS' + | 'YUE_HANS_CN' + | 'YUE_HANT' + | 'YUE_HANT_HK' + | 'ZGH' + | 'ZGH_MA' + | 'ZH' + | 'ZH_HANS' + | 'ZH_HANS_CN' + | 'ZH_HANS_HK' + | 'ZH_HANS_MO' + | 'ZH_HANS_SG' + | 'ZH_HANT' + | 'ZH_HANT_HK' + | 'ZH_HANT_MO' + | 'ZH_HANT_TW' + | 'ZU' + | 'ZU_ZA'; -export type ShopSettingsUpdateMutation = { __typename: 'Mutation', shopSettingsUpdate: { __typename: 'ShopSettingsUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', customerSetPasswordUrl: string | null, defaultMailSenderAddress: string | null, defaultMailSenderName: string | null, description: string | null, name: string, reserveStockDurationAnonymousUser: number | null, reserveStockDurationAuthenticatedUser: number | null, limitQuantityPerCheckout: number | null, enableAccountConfirmationByEmail: boolean | null, useLegacyUpdateWebhookEmission: boolean | null, preserveAllAddressFields: boolean, companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, domain: { __typename: 'Domain', host: string } } | null } | null, shopAddressUpdate: { __typename: 'ShopAddressUpdate', errors: Array<{ __typename: 'ShopError', code: ShopErrorCode, field: string | null, message: string | null }>, shop: { __typename: 'Shop', companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null } | null } | null }; +/** Filter input for order lines data. */ +export type LinesFilterInput = { + /** Filter by metadata fields of order lines. */ + metadata?: InputMaybe; +}; -export type RefundSettingsUpdateMutationVariables = Exact<{ - refundSettingsInput: RefundSettingsUpdateInput; -}>; +/** + * Determine the mark as paid strategy for the channel. + * + * TRANSACTION_FLOW - new orders marked as paid will receive a + * `TransactionItem` object, that will cover the `order.total`. + * + * PAYMENT_FLOW - new orders marked as paid will receive a + * `Payment` object, that will cover the `order.total`. + */ +export type MarkAsPaidStrategyEnum = + | 'PAYMENT_FLOW' + | 'TRANSACTION_FLOW'; + +export type MeasurementUnitsEnum = + | 'ACRE_FT' + | 'ACRE_IN' + | 'CM' + | 'CUBIC_CENTIMETER' + | 'CUBIC_DECIMETER' + | 'CUBIC_FOOT' + | 'CUBIC_INCH' + | 'CUBIC_METER' + | 'CUBIC_MILLIMETER' + | 'CUBIC_YARD' + | 'DM' + | 'FL_OZ' + | 'FT' + | 'G' + | 'INCH' + | 'KG' + | 'KM' + | 'LB' + | 'LITER' + | 'M' + | 'MM' + | 'OZ' + | 'PINT' + | 'QT' + | 'SQ_CM' + | 'SQ_DM' + | 'SQ_FT' + | 'SQ_INCH' + | 'SQ_KM' + | 'SQ_M' + | 'SQ_MM' + | 'SQ_YD' + | 'TONNE' + | 'YD'; +export type MenuCreateInput = { + /** List of menu items. */ + items?: InputMaybe>; + /** Name of the menu. */ + name: Scalars['String']['input']; + /** Slug of the menu. Will be generated if not provided. */ + slug?: InputMaybe; +}; -export type RefundSettingsUpdateMutation = { __typename: 'Mutation', refundSettingsUpdate: { __typename: 'RefundSettingsUpdate', errors: Array<{ __typename: 'RefundSettingsUpdateError', code: RefundSettingsErrorCode, message: string | null }>, refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', name: string, id: string } | null } } | null }; +export type MenuErrorCode = + | 'CANNOT_ASSIGN_NODE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_MENU_ITEM' + | 'NOT_FOUND' + | 'NO_MENU_ITEM_PROVIDED' + | 'REQUIRED' + | 'TOO_MANY_MENU_ITEMS' + | 'UNIQUE'; -export type RefundReasonReferenceClearMutationVariables = Exact<{ [key: string]: never; }>; +export type MenuItemCreateInput = { + /** Category to which item points. */ + category?: InputMaybe; + /** Collection to which item points. */ + collection?: InputMaybe; + /** Menu to which item belongs. */ + menu: Scalars['ID']['input']; + /** Name of the menu item. */ + name: Scalars['String']['input']; + /** Page to which item points. */ + page?: InputMaybe; + /** ID of the parent menu. If empty, menu will be top level menu. */ + parent?: InputMaybe; + /** URL of the pointed item. */ + url?: InputMaybe; +}; +export type MenuItemInput = { + /** Category to which item points. */ + category?: InputMaybe; + /** Collection to which item points. */ + collection?: InputMaybe; + /** Name of the menu item. */ + name?: InputMaybe; + /** Page to which item points. */ + page?: InputMaybe; + /** URL of the pointed item. */ + url?: InputMaybe; +}; -export type RefundReasonReferenceClearMutation = { __typename: 'Mutation', refundReasonReferenceClear: { __typename: 'RefundReasonReferenceTypeClear', refundSettings: { __typename: 'RefundSettings', reasonReferenceType: { __typename: 'PageType', id: string, name: string } | null }, errors: Array<{ __typename: 'RefundReasonReferenceTypeClearError', code: RefundSettingsErrorCode, message: string | null }> } | null }; +export type MenuItemMoveInput = { + /** The menu item ID to move. */ + itemId: Scalars['ID']['input']; + /** ID of the parent menu. If empty, menu will be top level menu. */ + parentId?: InputMaybe; + /** 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?: InputMaybe; +}; -export type SiteSettingsQueryVariables = Exact<{ [key: string]: never; }>; +export type MenuSortField = + /** Sort menus by items count. */ + | 'ITEMS_COUNT' + /** Sort menus by name. */ + | 'NAME'; +export type MenuSortingInput = { + /** Specifies the direction in which to sort menus. */ + direction: OrderDirection; + /** Sort menus by the selected field. */ + field: MenuSortField; +}; -export type SiteSettingsQuery = { __typename: 'Query', shop: { __typename: 'Shop', customerSetPasswordUrl: string | null, defaultMailSenderAddress: string | null, defaultMailSenderName: string | null, description: string | null, name: string, reserveStockDurationAnonymousUser: number | null, reserveStockDurationAuthenticatedUser: number | null, limitQuantityPerCheckout: number | null, enableAccountConfirmationByEmail: boolean | null, useLegacyUpdateWebhookEmission: boolean | null, preserveAllAddressFields: boolean, companyAddress: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } } | null, countries: Array<{ __typename: 'CountryDisplay', code: string, country: string }>, domain: { __typename: 'Domain', host: string } } }; +export type MetadataErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'NOT_UPDATED' + | 'REQUIRED'; -export type StaffMemberAddMutationVariables = Exact<{ - input: StaffCreateInput; -}>; +export type MetadataFilter = { + /** Key of a metadata item. */ + key: Scalars['String']['input']; + /** Value of a metadata item. */ + value?: InputMaybe; +}; +/** + * Allows filtering based on metadata key/value pairs. + * + * Examples: + * - `{key: "size"}` + * Matches objects where the metadata key "size" exists, regardless of its value. + * - `{key: "color", value: {oneOf: ["blue", "green"]}}` + * Matches objects where the metadata key "color" is set to either "blue" or "green". + * - `{key: "status", value: {eq: "active"}}` + * Matches objects where the metadata key "status" is set to "active". + */ +export type MetadataFilterInput = { + /** Key to filter by. If not other fields provided - checking the existence of the key in metadata. */ + key: Scalars['String']['input']; + /** Value to filter by. */ + value?: InputMaybe; +}; -export type StaffMemberAddMutation = { __typename: 'Mutation', staffCreate: { __typename: 'StaffCreate', errors: Array<{ __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }>, user: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type MetadataInput = { + /** Key of a metadata item. */ + key: Scalars['String']['input']; + /** Value of a metadata item. */ + value: Scalars['String']['input']; +}; -export type StaffMemberUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: StaffUpdateInput; -}>; +/** Define the filtering options for metadata value fields. */ +export type MetadataValueFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; +export type MoveProductInput = { + /** The ID of the product to move. */ + productId: Scalars['ID']['input']; + /** 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?: InputMaybe; +}; -export type StaffMemberUpdateMutation = { __typename: 'Mutation', staffUpdate: { __typename: 'StaffUpdate', errors: Array<{ __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }>, user: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type NameTranslationInput = { + name?: InputMaybe; +}; -export type UserPassowrdChangeMutationVariables = Exact<{ - newPassword: Scalars['String']; - oldPassword: Scalars['String']; -}>; +export type OrderAction = + /** Represents the capture action. */ + | 'CAPTURE' + /** Represents a mark-as-paid action. */ + | 'MARK_AS_PAID' + /** Represents a refund action. */ + | 'REFUND' + /** Represents a void action. */ + | 'VOID'; +/** + * Determine a current authorize status for order. + * + * We treat the order as fully authorized when the sum of authorized and charged funds + * cover the `order.total`-`order.totalGrantedRefund`. + * We treat the order as partially authorized when the sum of authorized and charged + * funds covers only part of the `order.total`-`order.totalGrantedRefund`. + * We treat the order as not authorized when the sum of authorized and charged funds is + * 0. + * + * NONE - the funds are not authorized + * PARTIAL - the funds that are authorized and charged don't cover fully the + * `order.total`-`order.totalGrantedRefund` + * FULL - the funds that are authorized and charged fully cover the + * `order.total`-`order.totalGrantedRefund` + */ +export type OrderAuthorizeStatusEnum = + | 'FULL' + | 'NONE' + | 'PARTIAL'; -export type UserPassowrdChangeMutation = { __typename: 'Mutation', passwordChange: { __typename: 'PasswordChange', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; +/** Filter by authorize status. */ +export type OrderAuthorizeStatusEnumFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type UserAccountUpdateMutationVariables = Exact<{ - input: AccountInput; -}>; +/** + * Determine the current charge status for the order. + * + * An order is considered overcharged when the sum of the + * transactionItem's charge amounts exceeds the value of + * `order.total` - `order.totalGrantedRefund`. + * If the sum of the transactionItem's charge amounts equals + * `order.total` - `order.totalGrantedRefund`, we consider the order to be fully + * charged. + * If the sum of the transactionItem's charge amounts covers a part of the + * `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged. + * + * NONE - the funds are not charged. + * PARTIAL - the funds that are charged don't cover the + * `order.total`-`order.totalGrantedRefund` + * FULL - the funds that are charged fully cover the + * `order.total`-`order.totalGrantedRefund` + * OVERCHARGED - the charged funds are bigger than the + * `order.total`-`order.totalGrantedRefund` + */ +export type OrderChargeStatusEnum = + | 'FULL' + | 'NONE' + | 'OVERCHARGED' + | 'PARTIAL'; +/** Filter by charge status. */ +export type OrderChargeStatusEnumFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type UserAccountUpdateMutation = { __typename: 'Mutation', accountUpdate: { __typename: 'AccountUpdate', user: { __typename: 'User', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null, errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; +export type OrderDirection = + /** Specifies an ascending sort order. */ + | 'ASC' + /** Specifies a descending sort order. */ + | 'DESC'; -export type StaffMemberDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type OrderDiscountCommonInput = { + /** Explanation for the applied discount. */ + reason?: InputMaybe; + /** Value of the discount. Can store fixed value or percent value */ + value: Scalars['PositiveDecimal']['input']; + /** Type of the discount: fixed or percent */ + valueType: DiscountValueTypeEnum; +}; +export type OrderDiscountType = + | 'MANUAL' + | 'ORDER_PROMOTION' + | 'PROMOTION' + | 'SALE' + | 'VOUCHER'; -export type StaffMemberDeleteMutation = { __typename: 'Mutation', staffDelete: { __typename: 'StaffDelete', errors: Array<{ __typename: 'StaffError', code: AccountErrorCode, field: string | null, message: string | null }> } | null }; +export type OrderDraftFilterInput = { + channels?: InputMaybe>; + created?: InputMaybe; + customer?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; +}; + +export type OrderErrorCode = + | 'BILLING_ADDRESS_NOT_SET' + | 'CANNOT_CANCEL_FULFILLMENT' + | 'CANNOT_CANCEL_ORDER' + | 'CANNOT_DELETE' + | 'CANNOT_DISCOUNT' + | 'CANNOT_FULFILL_UNPAID_ORDER' + | 'CANNOT_REFUND' + | 'CAPTURE_INACTIVE_PAYMENT' + | 'CHANNEL_INACTIVE' + | 'DUPLICATED_INPUT_ITEM' + | 'FULFILL_ORDER_LINE' + | 'GIFT_CARD_LINE' + | 'GRAPHQL_ERROR' + | 'INSUFFICIENT_STOCK' + | 'INVALID' + | 'INVALID_QUANTITY' + | 'INVALID_VOUCHER' + | 'INVALID_VOUCHER_CODE' + | 'MISSING_ADDRESS_DATA' + | 'NON_EDITABLE_GIFT_LINE' + | 'NON_REMOVABLE_GIFT_LINE' + | 'NOT_AVAILABLE_IN_CHANNEL' + | 'NOT_EDITABLE' + | 'NOT_FOUND' + | 'ORDER_NO_SHIPPING_ADDRESS' + | 'PAYMENT_ERROR' + | 'PAYMENT_MISSING' + | 'PRODUCT_NOT_PUBLISHED' + | 'PRODUCT_UNAVAILABLE_FOR_PURCHASE' + | 'REQUIRED' + | 'SHIPPING_METHOD_NOT_APPLICABLE' + | 'SHIPPING_METHOD_REQUIRED' + | 'TAX_ERROR' + | 'TRANSACTION_ERROR' + | 'UNIQUE' + | 'VOID_INACTIVE_PAYMENT' + | 'ZERO_QUANTITY'; -export type UserAvatarUpdateMutationVariables = Exact<{ - image: Scalars['Upload']; -}>; +/** Filter input for order events data. */ +export type OrderEventFilterInput = { + /** Filter order events by date. */ + date?: InputMaybe; + /** Filter order events by type. */ + type?: InputMaybe; +}; +export type OrderEventTypeEnumFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type UserAvatarUpdateMutation = { __typename: 'Mutation', userAvatarUpdate: { __typename: 'UserAvatarUpdate', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string, avatar: { __typename: 'Image', url: string } | null } | null } | null }; +export type OrderEventsEmailsEnum = + | 'CONFIRMED' + | 'DIGITAL_LINKS' + | 'FULFILLMENT_CONFIRMATION' + | 'ORDER_CANCEL' + | 'ORDER_CONFIRMATION' + | 'ORDER_REFUND' + | 'PAYMENT_CONFIRMATION' + | 'SHIPPING_CONFIRMATION' + | 'TRACKING_UPDATED'; -export type UserAvatarDeleteMutationVariables = Exact<{ [key: string]: never; }>; +/** The different order event types. */ +export type OrderEventsEnum = + | 'ADDED_PRODUCTS' + | 'CANCELED' + | 'CONFIRMED' + | 'DRAFT_CREATED' + | 'DRAFT_CREATED_FROM_REPLACE' + | 'EMAIL_SENT' + | 'EXPIRED' + | 'EXTERNAL_SERVICE_NOTIFICATION' + | 'FULFILLMENT_AWAITS_APPROVAL' + | 'FULFILLMENT_CANCELED' + | 'FULFILLMENT_FULFILLED_ITEMS' + | 'FULFILLMENT_REFUNDED' + | 'FULFILLMENT_REPLACED' + | 'FULFILLMENT_RESTOCKED_ITEMS' + | 'FULFILLMENT_RETURNED' + | 'INVOICE_GENERATED' + | 'INVOICE_REQUESTED' + | 'INVOICE_SENT' + | 'INVOICE_UPDATED' + | 'NOTE_ADDED' + | 'NOTE_UPDATED' + | 'ORDER_DISCOUNT_ADDED' + | 'ORDER_DISCOUNT_AUTOMATICALLY_UPDATED' + | 'ORDER_DISCOUNT_DELETED' + | 'ORDER_DISCOUNT_UPDATED' + | 'ORDER_FULLY_PAID' + | 'ORDER_LINE_DISCOUNT_REMOVED' + | 'ORDER_LINE_DISCOUNT_UPDATED' + | 'ORDER_LINE_PRODUCT_DELETED' + | 'ORDER_LINE_VARIANT_DELETED' + | 'ORDER_MARKED_AS_PAID' + | 'ORDER_REPLACEMENT_CREATED' + | 'OTHER' + | 'OVERSOLD_ITEMS' + | 'PAYMENT_AUTHORIZED' + | 'PAYMENT_CAPTURED' + | 'PAYMENT_FAILED' + | 'PAYMENT_REFUNDED' + | 'PAYMENT_VOIDED' + | 'PLACED' + | 'PLACED_AUTOMATICALLY_FROM_PAID_CHECKOUT' + | 'PLACED_FROM_DRAFT' + | 'REMOVED_PRODUCTS' + | 'TRACKING_UPDATED' + | 'TRANSACTION_CANCEL_REQUESTED' + | 'TRANSACTION_CHARGE_REQUESTED' + | 'TRANSACTION_EVENT' + | 'TRANSACTION_MARK_AS_PAID_FAILED' + | 'TRANSACTION_REFUND_REQUESTED' + | 'UPDATED_ADDRESS'; +export type OrderFilterInput = { + authorizeStatus?: InputMaybe>; + channels?: InputMaybe>; + chargeStatus?: InputMaybe>; + checkoutIds?: InputMaybe>; + checkoutTokens?: InputMaybe>; + created?: InputMaybe; + customer?: InputMaybe; + giftCardBought?: InputMaybe; + giftCardUsed?: InputMaybe; + ids?: InputMaybe>; + isClickAndCollect?: InputMaybe; + isPreorder?: InputMaybe; + metadata?: InputMaybe>; + numbers?: InputMaybe>; + paymentStatus?: InputMaybe>; + search?: InputMaybe; + status?: InputMaybe>; + updatedAt?: InputMaybe; +}; -export type UserAvatarDeleteMutation = { __typename: 'Mutation', userAvatarDelete: { __typename: 'UserAvatarDelete', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }>, user: { __typename: 'User', id: string, avatar: { __typename: 'Image', url: string } | null } | null } | null }; +export type OrderFulfillInput = { + /** If true, then allow proceed fulfillment when stock is exceeded. */ + allowStockToBeExceeded?: InputMaybe; + /** List of items informing how to fulfill the order. */ + lines: Array; + /** If true, send an email notification to the customer. */ + notifyCustomer?: InputMaybe; + /** Fulfillment tracking number. */ + trackingNumber?: InputMaybe; +}; -export type ChangeUserPasswordMutationVariables = Exact<{ - newPassword: Scalars['String']; - oldPassword: Scalars['String']; -}>; +export type OrderFulfillLineInput = { + /** The ID of the order line. */ + orderLineId?: InputMaybe; + /** 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']['input']; + /** ID of the warehouse from which the item will be fulfilled. */ + warehouse: Scalars['ID']['input']; +}; -export type ChangeUserPasswordMutation = { __typename: 'Mutation', passwordChange: { __typename: 'PasswordChange', errors: Array<{ __typename: 'AccountError', code: AccountErrorCode, field: string | null, addressType: AddressTypeEnum | null, message: string | null }> } | null }; +export type OrderGrantRefundCreateErrorCode = + | 'AMOUNT_GREATER_THAN_AVAILABLE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'SHIPPING_COSTS_ALREADY_GRANTED'; -export type StaffListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; -}>; +export type OrderGrantRefundCreateLineErrorCode = + | 'GRAPHQL_ERROR' + | 'NOT_FOUND' + | 'QUANTITY_GREATER_THAN_AVAILABLE'; +export type OrderGrantRefundCreateLineInput = { + /** The ID of the order line. */ + id: Scalars['ID']['input']; + /** The quantity of line items to be marked to refund. */ + quantity: Scalars['Int']['input']; + /** Reason of the granted refund for the line. */ + reason?: InputMaybe; +}; -export type StaffListQuery = { __typename: 'Query', staffUsers: { __typename: 'UserCountableConnection', edges: Array<{ __typename: 'UserCountableEdge', cursor: string, node: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, avatar: { __typename: 'Image', url: string } | null } }>, pageInfo: { __typename: 'PageInfo', hasPreviousPage: boolean, hasNextPage: boolean, startCursor: string | null, endCursor: string | null } } | null }; +export type OrderGrantRefundUpdateErrorCode = + | 'AMOUNT_GREATER_THAN_AVAILABLE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'SHIPPING_COSTS_ALREADY_GRANTED'; -export type StaffMemberDetailsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type OrderGrantRefundUpdateLineAddInput = { + /** The ID of the order line. */ + id: Scalars['ID']['input']; + /** The quantity of line items to be marked to refund. */ + quantity: Scalars['Int']['input']; + /** Reason of the granted refund for the line. */ + reason?: InputMaybe; +}; +export type OrderGrantRefundUpdateLineErrorCode = + | 'GRAPHQL_ERROR' + | 'NOT_FOUND' + | 'QUANTITY_GREATER_THAN_AVAILABLE'; -export type StaffMemberDetailsQuery = { __typename: 'Query', user: { __typename: 'User', id: string, email: string, firstName: string, isActive: boolean, lastName: string, permissionGroups: Array<{ __typename: 'Group', id: string, name: string, userCanManage: boolean }> | null, userPermissions: Array<{ __typename: 'UserPermission', code: PermissionEnum, name: string }> | null, avatar: { __typename: 'Image', url: string } | null, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null }; +/** + * Represents the status of a granted refund. + * + * NONE - the refund on related transactionItem is not processed + * PENDING - the refund on related transactionItem is pending + * FULL - the refund on related transactionItem is fully processed + * FAIL - the refund on related transactionItem failed + */ +export type OrderGrantedRefundStatusEnum = + | 'FAILURE' + | 'NONE' + | 'PENDING' + | 'SUCCESS'; -export type MenuCreateMutationVariables = Exact<{ - input: MenuCreateInput; -}>; +export type OrderLineCreateInput = { + /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ + forceNewLine?: InputMaybe; + /** Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used. */ + price?: InputMaybe; + /** Number of variant items ordered. */ + quantity: Scalars['Int']['input']; + /** Product variant ID. */ + variantId: Scalars['ID']['input']; +}; +export type OrderLineInput = { + /** Number of variant items ordered. */ + quantity: Scalars['Int']['input']; +}; -export type MenuCreateMutation = { __typename: 'Mutation', menuCreate: { __typename: 'MenuCreate', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }>, menu: { __typename: 'Menu', id: string } | null } | null }; +export type OrderNoteAddErrorCode = + | 'GRAPHQL_ERROR' + | 'REQUIRED'; -export type MenuBulkDeleteMutationVariables = Exact<{ - ids: Array | Scalars['ID']; -}>; +export type OrderNoteInput = { + /** Note message. */ + message: Scalars['String']['input']; +}; +export type OrderNoteUpdateErrorCode = + | 'GRAPHQL_ERROR' + | 'NOT_FOUND' + | 'REQUIRED'; -export type MenuBulkDeleteMutation = { __typename: 'Mutation', menuBulkDelete: { __typename: 'MenuBulkDelete', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null }; +export type OrderOriginEnum = + | 'BULK_CREATE' + | 'CHECKOUT' + | 'DRAFT' + | 'REISSUE'; -export type MenuDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type OrderPredicateInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** Defines the conditions related to checkout and order objects. */ + discountedObjectPredicate?: InputMaybe; +}; +export type OrderRefundFulfillmentLineInput = { + /** The ID of the fulfillment line to refund. */ + fulfillmentLineId: Scalars['ID']['input']; + /** The number of items to be refunded. */ + quantity: Scalars['Int']['input']; +}; -export type MenuDeleteMutation = { __typename: 'Mutation', menuDelete: { __typename: 'MenuDelete', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null }; +export type OrderRefundLineInput = { + /** The ID of the order line to refund. */ + orderLineId: Scalars['ID']['input']; + /** The number of items to be refunded. */ + quantity: Scalars['Int']['input']; +}; -export type MenuItemCreateMutationVariables = Exact<{ - input: MenuItemCreateInput; -}>; +export type OrderRefundProductsInput = { + /** The total amount of refund when the value is provided manually. */ + amountToRefund?: InputMaybe; + /** List of fulfilled lines to refund. */ + fulfillmentLines?: InputMaybe>; + /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ + includeShippingCosts?: InputMaybe; + /** List of unfulfilled lines to refund. */ + orderLines?: InputMaybe>; +}; +export type OrderReturnFulfillmentLineInput = { + /** The ID of the fulfillment line to return. */ + fulfillmentLineId: Scalars['ID']['input']; + /** The number of items to be returned. */ + quantity: Scalars['Int']['input']; + /** Determines, if the line should be added to replace order. */ + replace?: InputMaybe; +}; -export type MenuItemCreateMutation = { __typename: 'Mutation', menuItemCreate: { __typename: 'MenuItemCreate', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }>, menuItem: { __typename: 'MenuItem', menu: { __typename: 'Menu', id: string, items: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null } } | null } | null }; +export type OrderReturnLineInput = { + /** The ID of the order line to return. */ + orderLineId: Scalars['ID']['input']; + /** The number of items to be returned. */ + quantity: Scalars['Int']['input']; + /** Determines, if the line should be added to replace order. */ + replace?: InputMaybe; +}; -export type MenuUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - name: Scalars['String']; - moves: Array | MenuItemMoveInput; - removeIds: Array | Scalars['ID']; -}>; +export type OrderReturnProductsInput = { + /** The total amount of refund when the value is provided manually. */ + amountToRefund?: InputMaybe; + /** List of fulfilled lines to return. */ + fulfillmentLines?: InputMaybe>; + /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ + includeShippingCosts?: InputMaybe; + /** List of unfulfilled lines to return. */ + orderLines?: InputMaybe>; + /** If true, Saleor will call refund action for all lines. */ + refund?: InputMaybe; +}; +export type OrderSettingsErrorCode = + | 'INVALID'; -export type MenuUpdateMutation = { __typename: 'Mutation', menuUpdate: { __typename: 'MenuUpdate', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null, menuItemMove: { __typename: 'MenuItemMove', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null, menuItemBulkDelete: { __typename: 'MenuItemBulkDelete', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }> } | null }; +export type OrderSettingsInput = { + /** Determine if it is possible to place unpaid order by calling `checkoutComplete` mutation. */ + allowUnpaidOrders?: InputMaybe; + /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ + automaticallyConfirmAllNewOrders?: InputMaybe; + /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ + automaticallyFulfillNonShippableGiftCard?: InputMaybe; + /** The time in days after expired orders will be deleted.Allowed range is from 1 to 120. */ + deleteExpiredOrdersAfter?: InputMaybe; + /** + * Time in hours after which the draft order line price will be refreshed. Default value is 24 hours. Enter 0 or null to disable. + * + * Added in Saleor 3.21. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + draftOrderLinePriceFreezePeriod?: InputMaybe; + /** Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable. */ + expireOrdersAfter?: InputMaybe; + /** + * Specify whether a coupon applied to draft orders will count toward voucher usage. + * + * Warning: when switching this setting from `false` to `true`, the vouchers will be disconnected from all draft orders. + * + * Added in Saleor 3.18. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + includeDraftOrderInVoucherUsage?: InputMaybe; + /** + * Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. + * `PAYMENT_FLOW` - [default option] creates the `Payment` object. + * `TRANSACTION_FLOW` - creates the `TransactionItem` object. + */ + markAsPaidStrategy?: InputMaybe; + /** + * This flag only affects orders created from checkout and applies specifically to vouchers of the types: `SPECIFIC_PRODUCT` and `ENTIRE_ORDER` with `applyOncePerOrder` enabled. + * - When legacy propagation is enabled, discounts from these vouchers are represented as `OrderDiscount` objects, attached to the order and returned in the `Order.discounts` field. Additionally, percentage-based vouchers are converted to fixed-value discounts. + * - When legacy propagation is disabled, discounts are represented as `OrderLineDiscount` objects, attached to individual lines and returned in the `OrderLine.discounts` field. In this case, percentage-based vouchers retain their original type. + * In future releases, `OrderLineDiscount` will become the default behavior, and this flag will be deprecated and removed. + * + * Added in Saleor 3.21. + */ + useLegacyLineDiscountPropagation?: InputMaybe; +}; -export type MenuItemUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: MenuItemInput; -}>; +export type OrderSettingsUpdateInput = { + /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ + automaticallyConfirmAllNewOrders?: InputMaybe; + /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ + automaticallyFulfillNonShippableGiftCard?: InputMaybe; +}; +export type OrderSortField = + /** Sort orders by creation date. */ + | 'CREATED_AT' + /** Sort orders by creation date */ + | 'CREATION_DATE' + /** Sort orders by customer. */ + | 'CUSTOMER' + /** Sort orders by fulfillment status. */ + | 'FULFILLMENT_STATUS' + /** Sort orders by last modified date. */ + | 'LAST_MODIFIED_AT' + /** Sort orders by number. */ + | 'NUMBER' + /** Sort orders by payment status. */ + | 'PAYMENT' + /** Sort orders by rank. Note: This option is available only with the `search` filter. */ + | 'RANK' + /** + * Sort orders by order status. + * + * Added in Saleor 3.22. + */ + | 'STATUS'; -export type MenuItemUpdateMutation = { __typename: 'Mutation', menuItemUpdate: { __typename: 'MenuItemUpdate', errors: Array<{ __typename: 'MenuError', code: MenuErrorCode, field: string | null, message: string | null }>, menuItem: { __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null } | null } | null }; +export type OrderSortingInput = { + /** Specifies the direction in which to sort orders. */ + direction: OrderDirection; + /** Sort orders by the selected field. */ + field: OrderSortField; +}; -export type MenuListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - sort?: InputMaybe; -}>; +export type OrderStatus = + | 'CANCELED' + | 'DRAFT' + | 'EXPIRED' + | 'FULFILLED' + | 'PARTIALLY_FULFILLED' + | 'PARTIALLY_RETURNED' + | 'RETURNED' + | 'UNCONFIRMED' + | 'UNFULFILLED'; +/** Filter by order status. */ +export type OrderStatusEnumFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type MenuListQuery = { __typename: 'Query', menus: { __typename: 'MenuCountableConnection', edges: Array<{ __typename: 'MenuCountableEdge', node: { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string }> | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type OrderStatusFilter = + | 'CANCELED' + | 'FULFILLED' + | 'PARTIALLY_FULFILLED' + | 'READY_TO_CAPTURE' + | 'READY_TO_FULFILL' + | 'UNCONFIRMED' + | 'UNFULFILLED'; -export type MenuDetailsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type OrderUpdateInput = { + /** Billing address of the customer. */ + billingAddress?: InputMaybe; + /** External ID of this order. */ + externalReference?: InputMaybe; + /** + * Order language code. + * + * Added in Saleor 3.21. + */ + languageCode?: InputMaybe; + /** + * Order public metadata. + * + * Added in Saleor 3.21.Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** + * Order private metadata. + * + * Added in Saleor 3.21.Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** Shipping address of the customer. */ + shippingAddress?: InputMaybe; + /** Email address of the customer. */ + userEmail?: InputMaybe; +}; +export type OrderUpdateShippingInput = { + /** ID of the selected shipping method, pass null to remove currently assigned shipping method. */ + shippingMethod?: InputMaybe; +}; -export type MenuDetailsQuery = { __typename: 'Query', menu: { __typename: 'Menu', id: string, name: string, items: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, children: Array<{ __typename: 'MenuItem', id: string, level: number, name: string, url: string | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null, category: { __typename: 'Category', id: string, name: string } | null, collection: { __typename: 'Collection', id: string, name: string } | null, page: { __typename: 'Page', id: string, title: string } | null }> | null } | null }; +export type OrderWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** Filter by authorize status. */ + authorizeStatus?: InputMaybe; + /** Filter by billing address of the order. */ + billingAddress?: InputMaybe; + /** Filter by channel. */ + channelId?: InputMaybe; + /** Filter by charge status. */ + chargeStatus?: InputMaybe; + /** Filter by checkout id. */ + checkoutId?: InputMaybe; + /** Filter by checkout token. */ + checkoutToken?: InputMaybe; + /** Filter order by created at date. */ + createdAt?: InputMaybe; + /** Filter by order events. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ + events?: InputMaybe>; + /** Filter by fulfillment data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ + fulfillments?: InputMaybe>; + /** Filter by whether the order has any fulfillments. */ + hasFulfillments?: InputMaybe; + /** Filter by whether the order has any invoices. */ + hasInvoices?: InputMaybe; + ids?: InputMaybe>; + /** Filter by invoice data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ + invoices?: InputMaybe>; + /** Filter by whether the order uses the click and collect delivery method. */ + isClickAndCollect?: InputMaybe; + /** Filter based on whether the order includes a gift card purchase. */ + isGiftCardBought?: InputMaybe; + /** Filter based on whether a gift card was used in the order. */ + isGiftCardUsed?: InputMaybe; + /** Filter by line items associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ + lines?: InputMaybe>; + /** Filter by number of lines in the order. */ + linesCount?: InputMaybe; + /** Filter by metadata fields. */ + metadata?: InputMaybe; + /** Filter by order number. */ + number?: InputMaybe; + /** Filter by the product type of related order lines. */ + productTypeId?: InputMaybe; + /** Filter by shipping address of the order. */ + shippingAddress?: InputMaybe; + /** Filter by order status. */ + status?: InputMaybe; + /** Filter by total gross amount of the order. */ + totalGross?: InputMaybe; + /** Filter by total net amount of the order. */ + totalNet?: InputMaybe; + /** Filter by transaction data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ + transactions?: InputMaybe>; + /** Filter order by updated at date. */ + updatedAt?: InputMaybe; + /** Filter by user. */ + user?: InputMaybe; + /** Filter by user email. */ + userEmail?: InputMaybe; + /** Filter by voucher code used in the order. */ + voucherCode?: InputMaybe; +}; -export type TaxConfigurationUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: TaxConfigurationUpdateInput; -}>; +export type PageCreateInput = { + /** List of attributes. */ + attributes?: InputMaybe>; + /** + * Page content. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: InputMaybe; + /** Determines if page is visible in the storefront. */ + isPublished?: InputMaybe; + /** ID of the page type that page belongs to. */ + pageType: Scalars['ID']['input']; + /** + * Publication date. ISO 8601 standard. + * @deprecated Use `publishedAt` field instead. + */ + publicationDate?: InputMaybe; + /** Publication date time. ISO 8601 standard. */ + publishedAt?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Page internal name. */ + slug?: InputMaybe; + /** Page title. */ + title?: InputMaybe; +}; +export type PageErrorCode = + | 'ATTRIBUTE_ALREADY_ASSIGNED' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; -export type TaxConfigurationUpdateMutation = { __typename: 'Mutation', taxConfigurationUpdate: { __typename: 'TaxConfigurationUpdate', errors: Array<{ __typename: 'TaxConfigurationUpdateError', field: string | null, code: TaxConfigurationUpdateErrorCode, message: string | null }>, taxConfiguration: { __typename: 'TaxConfiguration', id: string, displayGrossPrices: boolean, pricesEnteredWithTax: boolean, chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, channel: { __typename: 'Channel', id: string, name: string }, countries: Array<{ __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }> } | null } | null }; +export type PageFilterInput = { + ids?: InputMaybe>; + metadata?: InputMaybe>; + pageTypes?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; +}; -export type TaxCountryConfigurationUpdateMutationVariables = Exact<{ - countryCode: CountryCode; - updateTaxClassRates: Array | TaxClassRateInput; -}>; +export type PageInput = { + /** List of attributes. */ + attributes?: InputMaybe>; + /** + * Page content. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: InputMaybe; + /** Determines if page is visible in the storefront. */ + isPublished?: InputMaybe; + /** + * Publication date. ISO 8601 standard. + * @deprecated Use `publishedAt` field instead. + */ + publicationDate?: InputMaybe; + /** Publication date time. ISO 8601 standard. */ + publishedAt?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Page internal name. */ + slug?: InputMaybe; + /** Page title. */ + title?: InputMaybe; +}; +export type PageSortField = + /** Sort pages by creation date. */ + | 'CREATED_AT' + /** Sort pages by creation date. */ + | 'CREATION_DATE' + /** Sort pages by publication date. */ + | 'PUBLICATION_DATE' + /** Sort pages by publication date. */ + | 'PUBLISHED_AT' + /** Sort pages by slug. */ + | 'SLUG' + /** Sort pages by title. */ + | 'TITLE' + /** Sort pages by visibility. */ + | 'VISIBILITY'; -export type TaxCountryConfigurationUpdateMutation = { __typename: 'Mutation', taxCountryConfigurationUpdate: { __typename: 'TaxCountryConfigurationUpdate', errors: Array<{ __typename: 'TaxCountryConfigurationUpdateError', field: string | null, code: TaxCountryConfigurationUpdateErrorCode, message: string | null }>, taxCountryConfiguration: { __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> } | null } | null }; +export type PageSortingInput = { + /** Specifies the direction in which to sort pages. */ + direction: OrderDirection; + /** Sort pages by the selected field. */ + field: PageSortField; +}; -export type TaxCountryConfigurationDeleteMutationVariables = Exact<{ - countryCode: CountryCode; -}>; +export type PageTranslationInput = { + /** + * Translated page content. + * + * Rich text format. For reference see https://editorjs.io/ + */ + content?: InputMaybe; + seoDescription?: InputMaybe; + seoTitle?: InputMaybe; + slug?: InputMaybe; + title?: InputMaybe; +}; +export type PageTypeCreateInput = { + /** List of attribute IDs to be assigned to the page type. */ + addAttributes?: InputMaybe>; + /** Name of the page type. */ + name?: InputMaybe; + /** Page type slug. */ + slug?: InputMaybe; +}; -export type TaxCountryConfigurationDeleteMutation = { __typename: 'Mutation', taxCountryConfigurationDelete: { __typename: 'TaxCountryConfigurationDelete', errors: Array<{ __typename: 'TaxCountryConfigurationDeleteError', field: string | null, code: TaxCountryConfigurationDeleteErrorCode, message: string | null }>, taxCountryConfiguration: { __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> } | null } | null }; +export type PageTypeFilterInput = { + search?: InputMaybe; + slugs?: InputMaybe>; +}; -export type TaxClassUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: TaxClassUpdateInput; -}>; +export type PageTypeSortField = + /** Sort page types by name. */ + | 'NAME' + /** Sort page types by slug. */ + | 'SLUG'; +export type PageTypeSortingInput = { + /** Specifies the direction in which to sort page types. */ + direction: OrderDirection; + /** Sort page types by the selected field. */ + field: PageTypeSortField; +}; -export type TaxClassUpdateMutation = { __typename: 'Mutation', taxClassUpdate: { __typename: 'TaxClassUpdate', errors: Array<{ __typename: 'TaxClassUpdateError', field: string | null, code: TaxClassUpdateErrorCode, message: string | null }>, taxClass: { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type PageTypeUpdateInput = { + /** List of attribute IDs to be assigned to the page type. */ + addAttributes?: InputMaybe>; + /** Name of the page type. */ + name?: InputMaybe; + /** List of attribute IDs to be assigned to the page type. */ + removeAttributes?: InputMaybe>; + /** Page type slug. */ + slug?: InputMaybe; +}; -export type TaxClassCreateMutationVariables = Exact<{ - input: TaxClassCreateInput; -}>; +export type PageWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** Filter by attributes associated with the page. */ + attributes?: InputMaybe>; + ids?: InputMaybe>; + /** Filter by metadata fields. */ + metadata?: InputMaybe; + /** Filter by page type. */ + pageType?: InputMaybe; + /** Filter by page slug. */ + slug?: InputMaybe; +}; +export type PaymentChargeStatusEnum = + | 'CANCELLED' + | 'FULLY_CHARGED' + | 'FULLY_REFUNDED' + | 'NOT_CHARGED' + | 'PARTIALLY_CHARGED' + | 'PARTIALLY_REFUNDED' + | 'PENDING' + | 'REFUSED'; -export type TaxClassCreateMutation = { __typename: 'Mutation', taxClassCreate: { __typename: 'TaxClassCreate', errors: Array<{ __typename: 'TaxClassCreateError', field: string | null, code: TaxClassCreateErrorCode, message: string | null }>, taxClass: { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type PaymentMethodDetailsCardFilterInput = { + /** Filter by payment method brand used to pay for the order. */ + brand?: InputMaybe; +}; -export type TaxClassDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +export type PaymentMethodDetailsFilterInput = { + /** Filter by card details used to pay for the order. Skips `type` filter if provided. */ + card?: InputMaybe; + /** Filter by payment method type used to pay for the order. */ + type?: InputMaybe; +}; +/** + * Represents possible payment method types. + * + * The following types are possible: + * CARD - represents a card payment method. + * OTHER - represents any payment method that is not a card payment. + */ +export type PaymentMethodTypeEnum = + | 'CARD' + | 'OTHER'; -export type TaxClassDeleteMutation = { __typename: 'Mutation', taxClassDelete: { __typename: 'TaxClassDelete', errors: Array<{ __typename: 'TaxClassDeleteError', field: string | null, code: TaxClassDeleteErrorCode, message: string | null }> } | null }; +export type PaymentMethodTypeEnumFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type TaxConfigurationsListQueryVariables = Exact<{ - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; -}>; +export type PaymentSettingsInput = { + /** + * Specifies the earliest date on which funds for expired checkouts can begin to be released. Expired checkouts dated before this cut-off will not have their funds released. Additionally, no funds will be released for checkouts that are more than one year old, regardless of the cut-off date. + * + * Added in Saleor 3.20. + */ + checkoutReleaseFundsCutOffDate?: InputMaybe; + /** + * The time in hours after which funds for expired checkouts will be released. + * + * Added in Saleor 3.20. + */ + checkoutTtlBeforeReleasingFunds?: InputMaybe; + /** Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction. */ + defaultTransactionFlowStrategy?: InputMaybe; + /** + * Determine if the funds for expired checkouts should be released automatically. + * + * Added in Saleor 3.20. + */ + releaseFundsForExpiredCheckouts?: InputMaybe; +}; + +export type PermissionEnum = + | 'HANDLE_CHECKOUTS' + | 'HANDLE_PAYMENTS' + | 'HANDLE_TAXES' + | 'IMPERSONATE_USER' + | 'MANAGE_APPS' + | 'MANAGE_CHANNELS' + | 'MANAGE_CHECKOUTS' + | 'MANAGE_DISCOUNTS' + | 'MANAGE_GIFT_CARD' + | 'MANAGE_MENUS' + | 'MANAGE_OBSERVABILITY' + | 'MANAGE_ORDERS' + | 'MANAGE_ORDERS_IMPORT' + | 'MANAGE_PAGES' + | 'MANAGE_PAGE_TYPES_AND_ATTRIBUTES' + | 'MANAGE_PLUGINS' + | 'MANAGE_PRODUCTS' + | 'MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES' + | 'MANAGE_SETTINGS' + | 'MANAGE_SHIPPING' + | 'MANAGE_STAFF' + | 'MANAGE_TAXES' + | 'MANAGE_TRANSLATIONS' + | 'MANAGE_USERS'; +export type PermissionGroupCreateInput = { + /** List of channels to assign to this group. */ + addChannels?: InputMaybe>; + /** List of permission code names to assign to this group. */ + addPermissions?: InputMaybe>; + /** List of users to assign to this group. */ + addUsers?: InputMaybe>; + /** Group name. */ + name: Scalars['String']['input']; + /** Determine if the group has restricted access to channels. DEFAULT: False */ + restrictedAccessToChannels?: InputMaybe; +}; -export type TaxConfigurationsListQuery = { __typename: 'Query', taxConfigurations: { __typename: 'TaxConfigurationCountableConnection', edges: Array<{ __typename: 'TaxConfigurationCountableEdge', node: { __typename: 'TaxConfiguration', id: string, displayGrossPrices: boolean, pricesEnteredWithTax: boolean, chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, channel: { __typename: 'Channel', id: string, name: string }, countries: Array<{ __typename: 'TaxConfigurationPerCountry', chargeTaxes: boolean, taxCalculationStrategy: TaxCalculationStrategy | null, taxAppId: string | null, displayGrossPrices: boolean, country: { __typename: 'CountryDisplay', country: string, code: string } }> } }> } | null }; +export type PermissionGroupErrorCode = + | 'ASSIGN_NON_STAFF_MEMBER' + | 'CANNOT_REMOVE_FROM_LAST_GROUP' + | 'DUPLICATED_INPUT_ITEM' + | 'LEFT_NOT_MANAGEABLE_PERMISSION' + | 'OUT_OF_SCOPE_CHANNEL' + | 'OUT_OF_SCOPE_PERMISSION' + | 'OUT_OF_SCOPE_USER' + | 'REQUIRED' + | 'UNIQUE'; -export type TaxCountriesListQueryVariables = Exact<{ [key: string]: never; }>; +export type PermissionGroupFilterInput = { + ids?: InputMaybe>; + search?: InputMaybe; +}; +/** Sorting options for permission groups. */ +export type PermissionGroupSortField = + /** Sort permission group accounts by name. */ + | 'NAME'; -export type TaxCountriesListQuery = { __typename: 'Query', taxCountryConfigurations: Array<{ __typename: 'TaxCountryConfiguration', country: { __typename: 'CountryDisplay', country: string, code: string }, taxClassCountryRates: Array<{ __typename: 'TaxClassCountryRate', rate: number, taxClass: { __typename: 'TaxClass', id: string, name: string } | null }> }> | null }; +export type PermissionGroupSortingInput = { + /** Specifies the direction in which to sort permission group. */ + direction: OrderDirection; + /** Sort permission group by the selected field. */ + field: PermissionGroupSortField; +}; -export type TaxClassesListQueryVariables = Exact<{ - before?: InputMaybe; - after?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - filter?: InputMaybe; - sortBy?: InputMaybe; -}>; +export type PermissionGroupUpdateInput = { + /** List of channels to assign to this group. */ + addChannels?: InputMaybe>; + /** List of permission code names to assign to this group. */ + addPermissions?: InputMaybe>; + /** List of users to assign to this group. */ + addUsers?: InputMaybe>; + /** Group name. */ + name?: InputMaybe; + /** List of channels to unassign from this group. */ + removeChannels?: InputMaybe>; + /** List of permission code names to unassign from this group. */ + removePermissions?: InputMaybe>; + /** List of users to unassign from this group. */ + removeUsers?: InputMaybe>; + /** Determine if the group has restricted access to channels. */ + restrictedAccessToChannels?: InputMaybe; +}; +export type PluginConfigurationType = + | 'GLOBAL' + | 'PER_CHANNEL'; -export type TaxClassesListQuery = { __typename: 'Query', taxClasses: { __typename: 'TaxClassCountableConnection', edges: Array<{ __typename: 'TaxClassCountableEdge', node: { __typename: 'TaxClass', id: string, name: string, countries: Array<{ __typename: 'TaxClassCountryRate', rate: number, country: { __typename: 'CountryDisplay', country: string, code: string } }>, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } }> } | null }; +export type PluginErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'PLUGIN_MISCONFIGURED' + | 'REQUIRED' + | 'UNIQUE'; -export type TaxClassAssignQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; -}>; +export type PluginFilterInput = { + search?: InputMaybe; + statusInChannels?: InputMaybe; + type?: InputMaybe; +}; +export type PluginSortField = + | 'IS_ACTIVE' + | 'NAME'; -export type TaxClassAssignQuery = { __typename: 'Query', taxClasses: { __typename: 'TaxClassCountableConnection', edges: Array<{ __typename: 'TaxClassCountableEdge', node: { __typename: 'TaxClass', id: string, name: string } }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, endCursor: string | null } } | null }; +export type PluginSortingInput = { + /** Specifies the direction in which to sort plugins. */ + direction: OrderDirection; + /** Sort plugins by the selected field. */ + field: PluginSortField; +}; -export type TaxStrategyChoicesQueryVariables = Exact<{ [key: string]: never; }>; +export type PluginStatusInChannelsInput = { + active: Scalars['Boolean']['input']; + channels: Array; +}; +export type PluginUpdateInput = { + /** Indicates whether the plugin should be enabled. */ + active?: InputMaybe; + /** Configuration of the plugin. */ + configuration?: InputMaybe>; +}; -export type TaxStrategyChoicesQuery = { __typename: 'Query', shop: { __typename: 'Shop', availableTaxApps: Array<{ __typename: 'App', id: string, name: string | null, version: string | null, identifier: string | null, created: any | null, brand: { __typename: 'AppBrand', logo: { __typename: 'AppBrandLogo', default: string } } | null }> } }; +export type PostalCodeRuleInclusionTypeEnum = + | 'EXCLUDE' + | 'INCLUDE'; -export type UpdateProductTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: TranslationInput; - language: LanguageCodeEnum; -}>; +export type PreorderSettingsInput = { + /** The end date for preorder. */ + endDate?: InputMaybe; + /** The global threshold for preorder variant. */ + globalThreshold?: InputMaybe; +}; +export type PriceFilterInput = { + /** The amount of the price to filter by. */ + amount: DecimalFilterInput; + /** The currency of the price to filter by. */ + currency?: InputMaybe; +}; -export type UpdateProductTranslationsMutation = { __typename: 'Mutation', productTranslate: { __typename: 'ProductTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null, translation: { __typename: 'ProductTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null } | null }; +export type PriceInput = { + /** Amount of money. */ + amount: Scalars['PositiveDecimal']['input']; + /** Currency code. */ + currency: Scalars['String']['input']; +}; -export type UpdateProductVariantTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: NameTranslationInput; - language: LanguageCodeEnum; -}>; +export type PriceRangeInput = { + /** Price greater than or equal to. */ + gte?: InputMaybe; + /** Price less than or equal to. */ + lte?: InputMaybe; +}; +export type ProductAttributeAssignInput = { + /** The ID of the attribute to assign. */ + id: Scalars['ID']['input']; + /** The attribute type to be assigned as. */ + type: ProductAttributeType; + /** Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. */ + variantSelection?: InputMaybe; +}; -export type UpdateProductVariantTranslationsMutation = { __typename: 'Mutation', productVariantTranslate: { __typename: 'ProductVariantTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, productVariant: { __typename: 'ProductVariant', id: string, name: string, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null } | null }; +export type ProductAttributeAssignmentUpdateInput = { + /** The ID of the attribute to assign. */ + id: Scalars['ID']['input']; + /** Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. */ + variantSelection: Scalars['Boolean']['input']; +}; -export type UpdateCategoryTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: TranslationInput; - language: LanguageCodeEnum; -}>; +export type ProductAttributeType = + | 'PRODUCT' + | 'VARIANT'; +export type ProductChannelListingAddInput = { + /** List of variants to which the channel should be assigned. */ + addVariants?: InputMaybe>; + /** A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. */ + availableForPurchaseAt?: InputMaybe; + /** + * 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. + * @deprecated Use `availableForPurchaseAt` field instead. + */ + availableForPurchaseDate?: InputMaybe; + /** ID of a channel. */ + channelId: Scalars['ID']['input']; + /** Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ + isAvailableForPurchase?: InputMaybe; + /** Determines if object is visible to customers. */ + isPublished?: InputMaybe; + /** + * Publication date. ISO 8601 standard. + * @deprecated Use `publishedAt` field instead. + */ + publicationDate?: InputMaybe; + /** Publication date time. ISO 8601 standard. */ + publishedAt?: InputMaybe; + /** List of variants from which the channel should be unassigned. */ + removeVariants?: InputMaybe>; + /** Determines if product is visible in product listings (doesn't apply to product collections). */ + visibleInListings?: InputMaybe; +}; -export type UpdateCategoryTranslationsMutation = { __typename: 'Mutation', categoryTranslate: { __typename: 'CategoryTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null, translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | null } | null }; +export type ProductChannelListingUpdateInput = { + /** List of channels from which the product should be unassigned. */ + removeChannels?: InputMaybe>; + /** List of channels to which the product should be assigned or updated. */ + updateChannels?: InputMaybe>; +}; -export type UpdateCollectionTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: TranslationInput; - language: LanguageCodeEnum; -}>; +export type ProductCreateInput = { + /** List of attributes. */ + attributes?: InputMaybe>; + /** ID of the product's category. */ + category?: InputMaybe; + /** + * Determine if taxes are being charged for the product. + * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + */ + chargeTaxes?: InputMaybe; + /** List of IDs of collections that the product belongs to. */ + collections?: InputMaybe>; + /** + * Product description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + /** External ID of this product. */ + externalReference?: InputMaybe; + /** + * Fields required to update the product metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Product name. */ + name?: InputMaybe; + /** + * Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** ID of the type that product belongs to. */ + productType: Scalars['ID']['input']; + /** Defines the product rating value. */ + rating?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Product slug. */ + slug?: InputMaybe; + /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ + taxClass?: InputMaybe; + /** + * Tax rate for enabled tax gateway. + * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + */ + taxCode?: InputMaybe; + /** Weight of the Product. */ + weight?: InputMaybe; +}; + +export type ProductErrorCode = + | 'ALREADY_EXISTS' + | 'ATTRIBUTE_ALREADY_ASSIGNED' + | 'ATTRIBUTE_CANNOT_BE_ASSIGNED' + | 'ATTRIBUTE_VARIANTS_DISABLED' + | 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_PRICE' + | 'MEDIA_ALREADY_ASSIGNED' + | 'NOT_FOUND' + | 'NOT_PRODUCTS_IMAGE' + | 'NOT_PRODUCTS_VARIANT' + | 'PREORDER_VARIANT_CANNOT_BE_DEACTIVATED' + | 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL' + | 'PRODUCT_WITHOUT_CATEGORY' + | 'REQUIRED' + | 'UNIQUE' + | 'UNSUPPORTED_MEDIA_PROVIDER' + | 'VARIANT_NO_DIGITAL_CONTENT'; + +export type ProductFieldEnum = + | 'CATEGORY' + | 'CHARGE_TAXES' + | 'COLLECTIONS' + | 'DESCRIPTION' + | 'NAME' + | 'PRODUCT_MEDIA' + | 'PRODUCT_TYPE' + | 'PRODUCT_WEIGHT' + | 'VARIANT_ID' + | 'VARIANT_MEDIA' + | 'VARIANT_SKU' + | 'VARIANT_WEIGHT'; +export type ProductFilterInput = { + attributes?: InputMaybe>; + /** Filter by the date of availability for purchase. */ + availableFrom?: InputMaybe; + categories?: InputMaybe>; + /** + * Specifies the channel by which the data should be filtered. + * @deprecated Use root-level channel argument instead. + */ + channel?: InputMaybe; + collections?: InputMaybe>; + /** Filter on whether product is a gift card or not. */ + giftCard?: InputMaybe; + hasCategory?: InputMaybe; + hasPreorderedVariants?: InputMaybe; + ids?: InputMaybe>; + /** Filter by availability for purchase. */ + isAvailable?: InputMaybe; + isPublished?: InputMaybe; + /** Filter by visibility in product listings. */ + isVisibleInListing?: InputMaybe; + metadata?: InputMaybe>; + /** Filter by the lowest variant price after discounts. */ + minimalPrice?: InputMaybe; + price?: InputMaybe; + productTypes?: InputMaybe>; + /** Filter by the publication date. */ + publishedFrom?: InputMaybe; + search?: InputMaybe; + slugs?: InputMaybe>; + /** Filter by variants having specific stock status. */ + stockAvailability?: InputMaybe; + stocks?: InputMaybe; + /** Filter by when was the most recent update. */ + updatedAt?: InputMaybe; +}; -export type UpdateCollectionTranslationsMutation = { __typename: 'Mutation', collectionTranslate: { __typename: 'CollectionTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | null } | null }; +export type ProductInput = { + /** List of attributes. */ + attributes?: InputMaybe>; + /** ID of the product's category. */ + category?: InputMaybe; + /** + * Determine if taxes are being charged for the product. + * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. + */ + chargeTaxes?: InputMaybe; + /** List of IDs of collections that the product belongs to. */ + collections?: InputMaybe>; + /** + * Product description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + /** External ID of this product. */ + externalReference?: InputMaybe; + /** + * Fields required to update the product metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Product name. */ + name?: InputMaybe; + /** + * Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** Defines the product rating value. */ + rating?: InputMaybe; + /** Search engine optimization fields. */ + seo?: InputMaybe; + /** Product slug. */ + slug?: InputMaybe; + /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ + taxClass?: InputMaybe; + /** + * Tax rate for enabled tax gateway. + * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + */ + taxCode?: InputMaybe; + /** Weight of the Product. */ + weight?: InputMaybe; +}; -export type UpdatePageTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: PageTranslationInput; - language: LanguageCodeEnum; -}>; +export type ProductMediaType = + | 'IMAGE' + | 'VIDEO'; +export type ProductOrder = { + /** + * Sort product by the selected attribute's values. + * Note: this doesn't take translations into account yet. + */ + attributeId?: InputMaybe; + /** + * Specifies the channel in which to sort the data. + * @deprecated Use root-level channel argument instead. + */ + channel?: InputMaybe; + /** Specifies the direction in which to sort products. */ + direction: OrderDirection; + /** Sort products by the selected field. */ + field?: InputMaybe; +}; -export type UpdatePageTranslationsMutation = { __typename: 'Mutation', pageTranslate: { __typename: 'PageTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, page: { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | null } | null }; +export type ProductOrderField = + /** + * Sort products by collection. Note: This option is available only for the `Collection.products` query. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'COLLECTION' + /** Sort products by creation date. */ + | 'CREATED_AT' + /** Sort products by update date. */ + | 'DATE' + /** Sort products by update date. */ + | 'LAST_MODIFIED' + /** Sort products by update date. */ + | 'LAST_MODIFIED_AT' + /** + * Sort products by a minimal price of a product's variant. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'MINIMAL_PRICE' + /** Sort products by name. */ + | 'NAME' + /** + * Sort products by price. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'PRICE' + /** + * Sort products by publication date. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'PUBLICATION_DATE' + /** + * Sort products by publication status. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'PUBLISHED' + /** + * Sort products by publication date. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'PUBLISHED_AT' + /** Sort products by rank. Note: This option is available only with the `search` filter. */ + | 'RANK' + /** Sort products by rating. */ + | 'RATING' + /** Sort products by type. */ + | 'TYPE'; -export type UpdateVoucherTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: NameTranslationInput; - language: LanguageCodeEnum; -}>; +export type ProductStockFilterInput = { + quantity?: InputMaybe; + warehouseIds?: InputMaybe>; +}; +export type ProductTypeConfigurable = + | 'CONFIGURABLE' + | 'SIMPLE'; -export type UpdateVoucherTranslationsMutation = { __typename: 'Mutation', voucherTranslate: { __typename: 'VoucherTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, voucher: { __typename: 'Voucher', id: string, name: string | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null } | null }; +export type ProductTypeEnum = + | 'DIGITAL' + | 'SHIPPABLE'; -export type UpdateSaleTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: NameTranslationInput; - language: LanguageCodeEnum; -}>; +export type ProductTypeFilterInput = { + configurable?: InputMaybe; + ids?: InputMaybe>; + kind?: InputMaybe; + metadata?: InputMaybe>; + productType?: InputMaybe; + search?: InputMaybe; + slugs?: InputMaybe>; +}; +export type ProductTypeInput = { + /** 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?: InputMaybe; + /** Determines if products are digital. */ + isDigital?: InputMaybe; + /** Determines if shipping is required for products of this variant. */ + isShippingRequired?: InputMaybe; + /** The product type kind. */ + kind?: InputMaybe; + /** Name of the product type. */ + name?: InputMaybe; + /** List of attributes shared among all product variants. */ + productAttributes?: InputMaybe>; + /** Product type slug. */ + slug?: InputMaybe; + /** ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. */ + taxClass?: InputMaybe; + /** + * Tax rate for enabled tax gateway. + * @deprecated Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. + */ + taxCode?: InputMaybe; + /** List of attributes used to distinguish between different variants of a product. */ + variantAttributes?: InputMaybe>; + /** Weight of the ProductType items. */ + weight?: InputMaybe; +}; -export type UpdateSaleTranslationsMutation = { __typename: 'Mutation', saleTranslate: { __typename: 'SaleTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, sale: { __typename: 'Sale', id: string, name: string, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null } | null }; +export type ProductTypeKindEnum = + | 'GIFT_CARD' + | 'NORMAL'; -export type UpdateAttributeTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: NameTranslationInput; - language: LanguageCodeEnum; -}>; +export type ProductTypeSortField = + /** Sort products by type. */ + | 'DIGITAL' + /** Sort products by name. */ + | 'NAME' + /** Sort products by shipping. */ + | 'SHIPPING_REQUIRED'; +export type ProductTypeSortingInput = { + /** Specifies the direction in which to sort product types. */ + direction: OrderDirection; + /** Sort product types by the selected field. */ + field: ProductTypeSortField; +}; -export type UpdateAttributeTranslationsMutation = { __typename: 'Mutation', attributeTranslate: { __typename: 'AttributeTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, attribute: { __typename: 'Attribute', id: string, name: string | null, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null } | null } | null }; +export type ProductVariantBulkCreateInput = { + /** List of attributes specific to this variant. */ + attributes: Array; + /** List of prices assigned to channels. */ + channelListings?: InputMaybe>; + /** External ID of this product variant. */ + externalReference?: InputMaybe; + /** + * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Variant name. */ + name?: InputMaybe; + /** Determines if variant is in preorder. */ + preorder?: InputMaybe; + /** + * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ + quantityLimitPerCustomer?: InputMaybe; + /** Stock keeping unit. */ + sku?: InputMaybe; + /** Stocks of a product available for sale. */ + stocks?: InputMaybe>; + /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ + trackInventory?: InputMaybe; + /** Weight of the Product Variant. */ + weight?: InputMaybe; +}; + +export type ProductVariantBulkErrorCode = + | 'ATTRIBUTE_ALREADY_ASSIGNED' + | 'ATTRIBUTE_CANNOT_BE_ASSIGNED' + | 'ATTRIBUTE_VARIANTS_DISABLED' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_PRICE' + | 'NOT_FOUND' + | 'NOT_PRODUCTS_VARIANT' + | 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL' + | 'REQUIRED' + | 'STOCK_ALREADY_EXISTS' + | 'UNIQUE'; -export type UpdateAttributeValueTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: AttributeValueTranslationInput; - language: LanguageCodeEnum; -}>; +/** Input fields to update product variants. */ +export type ProductVariantBulkUpdateInput = { + /** List of attributes specific to this variant. */ + attributes?: InputMaybe>; + /** Channel listings input. */ + channelListings?: InputMaybe; + /** External ID of this product variant. */ + externalReference?: InputMaybe; + /** ID of the product variant to update. */ + id: Scalars['ID']['input']; + /** + * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Variant name. */ + name?: InputMaybe; + /** Determines if variant is in preorder. */ + preorder?: InputMaybe; + /** + * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ + quantityLimitPerCustomer?: InputMaybe; + /** Stock keeping unit. */ + sku?: InputMaybe; + /** Stocks input. */ + stocks?: InputMaybe; + /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ + trackInventory?: InputMaybe; + /** Weight of the Product Variant. */ + weight?: InputMaybe; +}; +export type ProductVariantChannelListingAddInput = { + /** ID of a channel. */ + channelId: Scalars['ID']['input']; + /** Cost price of the variant in channel. */ + costPrice?: InputMaybe; + /** The threshold for preorder variant in channel. */ + preorderThreshold?: InputMaybe; + /** Price of the particular variant in channel. */ + price: Scalars['PositiveDecimal']['input']; + /** + * Previous price of the variant in channel. Useful for providing promotion information required by customer protection laws such as EU Omnibus directive. + * + * Added in Saleor 3.21. + */ + priorPrice?: InputMaybe; +}; -export type UpdateAttributeValueTranslationsMutation = { __typename: 'Mutation', attributeValueTranslate: { __typename: 'AttributeValueTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, attributeValue: { __typename: 'AttributeValue', id: string, name: string | null, richText: any | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, richText: any | null } | null } | null } | null }; +export type ProductVariantChannelListingUpdateInput = { + /** List of channels to create variant channel listings. */ + create?: InputMaybe>; + /** List of channel listings to remove. */ + remove?: InputMaybe>; + /** List of channel listings to update. */ + update?: InputMaybe>; +}; -export type UpdateShippingMethodTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: ShippingPriceTranslationInput; - language: LanguageCodeEnum; -}>; +export type ProductVariantCreateInput = { + /** List of attributes specific to this variant. */ + attributes: Array; + /** External ID of this product variant. */ + externalReference?: InputMaybe; + /** + * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** Variant name. */ + name?: InputMaybe; + /** Determines if variant is in preorder. */ + preorder?: InputMaybe; + /** + * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** Product ID of which type is the variant. */ + product: Scalars['ID']['input']; + /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ + quantityLimitPerCustomer?: InputMaybe; + /** Stock keeping unit. */ + sku?: InputMaybe; + /** Stocks of a product available for sale. */ + stocks?: InputMaybe>; + /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ + trackInventory?: InputMaybe; + /** Weight of the Product Variant. */ + weight?: InputMaybe; +}; +export type ProductVariantStocksUpdateInput = { + /** List of warehouses to create stocks. */ + create?: InputMaybe>; + /** List of stocks to remove. */ + remove?: InputMaybe>; + /** List of stocks to update. */ + update?: InputMaybe>; +}; -export type UpdateShippingMethodTranslationsMutation = { __typename: 'Mutation', shippingPriceTranslate: { __typename: 'ShippingPriceTranslate', errors: Array<{ __typename: 'TranslationError', code: TranslationErrorCode, field: string | null, message: string | null }>, shippingMethod: { __typename: 'ShippingMethodType', id: string, name: string, description: any | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | null } | null }; +export type ProductVariantWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** + * Filter by attributes associated with the variant. + * + * Added in Saleor 3.22. + */ + attributes?: InputMaybe>; + ids?: InputMaybe>; + metadata?: InputMaybe>; + /** Filter by product SKU. */ + sku?: InputMaybe; + /** Filter by when was the most recent update. */ + updatedAt?: InputMaybe; +}; -export type UpdateMenuItemTranslationsMutationVariables = Exact<{ - id: Scalars['ID']; - input: NameTranslationInput; - language: LanguageCodeEnum; -}>; +export type ProductWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** Filter by attributes associated with the product. */ + attributes?: InputMaybe>; + /** Filter by the date of availability for purchase. */ + availableFrom?: InputMaybe; + /** Filter by product category. */ + category?: InputMaybe; + /** Filter by collection. */ + collection?: InputMaybe; + /** Filter on whether product is a gift card or not. */ + giftCard?: InputMaybe; + /** Filter by product with category assigned. */ + hasCategory?: InputMaybe; + /** Filter by product with preordered variants. */ + hasPreorderedVariants?: InputMaybe; + ids?: InputMaybe>; + /** Filter by availability for purchase. */ + isAvailable?: InputMaybe; + /** Filter by public visibility. */ + isPublished?: InputMaybe; + /** Filter by visibility on the channel. */ + isVisibleInListing?: InputMaybe; + metadata?: InputMaybe>; + /** Filter by the lowest variant price after discounts. */ + minimalPrice?: InputMaybe; + /** Filter by product name. */ + name?: InputMaybe; + /** Filter by product variant price. */ + price?: InputMaybe; + /** Filter by product type. */ + productType?: InputMaybe; + /** Filter by the publication date. */ + publishedFrom?: InputMaybe; + /** Filter by product slug. */ + slug?: InputMaybe; + /** Filter by variants having specific stock status. */ + stockAvailability?: InputMaybe; + /** Filter by stock of the product variant. */ + stocks?: InputMaybe; + /** Filter by when was the most recent update. */ + updatedAt?: InputMaybe; +}; +export type PromotionCreateErrorCode = + | 'GIFTS_NUMBER_LIMIT' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_GIFT_TYPE' + | 'INVALID_PRECISION' + | 'MISSING_CHANNELS' + | 'MULTIPLE_CURRENCIES_NOT_ALLOWED' + | 'NOT_FOUND' + | 'REQUIRED' + | 'RULES_NUMBER_LIMIT'; -export type UpdateMenuItemTranslationsMutation = { __typename: 'Mutation', menuItemTranslate: { __typename: 'MenuItemTranslate', errors: Array<{ __typename: 'TranslationError', field: string | null, message: string | null }>, menuItem: { __typename: 'MenuItem', id: string, name: string, translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null } | null } | null }; +export type PromotionCreateInput = { + /** Promotion description. */ + description?: InputMaybe; + /** The end date of the promotion in ISO 8601 format. */ + endDate?: InputMaybe; + /** Promotion name. */ + name: Scalars['String']['input']; + /** List of promotion rules. */ + rules?: InputMaybe>; + /** The start date of the promotion in ISO 8601 format. */ + startDate?: InputMaybe; + /** + * Defines the promotion type. Implicate the required promotion rules predicate type and whether the promotion rules will give the catalogue or order discount. + * + * Added in Saleor 3.19. + */ + type: PromotionTypeEnum; +}; -export type CategoryTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type PromotionDeleteErrorCode = + | 'GRAPHQL_ERROR' + | 'NOT_FOUND'; + +export type PromotionEventsEnum = + | 'PROMOTION_CREATED' + | 'PROMOTION_ENDED' + | 'PROMOTION_STARTED' + | 'PROMOTION_UPDATED' + | 'RULE_CREATED' + | 'RULE_DELETED' + | 'RULE_UPDATED'; + +export type PromotionRuleCreateErrorCode = + | 'GIFTS_NUMBER_LIMIT' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_GIFT_TYPE' + | 'INVALID_PRECISION' + | 'MISSING_CHANNELS' + | 'MULTIPLE_CURRENCIES_NOT_ALLOWED' + | 'NOT_FOUND' + | 'REQUIRED' + | 'RULES_NUMBER_LIMIT'; +export type PromotionRuleCreateInput = { + /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ + cataloguePredicate?: InputMaybe; + /** List of channel ids to which the rule should apply to. */ + channels?: InputMaybe>; + /** Promotion rule description. */ + description?: InputMaybe; + /** + * Product variant IDs available as a gift to choose. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + gifts?: InputMaybe>; + /** Promotion rule name. */ + name?: InputMaybe; + /** + * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + orderPredicate?: InputMaybe; + /** The ID of the promotion that rule belongs to. */ + promotion: Scalars['ID']['input']; + /** + * Defines the reward type of the promotion rule. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + rewardType?: InputMaybe; + /** Defines the discount value. Required when catalogue predicate is provided. */ + rewardValue?: InputMaybe; + /** Defines the promotion rule reward value type. Must be provided together with reward value. */ + rewardValueType?: InputMaybe; +}; -export type CategoryTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type PromotionRuleDeleteErrorCode = + | 'GRAPHQL_ERROR' + | 'NOT_FOUND'; -export type CollectionTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type PromotionRuleInput = { + /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ + cataloguePredicate?: InputMaybe; + /** List of channel ids to which the rule should apply to. */ + channels?: InputMaybe>; + /** Promotion rule description. */ + description?: InputMaybe; + /** + * Product variant IDs available as a gift to choose. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + gifts?: InputMaybe>; + /** Promotion rule name. */ + name?: InputMaybe; + /** + * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + orderPredicate?: InputMaybe; + /** + * Defines the reward type of the promotion rule. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + rewardType?: InputMaybe; + /** Defines the discount value. Required when catalogue predicate is provided. */ + rewardValue?: InputMaybe; + /** Defines the promotion rule reward value type. Must be provided together with reward value. */ + rewardValueType?: InputMaybe; +}; +export type PromotionRuleUpdateErrorCode = + | 'DUPLICATED_INPUT_ITEM' + | 'GIFTS_NUMBER_LIMIT' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_GIFT_TYPE' + | 'INVALID_PRECISION' + | 'MISSING_CHANNELS' + | 'MULTIPLE_CURRENCIES_NOT_ALLOWED' + | 'NOT_FOUND' + | 'REQUIRED'; -export type CollectionTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type PromotionRuleUpdateInput = { + /** List of channel ids to add. */ + addChannels?: InputMaybe>; + /** + * List of variant IDs available as a gift to add. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + addGifts?: InputMaybe>; + /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ + cataloguePredicate?: InputMaybe; + /** Promotion rule description. */ + description?: InputMaybe; + /** Promotion rule name. */ + name?: InputMaybe; + /** + * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + orderPredicate?: InputMaybe; + /** List of channel ids to remove. */ + removeChannels?: InputMaybe>; + /** + * List of variant IDs available as a gift to remove. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + removeGifts?: InputMaybe>; + /** + * Defines the reward type of the promotion rule. + * + * Added in Saleor 3.19. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + rewardType?: InputMaybe; + /** Defines the discount value. Required when catalogue predicate is provided. */ + rewardValue?: InputMaybe; + /** Defines the promotion rule reward value type. Must be provided together with reward value. */ + rewardValueType?: InputMaybe; +}; -export type ProductTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type PromotionSortField = + /** Sort promotions by creation date. */ + | 'CREATED_AT' + /** Sort promotions by end date. */ + | 'END_DATE' + /** Sort promotions by name. */ + | 'NAME' + /** Sort promotions by start date. */ + | 'START_DATE'; +export type PromotionSortingInput = { + /** Specifies the direction in which to sort promotions. */ + direction: OrderDirection; + /** Sort promotions by the selected field. */ + field: PromotionSortField; +}; -export type ProductTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type PromotionTypeEnum = + | 'CATALOGUE' + | 'ORDER'; -export type PageTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type PromotionTypeEnumFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; +export type PromotionUpdateErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED'; -export type PageTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type PromotionUpdateInput = { + /** Promotion description. */ + description?: InputMaybe; + /** The end date of the promotion in ISO 8601 format. */ + endDate?: InputMaybe; + /** Promotion name. */ + name?: InputMaybe; + /** The start date of the promotion in ISO 8601 format. */ + startDate?: InputMaybe; +}; -export type VoucherTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type PromotionWhereInput = { + /** List of conditions that must be met. */ + AND?: InputMaybe>; + /** A list of conditions of which at least one must be met. */ + OR?: InputMaybe>; + /** Filter promotions by end date. */ + endDate?: InputMaybe; + ids?: InputMaybe>; + isOldSale?: InputMaybe; + metadata?: InputMaybe>; + /** Filter by promotion name. */ + name?: InputMaybe; + /** Filter promotions by start date. */ + startDate?: InputMaybe; + type?: InputMaybe; +}; +export type PublishableChannelListingInput = { + /** ID of a channel. */ + channelId: Scalars['ID']['input']; + /** Determines if object is visible to customers. */ + isPublished?: InputMaybe; + /** + * Publication date. ISO 8601 standard. + * @deprecated Use `publishedAt` field instead. + */ + publicationDate?: InputMaybe; + /** Publication date time. ISO 8601 standard. */ + publishedAt?: InputMaybe; +}; -export type VoucherTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type RefundSettingsErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'REQUIRED'; -export type SaleTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type RefundSettingsUpdateInput = { + /** + * The ID of a model type, that will be used to reference refund reasons. All models with of this type will be accepted as refund reasons. + * + * Added in Saleor 3.22. + */ + refundReasonReferenceType: Scalars['ID']['input']; +}; +export type ReorderInput = { + /** The ID of the item to move. */ + id: Scalars['ID']['input']; + /** 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?: InputMaybe; +}; -export type SaleTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type RewardTypeEnum = + | 'GIFT' + | 'SUBTOTAL_DISCOUNT'; -export type AttributeTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type RewardValueTypeEnum = + | 'FIXED' + | 'PERCENTAGE'; +export type SaleFilterInput = { + metadata?: InputMaybe>; + saleType?: InputMaybe; + search?: InputMaybe; + started?: InputMaybe; + status?: InputMaybe>; + updatedAt?: InputMaybe; +}; -export type AttributeTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent', id: string, name: string, translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null } | null } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type SaleSortField = + /** Sort sales by creation date. */ + | 'CREATED_AT' + /** Sort sales by end date. */ + | 'END_DATE' + /** Sort sales by last modification date. */ + | 'LAST_MODIFIED_AT' + /** Sort sales by name. */ + | 'NAME' + /** Sort sales by start date. */ + | 'START_DATE' + /** Sort sales by type. */ + | 'TYPE' + /** + * Sort sales by value. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'VALUE'; -export type ShippingMethodTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type SaleSortingInput = { + /** + * Specifies the channel in which to sort the data. + * @deprecated Use root-level channel argument instead. + */ + channel?: InputMaybe; + /** Specifies the direction in which to sort sales. */ + direction: OrderDirection; + /** Sort sales by the selected field. */ + field: SaleSortField; +}; +export type SaleType = + | 'FIXED' + | 'PERCENTAGE'; -export type ShippingMethodTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type SeoInput = { + /** SEO description. */ + description?: InputMaybe; + /** SEO title. */ + title?: InputMaybe; +}; -export type MenuItemTranslationsQueryVariables = Exact<{ - language: LanguageCodeEnum; - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; -}>; +export type ShippingErrorCode = + | 'ALREADY_EXISTS' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MAX_LESS_THAN_MIN' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; +export type ShippingMethodChannelListingAddInput = { + /** ID of a channel. */ + channelId: Scalars['ID']['input']; + /** Maximum order price to use this shipping method. */ + maximumOrderPrice?: InputMaybe; + /** Minimum order price to use this shipping method. */ + minimumOrderPrice?: InputMaybe; + /** Shipping price of the shipping method in this channel. */ + price?: InputMaybe; +}; -export type MenuItemTranslationsQuery = { __typename: 'Query', translations: { __typename: 'TranslatableItemConnection', edges: Array<{ __typename: 'TranslatableItemEdge', node: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type ShippingMethodChannelListingInput = { + /** List of channels to which the shipping method should be assigned. */ + addChannels?: InputMaybe>; + /** List of channels from which the shipping method should be unassigned. */ + removeChannels?: InputMaybe>; +}; -export type ProductTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +export type ShippingMethodTypeEnum = + | 'PRICE' + | 'WEIGHT'; +export type ShippingPostalCodeRulesCreateInputRange = { + /** End range of the postal code. */ + end?: InputMaybe; + /** Start range of the postal code. */ + start: Scalars['String']['input']; +}; -export type ProductTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent', product: { __typename: 'Product', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'ProductTranslation', id: string, seoTitle: string | null, seoDescription: string | null, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; +export type ShippingPriceExcludeProductsInput = { + /** List of products which will be excluded. */ + products: Array; +}; -export type ProductVariantListQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type ShippingPriceInput = { + /** Postal code rules to add. */ + addPostalCodeRules?: InputMaybe>; + /** Postal code rules to delete. */ + deletePostalCodeRules?: InputMaybe>; + /** Shipping method description. */ + description?: InputMaybe; + /** Inclusion type for currently assigned postal code rules. */ + inclusionType?: InputMaybe; + /** Maximum number of days for delivery. */ + maximumDeliveryDays?: InputMaybe; + /** Maximum order weight to use this shipping method. */ + maximumOrderWeight?: InputMaybe; + /** Minimal number of days for delivery. */ + minimumDeliveryDays?: InputMaybe; + /** Minimum order weight to use this shipping method. */ + minimumOrderWeight?: InputMaybe; + /** Name of the shipping method. */ + name?: InputMaybe; + /** Shipping zone this method belongs to. */ + shippingZone?: InputMaybe; + /** ID of a tax class to assign to this shipping method. If not provided, the default tax class will be used. */ + taxClass?: InputMaybe; + /** Shipping type: price or weight based. */ + type?: InputMaybe; +}; +export type ShippingPriceTranslationInput = { + /** + * Translated shipping method description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + name?: InputMaybe; +}; -export type ProductVariantListQuery = { __typename: 'Query', product: { __typename: 'Product', id: string, variants: Array<{ __typename: 'ProductVariant', id: string, name: string, sku: string | null }> | null } | null }; +export type ShippingZoneCreateInput = { + /** List of channels to assign to the shipping zone. */ + addChannels?: InputMaybe>; + /** List of warehouses to assign to a shipping zone */ + addWarehouses?: InputMaybe>; + /** List of countries in this shipping zone. */ + countries?: InputMaybe>; + /** Default shipping zone will be used for countries not covered by other zones. */ + default?: InputMaybe; + /** Description of the shipping zone. */ + description?: InputMaybe; + /** Shipping zone's name. Visible only to the staff. */ + name?: InputMaybe; +}; -export type ProductVariantTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +export type ShippingZoneFilterInput = { + channels?: InputMaybe>; + search?: InputMaybe; +}; +export type ShippingZoneUpdateInput = { + /** List of channels to assign to the shipping zone. */ + addChannels?: InputMaybe>; + /** List of warehouses to assign to a shipping zone */ + addWarehouses?: InputMaybe>; + /** List of countries in this shipping zone. */ + countries?: InputMaybe>; + /** Default shipping zone will be used for countries not covered by other zones. */ + default?: InputMaybe; + /** Description of the shipping zone. */ + description?: InputMaybe; + /** Shipping zone's name. Visible only to the staff. */ + name?: InputMaybe; + /** List of channels to unassign from the shipping zone. */ + removeChannels?: InputMaybe>; + /** List of warehouses to unassign from a shipping zone */ + removeWarehouses?: InputMaybe>; +}; -export type ProductVariantTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent', name: string, productVariant: { __typename: 'ProductVariant', id: string } | null, translation: { __typename: 'ProductVariantTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; +export type ShopErrorCode = + | 'ALREADY_EXISTS' + | 'CANNOT_FETCH_TAX_RATES' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; -export type CategoryTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +export type ShopSettingsInput = { + /** Enable possibility to login without account confirmation. */ + allowLoginWithoutConfirmation?: InputMaybe; + /** Enable automatic fulfillment for all digital products. */ + automaticFulfillmentDigitalProducts?: InputMaybe; + /** + * Charge taxes on shipping. + * @deprecated To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. + */ + chargeTaxesOnShipping?: InputMaybe; + /** URL of a view where customers can set their password. */ + customerSetPasswordUrl?: InputMaybe; + /** Default number of max downloads per digital content URL. */ + defaultDigitalMaxDownloads?: InputMaybe; + /** Default number of days which digital content URL will be valid. */ + defaultDigitalUrlValidDays?: InputMaybe; + /** Default email sender's address. */ + defaultMailSenderAddress?: InputMaybe; + /** Default email sender's name. */ + defaultMailSenderName?: InputMaybe; + /** Default weight unit. */ + defaultWeightUnit?: InputMaybe; + /** SEO description. */ + description?: InputMaybe; + /** + * Display prices with tax in store. + * @deprecated Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. + */ + displayGrossPrices?: InputMaybe; + /** Enable automatic account confirmation by email. */ + enableAccountConfirmationByEmail?: InputMaybe; + /** Enable ability to approve fulfillments which are unpaid. */ + fulfillmentAllowUnpaid?: InputMaybe; + /** Enable automatic approval of all new fulfillments. */ + fulfillmentAutoApprove?: InputMaybe; + /** Header text. */ + headerText?: InputMaybe; + /** + * Include taxes in prices. + * @deprecated Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. + */ + includeTaxesInPrices?: InputMaybe; + /** Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. */ + limitQuantityPerCheckout?: InputMaybe; + /** + * Shop public metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** + * When enabled, address fields that are not valid for a given country (according to Google's i18n address data) will be preserved instead of being removed during validation. Validation errors are still returned. + * + * Added in Saleor 3.22. + */ + preserveAllAddressFields?: InputMaybe; + /** + * Shop private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable. */ + reserveStockDurationAnonymousUser?: InputMaybe; + /** Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable. */ + reserveStockDurationAuthenticatedUser?: InputMaybe; + /** This field is used as a default value for `ProductVariant.trackInventory`. */ + trackInventoryByDefault?: InputMaybe; + /** + * Use legacy update webhook emission. When enabled, update webhooks (e.g. `customerUpdated`,`productVariantUpdated`) are sent even when only metadata changes. When disabled, update webhooks are not sent for metadata-only changes; only metadata-specific webhooks (e.g., `customerMetadataUpdated`, `productVariantMetadataUpdated`) are sent. + * + * Added in Saleor 3.22. + * @deprecated Field no longer supported + */ + useLegacyUpdateWebhookEmission?: InputMaybe; +}; +/** Fields required to create a staff user. */ +export type StaffCreateInput = { + /** List of permission group IDs to which user should be assigned. */ + addGroups?: InputMaybe>; + /** The unique email address of the user. */ + email?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User account is active. */ + isActive?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** + * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** A note about the user. */ + note?: InputMaybe; + /** + * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ + redirectUrl?: InputMaybe; +}; -export type CategoryTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent', translation: { __typename: 'CategoryTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null, category: { __typename: 'Category', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; +/** Represents status of a staff account. */ +export type StaffMemberStatus = + /** User account has been activated. */ + | 'ACTIVE' + /** User account has not been activated yet. */ + | 'DEACTIVATED'; -export type CollectionTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +/** Fields required to update a staff user. */ +export type StaffUpdateInput = { + /** List of permission group IDs to which user should be assigned. */ + addGroups?: InputMaybe>; + /** The unique email address of the user. */ + email?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User account is active. */ + isActive?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** + * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** A note about the user. */ + note?: InputMaybe; + /** + * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** List of permission group IDs from which user should be unassigned. */ + removeGroups?: InputMaybe>; +}; +export type StaffUserInput = { + ids?: InputMaybe>; + search?: InputMaybe; + status?: InputMaybe; +}; -export type CollectionTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent', collection: { __typename: 'Collection', id: string, name: string, description: any | null, seoDescription: string | null, seoTitle: string | null } | null, translation: { __typename: 'CollectionTranslation', id: string, description: any | null, name: string | null, seoDescription: string | null, seoTitle: string | null, language: { __typename: 'LanguageDisplay', language: string } } | null } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; +export type StockAvailability = + | 'IN_STOCK' + | 'OUT_OF_STOCK'; -export type PageTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +export type StockErrorCode = + | 'ALREADY_EXISTS' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; +export type StockInput = { + /** Quantity of items available for sell. */ + quantity: Scalars['Int']['input']; + /** Warehouse in which stock is located. */ + warehouse: Scalars['ID']['input']; +}; -export type PageTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent', page: { __typename: 'Page', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string } | null, translation: { __typename: 'PageTranslation', id: string, content: any | null, seoDescription: string | null, seoTitle: string | null, title: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null, attributeValues: Array<{ __typename: 'AttributeValueTranslatableContent', id: string, name: string, plainText: string | null, richText: any | null, attributeValue: { __typename: 'AttributeValue', id: string } | null, attribute: { __typename: 'AttributeTranslatableContent', id: string, name: string } | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null }> } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; +export type StockSettingsInput = { + /** Allocation strategy options. Strategy defines the preference of warehouses for allocations and reservations. */ + allocationStrategy: AllocationStrategyEnum; +}; -export type SaleTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +export type StockUpdateInput = { + /** Quantity of items available for sell. */ + quantity: Scalars['Int']['input']; + /** Stock. */ + stock: Scalars['ID']['input']; +}; +/** Define the filtering options for string fields. */ +export type StringFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type SaleTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent', sale: { __typename: 'Sale', id: string, name: string } | null, translation: { __typename: 'SaleTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; +export type TaxCalculationStrategy = + | 'FLAT_RATES' + | 'TAX_APP'; -export type VoucherTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +export type TaxClassCreateErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; +export type TaxClassCreateInput = { + /** List of country-specific tax rates to create for this tax class. */ + createCountryRates?: InputMaybe>; + /** Name of the tax class. */ + name: Scalars['String']['input']; +}; -export type VoucherTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent', name: string | null, voucher: { __typename: 'Voucher', id: string, name: string | null } | null, translation: { __typename: 'VoucherTranslation', id: string, name: string | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | null }; +export type TaxClassDeleteErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; -export type AttributeTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; - firstValues?: InputMaybe; - afterValues?: InputMaybe; - lastValues?: InputMaybe; - beforeValues?: InputMaybe; -}>; +export type TaxClassFilterInput = { + countries?: InputMaybe>; + ids?: InputMaybe>; + metadata?: InputMaybe>; +}; +export type TaxClassRateInput = { + /** Tax rate value. */ + rate?: InputMaybe; + /** ID of a tax class for which to update the tax rate */ + taxClassId?: InputMaybe; +}; -export type AttributeTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent', translation: { __typename: 'AttributeTranslation', id: string, name: string } | null, attribute: { __typename: 'Attribute', id: string, name: string | null, inputType: AttributeInputTypeEnum | null, withChoices: boolean, choices: { __typename: 'AttributeValueCountableConnection', pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null }, edges: Array<{ __typename: 'AttributeValueCountableEdge', cursor: string, node: { __typename: 'AttributeValue', id: string, name: string | null, plainText: string | null, richText: any | null, inputType: AttributeInputTypeEnum | null, translation: { __typename: 'AttributeValueTranslation', id: string, name: string, plainText: string | null, richText: any | null } | null } }> } | null } | null } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; +export type TaxClassSortField = + /** Sort tax classes by name. */ + | 'NAME'; -export type ShippingMethodTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +export type TaxClassSortingInput = { + /** Specifies the direction in which to sort tax classes. */ + direction: OrderDirection; + /** Sort tax classes by the selected field. */ + field: TaxClassSortField; +}; +export type TaxClassUpdateErrorCode = + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; -export type ShippingMethodTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent' } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent', id: string, name: string, description: any | null, shippingMethod: { __typename: 'ShippingMethodType', id: string } | null, translation: { __typename: 'ShippingMethodTranslation', id: string, name: string | null, description: any | null, language: { __typename: 'LanguageDisplay', code: LanguageCodeEnum, language: string } } | null } | { __typename: 'VoucherTranslatableContent' } | null }; +export type TaxClassUpdateInput = { + /** Name of the tax class. */ + name?: InputMaybe; + /** List of country codes for which to remove the tax class rates. Note: It removes all rates for given country code. */ + removeCountryRates?: InputMaybe>; + /** List of country-specific tax rates to create or update for this tax class. */ + updateCountryRates?: InputMaybe>; +}; -export type MenuItemTranslationDetailsQueryVariables = Exact<{ - id: Scalars['ID']; - language: LanguageCodeEnum; -}>; +export type TaxConfigurationFilterInput = { + ids?: InputMaybe>; + metadata?: InputMaybe>; +}; +export type TaxConfigurationPerCountryInput = { + /** Determines whether taxes are charged in this country. */ + chargeTaxes: Scalars['Boolean']['input']; + /** Country in which this configuration applies. */ + countryCode: CountryCode; + /** Determines whether displayed prices should include taxes for this country. */ + displayGrossPrices: Scalars['Boolean']['input']; + /** + * The tax app `App.identifier` that will be used to calculate the taxes for the given channel and country. If not provided, use the value from the channel's tax configuration. + * + * Added in Saleor 3.19. + */ + taxAppId?: InputMaybe; + /** A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. */ + taxCalculationStrategy?: InputMaybe; + /** + * Determines whether to use weighted tax for shipping. When set to true, the tax rate for shipping will be calculated based on the weighted average of tax rates from the order or checkout lines. Default value is `False`.Can be used only with `taxCalculationStrategy` set to `FLAT_RATES`. + * + * Added in Saleor 3.21. + */ + useWeightedTaxForShipping?: InputMaybe; +}; -export type MenuItemTranslationDetailsQuery = { __typename: 'Query', translation: { __typename: 'AttributeTranslatableContent' } | { __typename: 'AttributeValueTranslatableContent' } | { __typename: 'CategoryTranslatableContent' } | { __typename: 'CollectionTranslatableContent' } | { __typename: 'MenuItemTranslatableContent', translation: { __typename: 'MenuItemTranslation', id: string, name: string, language: { __typename: 'LanguageDisplay', language: string } } | null, menuItem: { __typename: 'MenuItem', id: string, name: string } | null } | { __typename: 'PageTranslatableContent' } | { __typename: 'ProductTranslatableContent' } | { __typename: 'ProductVariantTranslatableContent' } | { __typename: 'PromotionRuleTranslatableContent' } | { __typename: 'PromotionTranslatableContent' } | { __typename: 'SaleTranslatableContent' } | { __typename: 'ShippingMethodTranslatableContent' } | { __typename: 'VoucherTranslatableContent' } | null }; +export type TaxConfigurationUpdateErrorCode = + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; -export type UpdateMetadataMutationVariables = Exact<{ - id: Scalars['ID']; - input: Array | MetadataInput; - keysToDelete: Array | Scalars['String']; -}>; +export type TaxConfigurationUpdateInput = { + /** Determines whether taxes are charged in the given channel. */ + chargeTaxes?: InputMaybe; + /** Determines whether displayed prices should include taxes. */ + displayGrossPrices?: InputMaybe; + /** Determines whether prices are entered with the tax included. */ + pricesEnteredWithTax?: InputMaybe; + /** List of country codes for which to remove the tax configuration. */ + removeCountriesConfiguration?: InputMaybe>; + /** + * The tax app `App.identifier` that will be used to calculate the taxes for the given channel. Empty value for `TAX_APP` set as `taxCalculationStrategy` means that Saleor will iterate over all installed tax apps. If multiple tax apps exist with provided tax app id use the `App` with newest `created` date. It's possible to set plugin by using prefix `plugin:` with `PLUGIN_ID` e.g. with Avalara `plugin:mirumee.taxes.avalara`.Will become mandatory in 4.0 for `TAX_APP` `taxCalculationStrategy`. + * + * Added in Saleor 3.19. + */ + taxAppId?: InputMaybe; + /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ + taxCalculationStrategy?: InputMaybe; + /** List of tax country configurations to create or update (identified by a country code). */ + updateCountriesConfiguration?: InputMaybe>; + /** + * Determines whether to use weighted tax for shipping. When set to true, the tax rate for shipping will be calculated based on the weighted average of tax rates from the order or checkout lines. Default value is `False`.Can be used only with `taxCalculationStrategy` set to `FLAT_RATES`. + * + * Added in Saleor 3.21. + */ + useWeightedTaxForShipping?: InputMaybe; +}; +export type TaxCountryConfigurationDeleteErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND'; -export type UpdateMetadataMutation = { __typename: 'Mutation', updateMetadata: { __typename: 'UpdateMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }>, item: { __typename: 'Address', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'App', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Attribute', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Category', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Channel', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Checkout', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'CheckoutLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Collection', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'DigitalContent', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Fulfillment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'GiftCard', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Invoice', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Menu', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'MenuItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Order', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'OrderLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Page', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'PageType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Payment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Product', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductMedia', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductVariant', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Promotion', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Sale', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethod', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethodType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingZone', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxClass', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxConfiguration', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TransactionItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'User', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Voucher', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Warehouse', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null, deleteMetadata: { __typename: 'DeleteMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }>, item: { __typename: 'Address', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'App', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Attribute', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Category', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Channel', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Checkout', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'CheckoutLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Collection', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'DigitalContent', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Fulfillment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'GiftCard', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Invoice', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Menu', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'MenuItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Order', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'OrderLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Page', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'PageType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Payment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Product', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductMedia', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductVariant', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Promotion', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Sale', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethod', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethodType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingZone', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxClass', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxConfiguration', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TransactionItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'User', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Voucher', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Warehouse', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +export type TaxCountryConfigurationUpdateErrorCode = + | 'CANNOT_CREATE_NEGATIVE_RATE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED'; -export type UpdatePrivateMetadataMutationVariables = Exact<{ - id: Scalars['ID']; - input: Array | MetadataInput; - keysToDelete: Array | Scalars['String']; -}>; +export type TimePeriodInputType = { + /** The length of the period. */ + amount: Scalars['Int']['input']; + /** The type of the period. */ + type: TimePeriodTypeEnum; +}; +export type TimePeriodTypeEnum = + | 'DAY' + | 'MONTH' + | 'WEEK' + | 'YEAR'; -export type UpdatePrivateMetadataMutation = { __typename: 'Mutation', updatePrivateMetadata: { __typename: 'UpdatePrivateMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }>, item: { __typename: 'Address', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'App', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Attribute', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Category', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Channel', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Checkout', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'CheckoutLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Collection', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'DigitalContent', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Fulfillment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'GiftCard', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Invoice', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Menu', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'MenuItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Order', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'OrderLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Page', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'PageType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Payment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Product', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductMedia', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductVariant', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Promotion', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Sale', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethod', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethodType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingZone', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxClass', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxConfiguration', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TransactionItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'User', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Voucher', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Warehouse', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null, deletePrivateMetadata: { __typename: 'DeletePrivateMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }>, item: { __typename: 'Address', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'App', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Attribute', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Category', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Channel', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Checkout', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'CheckoutLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Collection', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'DigitalContent', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Fulfillment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'GiftCard', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Invoice', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Menu', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'MenuItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Order', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'OrderLine', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Page', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'PageType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Payment', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Product', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductMedia', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ProductVariant', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Promotion', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Sale', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethod', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingMethodType', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'ShippingZone', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Shop', metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxClass', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TaxConfiguration', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'TransactionItem', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'User', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Voucher', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | { __typename: 'Warehouse', id: string, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }> } | null } | null }; +/** + * Represents possible tokenized payment flows that can be used to process payment. + * + * The following flows are possible: + * INTERACTIVE - Payment method can be used for 1 click checkout - it's prefilled in + * checkout form (might require additional authentication from user) + */ +export type TokenizedPaymentFlowEnum = + | 'INTERACTIVE'; -export type WarehouseDeleteMutationVariables = Exact<{ - id: Scalars['ID']; -}>; +/** + * Represents possible actions on payment transaction. + * + * The following actions are possible: + * CHARGE - Represents the charge action. + * REFUND - Represents a refund action. + * CANCEL - Represents a cancel action. Added in Saleor 3.12. + */ +export type TransactionActionEnum = + | 'CANCEL' + | 'CHARGE' + | 'REFUND'; + +export type TransactionCreateErrorCode = + | 'GRAPHQL_ERROR' + | 'INCORRECT_CURRENCY' + | 'INVALID' + | 'METADATA_KEY_REQUIRED' + | 'NOT_FOUND' + | 'UNIQUE'; +/** + * Represents possible event types. + * + * Added in Saleor 3.12. + * + * The following types are possible: + * AUTHORIZATION_SUCCESS - represents success authorization. + * AUTHORIZATION_FAILURE - represents failure authorization. + * AUTHORIZATION_ADJUSTMENT - represents authorization adjustment. + * AUTHORIZATION_REQUEST - represents authorization request. + * AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs + * additional actions from the customer. + * CHARGE_ACTION_REQUIRED - represents charge that needs + * additional actions from the customer. + * CHARGE_SUCCESS - represents success charge. + * CHARGE_FAILURE - represents failure charge. + * CHARGE_BACK - represents chargeback. + * CHARGE_REQUEST - represents charge request. + * REFUND_SUCCESS - represents success refund. + * REFUND_FAILURE - represents failure refund. + * REFUND_REVERSE - represents reverse refund. + * REFUND_REQUEST - represents refund request. + * CANCEL_SUCCESS - represents success cancel. + * CANCEL_FAILURE - represents failure cancel. + * CANCEL_REQUEST - represents cancel request. + * INFO - represents info event. + */ +export type TransactionEventTypeEnum = + | 'AUTHORIZATION_ACTION_REQUIRED' + | 'AUTHORIZATION_ADJUSTMENT' + | 'AUTHORIZATION_FAILURE' + | 'AUTHORIZATION_REQUEST' + | 'AUTHORIZATION_SUCCESS' + | 'CANCEL_FAILURE' + | 'CANCEL_REQUEST' + | 'CANCEL_SUCCESS' + | 'CHARGE_ACTION_REQUIRED' + | 'CHARGE_BACK' + | 'CHARGE_FAILURE' + | 'CHARGE_REQUEST' + | 'CHARGE_SUCCESS' + | 'INFO' + | 'REFUND_FAILURE' + | 'REFUND_REQUEST' + | 'REFUND_REVERSE' + | 'REFUND_SUCCESS'; -export type WarehouseDeleteMutation = { __typename: 'Mutation', deleteWarehouse: { __typename: 'WarehouseDelete', errors: Array<{ __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }> } | null }; +/** Filter input for transactions. */ +export type TransactionFilterInput = { + /** Filter by metadata fields of transactions. */ + metadata?: InputMaybe; + /** Filter by payment method details used to pay for the order. */ + paymentMethodDetails?: InputMaybe; +}; -export type WarehouseCreateMutationVariables = Exact<{ - input: WarehouseCreateInput; -}>; +/** + * Determine the transaction flow strategy. + * + * AUTHORIZATION - the processed transaction should be only authorized + * CHARGE - the processed transaction should be charged. + */ +export type TransactionFlowStrategyEnum = + | 'AUTHORIZATION' + | 'CHARGE'; + +export type TransactionKind = + | 'ACTION_TO_CONFIRM' + | 'AUTH' + | 'CANCEL' + | 'CAPTURE' + | 'CONFIRM' + | 'EXTERNAL' + | 'PENDING' + | 'REFUND' + | 'REFUND_ONGOING' + | 'VOID'; + +export type TransactionRequestActionErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK' + | 'NOT_FOUND' + | 'REQUIRED'; + +export type TransactionRequestRefundForGrantedRefundErrorCode = + | 'AMOUNT_GREATER_THAN_AVAILABLE' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK' + | 'NOT_FOUND' + | 'REFUND_ALREADY_PROCESSED' + | 'REFUND_IS_PENDING'; + +export type TranslationErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; +export type TranslationInput = { + /** + * Translated description. + * + * Rich text format. For reference see https://editorjs.io/ + */ + description?: InputMaybe; + name?: InputMaybe; + seoDescription?: InputMaybe; + seoTitle?: InputMaybe; + slug?: InputMaybe; +}; -export type WarehouseCreateMutation = { __typename: 'Mutation', createWarehouse: { __typename: 'WarehouseCreate', errors: Array<{ __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }>, warehouse: { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } } | null } | null }; +/** Define the filtering options for string fields. */ +export type UuidFilterInput = { + /** The value equal to. */ + eq?: InputMaybe; + /** The value included in. */ + oneOf?: InputMaybe>; +}; -export type WarehouseUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: WarehouseUpdateInput; -}>; +export type UploadErrorCode = + | 'GRAPHQL_ERROR'; + +export type UserCreateInput = { + /** Slug of a channel which will be used for notify user. Optional when only one channel exists. */ + channel?: InputMaybe; + /** Billing address of the customer. */ + defaultBillingAddress?: InputMaybe; + /** Shipping address of the customer. */ + defaultShippingAddress?: InputMaybe; + /** The unique email address of the user. */ + email?: InputMaybe; + /** External ID of the customer. */ + externalReference?: InputMaybe; + /** Given name. */ + firstName?: InputMaybe; + /** User account is active. */ + isActive?: InputMaybe; + /** + * User account is confirmed. + * @deprecated The user will be always set as unconfirmed. The confirmation will take place when the user sets the password. + */ + isConfirmed?: InputMaybe; + /** User language code. */ + languageCode?: InputMaybe; + /** Family name. */ + lastName?: InputMaybe; + /** + * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + metadata?: InputMaybe>; + /** A note about the user. */ + note?: InputMaybe; + /** + * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. + * + * Warning: never store sensitive information, including financial data such as credit card details. + */ + privateMetadata?: InputMaybe>; + /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ + redirectUrl?: InputMaybe; +}; +export type UserSortField = + /** Sort users by created at. */ + | 'CREATED_AT' + /** Sort users by email. */ + | 'EMAIL' + /** Sort users by first name. */ + | 'FIRST_NAME' + /** Sort users by last modified at. */ + | 'LAST_MODIFIED_AT' + /** Sort users by last name. */ + | 'LAST_NAME' + /** Sort users by order count. */ + | 'ORDER_COUNT'; -export type WarehouseUpdateMutation = { __typename: 'Mutation', updateWarehouse: { __typename: 'WarehouseUpdate', errors: Array<{ __typename: 'WarehouseError', code: WarehouseErrorCode, field: string | null, message: string | null }>, warehouse: { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } } | null } | null }; +export type UserSortingInput = { + /** Specifies the direction in which to sort users. */ + direction: OrderDirection; + /** Sort users by the selected field. */ + field: UserSortField; +}; -export type WarehouseListQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - filter?: InputMaybe; - sort?: InputMaybe; -}>; +export type VoucherChannelListingAddInput = { + /** ID of a channel. */ + channelId: Scalars['ID']['input']; + /** Value of the voucher. */ + discountValue?: InputMaybe; + /** Min purchase amount required to apply the voucher. */ + minAmountSpent?: InputMaybe; +}; +export type VoucherChannelListingInput = { + /** List of channels to which the voucher should be assigned. */ + addChannels?: InputMaybe>; + /** List of channels from which the voucher should be unassigned. */ + removeChannels?: InputMaybe>; +}; -export type WarehouseListQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', edges: Array<{ __typename: 'WarehouseCountableEdge', node: { __typename: 'Warehouse', id: string, name: string, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } } }>, pageInfo: { __typename: 'PageInfo', endCursor: string | null, hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null } } | null }; +export type VoucherDiscountType = + | 'FIXED' + | 'PERCENTAGE' + | 'SHIPPING'; -export type WarehouseDetailsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type VoucherFilterInput = { + discountType?: InputMaybe>; + ids?: InputMaybe>; + metadata?: InputMaybe>; + search?: InputMaybe; + started?: InputMaybe; + status?: InputMaybe>; + timesUsed?: InputMaybe; +}; +export type VoucherInput = { + /** + * List of codes to add. + * + * Added in Saleor 3.18. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + addCodes?: InputMaybe>; + /** Voucher should be applied once per customer. */ + applyOncePerCustomer?: InputMaybe; + /** Voucher should be applied to the cheapest item or entire order. */ + applyOncePerOrder?: InputMaybe; + /** Categories discounted by the voucher. */ + categories?: InputMaybe>; + /** + * Code to use the voucher. + * @deprecated Use `addCodes` instead. + */ + code?: InputMaybe; + /** Collections discounted by the voucher. */ + collections?: InputMaybe>; + /** Country codes that can be used with the shipping voucher. */ + countries?: InputMaybe>; + /** Choices: fixed or percentage. */ + discountValueType?: InputMaybe; + /** End date of the voucher in ISO 8601 format. */ + endDate?: InputMaybe; + /** Minimal quantity of checkout items required to apply the voucher. */ + minCheckoutItemsQuantity?: InputMaybe; + /** Voucher name. */ + name?: InputMaybe; + /** Voucher can be used only by staff user. */ + onlyForStaff?: InputMaybe; + /** Products discounted by the voucher. */ + products?: InputMaybe>; + /** + * When set to 'True', each voucher code can be used only once; otherwise, codes can be used multiple times depending on `usageLimit`. + * + * The option can only be changed if none of the voucher codes have been used. + * + * Added in Saleor 3.18. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. + */ + singleUse?: InputMaybe; + /** Start date of the voucher in ISO 8601 format. */ + startDate?: InputMaybe; + /** Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. */ + type?: InputMaybe; + /** Limit number of times this voucher can be used in total. */ + usageLimit?: InputMaybe; + /** Variants discounted by the voucher. */ + variants?: InputMaybe>; +}; -export type WarehouseDetailsQuery = { __typename: 'Query', warehouse: { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, metadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, privateMetadata: Array<{ __typename: 'MetadataItem', key: string, value: string }>, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } } | null }; +export type VoucherSortField = + /** Sort vouchers by code. */ + | 'CODE' + /** Sort vouchers by end date. */ + | 'END_DATE' + /** + * Sort vouchers by minimum spent amount. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'MINIMUM_SPENT_AMOUNT' + /** + * Sort vouchers by name. + * + * Added in Saleor 3.18. + */ + | 'NAME' + /** Sort vouchers by start date. */ + | 'START_DATE' + /** Sort vouchers by type. */ + | 'TYPE' + /** Sort vouchers by usage limit. */ + | 'USAGE_LIMIT' + /** + * Sort vouchers by value. + * + * This option requires a channel filter to work as the values can vary between channels. + */ + | 'VALUE'; -export type WarehousesCountQueryVariables = Exact<{ [key: string]: never; }>; +export type VoucherSortingInput = { + /** + * Specifies the channel in which to sort the data. + * @deprecated Use root-level channel argument instead. + */ + channel?: InputMaybe; + /** Specifies the direction in which to sort vouchers. */ + direction: OrderDirection; + /** Sort vouchers by the selected field. */ + field: VoucherSortField; +}; +export type VoucherTypeEnum = + | 'ENTIRE_ORDER' + | 'SHIPPING' + | 'SPECIFIC_PRODUCT'; -export type WarehousesCountQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', totalCount: number | null } | null }; +export type WarehouseClickAndCollectOptionEnum = + | 'ALL' + | 'DISABLED' + | 'LOCAL'; -export type SaveOnBoardingStateMutationVariables = Exact<{ - id: Scalars['ID']; - input: Array | MetadataInput; -}>; +export type WarehouseCreateInput = { + /** Address of the warehouse. */ + address: AddressInput; + /** The email address of the warehouse. */ + email?: InputMaybe; + /** External ID of the warehouse. */ + externalReference?: InputMaybe; + /** Warehouse name. */ + name: Scalars['String']['input']; + /** + * Shipping zones supported by the warehouse. + * @deprecated Providing the zone ids will raise a ValidationError. + */ + shippingZones?: InputMaybe>; + /** Warehouse slug. */ + slug?: InputMaybe; +}; +export type WarehouseErrorCode = + | 'ALREADY_EXISTS' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; -export type SaveOnBoardingStateMutation = { __typename: 'Mutation', updateMetadata: { __typename: 'UpdateMetadata', errors: Array<{ __typename: 'MetadataError', code: MetadataErrorCode, field: string | null, message: string | null }> } | null }; +export type WarehouseFilterInput = { + channels?: InputMaybe>; + clickAndCollectOption?: InputMaybe; + ids?: InputMaybe>; + isPrivate?: InputMaybe; + metadata?: InputMaybe>; + search?: InputMaybe; + slugs?: InputMaybe>; +}; -export type WelcomePageActivitiesQueryVariables = Exact<{ - hasPermissionToManageOrders: Scalars['Boolean']; -}>; +export type WarehouseSortField = + /** Sort warehouses by name. */ + | 'NAME'; +export type WarehouseSortingInput = { + /** Specifies the direction in which to sort warehouses. */ + direction: OrderDirection; + /** Sort warehouses by the selected field. */ + field: WarehouseSortField; +}; -export type WelcomePageActivitiesQuery = { __typename: 'Query', activities: { __typename: 'OrderEventCountableConnection', edges: Array<{ __typename: 'OrderEventCountableEdge', node: { __typename: 'OrderEvent', date: any | null, email: string | null, message: string | null, orderNumber: string | null, type: OrderEventsEnum | null, user: { __typename: 'User', email: string } | null } }> } | null }; +export type WarehouseUpdateInput = { + /** Address of the warehouse. */ + address?: InputMaybe; + /** Click and collect options: local, all or disabled. */ + clickAndCollectOption?: InputMaybe; + /** The email address of the warehouse. */ + email?: InputMaybe; + /** External ID of the warehouse. */ + externalReference?: InputMaybe; + /** Visibility of warehouse stocks. */ + isPrivate?: InputMaybe; + /** Warehouse name. */ + name?: InputMaybe; + /** Warehouse slug. */ + slug?: InputMaybe; +}; -export type WelcomePageAnalyticsQueryVariables = Exact<{ - channel: Scalars['String']; - hasPermissionToManageOrders: Scalars['Boolean']; -}>; +export type WebhookCreateInput = { + /** ID of the app to which webhook belongs. */ + app?: InputMaybe; + /** The asynchronous events that webhook wants to subscribe. */ + asyncEvents?: InputMaybe>; + /** Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed. */ + customHeaders?: InputMaybe; + /** + * The events that webhook wants to subscribe. + * @deprecated Use `asyncEvents` or `syncEvents` instead. + */ + events?: InputMaybe>; + /** Determine if webhook will be set active or not. */ + isActive?: InputMaybe; + /** The name of the webhook. */ + name?: InputMaybe; + /** Subscription query used to define a webhook payload. */ + query?: InputMaybe; + /** + * The secret key used to create a hash signature with each payload. + * @deprecated As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. + */ + secretKey?: InputMaybe; + /** The synchronous events that webhook wants to subscribe. */ + syncEvents?: InputMaybe>; + /** The url to receive the payload. */ + targetUrl?: InputMaybe; +}; + +export type WebhookDryRunErrorCode = + | 'GRAPHQL_ERROR' + | 'INVALID_ID' + | 'MISSING_EVENT' + | 'MISSING_PERMISSION' + | 'MISSING_SUBSCRIPTION' + | 'NOT_FOUND' + | 'SYNTAX' + | 'TYPE_NOT_SUPPORTED' + | 'UNABLE_TO_PARSE'; + +export type WebhookErrorCode = + | 'DELETE_FAILED' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'INVALID_CUSTOM_HEADERS' + | 'INVALID_NOTIFY_WITH_SUBSCRIPTION' + | 'MISSING_EVENT' + | 'MISSING_SUBSCRIPTION' + | 'NOT_FOUND' + | 'REQUIRED' + | 'SYNTAX' + | 'UNABLE_TO_PARSE' + | 'UNIQUE'; +/** Enum determining type of webhook. */ +export type WebhookEventTypeAsyncEnum = + /** An account email change is requested. */ + | 'ACCOUNT_CHANGE_EMAIL_REQUESTED' + /** An account confirmation is requested. */ + | 'ACCOUNT_CONFIRMATION_REQUESTED' + /** An account is confirmed. */ + | 'ACCOUNT_CONFIRMED' + /** An account is deleted. */ + | 'ACCOUNT_DELETED' + /** An account delete is requested. */ + | 'ACCOUNT_DELETE_REQUESTED' + /** An account email was changed */ + | 'ACCOUNT_EMAIL_CHANGED' + /** Setting a new password for the account is requested. */ + | 'ACCOUNT_SET_PASSWORD_REQUESTED' + /** A new address created. */ + | 'ADDRESS_CREATED' + /** An address deleted. */ + | 'ADDRESS_DELETED' + /** An address updated. */ + | 'ADDRESS_UPDATED' + /** All the events. */ + | 'ANY_EVENTS' + /** An app deleted. */ + | 'APP_DELETED' + /** A new app installed. */ + | 'APP_INSTALLED' + /** An app status is changed. */ + | 'APP_STATUS_CHANGED' + /** An app updated. */ + | 'APP_UPDATED' + /** A new attribute is created. */ + | 'ATTRIBUTE_CREATED' + /** An attribute is deleted. */ + | 'ATTRIBUTE_DELETED' + /** An attribute is updated. */ + | 'ATTRIBUTE_UPDATED' + /** A new attribute value is created. */ + | 'ATTRIBUTE_VALUE_CREATED' + /** An attribute value is deleted. */ + | 'ATTRIBUTE_VALUE_DELETED' + /** An attribute value is updated. */ + | 'ATTRIBUTE_VALUE_UPDATED' + /** A new category created. */ + | 'CATEGORY_CREATED' + /** A category is deleted. */ + | 'CATEGORY_DELETED' + /** A category is updated. */ + | 'CATEGORY_UPDATED' + /** A new channel created. */ + | 'CHANNEL_CREATED' + /** A channel is deleted. */ + | 'CHANNEL_DELETED' + /** A channel metadata is updated. */ + | 'CHANNEL_METADATA_UPDATED' + /** A channel status is changed. */ + | 'CHANNEL_STATUS_CHANGED' + /** A channel is updated. */ + | 'CHANNEL_UPDATED' + /** A new checkout is created. */ + | 'CHECKOUT_CREATED' + /** + * A checkout was fully authorized (its `authorizeStatus` is `FULL`). + * + * This event is emitted only for checkouts whose payments are processed through the Transaction API. + */ + | 'CHECKOUT_FULLY_AUTHORIZED' + /** + * A checkout was fully paid (its `chargeStatus` is `FULL` or `OVERCHARGED`). This event is not sent if payments are only authorized but not fully charged. + * + * This event is emitted only for checkouts whose payments are processed through the Transaction API. + */ + | 'CHECKOUT_FULLY_PAID' + /** A checkout metadata is updated. */ + | 'CHECKOUT_METADATA_UPDATED' + /** A checkout is updated. It also triggers all updates related to the checkout. */ + | 'CHECKOUT_UPDATED' + /** A new collection is created. */ + | 'COLLECTION_CREATED' + /** A collection is deleted. */ + | 'COLLECTION_DELETED' + /** A collection metadata is updated. */ + | 'COLLECTION_METADATA_UPDATED' + /** A collection is updated. */ + | 'COLLECTION_UPDATED' + /** A new customer account is created. */ + | 'CUSTOMER_CREATED' + /** A customer account is deleted. */ + | 'CUSTOMER_DELETED' + /** A customer account metadata is updated. */ + | 'CUSTOMER_METADATA_UPDATED' + /** A customer account is updated. */ + | 'CUSTOMER_UPDATED' + /** A draft order is created. */ + | 'DRAFT_ORDER_CREATED' + /** A draft order is deleted. */ + | 'DRAFT_ORDER_DELETED' + /** A draft order is updated. */ + | 'DRAFT_ORDER_UPDATED' + /** A fulfillment is approved. */ + | 'FULFILLMENT_APPROVED' + /** A fulfillment is cancelled. */ + | 'FULFILLMENT_CANCELED' + /** A new fulfillment is created. */ + | 'FULFILLMENT_CREATED' + /** A fulfillment metadata is updated. */ + | 'FULFILLMENT_METADATA_UPDATED' + | 'FULFILLMENT_TRACKING_NUMBER_UPDATED' + /** A new gift card created. */ + | 'GIFT_CARD_CREATED' + /** A gift card is deleted. */ + | 'GIFT_CARD_DELETED' + /** A gift card export is completed. */ + | 'GIFT_CARD_EXPORT_COMPLETED' + /** A gift card metadata is updated. */ + | 'GIFT_CARD_METADATA_UPDATED' + /** A gift card has been sent. */ + | 'GIFT_CARD_SENT' + /** A gift card status is changed. */ + | 'GIFT_CARD_STATUS_CHANGED' + /** A gift card is updated. */ + | 'GIFT_CARD_UPDATED' + /** An invoice is deleted. */ + | 'INVOICE_DELETED' + /** An invoice for order requested. */ + | 'INVOICE_REQUESTED' + /** Invoice has been sent. */ + | 'INVOICE_SENT' + /** A new menu created. */ + | 'MENU_CREATED' + /** A menu is deleted. */ + | 'MENU_DELETED' + /** A new menu item created. */ + | 'MENU_ITEM_CREATED' + /** A menu item is deleted. */ + | 'MENU_ITEM_DELETED' + /** A menu item is updated. */ + | 'MENU_ITEM_UPDATED' + /** A menu is updated. */ + | 'MENU_UPDATED' + /** User notification triggered. */ + | 'NOTIFY_USER' + /** An observability event is created. */ + | 'OBSERVABILITY' + /** Orders are imported. */ + | 'ORDER_BULK_CREATED' + /** An order is cancelled. */ + | 'ORDER_CANCELLED' + /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ + | 'ORDER_CONFIRMED' + /** A new order is placed. */ + | 'ORDER_CREATED' + /** An order is expired. */ + | 'ORDER_EXPIRED' + /** An order is fulfilled. */ + | 'ORDER_FULFILLED' + /** Payment is made and an order is fully paid. */ + | 'ORDER_FULLY_PAID' + /** The order is fully refunded. */ + | 'ORDER_FULLY_REFUNDED' + /** An order metadata is updated. */ + | 'ORDER_METADATA_UPDATED' + /** Payment has been made. The order may be partially or fully paid. */ + | 'ORDER_PAID' + /** The order received a refund. The order may be partially or fully refunded. */ + | 'ORDER_REFUNDED' + /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ + | 'ORDER_UPDATED' + /** A new page is created. */ + | 'PAGE_CREATED' + /** A page is deleted. */ + | 'PAGE_DELETED' + /** A new page type is created. */ + | 'PAGE_TYPE_CREATED' + /** A page type is deleted. */ + | 'PAGE_TYPE_DELETED' + /** A page type is updated. */ + | 'PAGE_TYPE_UPDATED' + /** A page is updated. */ + | 'PAGE_UPDATED' + /** A new permission group is created. */ + | 'PERMISSION_GROUP_CREATED' + /** A permission group is deleted. */ + | 'PERMISSION_GROUP_DELETED' + /** A permission group is updated. */ + | 'PERMISSION_GROUP_UPDATED' + /** A new product is created. */ + | 'PRODUCT_CREATED' + /** A product is deleted. */ + | 'PRODUCT_DELETED' + /** A product export is completed. */ + | 'PRODUCT_EXPORT_COMPLETED' + /** A new product media is created. */ + | 'PRODUCT_MEDIA_CREATED' + /** A product media is deleted. */ + | 'PRODUCT_MEDIA_DELETED' + /** A product media is updated. */ + | 'PRODUCT_MEDIA_UPDATED' + /** A product metadata is updated. */ + | 'PRODUCT_METADATA_UPDATED' + /** A product is updated. */ + | 'PRODUCT_UPDATED' + /** A product variant is back in stock. */ + | 'PRODUCT_VARIANT_BACK_IN_STOCK' + /** A new product variant is created. */ + | 'PRODUCT_VARIANT_CREATED' + /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ + | 'PRODUCT_VARIANT_DELETED' + /** A product variant metadata is updated. */ + | 'PRODUCT_VARIANT_METADATA_UPDATED' + /** A product variant is out of stock. */ + | 'PRODUCT_VARIANT_OUT_OF_STOCK' + /** A product variant stock is updated */ + | 'PRODUCT_VARIANT_STOCK_UPDATED' + /** A product variant is updated. */ + | 'PRODUCT_VARIANT_UPDATED' + /** A promotion is created. */ + | 'PROMOTION_CREATED' + /** A promotion is deleted. */ + | 'PROMOTION_DELETED' + /** A promotion is deactivated. */ + | 'PROMOTION_ENDED' + /** A promotion rule is created. */ + | 'PROMOTION_RULE_CREATED' + /** A promotion rule is deleted. */ + | 'PROMOTION_RULE_DELETED' + /** A promotion rule is updated. */ + | 'PROMOTION_RULE_UPDATED' + /** A promotion is activated. */ + | 'PROMOTION_STARTED' + /** A promotion is updated. */ + | 'PROMOTION_UPDATED' + /** A sale is created. */ + | 'SALE_CREATED' + /** A sale is deleted. */ + | 'SALE_DELETED' + /** A sale is activated or deactivated. */ + | 'SALE_TOGGLE' + /** A sale is updated. */ + | 'SALE_UPDATED' + /** A new shipping price is created. */ + | 'SHIPPING_PRICE_CREATED' + /** A shipping price is deleted. */ + | 'SHIPPING_PRICE_DELETED' + /** A shipping price is updated. */ + | 'SHIPPING_PRICE_UPDATED' + /** A new shipping zone is created. */ + | 'SHIPPING_ZONE_CREATED' + /** A shipping zone is deleted. */ + | 'SHIPPING_ZONE_DELETED' + /** A shipping zone metadata is updated. */ + | 'SHIPPING_ZONE_METADATA_UPDATED' + /** A shipping zone is updated. */ + | 'SHIPPING_ZONE_UPDATED' + /** Shop metadata is updated. */ + | 'SHOP_METADATA_UPDATED' + /** A new staff user is created. */ + | 'STAFF_CREATED' + /** A staff user is deleted. */ + | 'STAFF_DELETED' + /** Setting a new password for the staff account is requested. */ + | 'STAFF_SET_PASSWORD_REQUESTED' + /** A staff user is updated. */ + | 'STAFF_UPDATED' + /** A thumbnail is created. */ + | 'THUMBNAIL_CREATED' + /** Transaction item metadata is updated. */ + | 'TRANSACTION_ITEM_METADATA_UPDATED' + /** A new translation is created. */ + | 'TRANSLATION_CREATED' + /** A translation is updated. */ + | 'TRANSLATION_UPDATED' + | 'VOUCHER_CODES_CREATED' + | 'VOUCHER_CODES_DELETED' + /** + * A voucher code export is completed. + * + * Added in Saleor 3.18. + */ + | 'VOUCHER_CODE_EXPORT_COMPLETED' + /** A new voucher created. */ + | 'VOUCHER_CREATED' + /** A voucher is deleted. */ + | 'VOUCHER_DELETED' + /** A voucher metadata is updated. */ + | 'VOUCHER_METADATA_UPDATED' + /** A voucher is updated. */ + | 'VOUCHER_UPDATED' + /** A new warehouse created. */ + | 'WAREHOUSE_CREATED' + /** A warehouse is deleted. */ + | 'WAREHOUSE_DELETED' + /** A warehouse metadata is updated. */ + | 'WAREHOUSE_METADATA_UPDATED' + /** A warehouse is updated. */ + | 'WAREHOUSE_UPDATED'; -export type WelcomePageAnalyticsQuery = { __typename: 'Query', salesToday: { __typename: 'TaxedMoney', gross: { __typename: 'Money', amount: number, currency: string } } | null }; +/** Enum determining type of webhook. */ +export type WebhookEventTypeEnum = + /** An account email change is requested. */ + | 'ACCOUNT_CHANGE_EMAIL_REQUESTED' + /** An account confirmation is requested. */ + | 'ACCOUNT_CONFIRMATION_REQUESTED' + /** An account is confirmed. */ + | 'ACCOUNT_CONFIRMED' + /** An account is deleted. */ + | 'ACCOUNT_DELETED' + /** An account delete is requested. */ + | 'ACCOUNT_DELETE_REQUESTED' + /** An account email was changed */ + | 'ACCOUNT_EMAIL_CHANGED' + /** Setting a new password for the account is requested. */ + | 'ACCOUNT_SET_PASSWORD_REQUESTED' + /** A new address created. */ + | 'ADDRESS_CREATED' + /** An address deleted. */ + | 'ADDRESS_DELETED' + /** An address updated. */ + | 'ADDRESS_UPDATED' + /** All the events. */ + | 'ANY_EVENTS' + /** An app deleted. */ + | 'APP_DELETED' + /** A new app installed. */ + | 'APP_INSTALLED' + /** An app status is changed. */ + | 'APP_STATUS_CHANGED' + /** An app updated. */ + | 'APP_UPDATED' + /** A new attribute is created. */ + | 'ATTRIBUTE_CREATED' + /** An attribute is deleted. */ + | 'ATTRIBUTE_DELETED' + /** An attribute is updated. */ + | 'ATTRIBUTE_UPDATED' + /** A new attribute value is created. */ + | 'ATTRIBUTE_VALUE_CREATED' + /** An attribute value is deleted. */ + | 'ATTRIBUTE_VALUE_DELETED' + /** An attribute value is updated. */ + | 'ATTRIBUTE_VALUE_UPDATED' + /** A new category created. */ + | 'CATEGORY_CREATED' + /** A category is deleted. */ + | 'CATEGORY_DELETED' + /** A category is updated. */ + | 'CATEGORY_UPDATED' + /** A new channel created. */ + | 'CHANNEL_CREATED' + /** A channel is deleted. */ + | 'CHANNEL_DELETED' + /** A channel metadata is updated. */ + | 'CHANNEL_METADATA_UPDATED' + /** A channel status is changed. */ + | 'CHANNEL_STATUS_CHANGED' + /** A channel is updated. */ + | 'CHANNEL_UPDATED' + /** Event called for checkout tax calculation. */ + | 'CHECKOUT_CALCULATE_TAXES' + /** A new checkout is created. */ + | 'CHECKOUT_CREATED' + /** Filter shipping methods for checkout. */ + | 'CHECKOUT_FILTER_SHIPPING_METHODS' + /** + * A checkout was fully authorized (its `authorizeStatus` is `FULL`). + * + * This event is emitted only for checkouts whose payments are processed through the Transaction API. + */ + | 'CHECKOUT_FULLY_AUTHORIZED' + /** + * A checkout was fully paid (its `chargeStatus` is `FULL` or `OVERCHARGED`). This event is not sent if payments are only authorized but not fully charged. + * + * This event is emitted only for checkouts whose payments are processed through the Transaction API. + */ + | 'CHECKOUT_FULLY_PAID' + /** A checkout metadata is updated. */ + | 'CHECKOUT_METADATA_UPDATED' + /** A checkout is updated. It also triggers all updates related to the checkout. */ + | 'CHECKOUT_UPDATED' + /** A new collection is created. */ + | 'COLLECTION_CREATED' + /** A collection is deleted. */ + | 'COLLECTION_DELETED' + /** A collection metadata is updated. */ + | 'COLLECTION_METADATA_UPDATED' + /** A collection is updated. */ + | 'COLLECTION_UPDATED' + /** A new customer account is created. */ + | 'CUSTOMER_CREATED' + /** A customer account is deleted. */ + | 'CUSTOMER_DELETED' + /** A customer account metadata is updated. */ + | 'CUSTOMER_METADATA_UPDATED' + /** A customer account is updated. */ + | 'CUSTOMER_UPDATED' + /** A draft order is created. */ + | 'DRAFT_ORDER_CREATED' + /** A draft order is deleted. */ + | 'DRAFT_ORDER_DELETED' + /** A draft order is updated. */ + | 'DRAFT_ORDER_UPDATED' + /** A fulfillment is approved. */ + | 'FULFILLMENT_APPROVED' + /** A fulfillment is cancelled. */ + | 'FULFILLMENT_CANCELED' + /** A new fulfillment is created. */ + | 'FULFILLMENT_CREATED' + /** A fulfillment metadata is updated. */ + | 'FULFILLMENT_METADATA_UPDATED' + | 'FULFILLMENT_TRACKING_NUMBER_UPDATED' + /** A new gift card created. */ + | 'GIFT_CARD_CREATED' + /** A gift card is deleted. */ + | 'GIFT_CARD_DELETED' + /** A gift card export is completed. */ + | 'GIFT_CARD_EXPORT_COMPLETED' + /** A gift card metadata is updated. */ + | 'GIFT_CARD_METADATA_UPDATED' + /** A gift card has been sent. */ + | 'GIFT_CARD_SENT' + /** A gift card status is changed. */ + | 'GIFT_CARD_STATUS_CHANGED' + /** A gift card is updated. */ + | 'GIFT_CARD_UPDATED' + /** An invoice is deleted. */ + | 'INVOICE_DELETED' + /** An invoice for order requested. */ + | 'INVOICE_REQUESTED' + /** Invoice has been sent. */ + | 'INVOICE_SENT' + | 'LIST_STORED_PAYMENT_METHODS' + /** A new menu created. */ + | 'MENU_CREATED' + /** A menu is deleted. */ + | 'MENU_DELETED' + /** A new menu item created. */ + | 'MENU_ITEM_CREATED' + /** A menu item is deleted. */ + | 'MENU_ITEM_DELETED' + /** A menu item is updated. */ + | 'MENU_ITEM_UPDATED' + /** A menu is updated. */ + | 'MENU_UPDATED' + /** User notification triggered. */ + | 'NOTIFY_USER' + /** An observability event is created. */ + | 'OBSERVABILITY' + /** Orders are imported. */ + | 'ORDER_BULK_CREATED' + /** Event called for order tax calculation. */ + | 'ORDER_CALCULATE_TAXES' + /** An order is cancelled. */ + | 'ORDER_CANCELLED' + /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ + | 'ORDER_CONFIRMED' + /** A new order is placed. */ + | 'ORDER_CREATED' + /** An order is expired. */ + | 'ORDER_EXPIRED' + /** Filter shipping methods for order. */ + | 'ORDER_FILTER_SHIPPING_METHODS' + /** An order is fulfilled. */ + | 'ORDER_FULFILLED' + /** Payment is made and an order is fully paid. */ + | 'ORDER_FULLY_PAID' + /** The order is fully refunded. */ + | 'ORDER_FULLY_REFUNDED' + /** An order metadata is updated. */ + | 'ORDER_METADATA_UPDATED' + /** Payment has been made. The order may be partially or fully paid. */ + | 'ORDER_PAID' + /** The order received a refund. The order may be partially or fully refunded. */ + | 'ORDER_REFUNDED' + /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ + | 'ORDER_UPDATED' + /** A new page is created. */ + | 'PAGE_CREATED' + /** A page is deleted. */ + | 'PAGE_DELETED' + /** A new page type is created. */ + | 'PAGE_TYPE_CREATED' + /** A page type is deleted. */ + | 'PAGE_TYPE_DELETED' + /** A page type is updated. */ + | 'PAGE_TYPE_UPDATED' + /** A page is updated. */ + | 'PAGE_UPDATED' + /** Authorize payment. */ + | 'PAYMENT_AUTHORIZE' + /** Capture payment. */ + | 'PAYMENT_CAPTURE' + /** Confirm payment. */ + | 'PAYMENT_CONFIRM' + | 'PAYMENT_GATEWAY_INITIALIZE_SESSION' + | 'PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION' + /** Listing available payment gateways. */ + | 'PAYMENT_LIST_GATEWAYS' + | 'PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION' + | 'PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION' + /** Process payment. */ + | 'PAYMENT_PROCESS' + /** Refund payment. */ + | 'PAYMENT_REFUND' + /** Void payment. */ + | 'PAYMENT_VOID' + /** A new permission group is created. */ + | 'PERMISSION_GROUP_CREATED' + /** A permission group is deleted. */ + | 'PERMISSION_GROUP_DELETED' + /** A permission group is updated. */ + | 'PERMISSION_GROUP_UPDATED' + /** A new product is created. */ + | 'PRODUCT_CREATED' + /** A product is deleted. */ + | 'PRODUCT_DELETED' + /** A product export is completed. */ + | 'PRODUCT_EXPORT_COMPLETED' + /** A new product media is created. */ + | 'PRODUCT_MEDIA_CREATED' + /** A product media is deleted. */ + | 'PRODUCT_MEDIA_DELETED' + /** A product media is updated. */ + | 'PRODUCT_MEDIA_UPDATED' + /** A product metadata is updated. */ + | 'PRODUCT_METADATA_UPDATED' + /** A product is updated. */ + | 'PRODUCT_UPDATED' + /** A product variant is back in stock. */ + | 'PRODUCT_VARIANT_BACK_IN_STOCK' + /** A new product variant is created. */ + | 'PRODUCT_VARIANT_CREATED' + /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ + | 'PRODUCT_VARIANT_DELETED' + /** A product variant metadata is updated. */ + | 'PRODUCT_VARIANT_METADATA_UPDATED' + /** A product variant is out of stock. */ + | 'PRODUCT_VARIANT_OUT_OF_STOCK' + /** A product variant stock is updated */ + | 'PRODUCT_VARIANT_STOCK_UPDATED' + /** A product variant is updated. */ + | 'PRODUCT_VARIANT_UPDATED' + /** A promotion is created. */ + | 'PROMOTION_CREATED' + /** A promotion is deleted. */ + | 'PROMOTION_DELETED' + /** A promotion is deactivated. */ + | 'PROMOTION_ENDED' + /** A promotion rule is created. */ + | 'PROMOTION_RULE_CREATED' + /** A promotion rule is deleted. */ + | 'PROMOTION_RULE_DELETED' + /** A promotion rule is updated. */ + | 'PROMOTION_RULE_UPDATED' + /** A promotion is activated. */ + | 'PROMOTION_STARTED' + /** A promotion is updated. */ + | 'PROMOTION_UPDATED' + /** A sale is created. */ + | 'SALE_CREATED' + /** A sale is deleted. */ + | 'SALE_DELETED' + /** A sale is activated or deactivated. */ + | 'SALE_TOGGLE' + /** A sale is updated. */ + | 'SALE_UPDATED' + /** Fetch external shipping methods for checkout. */ + | 'SHIPPING_LIST_METHODS_FOR_CHECKOUT' + /** A new shipping price is created. */ + | 'SHIPPING_PRICE_CREATED' + /** A shipping price is deleted. */ + | 'SHIPPING_PRICE_DELETED' + /** A shipping price is updated. */ + | 'SHIPPING_PRICE_UPDATED' + /** A new shipping zone is created. */ + | 'SHIPPING_ZONE_CREATED' + /** A shipping zone is deleted. */ + | 'SHIPPING_ZONE_DELETED' + /** A shipping zone metadata is updated. */ + | 'SHIPPING_ZONE_METADATA_UPDATED' + /** A shipping zone is updated. */ + | 'SHIPPING_ZONE_UPDATED' + /** Shop metadata is updated. */ + | 'SHOP_METADATA_UPDATED' + /** A new staff user is created. */ + | 'STAFF_CREATED' + /** A staff user is deleted. */ + | 'STAFF_DELETED' + /** Setting a new password for the staff account is requested. */ + | 'STAFF_SET_PASSWORD_REQUESTED' + /** A staff user is updated. */ + | 'STAFF_UPDATED' + | 'STORED_PAYMENT_METHOD_DELETE_REQUESTED' + /** A thumbnail is created. */ + | 'THUMBNAIL_CREATED' + /** Event called when cancel has been requested for transaction. */ + | 'TRANSACTION_CANCELATION_REQUESTED' + /** Event called when charge has been requested for transaction. */ + | 'TRANSACTION_CHARGE_REQUESTED' + | 'TRANSACTION_INITIALIZE_SESSION' + /** Transaction item metadata is updated. */ + | 'TRANSACTION_ITEM_METADATA_UPDATED' + | 'TRANSACTION_PROCESS_SESSION' + /** Event called when refund has been requested for transaction. */ + | 'TRANSACTION_REFUND_REQUESTED' + /** A new translation is created. */ + | 'TRANSLATION_CREATED' + /** A translation is updated. */ + | 'TRANSLATION_UPDATED' + | 'VOUCHER_CODES_CREATED' + | 'VOUCHER_CODES_DELETED' + /** + * A voucher code export is completed. + * + * Added in Saleor 3.18. + */ + | 'VOUCHER_CODE_EXPORT_COMPLETED' + /** A new voucher created. */ + | 'VOUCHER_CREATED' + /** A voucher is deleted. */ + | 'VOUCHER_DELETED' + /** A voucher metadata is updated. */ + | 'VOUCHER_METADATA_UPDATED' + /** A voucher is updated. */ + | 'VOUCHER_UPDATED' + /** A new warehouse created. */ + | 'WAREHOUSE_CREATED' + /** A warehouse is deleted. */ + | 'WAREHOUSE_DELETED' + /** A warehouse metadata is updated. */ + | 'WAREHOUSE_METADATA_UPDATED' + /** A warehouse is updated. */ + | 'WAREHOUSE_UPDATED'; -export type WelcomePageNotificationsQueryVariables = Exact<{ - channel: Scalars['String']; -}>; +/** Enum determining type of webhook. */ +export type WebhookEventTypeSyncEnum = + /** Event called for checkout tax calculation. */ + | 'CHECKOUT_CALCULATE_TAXES' + /** Filter shipping methods for checkout. */ + | 'CHECKOUT_FILTER_SHIPPING_METHODS' + | 'LIST_STORED_PAYMENT_METHODS' + /** Event called for order tax calculation. */ + | 'ORDER_CALCULATE_TAXES' + /** Filter shipping methods for order. */ + | 'ORDER_FILTER_SHIPPING_METHODS' + /** Authorize payment. */ + | 'PAYMENT_AUTHORIZE' + /** Capture payment. */ + | 'PAYMENT_CAPTURE' + /** Confirm payment. */ + | 'PAYMENT_CONFIRM' + | 'PAYMENT_GATEWAY_INITIALIZE_SESSION' + | 'PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION' + /** Listing available payment gateways. */ + | 'PAYMENT_LIST_GATEWAYS' + | 'PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION' + | 'PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION' + /** Process payment. */ + | 'PAYMENT_PROCESS' + /** Refund payment. */ + | 'PAYMENT_REFUND' + /** Void payment. */ + | 'PAYMENT_VOID' + /** Fetch external shipping methods for checkout. */ + | 'SHIPPING_LIST_METHODS_FOR_CHECKOUT' + | 'STORED_PAYMENT_METHOD_DELETE_REQUESTED' + /** Event called when cancel has been requested for transaction. */ + | 'TRANSACTION_CANCELATION_REQUESTED' + /** Event called when charge has been requested for transaction. */ + | 'TRANSACTION_CHARGE_REQUESTED' + | 'TRANSACTION_INITIALIZE_SESSION' + | 'TRANSACTION_PROCESS_SESSION' + /** Event called when refund has been requested for transaction. */ + | 'TRANSACTION_REFUND_REQUESTED'; +export type WebhookUpdateInput = { + /** ID of the app to which webhook belongs. */ + app?: InputMaybe; + /** The asynchronous events that webhook wants to subscribe. */ + asyncEvents?: InputMaybe>; + /** Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed. */ + customHeaders?: InputMaybe; + /** + * The events that webhook wants to subscribe. + * @deprecated Use `asyncEvents` or `syncEvents` instead. + */ + events?: InputMaybe>; + /** Determine if webhook will be set active or not. */ + isActive?: InputMaybe; + /** The new name of the webhook. */ + name?: InputMaybe; + /** Subscription query used to define a webhook payload. */ + query?: InputMaybe; + /** + * Use to create a hash signature with each payload. + * @deprecated As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. + */ + secretKey?: InputMaybe; + /** The synchronous events that webhook wants to subscribe. */ + syncEvents?: InputMaybe>; + /** The url to receive the payload. */ + targetUrl?: InputMaybe; +}; -export type WelcomePageNotificationsQuery = { __typename: 'Query', productsOutOfStock: { __typename: 'ProductCountableConnection', totalCount: number | null } | null }; +export type WeightUnitsEnum = + | 'G' + | 'KG' + | 'LB' + | 'OZ' + | 'TONNE'; diff --git a/src/graphql/typesStaging.generated.ts b/src/graphql/typesStaging.generated.ts index 255c962a41c..585fe919312 100644 --- a/src/graphql/typesStaging.generated.ts +++ b/src/graphql/typesStaging.generated.ts @@ -3,44 +3,92 @@ export type InputMaybe = Maybe; 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 }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +export type ChannelCreateMutationVariables = Exact<{ + input: ChannelCreateInput; +}>; + + +export type ChannelCreateMutation = { __typename: 'Mutation', channelCreate: { __typename: 'ChannelCreate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; + +export type ChannelUpdateMutationVariables = Exact<{ + id: Scalars['ID']; + input: ChannelUpdateInput; +}>; + + +export type ChannelUpdateMutation = { __typename: 'Mutation', channelUpdate: { __typename: 'ChannelUpdate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; + +export type BaseChannelsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type BaseChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; + +export type ChannelsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; + +export type ChannelQueryVariables = Exact<{ + id: Scalars['ID']; +}>; + + +export type ChannelQuery = { __typename: 'Query', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null }; + +export type AddressFragment = { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }; + +export type ChannelErrorFragment = { __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }; + +export type ChannelFragment = { __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; + +export type ChannelDetailsFragment = { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; + +export type WarehouseFragment = { __typename: 'Warehouse', id: string, name: string }; + +export type WarehouseWithShippingFragment = { __typename: 'Warehouse', id: string, name: string, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; + +export type WarehouseDetailsFragment = { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; + /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } /** * The `Date` scalar type represents a Date * value as specified by * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). */ - Date: any; + Date: { input: any; output: any; } /** * The `DateTime` scalar type represents a DateTime * value as specified by * [iso8601](https://en.wikipedia.org/wiki/ISO_8601). */ - DateTime: any; + DateTime: { input: any; output: any; } /** The `Day` scalar type represents number of days by integer value. */ - Day: any; + Day: { input: any; output: any; } /** * Custom Decimal implementation. * * Returns Decimal as a float in the API, * parses float to the Decimal on the way back. */ - Decimal: any; + Decimal: { input: any; output: any; } /** * The `GenericScalar` scalar type represents a generic * GraphQL scalar value that could be: * String, Boolean, Int, Float, List or Object. */ - GenericScalar: any; + GenericScalar: { input: any; output: any; } /** The `Hour` scalar type represents number of hours by integer value. */ - Hour: any; - JSON: any; - JSONString: any; + Hour: { input: any; output: any; } + JSON: { input: any; output: any; } + JSONString: { input: any; output: any; } /** * Metadata is a map of key-value pairs, both keys and values are `String`. * @@ -52,8786 +100,1396 @@ export type Scalars = { * } * ``` */ - Metadata: any; + Metadata: { input: any; output: any; } /** The `Minute` scalar type represents number of minutes by integer value. */ - Minute: any; + Minute: { input: any; output: any; } /** * Nonnegative Decimal scalar implementation. * * Should be used in places where value must be nonnegative (0 or greater). */ - PositiveDecimal: any; + PositiveDecimal: { input: any; output: any; } /** * Positive Integer scalar implementation. * * Should be used in places where value must be positive (greater than 0). */ - PositiveInt: any; - UUID: any; + PositiveInt: { input: any; output: any; } + UUID: { input: any; output: 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; + Upload: { input: any; output: any; } + WeightScalar: { input: any; output: any; } /** _Any value scalar as defined by Federation spec. */ - _Any: any; + _Any: { input: any; output: any; } }; -export enum AccountErrorCode { - ACCOUNT_NOT_CONFIRMED = 'ACCOUNT_NOT_CONFIRMED', - ACTIVATE_OWN_ACCOUNT = 'ACTIVATE_OWN_ACCOUNT', - ACTIVATE_SUPERUSER_ACCOUNT = 'ACTIVATE_SUPERUSER_ACCOUNT', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - DEACTIVATE_OWN_ACCOUNT = 'DEACTIVATE_OWN_ACCOUNT', - DEACTIVATE_SUPERUSER_ACCOUNT = 'DEACTIVATE_SUPERUSER_ACCOUNT', - DELETE_NON_STAFF_USER = 'DELETE_NON_STAFF_USER', - DELETE_OWN_ACCOUNT = 'DELETE_OWN_ACCOUNT', - DELETE_STAFF_ACCOUNT = 'DELETE_STAFF_ACCOUNT', - DELETE_SUPERUSER_ACCOUNT = 'DELETE_SUPERUSER_ACCOUNT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INACTIVE = 'INACTIVE', - INVALID = 'INVALID', - INVALID_CREDENTIALS = 'INVALID_CREDENTIALS', - INVALID_PASSWORD = 'INVALID_PASSWORD', - JWT_DECODE_ERROR = 'JWT_DECODE_ERROR', - JWT_INVALID_CSRF_TOKEN = 'JWT_INVALID_CSRF_TOKEN', - JWT_INVALID_TOKEN = 'JWT_INVALID_TOKEN', - JWT_MISSING_TOKEN = 'JWT_MISSING_TOKEN', - JWT_SIGNATURE_EXPIRED = 'JWT_SIGNATURE_EXPIRED', - LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', - LOGIN_ATTEMPT_DELAYED = 'LOGIN_ATTEMPT_DELAYED', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', - NOT_FOUND = 'NOT_FOUND', - OUT_OF_SCOPE_GROUP = 'OUT_OF_SCOPE_GROUP', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', - OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', - PASSWORD_ENTIRELY_NUMERIC = 'PASSWORD_ENTIRELY_NUMERIC', - PASSWORD_RESET_ALREADY_REQUESTED = 'PASSWORD_RESET_ALREADY_REQUESTED', - PASSWORD_TOO_COMMON = 'PASSWORD_TOO_COMMON', - PASSWORD_TOO_SHORT = 'PASSWORD_TOO_SHORT', - PASSWORD_TOO_SIMILAR = 'PASSWORD_TOO_SIMILAR', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - UNKNOWN_IP_ADDRESS = 'UNKNOWN_IP_ADDRESS' -} +/** + * Determine the allocation strategy for the channel. + * + * PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order + * within the channel + * + * PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock + */ +export type AllocationStrategyEnum = + | 'PRIORITIZE_HIGH_STOCK' + | 'PRIORITIZE_SORTING_ORDER'; + +export type AttributeEntityTypeEnum = + | 'CATEGORY' + | 'COLLECTION' + | 'PAGE' + | 'PRODUCT' + | 'PRODUCT_VARIANT'; + +export type AttributeInputTypeEnum = + | 'BOOLEAN' + | 'DATE' + | 'DATE_TIME' + | 'DROPDOWN' + | 'FILE' + | 'MULTISELECT' + | 'NUMERIC' + | 'PLAIN_TEXT' + | 'REFERENCE' + | 'RICH_TEXT' + | 'SINGLE_REFERENCE' + | 'SWATCH'; + +export type AttributeTypeEnum = + | 'PAGE_TYPE' + | 'PRODUCT_TYPE'; -/** Fields required to update the user. */ -export type AccountInput = { - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; +export type ChannelCreateInput = { + /** List of shipping zones to assign to the channel. */ + addShippingZones?: InputMaybe>; + /** List of warehouses to assign to the channel. */ + addWarehouses?: InputMaybe>; + /** The channel checkout settings */ + checkoutSettings?: InputMaybe; + /** Currency of the channel. */ + currencyCode: Scalars['String']['input']; + /** Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. */ + defaultCountry: CountryCode; + /** Determine if channel will be set active or not. */ + isActive?: InputMaybe; /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. + * Channel public metadata. Can be read by any API client authorized to read the object it's attached to. * * Warning: never store sensitive information, including financial data such as credit card details. */ metadata?: InputMaybe>; -}; - -/** Fields required to create a user. */ -export type AccountRegisterInput = { - /** Slug of a channel which will be used to notify users. Optional when only one channel exists. */ - channel?: InputMaybe; - /** The email address of the user. */ - email: Scalars['String']; - /** Given name. */ - firstName?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; + /** Name of the channel. */ + name: Scalars['String']['input']; + /** The channel order settings */ + orderSettings?: InputMaybe; + /** The channel payment settings */ + paymentSettings?: InputMaybe; /** - * User public metadata. Can be read by any API client authorized to read the object it's attached to. + * Channel private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. * * Warning: never store sensitive information, including financial data such as credit card details. */ - metadata?: InputMaybe>; - /** Password. */ - password: Scalars['String']; - /** Base of frontend URL that will be needed to create confirmation URL. Required when account confirmation is enabled. */ - redirectUrl?: InputMaybe; + privateMetadata?: InputMaybe>; + /** Slug of the channel. */ + slug: Scalars['String']['input']; + /** The channel stock settings. */ + stockSettings?: InputMaybe; }; -/** Filtering options for addresses. */ -export type AddressFilterInput = { - country?: InputMaybe; - phoneNumber?: InputMaybe; -}; +export type ChannelErrorCode = + | 'ALREADY_EXISTS' + | 'CHANNELS_CURRENCY_MUST_BE_THE_SAME' + | 'CHANNEL_WITH_ORDERS' + | 'DUPLICATED_INPUT_ITEM' + | 'GRAPHQL_ERROR' + | 'INVALID' + | 'NOT_FOUND' + | 'REQUIRED' + | 'UNIQUE'; -export type AddressInput = { - /** City. */ - city?: InputMaybe; - /** District. */ - cityArea?: InputMaybe; - /** Company or organization. */ - companyName?: InputMaybe; - /** Country. */ - country?: InputMaybe; - /** State or province. */ - countryArea?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; +export type ChannelUpdateInput = { + /** List of shipping zones to assign to the channel. */ + addShippingZones?: InputMaybe>; + /** List of warehouses to assign to the channel. */ + addWarehouses?: InputMaybe>; + /** The channel checkout settings */ + checkoutSettings?: InputMaybe; + /** Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. */ + defaultCountry?: InputMaybe; + /** Determine if channel will be set active or not. */ + isActive?: InputMaybe; /** - * Address public metadata. Can be read by any API client authorized to read the object it's attached to. + * Channel public metadata. Can be read by any API client authorized to read the object it's attached to. * * Warning: never store sensitive information, including financial data such as credit card details. */ metadata?: InputMaybe>; + /** Name of the channel. */ + name?: InputMaybe; + /** The channel order settings */ + orderSettings?: InputMaybe; + /** The channel payment settings */ + paymentSettings?: InputMaybe; /** - * Phone number. - * - * Phone numbers are validated with Google's [libphonenumber](https://github.com/google/libphonenumber) library. - */ - phone?: InputMaybe; - /** Postal code. */ - postalCode?: InputMaybe; - /** - * Determine if the address should be validated. By default, Saleor accepts only address inputs matching ruleset from [Google Address Data]{https://chromium-i18n.appspot.com/ssl-address), using [i18naddress](https://github.com/mirumee/google-i18n-address) library. Some mutations may require additional permissions to use the the field. More info about permissions can be found in relevant mutation. - * - * Added in Saleor 3.19. + * Channel private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. + * Warning: never store sensitive information, including financial data such as credit card details. */ - skipValidation?: InputMaybe; - /** Address. */ - streetAddress1?: InputMaybe; - /** Address. */ - streetAddress2?: InputMaybe; + privateMetadata?: InputMaybe>; + /** List of shipping zones to unassign from the channel. */ + removeShippingZones?: InputMaybe>; + /** List of warehouses to unassign from the channel. */ + removeWarehouses?: InputMaybe>; + /** Slug of the channel. */ + slug?: InputMaybe; + /** The channel stock settings. */ + stockSettings?: InputMaybe; }; -export enum AddressTypeEnum { - BILLING = 'BILLING', - SHIPPING = 'SHIPPING' -} - -/** - * Determine the allocation strategy for the channel. - * - * PRIORITIZE_SORTING_ORDER - allocate stocks according to the warehouses' order - * within the channel - * - * PRIORITIZE_HIGH_STOCK - allocate stock in a warehouse with the most stock - */ -export enum AllocationStrategyEnum { - PRIORITIZE_HIGH_STOCK = 'PRIORITIZE_HIGH_STOCK', - PRIORITIZE_SORTING_ORDER = 'PRIORITIZE_SORTING_ORDER' -} - -export enum AppErrorCode { - FORBIDDEN = 'FORBIDDEN', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS', - INVALID_MANIFEST_FORMAT = 'INVALID_MANIFEST_FORMAT', - INVALID_PERMISSION = 'INVALID_PERMISSION', - INVALID_STATUS = 'INVALID_STATUS', - INVALID_URL_FORMAT = 'INVALID_URL_FORMAT', - MANIFEST_URL_CANT_CONNECT = 'MANIFEST_URL_CANT_CONNECT', - NOT_FOUND = 'NOT_FOUND', - OUT_OF_SCOPE_APP = 'OUT_OF_SCOPE_APP', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - UNSUPPORTED_SALEOR_VERSION = 'UNSUPPORTED_SALEOR_VERSION' -} +export type CheckoutAutoCompleteInput = { + /** Specifies the earliest date on which fully paid checkouts can begin to be automatically completed. Fully paid checkouts dated before this cut-off will not be automatically completed. Must be less than the threshold of the oldest modified checkout eligible for automatic completion. Default is current date time. */ + cutOffDate?: InputMaybe; + /** The time in minutes after which the fully paid checkout will be automatically completed. Default is 30. Set to 0 for immediate completion. Should be less than the threshold for the oldest modified checkout eligible for automatic completion. */ + delay?: InputMaybe; + /** Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `charge_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. */ + enabled: Scalars['Boolean']['input']; +}; -export type AppExtensionFilterInput = { +export type CheckoutSettingsInput = { /** - * Plain-text mount name (case insensitive) + * Default to `true`. Determines whether gift cards can be attached to a Checkout via `addPromoCode` mutation. Usage of this mutation with gift cards is deprecated. * - * Added in Saleor 3.22. + * Added in Saleor 3.23. */ - mountName?: InputMaybe>; + allowLegacyGiftCardUse?: InputMaybe; /** - * Plain-text target name (case insensitive) + * Settings for automatic completion of fully paid checkouts. * * Added in Saleor 3.22. */ - targetName?: InputMaybe; -}; - -export type AppFilterInput = { - isActive?: InputMaybe; - search?: InputMaybe; - type?: InputMaybe; -}; - -export type AppInput = { + automaticCompletion?: InputMaybe; /** - * Canonical app ID. If not provided, the identifier will be generated based on app.id. + * Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `authorize_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. * - * Added in Saleor 3.19. + * Added in Saleor 3.20. + * @deprecated Use `automatic_completion` instead. */ - identifier?: InputMaybe; - /** Name of the app. */ - name?: InputMaybe; - /** List of permission code names to assign to this app. */ - permissions?: InputMaybe>; -}; - -export type AppInstallInput = { - /** Determine if app will be set active or not. */ - activateAfterInstallation?: InputMaybe; - /** Name of the app to install. */ - appName?: InputMaybe; - /** URL to app's manifest in JSON format. */ - manifestUrl?: InputMaybe; - /** List of permission code names to assign to this app. */ - permissions?: InputMaybe>; -}; - -export enum AppSortField { - /** Sort apps by creation date. */ - CREATION_DATE = 'CREATION_DATE', - /** Sort apps by name. */ - NAME = 'NAME' -} - -export type AppSortingInput = { - /** Specifies the direction in which to sort apps. */ - direction: OrderDirection; - /** Sort apps by the selected field. */ - field: AppSortField; -}; - -export type AppTokenInput = { - /** ID of app. */ - app: Scalars['ID']; - /** Name of the token. */ - name?: InputMaybe; -}; - -/** 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' -} - -export enum AreaUnitsEnum { - SQ_CM = 'SQ_CM', - SQ_DM = 'SQ_DM', - SQ_FT = 'SQ_FT', - SQ_INCH = 'SQ_INCH', - SQ_KM = 'SQ_KM', - SQ_M = 'SQ_M', - SQ_MM = 'SQ_MM', - SQ_YD = 'SQ_YD' -} - -export type AssignedAttributeReferenceInput = { - /** Returns objects with a reference pointing to a category identified by the given slug. */ - categorySlugs?: InputMaybe; - /** Returns objects with a reference pointing to a collection identified by the given slug. */ - collectionSlugs?: InputMaybe; - /** Returns objects with a reference pointing to a page identified by the given slug. */ - pageSlugs?: InputMaybe; - /** Returns objects with a reference pointing to a product identified by the given slug. */ - productSlugs?: InputMaybe; - /** Returns objects with a reference pointing to a product variant identified by the given sku. */ - productVariantSkus?: InputMaybe; - /** Returns objects with a reference pointing to an object identified by the given ID. */ - referencedIds?: InputMaybe; -}; - -export type AssignedAttributeValueInput = { - /** Filter by boolean value for attributes of boolean type. */ - boolean?: InputMaybe; - /** Filter by date value for attributes of date type. */ - date?: InputMaybe; - /** Filter by date time value for attributes of date time type. */ - dateTime?: InputMaybe; - /** Filter by name assigned to AttributeValue. */ - name?: InputMaybe; - /** Filter by numeric value for attributes of numeric type. */ - numeric?: InputMaybe; - /** Filter by reference attribute value. */ - reference?: InputMaybe; - /** Filter by slug assigned to AttributeValue. */ - slug?: InputMaybe; -}; - -export type AssignedAttributeWhereInput = { - /** Filter by attribute slug. */ - slug?: InputMaybe; - /** Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. */ - value?: InputMaybe; -}; - -export enum AttributeBulkCreateErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - BLANK = 'BLANK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LENGTH = 'MAX_LENGTH', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type AttributeBulkTranslateInput = { - /** External reference of an attribute. */ - externalReference?: InputMaybe; - /** Attribute ID. */ - id?: InputMaybe; - /** Translation language code. */ - languageCode: LanguageCodeEnum; - /** Translation fields. */ - translationFields: NameTranslationInput; -}; - -export enum AttributeBulkUpdateErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - BLANK = 'BLANK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LENGTH = 'MAX_LENGTH', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type AttributeBulkUpdateInput = { - /** External ID of this attribute. */ - externalReference?: InputMaybe; - /** Fields to update. */ - fields: AttributeUpdateInput; - /** ID of an attribute to update. */ - id?: InputMaybe; + automaticallyCompleteFullyPaidCheckouts?: InputMaybe; + /** + * Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one. + * @deprecated Field no longer supported + */ + useLegacyErrorFlow?: InputMaybe; }; -export enum AttributeChoicesSortField { - /** Sort attribute choice by name. */ - NAME = 'NAME', - /** Sort attribute choice by slug. */ - SLUG = 'SLUG' -} - -export type AttributeChoicesSortingInput = { - /** Specifies the direction in which to sort attribute choices. */ - direction: OrderDirection; - /** Sort attribute choices by the selected field. */ - field: AttributeChoicesSortField; -}; +/** + * Represents country codes defined by the ISO 3166-1 alpha-2 standard. + * + * The `EU` value is DEPRECATED and will be removed in Saleor 3.21. + */ +export type CountryCode = + | 'AD' + | 'AE' + | 'AF' + | 'AG' + | 'AI' + | 'AL' + | 'AM' + | 'AO' + | 'AQ' + | 'AR' + | 'AS' + | 'AT' + | 'AU' + | 'AW' + | 'AX' + | 'AZ' + | 'BA' + | 'BB' + | 'BD' + | 'BE' + | 'BF' + | 'BG' + | 'BH' + | 'BI' + | 'BJ' + | 'BL' + | 'BM' + | 'BN' + | 'BO' + | 'BQ' + | 'BR' + | 'BS' + | 'BT' + | 'BV' + | 'BW' + | 'BY' + | 'BZ' + | 'CA' + | 'CC' + | 'CD' + | 'CF' + | 'CG' + | 'CH' + | 'CI' + | 'CK' + | 'CL' + | 'CM' + | 'CN' + | 'CO' + | 'CR' + | 'CU' + | 'CV' + | 'CW' + | 'CX' + | 'CY' + | 'CZ' + | 'DE' + | 'DJ' + | 'DK' + | 'DM' + | 'DO' + | 'DZ' + | 'EC' + | 'EE' + | 'EG' + | 'EH' + | 'ER' + | 'ES' + | 'ET' + | 'EU' + | 'FI' + | 'FJ' + | 'FK' + | 'FM' + | 'FO' + | 'FR' + | 'GA' + | 'GB' + | 'GD' + | 'GE' + | 'GF' + | 'GG' + | 'GH' + | 'GI' + | 'GL' + | 'GM' + | 'GN' + | 'GP' + | 'GQ' + | 'GR' + | 'GS' + | 'GT' + | 'GU' + | 'GW' + | 'GY' + | 'HK' + | 'HM' + | 'HN' + | 'HR' + | 'HT' + | 'HU' + | 'ID' + | 'IE' + | 'IL' + | 'IM' + | 'IN' + | 'IO' + | 'IQ' + | 'IR' + | 'IS' + | 'IT' + | 'JE' + | 'JM' + | 'JO' + | 'JP' + | 'KE' + | 'KG' + | 'KH' + | 'KI' + | 'KM' + | 'KN' + | 'KP' + | 'KR' + | 'KW' + | 'KY' + | 'KZ' + | 'LA' + | 'LB' + | 'LC' + | 'LI' + | 'LK' + | 'LR' + | 'LS' + | 'LT' + | 'LU' + | 'LV' + | 'LY' + | 'MA' + | 'MC' + | 'MD' + | 'ME' + | 'MF' + | 'MG' + | 'MH' + | 'MK' + | 'ML' + | 'MM' + | 'MN' + | 'MO' + | 'MP' + | 'MQ' + | 'MR' + | 'MS' + | 'MT' + | 'MU' + | 'MV' + | 'MW' + | 'MX' + | 'MY' + | 'MZ' + | 'NA' + | 'NC' + | 'NE' + | 'NF' + | 'NG' + | 'NI' + | 'NL' + | 'NO' + | 'NP' + | 'NR' + | 'NU' + | 'NZ' + | 'OM' + | 'PA' + | 'PE' + | 'PF' + | 'PG' + | 'PH' + | 'PK' + | 'PL' + | 'PM' + | 'PN' + | 'PR' + | 'PS' + | 'PT' + | 'PW' + | 'PY' + | 'QA' + | 'RE' + | 'RO' + | 'RS' + | 'RU' + | 'RW' + | 'SA' + | 'SB' + | 'SC' + | 'SD' + | 'SE' + | 'SG' + | 'SH' + | 'SI' + | 'SJ' + | 'SK' + | 'SL' + | 'SM' + | 'SN' + | 'SO' + | 'SR' + | 'SS' + | 'ST' + | 'SV' + | 'SX' + | 'SY' + | 'SZ' + | 'TC' + | 'TD' + | 'TF' + | 'TG' + | 'TH' + | 'TJ' + | 'TK' + | 'TL' + | 'TM' + | 'TN' + | 'TO' + | 'TR' + | 'TT' + | 'TV' + | 'TW' + | 'TZ' + | 'UA' + | 'UG' + | 'UM' + | 'US' + | 'UY' + | 'UZ' + | 'VA' + | 'VC' + | 'VE' + | 'VG' + | 'VI' + | 'VN' + | 'VU' + | 'WF' + | 'WS' + | 'XK' + | 'YE' + | 'YT' + | 'ZA' + | 'ZM' + | 'ZW'; + +export type LanguageCodeEnum = + | 'AF' + | 'AF_NA' + | 'AF_ZA' + | 'AGQ' + | 'AGQ_CM' + | 'AK' + | 'AK_GH' + | 'AM' + | 'AM_ET' + | 'AR' + | 'AR_AE' + | 'AR_BH' + | 'AR_DJ' + | 'AR_DZ' + | 'AR_EG' + | 'AR_EH' + | 'AR_ER' + | 'AR_IL' + | 'AR_IQ' + | 'AR_JO' + | 'AR_KM' + | 'AR_KW' + | 'AR_LB' + | 'AR_LY' + | 'AR_MA' + | 'AR_MR' + | 'AR_OM' + | 'AR_PS' + | 'AR_QA' + | 'AR_SA' + | 'AR_SD' + | 'AR_SO' + | 'AR_SS' + | 'AR_SY' + | 'AR_TD' + | 'AR_TN' + | 'AR_YE' + | 'AS' + | 'ASA' + | 'ASA_TZ' + | 'AST' + | 'AST_ES' + | 'AS_IN' + | 'AZ' + | 'AZ_CYRL' + | 'AZ_CYRL_AZ' + | 'AZ_LATN' + | 'AZ_LATN_AZ' + | 'BAS' + | 'BAS_CM' + | 'BE' + | 'BEM' + | 'BEM_ZM' + | 'BEZ' + | 'BEZ_TZ' + | 'BE_BY' + | 'BG' + | 'BG_BG' + | 'BM' + | 'BM_ML' + | 'BN' + | 'BN_BD' + | 'BN_IN' + | 'BO' + | 'BO_CN' + | 'BO_IN' + | 'BR' + | 'BRX' + | 'BRX_IN' + | 'BR_FR' + | 'BS' + | 'BS_CYRL' + | 'BS_CYRL_BA' + | 'BS_LATN' + | 'BS_LATN_BA' + | 'CA' + | 'CA_AD' + | 'CA_ES' + | 'CA_ES_VALENCIA' + | 'CA_FR' + | 'CA_IT' + | 'CCP' + | 'CCP_BD' + | 'CCP_IN' + | 'CE' + | 'CEB' + | 'CEB_PH' + | 'CE_RU' + | 'CGG' + | 'CGG_UG' + | 'CHR' + | 'CHR_US' + | 'CKB' + | 'CKB_IQ' + | 'CKB_IR' + | 'CS' + | 'CS_CZ' + | 'CU' + | 'CU_RU' + | 'CY' + | 'CY_GB' + | 'DA' + | 'DAV' + | 'DAV_KE' + | 'DA_DK' + | 'DA_GL' + | 'DE' + | 'DE_AT' + | 'DE_BE' + | 'DE_CH' + | 'DE_DE' + | 'DE_IT' + | 'DE_LI' + | 'DE_LU' + | 'DJE' + | 'DJE_NE' + | 'DSB' + | 'DSB_DE' + | 'DUA' + | 'DUA_CM' + | 'DYO' + | 'DYO_SN' + | 'DZ' + | 'DZ_BT' + | 'EBU' + | 'EBU_KE' + | 'EE' + | 'EE_GH' + | 'EE_TG' + | 'EL' + | 'EL_CY' + | 'EL_GR' + | 'EN' + | 'EN_AE' + | 'EN_AG' + | 'EN_AI' + | 'EN_AS' + | 'EN_AT' + | 'EN_AU' + | 'EN_BB' + | 'EN_BE' + | 'EN_BI' + | 'EN_BM' + | 'EN_BS' + | 'EN_BW' + | 'EN_BZ' + | 'EN_CA' + | 'EN_CC' + | 'EN_CH' + | 'EN_CK' + | 'EN_CM' + | 'EN_CX' + | 'EN_CY' + | 'EN_DE' + | 'EN_DG' + | 'EN_DK' + | 'EN_DM' + | 'EN_ER' + | 'EN_FI' + | 'EN_FJ' + | 'EN_FK' + | 'EN_FM' + | 'EN_GB' + | 'EN_GD' + | 'EN_GG' + | 'EN_GH' + | 'EN_GI' + | 'EN_GM' + | 'EN_GU' + | 'EN_GY' + | 'EN_HK' + | 'EN_IE' + | 'EN_IL' + | 'EN_IM' + | 'EN_IN' + | 'EN_IO' + | 'EN_JE' + | 'EN_JM' + | 'EN_KE' + | 'EN_KI' + | 'EN_KN' + | 'EN_KY' + | 'EN_LC' + | 'EN_LR' + | 'EN_LS' + | 'EN_MG' + | 'EN_MH' + | 'EN_MO' + | 'EN_MP' + | 'EN_MS' + | 'EN_MT' + | 'EN_MU' + | 'EN_MW' + | 'EN_MY' + | 'EN_NA' + | 'EN_NF' + | 'EN_NG' + | 'EN_NL' + | 'EN_NR' + | 'EN_NU' + | 'EN_NZ' + | 'EN_PG' + | 'EN_PH' + | 'EN_PK' + | 'EN_PN' + | 'EN_PR' + | 'EN_PW' + | 'EN_RW' + | 'EN_SB' + | 'EN_SC' + | 'EN_SD' + | 'EN_SE' + | 'EN_SG' + | 'EN_SH' + | 'EN_SI' + | 'EN_SL' + | 'EN_SS' + | 'EN_SX' + | 'EN_SZ' + | 'EN_TC' + | 'EN_TK' + | 'EN_TO' + | 'EN_TT' + | 'EN_TV' + | 'EN_TZ' + | 'EN_UG' + | 'EN_UM' + | 'EN_US' + | 'EN_VC' + | 'EN_VG' + | 'EN_VI' + | 'EN_VU' + | 'EN_WS' + | 'EN_ZA' + | 'EN_ZM' + | 'EN_ZW' + | 'EO' + | 'ES' + | 'ES_AR' + | 'ES_BO' + | 'ES_BR' + | 'ES_BZ' + | 'ES_CL' + | 'ES_CO' + | 'ES_CR' + | 'ES_CU' + | 'ES_DO' + | 'ES_EA' + | 'ES_EC' + | 'ES_ES' + | 'ES_GQ' + | 'ES_GT' + | 'ES_HN' + | 'ES_IC' + | 'ES_MX' + | 'ES_NI' + | 'ES_PA' + | 'ES_PE' + | 'ES_PH' + | 'ES_PR' + | 'ES_PY' + | 'ES_SV' + | 'ES_US' + | 'ES_UY' + | 'ES_VE' + | 'ET' + | 'ET_EE' + | 'EU' + | 'EU_ES' + | 'EWO' + | 'EWO_CM' + | 'FA' + | 'FA_AF' + | 'FA_IR' + | 'FF' + | 'FF_ADLM' + | 'FF_ADLM_BF' + | 'FF_ADLM_CM' + | 'FF_ADLM_GH' + | 'FF_ADLM_GM' + | 'FF_ADLM_GN' + | 'FF_ADLM_GW' + | 'FF_ADLM_LR' + | 'FF_ADLM_MR' + | 'FF_ADLM_NE' + | 'FF_ADLM_NG' + | 'FF_ADLM_SL' + | 'FF_ADLM_SN' + | 'FF_LATN' + | 'FF_LATN_BF' + | 'FF_LATN_CM' + | 'FF_LATN_GH' + | 'FF_LATN_GM' + | 'FF_LATN_GN' + | 'FF_LATN_GW' + | 'FF_LATN_LR' + | 'FF_LATN_MR' + | 'FF_LATN_NE' + | 'FF_LATN_NG' + | 'FF_LATN_SL' + | 'FF_LATN_SN' + | 'FI' + | 'FIL' + | 'FIL_PH' + | 'FI_FI' + | 'FO' + | 'FO_DK' + | 'FO_FO' + | 'FR' + | 'FR_BE' + | 'FR_BF' + | 'FR_BI' + | 'FR_BJ' + | 'FR_BL' + | 'FR_CA' + | 'FR_CD' + | 'FR_CF' + | 'FR_CG' + | 'FR_CH' + | 'FR_CI' + | 'FR_CM' + | 'FR_DJ' + | 'FR_DZ' + | 'FR_FR' + | 'FR_GA' + | 'FR_GF' + | 'FR_GN' + | 'FR_GP' + | 'FR_GQ' + | 'FR_HT' + | 'FR_KM' + | 'FR_LU' + | 'FR_MA' + | 'FR_MC' + | 'FR_MF' + | 'FR_MG' + | 'FR_ML' + | 'FR_MQ' + | 'FR_MR' + | 'FR_MU' + | 'FR_NC' + | 'FR_NE' + | 'FR_PF' + | 'FR_PM' + | 'FR_RE' + | 'FR_RW' + | 'FR_SC' + | 'FR_SN' + | 'FR_SY' + | 'FR_TD' + | 'FR_TG' + | 'FR_TN' + | 'FR_VU' + | 'FR_WF' + | 'FR_YT' + | 'FUR' + | 'FUR_IT' + | 'FY' + | 'FY_NL' + | 'GA' + | 'GA_GB' + | 'GA_IE' + | 'GD' + | 'GD_GB' + | 'GL' + | 'GL_ES' + | 'GSW' + | 'GSW_CH' + | 'GSW_FR' + | 'GSW_LI' + | 'GU' + | 'GUZ' + | 'GUZ_KE' + | 'GU_IN' + | 'GV' + | 'GV_IM' + | 'HA' + | 'HAW' + | 'HAW_US' + | 'HA_GH' + | 'HA_NE' + | 'HA_NG' + | 'HE' + | 'HE_IL' + | 'HI' + | 'HI_IN' + | 'HR' + | 'HR_BA' + | 'HR_HR' + | 'HSB' + | 'HSB_DE' + | 'HU' + | 'HU_HU' + | 'HY' + | 'HY_AM' + | 'IA' + | 'ID' + | 'ID_ID' + | 'IG' + | 'IG_NG' + | 'II' + | 'II_CN' + | 'IS' + | 'IS_IS' + | 'IT' + | 'IT_CH' + | 'IT_IT' + | 'IT_SM' + | 'IT_VA' + | 'JA' + | 'JA_JP' + | 'JGO' + | 'JGO_CM' + | 'JMC' + | 'JMC_TZ' + | 'JV' + | 'JV_ID' + | 'KA' + | 'KAB' + | 'KAB_DZ' + | 'KAM' + | 'KAM_KE' + | 'KA_GE' + | 'KDE' + | 'KDE_TZ' + | 'KEA' + | 'KEA_CV' + | 'KHQ' + | 'KHQ_ML' + | 'KI' + | 'KI_KE' + | 'KK' + | 'KKJ' + | 'KKJ_CM' + | 'KK_KZ' + | 'KL' + | 'KLN' + | 'KLN_KE' + | 'KL_GL' + | 'KM' + | 'KM_KH' + | 'KN' + | 'KN_IN' + | 'KO' + | 'KOK' + | 'KOK_IN' + | 'KO_KP' + | 'KO_KR' + | 'KS' + | 'KSB' + | 'KSB_TZ' + | 'KSF' + | 'KSF_CM' + | 'KSH' + | 'KSH_DE' + | 'KS_ARAB' + | 'KS_ARAB_IN' + | 'KU' + | 'KU_TR' + | 'KW' + | 'KW_GB' + | 'KY' + | 'KY_KG' + | 'LAG' + | 'LAG_TZ' + | 'LB' + | 'LB_LU' + | 'LG' + | 'LG_UG' + | 'LKT' + | 'LKT_US' + | 'LN' + | 'LN_AO' + | 'LN_CD' + | 'LN_CF' + | 'LN_CG' + | 'LO' + | 'LO_LA' + | 'LRC' + | 'LRC_IQ' + | 'LRC_IR' + | 'LT' + | 'LT_LT' + | 'LU' + | 'LUO' + | 'LUO_KE' + | 'LUY' + | 'LUY_KE' + | 'LU_CD' + | 'LV' + | 'LV_LV' + | 'MAI' + | 'MAI_IN' + | 'MAS' + | 'MAS_KE' + | 'MAS_TZ' + | 'MER' + | 'MER_KE' + | 'MFE' + | 'MFE_MU' + | 'MG' + | 'MGH' + | 'MGH_MZ' + | 'MGO' + | 'MGO_CM' + | 'MG_MG' + | 'MI' + | 'MI_NZ' + | 'MK' + | 'MK_MK' + | 'ML' + | 'ML_IN' + | 'MN' + | 'MNI' + | 'MNI_BENG' + | 'MNI_BENG_IN' + | 'MN_MN' + | 'MR' + | 'MR_IN' + | 'MS' + | 'MS_BN' + | 'MS_ID' + | 'MS_MY' + | 'MS_SG' + | 'MT' + | 'MT_MT' + | 'MUA' + | 'MUA_CM' + | 'MY' + | 'MY_MM' + | 'MZN' + | 'MZN_IR' + | 'NAQ' + | 'NAQ_NA' + | 'NB' + | 'NB_NO' + | 'NB_SJ' + | 'ND' + | 'NDS' + | 'NDS_DE' + | 'NDS_NL' + | 'ND_ZW' + | 'NE' + | 'NE_IN' + | 'NE_NP' + | 'NL' + | 'NL_AW' + | 'NL_BE' + | 'NL_BQ' + | 'NL_CW' + | 'NL_NL' + | 'NL_SR' + | 'NL_SX' + | 'NMG' + | 'NMG_CM' + | 'NN' + | 'NNH' + | 'NNH_CM' + | 'NN_NO' + | 'NUS' + | 'NUS_SS' + | 'NYN' + | 'NYN_UG' + | 'OM' + | 'OM_ET' + | 'OM_KE' + | 'OR' + | 'OR_IN' + | 'OS' + | 'OS_GE' + | 'OS_RU' + | 'PA' + | 'PA_ARAB' + | 'PA_ARAB_PK' + | 'PA_GURU' + | 'PA_GURU_IN' + | 'PCM' + | 'PCM_NG' + | 'PL' + | 'PL_PL' + | 'PRG' + | 'PS' + | 'PS_AF' + | 'PS_PK' + | 'PT' + | 'PT_AO' + | 'PT_BR' + | 'PT_CH' + | 'PT_CV' + | 'PT_GQ' + | 'PT_GW' + | 'PT_LU' + | 'PT_MO' + | 'PT_MZ' + | 'PT_PT' + | 'PT_ST' + | 'PT_TL' + | 'QU' + | 'QU_BO' + | 'QU_EC' + | 'QU_PE' + | 'RM' + | 'RM_CH' + | 'RN' + | 'RN_BI' + | 'RO' + | 'ROF' + | 'ROF_TZ' + | 'RO_MD' + | 'RO_RO' + | 'RU' + | 'RU_BY' + | 'RU_KG' + | 'RU_KZ' + | 'RU_MD' + | 'RU_RU' + | 'RU_UA' + | 'RW' + | 'RWK' + | 'RWK_TZ' + | 'RW_RW' + | 'SAH' + | 'SAH_RU' + | 'SAQ' + | 'SAQ_KE' + | 'SAT' + | 'SAT_OLCK' + | 'SAT_OLCK_IN' + | 'SBP' + | 'SBP_TZ' + | 'SD' + | 'SD_ARAB' + | 'SD_ARAB_PK' + | 'SD_DEVA' + | 'SD_DEVA_IN' + | 'SE' + | 'SEH' + | 'SEH_MZ' + | 'SES' + | 'SES_ML' + | 'SE_FI' + | 'SE_NO' + | 'SE_SE' + | 'SG' + | 'SG_CF' + | 'SHI' + | 'SHI_LATN' + | 'SHI_LATN_MA' + | 'SHI_TFNG' + | 'SHI_TFNG_MA' + | 'SI' + | 'SI_LK' + | 'SK' + | 'SK_SK' + | 'SL' + | 'SL_SI' + | 'SMN' + | 'SMN_FI' + | 'SN' + | 'SN_ZW' + | 'SO' + | 'SO_DJ' + | 'SO_ET' + | 'SO_KE' + | 'SO_SO' + | 'SQ' + | 'SQ_AL' + | 'SQ_MK' + | 'SQ_XK' + | 'SR' + | 'SR_CYRL' + | 'SR_CYRL_BA' + | 'SR_CYRL_ME' + | 'SR_CYRL_RS' + | 'SR_CYRL_XK' + | 'SR_LATN' + | 'SR_LATN_BA' + | 'SR_LATN_ME' + | 'SR_LATN_RS' + | 'SR_LATN_XK' + | 'SU' + | 'SU_LATN' + | 'SU_LATN_ID' + | 'SV' + | 'SV_AX' + | 'SV_FI' + | 'SV_SE' + | 'SW' + | 'SW_CD' + | 'SW_KE' + | 'SW_TZ' + | 'SW_UG' + | 'TA' + | 'TA_IN' + | 'TA_LK' + | 'TA_MY' + | 'TA_SG' + | 'TE' + | 'TEO' + | 'TEO_KE' + | 'TEO_UG' + | 'TE_IN' + | 'TG' + | 'TG_TJ' + | 'TH' + | 'TH_TH' + | 'TI' + | 'TI_ER' + | 'TI_ET' + | 'TK' + | 'TK_TM' + | 'TO' + | 'TO_TO' + | 'TR' + | 'TR_CY' + | 'TR_TR' + | 'TT' + | 'TT_RU' + | 'TWQ' + | 'TWQ_NE' + | 'TZM' + | 'TZM_MA' + | 'UG' + | 'UG_CN' + | 'UK' + | 'UK_UA' + | 'UR' + | 'UR_IN' + | 'UR_PK' + | 'UZ' + | 'UZ_ARAB' + | 'UZ_ARAB_AF' + | 'UZ_CYRL' + | 'UZ_CYRL_UZ' + | 'UZ_LATN' + | 'UZ_LATN_UZ' + | 'VAI' + | 'VAI_LATN' + | 'VAI_LATN_LR' + | 'VAI_VAII' + | 'VAI_VAII_LR' + | 'VI' + | 'VI_VN' + | 'VO' + | 'VUN' + | 'VUN_TZ' + | 'WAE' + | 'WAE_CH' + | 'WO' + | 'WO_SN' + | 'XH' + | 'XH_ZA' + | 'XOG' + | 'XOG_UG' + | 'YAV' + | 'YAV_CM' + | 'YI' + | 'YO' + | 'YO_BJ' + | 'YO_NG' + | 'YUE' + | 'YUE_HANS' + | 'YUE_HANS_CN' + | 'YUE_HANT' + | 'YUE_HANT_HK' + | 'ZGH' + | 'ZGH_MA' + | 'ZH' + | 'ZH_HANS' + | 'ZH_HANS_CN' + | 'ZH_HANS_HK' + | 'ZH_HANS_MO' + | 'ZH_HANS_SG' + | 'ZH_HANT' + | 'ZH_HANT_HK' + | 'ZH_HANT_MO' + | 'ZH_HANT_TW' + | 'ZU' + | 'ZU_ZA'; /** - * Represents an input for create of attribute. + * Determine the mark as paid strategy for the channel. + * + * TRANSACTION_FLOW - new orders marked as paid will receive a + * `TransactionItem` object, that will cover the `order.total`. * - * NOTE: Deprecated fields `filterableInStorefront`, `storefrontSearchPosition` and `availableInGrid` are not supported in bulk mutations: `attributeBulkCreate`, `attributeBulkUpdate`. + * PAYMENT_FLOW - new orders marked as paid will receive a + * `Payment` object, that will cover the `order.total`. */ -export type AttributeCreateInput = { - /** - * Whether the attribute can be displayed in the admin product list. - * @deprecated Field no longer supported - */ - availableInGrid?: InputMaybe; - /** The entity type which can be used as a reference. */ - entityType?: InputMaybe; - /** External ID of this attribute. */ - externalReference?: InputMaybe; - /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; +export type MarkAsPaidStrategyEnum = + | 'PAYMENT_FLOW' + | 'TRANSACTION_FLOW'; + +export type MeasurementUnitsEnum = + | 'ACRE_FT' + | 'ACRE_IN' + | 'CM' + | 'CUBIC_CENTIMETER' + | 'CUBIC_DECIMETER' + | 'CUBIC_FOOT' + | 'CUBIC_INCH' + | 'CUBIC_METER' + | 'CUBIC_MILLIMETER' + | 'CUBIC_YARD' + | 'DM' + | 'FL_OZ' + | 'FT' + | 'G' + | 'INCH' + | 'KG' + | 'KM' + | 'LB' + | 'LITER' + | 'M' + | 'MM' + | 'OZ' + | 'PINT' + | 'QT' + | 'SQ_CM' + | 'SQ_DM' + | 'SQ_FT' + | 'SQ_INCH' + | 'SQ_KM' + | 'SQ_M' + | 'SQ_MM' + | 'SQ_YD' + | 'TONNE' + | 'YD'; + +export type MetadataInput = { + /** Key of a metadata item. */ + key: Scalars['String']['input']; + /** Value of a metadata item. */ + value: Scalars['String']['input']; +}; + +export type OrderSettingsInput = { + /** Determine if it is possible to place unpaid order by calling `checkoutComplete` mutation. */ + allowUnpaidOrders?: InputMaybe; + /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ + automaticallyConfirmAllNewOrders?: InputMaybe; + /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ + automaticallyFulfillNonShippableGiftCard?: InputMaybe; + /** The time in days after expired orders will be deleted.Allowed range is from 1 to 120. */ + deleteExpiredOrdersAfter?: InputMaybe; /** - * Whether the attribute can be filtered in storefront. - * @deprecated Field no longer supported + * Time in hours after which the draft order line price will be refreshed. Default value is 24 hours. Enter 0 or null to disable. + * + * Added in Saleor 3.21. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - filterableInStorefront?: InputMaybe; - /** The input type to use for entering attribute values in the dashboard. */ - inputType?: InputMaybe; - /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; - /** Name of an attribute displayed in the interface. */ - name: Scalars['String']; + draftOrderLinePriceFreezePeriod?: InputMaybe; + /** Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable. */ + expireOrdersAfter?: InputMaybe; /** - * Specifies reference types to narrow down the choices of reference objects. Applicable only for `REFERENCE` and `SINGLE_REFERENCE` attributes with `PRODUCT`, `PRODUCT_VARIANT` and `PAGE` entity types. Accepts `ProductType` IDs for `PRODUCT` and `PRODUCT_VARIANT` entity types, and `PageType` IDs for `PAGE` entity type. If omitted, all objects of the selected entity type are available as attribute values. + * Specify whether a coupon applied to draft orders will count toward voucher usage. * - * A maximum of 100 reference types can be specified. + * Warning: when switching this setting from `false` to `true`, the vouchers will be disconnected from all draft orders. * - * Added in Saleor 3.22. + * Added in Saleor 3.18. + * + * Note: this API is currently in Feature Preview and can be subject to changes at later point. */ - referenceTypes?: InputMaybe>; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; + includeDraftOrderInVoucherUsage?: InputMaybe; /** - * The position of the attribute in the storefront navigation (0 by default). - * @deprecated Field no longer supported + * Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. + * `PAYMENT_FLOW` - [default option] creates the `Payment` object. + * `TRANSACTION_FLOW` - creates the `TransactionItem` object. */ - storefrontSearchPosition?: InputMaybe; - /** The attribute type. */ - type: AttributeTypeEnum; - /** The unit of attribute values. */ - unit?: InputMaybe; - /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; - /** List of attribute's values. */ - values?: InputMaybe>; - /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; -}; - -export enum AttributeEntityTypeEnum { - CATEGORY = 'CATEGORY', - COLLECTION = 'COLLECTION', - PAGE = 'PAGE', - PRODUCT = 'PRODUCT', - PRODUCT_VARIANT = 'PRODUCT_VARIANT' -} - -export type AttributeEntityTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum AttributeErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type AttributeFilterInput = { - availableInGrid?: InputMaybe; + markAsPaidStrategy?: InputMaybe; /** - * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. + * This flag only affects orders created from checkout and applies specifically to vouchers of the types: `SPECIFIC_PRODUCT` and `ENTIRE_ORDER` with `applyOncePerOrder` enabled. + * - When legacy propagation is enabled, discounts from these vouchers are represented as `OrderDiscount` objects, attached to the order and returned in the `Order.discounts` field. Additionally, percentage-based vouchers are converted to fixed-value discounts. + * - When legacy propagation is disabled, discounts are represented as `OrderLineDiscount` objects, attached to individual lines and returned in the `OrderLine.discounts` field. In this case, percentage-based vouchers retain their original type. + * In future releases, `OrderLineDiscount` will become the default behavior, and this flag will be deprecated and removed. + * + * Added in Saleor 3.21. */ - channel?: InputMaybe; - filterableInDashboard?: InputMaybe; - filterableInStorefront?: InputMaybe; - ids?: InputMaybe>; - inCategory?: InputMaybe; - inCollection?: InputMaybe; - isVariantOnly?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; - type?: InputMaybe; - valueRequired?: InputMaybe; - visibleInStorefront?: InputMaybe; + useLegacyLineDiscountPropagation?: InputMaybe; }; -export type AttributeInput = { - /** - * The boolean value of the attribute. Requires `slug` to be provided. - * @deprecated Use `value` instead. - */ - boolean?: InputMaybe; - /** - * The date range that the returned values should be in. In case of date/time attributes, the UTC midnight of the given date is used. Requires `slug` to be provided. - * @deprecated Use `value` instead. - */ - date?: InputMaybe; +export type PaymentSettingsInput = { /** - * The date/time range that the returned values should be in. Requires `slug` to be provided. - * @deprecated Use `value` instead. + * Specifies the earliest date on which funds for expired checkouts can begin to be released. Expired checkouts dated before this cut-off will not have their funds released. Additionally, no funds will be released for checkouts that are more than one year old, regardless of the cut-off date. + * + * Added in Saleor 3.20. */ - dateTime?: InputMaybe; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** Filter by value of the attribute. Only one value input field is allowed. If provided more than one, the error will be raised. Cannot be combined with deprecated fields of `AttributeInput`. */ - value?: InputMaybe; + checkoutReleaseFundsCutOffDate?: InputMaybe; /** - * Slugs identifying the attributeValues associated with the Attribute. When specified, it filters the results to include only records with one of the matching values. Requires `slug` to be provided. - * @deprecated Use `value` instead. + * The time in hours after which funds for expired checkouts will be released. + * + * Added in Saleor 3.20. */ - values?: InputMaybe>; + checkoutTtlBeforeReleasingFunds?: InputMaybe; + /** Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction. */ + defaultTransactionFlowStrategy?: InputMaybe; /** - * The range that the returned values should be in. Requires `slug` to be provided. - * @deprecated Use `value` instead. + * Determine if the funds for expired checkouts should be released automatically. + * + * Added in Saleor 3.20. */ - valuesRange?: InputMaybe; -}; - -export enum AttributeInputTypeEnum { - BOOLEAN = 'BOOLEAN', - DATE = 'DATE', - DATE_TIME = 'DATE_TIME', - DROPDOWN = 'DROPDOWN', - FILE = 'FILE', - MULTISELECT = 'MULTISELECT', - NUMERIC = 'NUMERIC', - PLAIN_TEXT = 'PLAIN_TEXT', - REFERENCE = 'REFERENCE', - RICH_TEXT = 'RICH_TEXT', - SINGLE_REFERENCE = 'SINGLE_REFERENCE', - SWATCH = 'SWATCH' -} - -export type AttributeInputTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; + releaseFundsForExpiredCheckouts?: InputMaybe; }; -export enum AttributeSortField { - /** Sort attributes based on whether they can be displayed or not in a product grid. */ - AVAILABLE_IN_GRID = 'AVAILABLE_IN_GRID', - /** Sort attributes by the filterable in dashboard flag */ - FILTERABLE_IN_DASHBOARD = 'FILTERABLE_IN_DASHBOARD', - /** Sort attributes by the filterable in storefront flag */ - FILTERABLE_IN_STOREFRONT = 'FILTERABLE_IN_STOREFRONT', - /** Sort attributes by the variant only flag */ - IS_VARIANT_ONLY = 'IS_VARIANT_ONLY', - /** Sort attributes by name */ - NAME = 'NAME', - /** Sort attributes by slug */ - SLUG = 'SLUG', - /** Sort attributes by their position in storefront */ - STOREFRONT_SEARCH_POSITION = 'STOREFRONT_SEARCH_POSITION', - /** Sort attributes by the value required flag */ - VALUE_REQUIRED = 'VALUE_REQUIRED', - /** Sort attributes by visibility in the storefront */ - VISIBLE_IN_STOREFRONT = 'VISIBLE_IN_STOREFRONT' -} +export type PostalCodeRuleInclusionTypeEnum = + | 'EXCLUDE' + | 'INCLUDE'; -export type AttributeSortingInput = { - /** Specifies the direction in which to sort attributes. */ - direction: OrderDirection; - /** Sort attributes by the selected field. */ - field: AttributeSortField; -}; +export type ProductMediaType = + | 'IMAGE' + | 'VIDEO'; -export enum AttributeTranslateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} +export type ProductTypeKindEnum = + | 'GIFT_CARD' + | 'NORMAL'; -export enum AttributeTypeEnum { - PAGE_TYPE = 'PAGE_TYPE', - PRODUCT_TYPE = 'PRODUCT_TYPE' -} +export type ShippingMethodTypeEnum = + | 'PRICE' + | 'WEIGHT'; -export type AttributeTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; +export type StockSettingsInput = { + /** Allocation strategy options. Strategy defines the preference of warehouses for allocations and reservations. */ + allocationStrategy: AllocationStrategyEnum; }; +export type TaxCalculationStrategy = + | 'FLAT_RATES' + | 'TAX_APP'; + /** - * Represents an input for update of attribute. + * Determine the transaction flow strategy. * - * NOTE: Deprecated fields `filterableInStorefront`, `storefrontSearchPosition` and `availableInGrid` are not supported in bulk mutations: `attributeBulkCreate`, `attributeBulkUpdate`. + * AUTHORIZATION - the processed transaction should be only authorized + * CHARGE - the processed transaction should be charged. */ -export type AttributeUpdateInput = { - /** New values to be created for this attribute. */ - addValues?: InputMaybe>; - /** - * Whether the attribute can be displayed in the admin product list. - * @deprecated Field no longer supported - */ - availableInGrid?: InputMaybe; - /** External ID of this product. */ - externalReference?: InputMaybe; - /** Whether the attribute can be filtered in dashboard. */ - filterableInDashboard?: InputMaybe; - /** - * Whether the attribute can be filtered in storefront. - * @deprecated Field no longer supported - */ - filterableInStorefront?: InputMaybe; - /** Whether the attribute is for variants only. */ - isVariantOnly?: InputMaybe; - /** Name of an attribute displayed in the interface. */ - name?: InputMaybe; - /** - * Specifies reference types to narrow down the choices of reference objects. Applicable only for `REFERENCE` and `SINGLE_REFERENCE` attributes with `PRODUCT`, `PRODUCT_VARIANT` and `PAGE` entity types. Accepts `ProductType` IDs for `PRODUCT` and `PRODUCT_VARIANT` entity types, and `PageType` IDs for `PAGE` entity type. If omitted, all objects of the selected entity type are available as attribute values. - * - * A maximum of 100 reference types can be specified. - * - * Added in Saleor 3.22. - */ - referenceTypes?: InputMaybe>; - /** IDs of values to be removed from this attribute. */ - removeValues?: InputMaybe>; - /** Internal representation of an attribute name. */ - slug?: InputMaybe; - /** - * The position of the attribute in the storefront navigation (0 by default). - * @deprecated Field no longer supported - */ - storefrontSearchPosition?: InputMaybe; - /** The unit of attribute values. */ - unit?: InputMaybe; - /** Whether the attribute requires values to be passed or not. */ - valueRequired?: InputMaybe; - /** Whether the attribute should be visible or not in storefront. */ - visibleInStorefront?: InputMaybe; -}; - -export type AttributeValueBulkTranslateInput = { - /** External reference of an attribute value. */ - externalReference?: InputMaybe; - /** Attribute value ID. */ - id?: InputMaybe; - /** Translation language code. */ - languageCode: LanguageCodeEnum; - /** Translation fields. */ - translationFields: AttributeValueTranslationInput; -}; - -export type AttributeValueCreateInput = { - /** File content type. */ - contentType?: InputMaybe; - /** External ID of this attribute value. */ - externalReference?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; - /** Name of a value displayed in the interface. */ - name: Scalars['String']; - /** - * Represents the text of the attribute value, plain text without formatting. - * @deprecated The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - plainText?: InputMaybe; - /** - * Represents the text of the attribute value, includes formatting. - * - * Rich text format. For reference see https://editorjs.io/ - * @deprecated The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - richText?: InputMaybe; - /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; -}; - -export type AttributeValueFilterInput = { - ids?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; -}; - -export type AttributeValueInput = { - /** Represents the boolean value of the attribute value. */ - boolean?: InputMaybe; - /** File content type. */ - contentType?: InputMaybe; - /** Represents the date value of the attribute value. */ - date?: InputMaybe; - /** Represents the date/time value of the attribute value. */ - dateTime?: InputMaybe; - /** Attribute value ID or external reference. */ - dropdown?: InputMaybe; - /** External ID of this attribute. */ - externalReference?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - file?: InputMaybe; - /** ID of the selected attribute. */ - id?: InputMaybe; - /** List of attribute value IDs or external references. */ - multiselect?: InputMaybe>; - /** Numeric value of an attribute. */ - numeric?: InputMaybe; - /** Plain text content. */ - plainText?: InputMaybe; - /** - * ID of the referenced entity for single reference attribute. - * - * Added in Saleor 3.22. - */ - reference?: InputMaybe; - /** List of entity IDs that will be used as references. */ - references?: InputMaybe>; - /** Text content in JSON format. */ - richText?: InputMaybe; - /** Attribute value ID or external reference. */ - swatch?: InputMaybe; - /** - * The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. - * @deprecated Field no longer supported - */ - values?: InputMaybe>; -}; - -/** - * Represents attribute value. - * 1. If ID is provided, then attribute value will be resolved by ID. - * 2. If externalReference is provided, then attribute value will be resolved by external reference. - * 3. If value is provided, then attribute value will be resolved by value. If this attribute value doesn't exist, then it will be created. - * 4. If externalReference and value is provided then new attribute value will be created. - */ -export type AttributeValueSelectableTypeInput = { - /** External reference of an attribute value. */ - externalReference?: InputMaybe; - /** ID of an attribute value. */ - id?: InputMaybe; - /** The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. */ - value?: InputMaybe; -}; - -export enum AttributeValueTranslateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export type AttributeValueTranslationInput = { - name?: InputMaybe; - /** Translated text. */ - plainText?: InputMaybe; - /** - * Translated text. - * - * Rich text format. For reference see https://editorjs.io/ - */ - richText?: InputMaybe; -}; - -export type AttributeValueUpdateInput = { - /** File content type. */ - contentType?: InputMaybe; - /** External ID of this attribute value. */ - externalReference?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - fileUrl?: InputMaybe; - /** Name of a value displayed in the interface. */ - name?: InputMaybe; - /** - * Represents the text of the attribute value, plain text without formatting. - * @deprecated The plain text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - plainText?: InputMaybe; - /** - * Represents the text of the attribute value, includes formatting. - * - * Rich text format. For reference see https://editorjs.io/ - * @deprecated The rich text attribute hasn't got predefined value, so can be specified only from instance that supports the given attribute. - */ - richText?: InputMaybe; - /** Represent value of the attribute value (e.g. color values for swatch attributes). */ - value?: InputMaybe; -}; - -/** Where filtering options for attribute values. */ -export type AttributeValueWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - ids?: InputMaybe>; - name?: InputMaybe; - slug?: InputMaybe; -}; - -/** Where filtering options. */ -export type AttributeWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - entityType?: InputMaybe; - filterableInDashboard?: InputMaybe; - ids?: InputMaybe>; - inCategory?: InputMaybe; - inCollection?: InputMaybe; - inputType?: InputMaybe; - metadata?: InputMaybe>; - name?: InputMaybe; - slug?: InputMaybe; - type?: InputMaybe; - unit?: InputMaybe; - valueRequired?: InputMaybe; - visibleInStorefront?: InputMaybe; - withChoices?: InputMaybe; -}; - -export type BulkAttributeValueInput = { - /** The boolean value of an attribute to resolve. If the passed value is non-existent, it will be created. */ - boolean?: InputMaybe; - /** File content type. */ - contentType?: InputMaybe; - /** Represents the date value of the attribute value. */ - date?: InputMaybe; - /** Represents the date/time value of the attribute value. */ - dateTime?: InputMaybe; - /** Attribute value ID. */ - dropdown?: InputMaybe; - /** External ID of this attribute. */ - externalReference?: InputMaybe; - /** URL of the file attribute. Every time, a new value is created. */ - file?: InputMaybe; - /** ID of the selected attribute. */ - id?: InputMaybe; - /** List of attribute value IDs. */ - multiselect?: InputMaybe>; - /** Numeric value of an attribute. */ - numeric?: InputMaybe; - /** Plain text content. */ - plainText?: InputMaybe; - /** - * ID of the referenced entity for single reference attribute. - * - * Added in Saleor 3.22. - */ - reference?: InputMaybe; - /** List of entity IDs that will be used as references. */ - references?: InputMaybe>; - /** Text content in JSON format. */ - richText?: InputMaybe; - /** Attribute value ID. */ - swatch?: InputMaybe; - /** - * The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created. - * @deprecated Field no longer supported - */ - values?: InputMaybe>; -}; - -export type CardInput = { - /** Payment method nonce, a token returned by the appropriate provider's SDK. */ - code: Scalars['String']; - /** Card security code. */ - cvc?: InputMaybe; - /** Information about currency and amount. */ - money: MoneyInput; -}; - -export type CardPaymentMethodDetailsInput = { - /** Brand of the payment method used for the transaction. Max length is 40 characters. */ - brand?: InputMaybe; - /** Expiration month of the card used for the transaction. Value must be between 1 and 12. */ - expMonth?: InputMaybe; - /** Expiration year of the card used for the transaction. Value must be between 2000 and 9999. */ - expYear?: InputMaybe; - /** First digits of the card used for the transaction. Max length is 4 characters. */ - firstDigits?: InputMaybe; - /** Last digits of the card used for the transaction. Max length is 4 characters. */ - lastDigits?: InputMaybe; - /** Name of the payment method used for the transaction. Max length is 256 characters. */ - name: Scalars['String']; -}; - -export type CatalogueInput = { - /** Categories related to the discount. */ - categories?: InputMaybe>; - /** Collections related to the discount. */ - collections?: InputMaybe>; - /** Products related to the discount. */ - products?: InputMaybe>; - /** Product variant related to the discount. */ - variants?: InputMaybe>; -}; - -export type CataloguePredicateInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Defines the category conditions to be met. */ - categoryPredicate?: InputMaybe; - /** Defines the collection conditions to be met. */ - collectionPredicate?: InputMaybe; - /** Defines the product conditions to be met. */ - productPredicate?: InputMaybe; - /** Defines the product variant conditions to be met. */ - variantPredicate?: InputMaybe; -}; - -export type CategoryFilterInput = { - ids?: InputMaybe>; - metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; -}; - -export type CategoryInput = { - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for a product media. */ - backgroundImageAlt?: InputMaybe; - /** - * Category description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** - * Fields required to update the category metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Category name. */ - name?: InputMaybe; - /** - * Fields required to update the category private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Category slug. */ - slug?: InputMaybe; -}; - -export enum CategorySortField { - /** Sort categories by name. */ - NAME = 'NAME', - /** Sort categories by product count. */ - PRODUCT_COUNT = 'PRODUCT_COUNT', - /** Sort categories by subcategory count. */ - SUBCATEGORY_COUNT = 'SUBCATEGORY_COUNT' -} - -export type CategorySortingInput = { - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort categories. */ - direction: OrderDirection; - /** Sort categories by the selected field. */ - field: CategorySortField; -}; - -export type CategoryWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; -}; - -export type ChannelCreateInput = { - /** List of shipping zones to assign to the channel. */ - addShippingZones?: InputMaybe>; - /** List of warehouses to assign to the channel. */ - addWarehouses?: InputMaybe>; - /** The channel checkout settings */ - checkoutSettings?: InputMaybe; - /** Currency of the channel. */ - currencyCode: Scalars['String']; - /** Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. */ - defaultCountry: CountryCode; - /** Determine if channel will be set active or not. */ - isActive?: InputMaybe; - /** - * Channel public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Name of the channel. */ - name: Scalars['String']; - /** The channel order settings */ - orderSettings?: InputMaybe; - /** The channel payment settings */ - paymentSettings?: InputMaybe; - /** - * Channel private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Slug of the channel. */ - slug: Scalars['String']; - /** The channel stock settings. */ - stockSettings?: InputMaybe; -}; - -export type ChannelDeleteInput = { - /** ID of a channel to migrate orders from the origin channel. Target channel has to have the same currency as the origin. */ - channelId: Scalars['ID']; -}; - -export enum ChannelErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - CHANNELS_CURRENCY_MUST_BE_THE_SAME = 'CHANNELS_CURRENCY_MUST_BE_THE_SAME', - CHANNEL_WITH_ORDERS = 'CHANNEL_WITH_ORDERS', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type ChannelListingUpdateInput = { - /** ID of a channel listing. */ - channelListing: Scalars['ID']; - /** Cost price of the variant in channel. */ - costPrice?: InputMaybe; - /** The threshold for preorder variant in channel. */ - preorderThreshold?: InputMaybe; - /** Price of the particular variant in channel. */ - price?: InputMaybe; - /** Price of the variant before discount. */ - priorPrice?: InputMaybe; -}; - -export type ChannelUpdateInput = { - /** List of shipping zones to assign to the channel. */ - addShippingZones?: InputMaybe>; - /** List of warehouses to assign to the channel. */ - addWarehouses?: InputMaybe>; - /** The channel checkout settings */ - checkoutSettings?: InputMaybe; - /** Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided. */ - defaultCountry?: InputMaybe; - /** Determine if channel will be set active or not. */ - isActive?: InputMaybe; - /** - * Channel public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Name of the channel. */ - name?: InputMaybe; - /** The channel order settings */ - orderSettings?: InputMaybe; - /** The channel payment settings */ - paymentSettings?: InputMaybe; - /** - * Channel private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** List of shipping zones to unassign from the channel. */ - removeShippingZones?: InputMaybe>; - /** List of warehouses to unassign from the channel. */ - removeWarehouses?: InputMaybe>; - /** Slug of the channel. */ - slug?: InputMaybe; - /** The channel stock settings. */ - stockSettings?: InputMaybe; -}; - -export type CheckoutAddressValidationRules = { - /** Determines if an error should be raised when the provided address doesn't match the expected format. Example: using letters for postal code when the numbers are expected. */ - checkFieldsFormat?: InputMaybe; - /** Determines if an error should be raised when the provided address doesn't have all the required fields. The list of required fields is dynamic and depends on the country code (use the `addressValidationRules` query to fetch them). Note: country code is mandatory for all addresses regardless of the rules provided in this input. */ - checkRequiredFields?: InputMaybe; - /** Determines if Saleor should apply normalization on address fields. Example: converting city field to uppercase letters. */ - enableFieldsNormalization?: InputMaybe; -}; - -/** - * Determine a current authorize status for checkout. - * - * We treat the checkout as fully authorized when the sum of authorized and charged - * funds cover the checkout.total. - * We treat the checkout as partially authorized when the sum of authorized and charged - * funds covers only part of the checkout.total - * We treat the checkout as not authorized when the sum of authorized and charged funds - * is 0. - * - * NONE - the funds are not authorized - * PARTIAL - the cover funds don't cover fully the checkout's total - * FULL - the cover funds covers the checkout's total - */ -export enum CheckoutAuthorizeStatusEnum { - FULL = 'FULL', - NONE = 'NONE', - PARTIAL = 'PARTIAL' -} - -export type CheckoutAutoCompleteInput = { - /** Specifies the earliest date on which fully paid checkouts can begin to be automatically completed. Fully paid checkouts dated before this cut-off will not be automatically completed. Must be less than the threshold of the oldest modified checkout eligible for automatic completion. Default is current date time. */ - cutOffDate?: InputMaybe; - /** The time in minutes after which the fully paid checkout will be automatically completed. Default is 30. Set to 0 for immediate completion. Should be less than the threshold for the oldest modified checkout eligible for automatic completion. */ - delay?: InputMaybe; - /** Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `charge_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. */ - enabled: Scalars['Boolean']; -}; - -/** - * Determine the current charge status for the checkout. - * - * The checkout is considered overcharged when the sum of the transactionItem's charge - * amounts exceeds the value of `checkout.total`. - * If the sum of the transactionItem's charge amounts equals - * `checkout.total`, we consider the checkout to be fully charged. - * If the sum of the transactionItem's charge amounts covers a part of the - * `checkout.total`, we treat the checkout as partially charged. - * - * - * NONE - the funds are not charged. - * PARTIAL - the funds that are charged don't cover the checkout's total - * FULL - the funds that are charged fully cover the checkout's total - * OVERCHARGED - the charged funds are bigger than checkout's total - */ -export enum CheckoutChargeStatusEnum { - FULL = 'FULL', - NONE = 'NONE', - OVERCHARGED = 'OVERCHARGED', - PARTIAL = 'PARTIAL' -} - -export enum CheckoutCreateFromOrderErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - ORDER_NOT_FOUND = 'ORDER_NOT_FOUND', - TAX_ERROR = 'TAX_ERROR' -} - -export enum CheckoutCreateFromOrderUnavailableVariantErrorCode { - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - NOT_FOUND = 'NOT_FOUND', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', - QUANTITY_GREATER_THAN_LIMIT = 'QUANTITY_GREATER_THAN_LIMIT', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL' -} - -export type CheckoutCreateInput = { - /** Billing address of the customer. `skipValidation` requires HANDLE_CHECKOUTS and AUTHENTICATED_APP permissions. */ - billingAddress?: InputMaybe; - /** Slug of a channel in which to create a checkout. */ - channel?: InputMaybe; - /** The customer's email address. */ - email?: InputMaybe; - /** Checkout language code. */ - languageCode?: InputMaybe; - /** A list of checkout lines, each containing information about an item in the checkout. */ - lines: Array; - /** - * Checkout public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - * - * Added in Saleor 3.21. - */ - metadata?: InputMaybe>; - /** - * Checkout private metadata. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_CHECKOUTS - * - * Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - * - * Added in Saleor 3.21. - */ - privateMetadata?: InputMaybe>; - /** - * Indicates whether the billing address should be saved to the user’s address book upon checkout completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to save the address. - * - * Added in Saleor 3.21. - */ - saveBillingAddress?: InputMaybe; - /** - * Indicates whether the shipping address should be saved to the user’s address book upon checkout completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to save the address. - * - * Added in Saleor 3.21. - */ - saveShippingAddress?: InputMaybe; - /** The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn't contain shippable items. `skipValidation` requires HANDLE_CHECKOUTS and AUTHENTICATED_APP permissions. */ - shippingAddress?: InputMaybe; - /** The checkout validation rules that can be changed. */ - validationRules?: InputMaybe; -}; - -export enum CheckoutErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - CHECKOUT_NOT_FULLY_PAID = 'CHECKOUT_NOT_FULLY_PAID', - DELIVERY_METHOD_NOT_APPLICABLE = 'DELIVERY_METHOD_NOT_APPLICABLE', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INACTIVE_PAYMENT = 'INACTIVE_PAYMENT', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID = 'INVALID', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - MISSING_ADDRESS_DATA = 'MISSING_ADDRESS_DATA', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG', - NON_EDITABLE_GIFT_LINE = 'NON_EDITABLE_GIFT_LINE', - NON_REMOVABLE_GIFT_LINE = 'NON_REMOVABLE_GIFT_LINE', - NOT_FOUND = 'NOT_FOUND', - NO_LINES = 'NO_LINES', - PAYMENT_ERROR = 'PAYMENT_ERROR', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', - QUANTITY_GREATER_THAN_LIMIT = 'QUANTITY_GREATER_THAN_LIMIT', - REQUIRED = 'REQUIRED', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - SHIPPING_CHANGE_FORBIDDEN = 'SHIPPING_CHANGE_FORBIDDEN', - SHIPPING_METHOD_NOT_APPLICABLE = 'SHIPPING_METHOD_NOT_APPLICABLE', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - SHIPPING_NOT_REQUIRED = 'SHIPPING_NOT_REQUIRED', - TAX_ERROR = 'TAX_ERROR', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - UNIQUE = 'UNIQUE', - VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE', - ZERO_QUANTITY = 'ZERO_QUANTITY' -} - -export type CheckoutFilterInput = { - authorizeStatus?: InputMaybe>; - channels?: InputMaybe>; - chargeStatus?: InputMaybe>; - created?: InputMaybe; - customer?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type CheckoutLineInput = { - /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ - forceNewLine?: InputMaybe; - /** - * Fields required to update the object's metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. */ - price?: InputMaybe; - /** The number of items purchased. */ - quantity: Scalars['Int']; - /** ID of the product variant. */ - variantId: Scalars['ID']; -}; - -export type CheckoutLineUpdateInput = { - /** ID of the line. */ - lineId?: InputMaybe; - /** - * Checkout line public metadata. Will add and update keys. To delete keys use deleteMetadata mutation. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Custom price of the item. Can be set only by apps with `HANDLE_CHECKOUTS` permission. When the line with the same variant will be provided multiple times, the last price will be used. */ - price?: InputMaybe; - /** The number of items purchased. Optional for apps, required for any other users. */ - quantity?: InputMaybe; - /** - * ID of the product variant. - * @deprecated Use `lineId` instead. - */ - variantId?: InputMaybe; -}; - -export type CheckoutSettingsInput = { - /** - * Default to `true`. Determines whether gift cards can be attached to a Checkout via `addPromoCode` mutation. Usage of this mutation with gift cards is deprecated. - * - * Added in Saleor 3.23. - */ - allowLegacyGiftCardUse?: InputMaybe; - /** - * Settings for automatic completion of fully paid checkouts. - * - * Added in Saleor 3.22. - */ - automaticCompletion?: InputMaybe; - /** - * Default `false`. Determines if the paid checkouts should be automatically completed. This setting applies only to checkouts where payment was processed through transactions.When enabled, the checkout will be automatically completed once the checkout `authorize_status` reaches `FULL`. This occurs when the total sum of charged and authorized transaction amounts equals or exceeds the checkout's total amount. - * - * Added in Saleor 3.20. - * @deprecated Use `automatic_completion` instead. - */ - automaticallyCompleteFullyPaidCheckouts?: InputMaybe; - /** - * Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one. - * @deprecated Field no longer supported - */ - useLegacyErrorFlow?: InputMaybe; -}; - -export enum CheckoutSortField { - /** Sort checkouts by creation date. */ - CREATION_DATE = 'CREATION_DATE', - /** Sort checkouts by customer. */ - CUSTOMER = 'CUSTOMER', - /** Sort checkouts by payment. */ - PAYMENT = 'PAYMENT' -} - -export type CheckoutSortingInput = { - /** Specifies the direction in which to sort checkouts. */ - direction: OrderDirection; - /** Sort checkouts by the selected field. */ - field: CheckoutSortField; -}; - -export type CheckoutValidationRules = { - /** The validation rules that can be applied to provided billing address data. */ - billingAddress?: InputMaybe; - /** The validation rules that can be applied to provided shipping address data. */ - shippingAddress?: InputMaybe; -}; - -/** Enum determining the state of a circuit breaker. */ -export enum CircuitBreakerStateEnum { - /** The breaker is conducting (requests are passing through). */ - CLOSED = 'CLOSED', - /** The breaker is in a trial period (to close or open). Note that unlike classic breaker patterns, this is not a state where we are throttling the number of requests, it's a state similar to CLOSED but with different thresholds. */ - HALF_OPEN = 'HALF_OPEN', - /** The breaker is tripped (no requests are passing). Breaker will enter half-open state after cooldown period. */ - OPEN = 'OPEN' -} - -export type CollectionChannelListingUpdateInput = { - /** List of channels to which the collection should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the collection should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -export type CollectionCreateInput = { - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Informs whether a collection is published. */ - isPublished?: InputMaybe; - /** - * Fields required to update the collection metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Name of the collection. */ - name?: InputMaybe; - /** - * Fields required to update the collection private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** List of products to be added to the collection. */ - products?: InputMaybe>; - /** - * Publication date. ISO 8601 standard. - * @deprecated Field no longer supported - */ - publicationDate?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Slug of the collection. */ - slug?: InputMaybe; -}; - -export enum CollectionErrorCode { - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type CollectionFilterInput = { - /** - * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - ids?: InputMaybe>; - metadata?: InputMaybe>; - published?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; -}; - -export type CollectionInput = { - /** Background image file. */ - backgroundImage?: InputMaybe; - /** Alt text for an image. */ - backgroundImageAlt?: InputMaybe; - /** - * Description of the collection. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** Informs whether a collection is published. */ - isPublished?: InputMaybe; - /** - * Fields required to update the collection metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Name of the collection. */ - name?: InputMaybe; - /** - * Fields required to update the collection private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** - * Publication date. ISO 8601 standard. - * @deprecated Field no longer supported - */ - publicationDate?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Slug of the collection. */ - slug?: InputMaybe; -}; - -export enum CollectionPublished { - HIDDEN = 'HIDDEN', - PUBLISHED = 'PUBLISHED' -} - -export enum CollectionSortField { - /** - * Sort collections by availability. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - AVAILABILITY = 'AVAILABILITY', - /** Sort collections by name. */ - NAME = 'NAME', - /** Sort collections by product count. */ - PRODUCT_COUNT = 'PRODUCT_COUNT', - /** - * Sort collections by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - * @deprecated Use `PUBLISHED_AT` instead. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** - * Sort collections by published at. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED_AT = 'PUBLISHED_AT' -} - -export type CollectionSortingInput = { - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort collections. */ - direction: OrderDirection; - /** Sort collections by the selected field. */ - field: CollectionSortField; -}; - -export type CollectionWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; -}; - -export type ConfigurationItemInput = { - /** Name of the field to update. */ - name: Scalars['String']; - /** Value of the given field to update. */ - value?: InputMaybe; -}; - -export enum ConfigurationTypeFieldEnum { - BOOLEAN = 'BOOLEAN', - MULTILINE = 'MULTILINE', - OUTPUT = 'OUTPUT', - PASSWORD = 'PASSWORD', - SECRET = 'SECRET', - SECRETMULTILINE = 'SECRETMULTILINE', - STRING = 'STRING' -} - -/** Define the filtering options for fields that can contain multiple values. */ -export type ContainsFilterInput = { - /** The field contains all of the specified values. */ - containsAll?: InputMaybe>; - /** The field contains at least one of the specified values. */ - containsAny?: InputMaybe>; -}; - -/** - * Represents country codes defined by the ISO 3166-1 alpha-2 standard. - * - * The `EU` value is DEPRECATED and will be removed in Saleor 3.21. - */ -export enum CountryCode { - AD = 'AD', - AE = 'AE', - AF = 'AF', - AG = 'AG', - AI = 'AI', - AL = 'AL', - AM = 'AM', - AO = 'AO', - AQ = 'AQ', - AR = 'AR', - AS = 'AS', - AT = 'AT', - AU = 'AU', - AW = 'AW', - AX = 'AX', - AZ = 'AZ', - BA = 'BA', - BB = 'BB', - BD = 'BD', - BE = 'BE', - BF = 'BF', - BG = 'BG', - BH = 'BH', - BI = 'BI', - BJ = 'BJ', - BL = 'BL', - BM = 'BM', - BN = 'BN', - BO = 'BO', - BQ = 'BQ', - BR = 'BR', - BS = 'BS', - BT = 'BT', - BV = 'BV', - BW = 'BW', - BY = 'BY', - BZ = 'BZ', - CA = 'CA', - CC = 'CC', - CD = 'CD', - CF = 'CF', - CG = 'CG', - CH = 'CH', - CI = 'CI', - CK = 'CK', - CL = 'CL', - CM = 'CM', - CN = 'CN', - CO = 'CO', - CR = 'CR', - CU = 'CU', - CV = 'CV', - CW = 'CW', - CX = 'CX', - CY = 'CY', - CZ = 'CZ', - DE = 'DE', - DJ = 'DJ', - DK = 'DK', - DM = 'DM', - DO = 'DO', - DZ = 'DZ', - EC = 'EC', - EE = 'EE', - EG = 'EG', - EH = 'EH', - ER = 'ER', - ES = 'ES', - ET = 'ET', - EU = 'EU', - FI = 'FI', - FJ = 'FJ', - FK = 'FK', - FM = 'FM', - FO = 'FO', - FR = 'FR', - GA = 'GA', - GB = 'GB', - GD = 'GD', - GE = 'GE', - GF = 'GF', - GG = 'GG', - GH = 'GH', - GI = 'GI', - GL = 'GL', - GM = 'GM', - GN = 'GN', - GP = 'GP', - GQ = 'GQ', - GR = 'GR', - GS = 'GS', - GT = 'GT', - GU = 'GU', - GW = 'GW', - GY = 'GY', - HK = 'HK', - HM = 'HM', - HN = 'HN', - HR = 'HR', - HT = 'HT', - HU = 'HU', - ID = 'ID', - IE = 'IE', - IL = 'IL', - IM = 'IM', - IN = 'IN', - IO = 'IO', - IQ = 'IQ', - IR = 'IR', - IS = 'IS', - IT = 'IT', - JE = 'JE', - JM = 'JM', - JO = 'JO', - JP = 'JP', - KE = 'KE', - KG = 'KG', - KH = 'KH', - KI = 'KI', - KM = 'KM', - KN = 'KN', - KP = 'KP', - KR = 'KR', - KW = 'KW', - KY = 'KY', - KZ = 'KZ', - LA = 'LA', - LB = 'LB', - LC = 'LC', - LI = 'LI', - LK = 'LK', - LR = 'LR', - LS = 'LS', - LT = 'LT', - LU = 'LU', - LV = 'LV', - LY = 'LY', - MA = 'MA', - MC = 'MC', - MD = 'MD', - ME = 'ME', - MF = 'MF', - MG = 'MG', - MH = 'MH', - MK = 'MK', - ML = 'ML', - MM = 'MM', - MN = 'MN', - MO = 'MO', - MP = 'MP', - MQ = 'MQ', - MR = 'MR', - MS = 'MS', - MT = 'MT', - MU = 'MU', - MV = 'MV', - MW = 'MW', - MX = 'MX', - MY = 'MY', - MZ = 'MZ', - NA = 'NA', - NC = 'NC', - NE = 'NE', - NF = 'NF', - NG = 'NG', - NI = 'NI', - NL = 'NL', - NO = 'NO', - NP = 'NP', - NR = 'NR', - NU = 'NU', - NZ = 'NZ', - OM = 'OM', - PA = 'PA', - PE = 'PE', - PF = 'PF', - PG = 'PG', - PH = 'PH', - PK = 'PK', - PL = 'PL', - PM = 'PM', - PN = 'PN', - PR = 'PR', - PS = 'PS', - PT = 'PT', - PW = 'PW', - PY = 'PY', - QA = 'QA', - RE = 'RE', - RO = 'RO', - RS = 'RS', - RU = 'RU', - RW = 'RW', - SA = 'SA', - SB = 'SB', - SC = 'SC', - SD = 'SD', - SE = 'SE', - SG = 'SG', - SH = 'SH', - SI = 'SI', - SJ = 'SJ', - SK = 'SK', - SL = 'SL', - SM = 'SM', - SN = 'SN', - SO = 'SO', - SR = 'SR', - SS = 'SS', - ST = 'ST', - SV = 'SV', - SX = 'SX', - SY = 'SY', - SZ = 'SZ', - TC = 'TC', - TD = 'TD', - TF = 'TF', - TG = 'TG', - TH = 'TH', - TJ = 'TJ', - TK = 'TK', - TL = 'TL', - TM = 'TM', - TN = 'TN', - TO = 'TO', - TR = 'TR', - TT = 'TT', - TV = 'TV', - TW = 'TW', - TZ = 'TZ', - UA = 'UA', - UG = 'UG', - UM = 'UM', - US = 'US', - UY = 'UY', - UZ = 'UZ', - VA = 'VA', - VC = 'VC', - VE = 'VE', - VG = 'VG', - VI = 'VI', - VN = 'VN', - VU = 'VU', - WF = 'WF', - WS = 'WS', - XK = 'XK', - YE = 'YE', - YT = 'YT', - ZA = 'ZA', - ZM = 'ZM', - ZW = 'ZW' -} - -/** Filter by country code. */ -export type CountryCodeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value not included in. */ - notOneOf?: InputMaybe>; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export type CountryFilterInput = { - /** Boolean for filtering countries by having shipping zone assigned.If 'true', return countries with shipping zone assigned.If 'false', return countries without any shipping zone assigned.If the argument is not provided (null), return all countries. */ - attachedToShippingZones?: InputMaybe; -}; - -export type CountryRateInput = { - /** Country in which this rate applies. */ - countryCode: CountryCode; - /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. */ - rate: Scalars['Float']; -}; - -export type CountryRateUpdateInput = { - /** Country in which this rate applies. */ - countryCode: CountryCode; - /** Tax rate value provided as percentage. Example: provide `23` to represent `23%` tax rate. Provide `null` to remove the particular rate. */ - rate?: InputMaybe; -}; - -export enum CustomerBulkUpdateErrorCode { - BLANK = 'BLANK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LENGTH = 'MAX_LENGTH', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type CustomerBulkUpdateInput = { - /** External ID of a customer to update. */ - externalReference?: InputMaybe; - /** ID of a customer to update. */ - id?: InputMaybe; - /** Fields required to update a customer. */ - input: CustomerInput; -}; - -export enum CustomerEventsEnum { - ACCOUNT_ACTIVATED = 'ACCOUNT_ACTIVATED', - ACCOUNT_CREATED = 'ACCOUNT_CREATED', - ACCOUNT_DEACTIVATED = 'ACCOUNT_DEACTIVATED', - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - DIGITAL_LINK_DOWNLOADED = 'DIGITAL_LINK_DOWNLOADED', - EMAIL_ASSIGNED = 'EMAIL_ASSIGNED', - EMAIL_CHANGED = 'EMAIL_CHANGED', - EMAIL_CHANGED_REQUEST = 'EMAIL_CHANGED_REQUEST', - NAME_ASSIGNED = 'NAME_ASSIGNED', - NOTE_ADDED = 'NOTE_ADDED', - NOTE_ADDED_TO_ORDER = 'NOTE_ADDED_TO_ORDER', - PASSWORD_CHANGED = 'PASSWORD_CHANGED', - PASSWORD_RESET = 'PASSWORD_RESET', - PASSWORD_RESET_LINK_SENT = 'PASSWORD_RESET_LINK_SENT', - PLACED_ORDER = 'PLACED_ORDER' -} - -export type CustomerFilterInput = { - dateJoined?: InputMaybe; - /** Filter by ids. */ - ids?: InputMaybe>; - metadata?: InputMaybe>; - numberOfOrders?: InputMaybe; - placedOrders?: InputMaybe; - search?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type CustomerInput = { - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** External ID of the customer. */ - externalReference?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** User account is confirmed. */ - isConfirmed?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** A note about the user. */ - note?: InputMaybe; - /** - * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; -}; - -export type CustomerWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by addresses data associated with user. */ - addresses?: InputMaybe; - /** Filter by date joined. */ - dateJoined?: InputMaybe; - /** Filter by email address. */ - email?: InputMaybe; - /** Filter by first name. */ - firstName?: InputMaybe; - ids?: InputMaybe>; - /** Filter by whether the user is active. */ - isActive?: InputMaybe; - /** Filter by last name. */ - lastName?: InputMaybe; - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by number of orders placed by the user. */ - numberOfOrders?: InputMaybe; - /** Filter by date when orders were placed. */ - placedOrdersAt?: InputMaybe; - /** Filter by last updated date. */ - updatedAt?: InputMaybe; -}; - -export type DateRangeInput = { - /** Start date. */ - gte?: InputMaybe; - /** End date. */ - lte?: InputMaybe; -}; - -/** Define the filtering options for date time fields. */ -export type DateTimeFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; - /** The value in range. */ - range?: InputMaybe; -}; - -export type DateTimeRangeInput = { - /** Start date. */ - gte?: InputMaybe; - /** End date. */ - lte?: InputMaybe; -}; - -/** Define the filtering options for decimal fields. */ -export type DecimalFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; - /** The value in range. */ - range?: InputMaybe; -}; - -export type DecimalRangeInput = { - /** Decimal value greater than or equal to. */ - gte?: InputMaybe; - /** Decimal value less than or equal to. */ - lte?: InputMaybe; -}; - -export type DigitalContentInput = { - /** Overwrite default automatic_fulfillment setting for variant. */ - automaticFulfillment?: InputMaybe; - /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; - /** - * Fields required to update the digital content metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the digital content private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; - /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars['Boolean']; -}; - -export type DigitalContentUploadInput = { - /** Overwrite default automatic_fulfillment setting for variant. */ - automaticFulfillment?: InputMaybe; - /** Represents an file in a multipart request. */ - contentFile: Scalars['Upload']; - /** Determines how many times a download link can be accessed by a customer. */ - maxDownloads?: InputMaybe; - /** - * Fields required to update the digital content metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Fields required to update the digital content private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines for how many days a download link is active since it was generated. */ - urlValidDays?: InputMaybe; - /** Use default digital content settings for this product. */ - useDefaultSettings: Scalars['Boolean']; -}; - -export type DigitalContentUrlCreateInput = { - /** Digital content ID which URL will belong to. */ - content: Scalars['ID']; -}; - -export enum DiscountErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - VOUCHER_ALREADY_USED = 'VOUCHER_ALREADY_USED' -} - -export enum DiscountStatusEnum { - ACTIVE = 'ACTIVE', - EXPIRED = 'EXPIRED', - SCHEDULED = 'SCHEDULED' -} - -export enum DiscountValueTypeEnum { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE' -} - -export type DiscountedObjectWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by the base subtotal price. */ - baseSubtotalPrice?: InputMaybe; - /** Filter by the base total price. */ - baseTotalPrice?: InputMaybe; -}; - -export enum DistanceUnitsEnum { - CM = 'CM', - DM = 'DM', - FT = 'FT', - INCH = 'INCH', - KM = 'KM', - M = 'M', - MM = 'MM', - YD = 'YD' -} - -export type DraftOrderCreateInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** ID of the channel associated with the order. */ - channelId?: InputMaybe; - /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; - /** - * Discount amount for the order. - * @deprecated Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. - */ - discount?: InputMaybe; - /** External ID of this order. */ - externalReference?: InputMaybe; - /** - * Order language code. - * - * Added in Saleor 3.21. - */ - languageCode?: InputMaybe; - /** Variant line input consisting of variant ID and quantity of products. */ - lines?: InputMaybe>; - /** - * Order public metadata. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Order private metadata. - * - * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; - /** - * Indicates whether the billing address should be saved to the user’s address book upon draft order completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to not save the address. - * - * Added in Saleor 3.21. - */ - saveBillingAddress?: InputMaybe; - /** - * Indicates whether the shipping address should be saved to the user’s address book upon draft order completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to not save the address. - * - * Added in Saleor 3.21. - */ - saveShippingAddress?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; - /** Customer associated with the draft order. */ - user?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; - /** - * A code of the voucher associated with the order. - * - * Added in Saleor 3.18. - */ - voucherCode?: InputMaybe; -}; - -export type DraftOrderInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** ID of the channel associated with the order. */ - channelId?: InputMaybe; - /** A note from a customer. Visible by customers in the order summary. */ - customerNote?: InputMaybe; - /** - * Discount amount for the order. - * @deprecated Providing a value for the field has no effect. Use `orderDiscountAdd` mutation instead. - */ - discount?: InputMaybe; - /** External ID of this order. */ - externalReference?: InputMaybe; - /** - * Order language code. - * - * Added in Saleor 3.21. - */ - languageCode?: InputMaybe; - /** - * Order public metadata. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Order private metadata. - * - * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view where users should be redirected to see the order details. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; - /** - * Indicates whether the billing address should be saved to the user’s address book upon draft order completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to not save the address. - * - * Added in Saleor 3.21. - */ - saveBillingAddress?: InputMaybe; - /** - * Indicates whether the shipping address should be saved to the user’s address book upon draft order completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to not save the address. - * - * Added in Saleor 3.21. - */ - saveShippingAddress?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** ID of a selected shipping method. */ - shippingMethod?: InputMaybe; - /** Customer associated with the draft order. */ - user?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; - /** ID of the voucher associated with the order. */ - voucher?: InputMaybe; - /** - * A code of the voucher associated with the order. - * - * Added in Saleor 3.18. - */ - voucherCode?: InputMaybe; -}; - -export type DraftOrderWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by authorize status. */ - authorizeStatus?: InputMaybe; - /** Filter by billing address of the order. */ - billingAddress?: InputMaybe; - /** Filter by channel. */ - channelId?: InputMaybe; - /** Filter by charge status. */ - chargeStatus?: InputMaybe; - /** Filter order by created at date. */ - createdAt?: InputMaybe; - /** Filter by order events. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - events?: InputMaybe>; - ids?: InputMaybe>; - /** Filter by whether the order uses the click and collect delivery method. */ - isClickAndCollect?: InputMaybe; - /** Filter by line items associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - lines?: InputMaybe>; - /** Filter by number of lines in the order. */ - linesCount?: InputMaybe; - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by order number. */ - number?: InputMaybe; - /** Filter by the product type of related order lines. */ - productTypeId?: InputMaybe; - /** Filter by shipping address of the order. */ - shippingAddress?: InputMaybe; - /** Filter by total gross amount of the order. */ - totalGross?: InputMaybe; - /** Filter by total net amount of the order. */ - totalNet?: InputMaybe; - /** Filter by transaction data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - transactions?: InputMaybe>; - /** Filter order by updated at date. */ - updatedAt?: InputMaybe; - /** Filter by user. */ - user?: InputMaybe; - /** Filter by user email. */ - userEmail?: InputMaybe; - /** Filter by voucher code used in the order. */ - voucherCode?: InputMaybe; -}; - -export enum ErrorPolicyEnum { - /** Save what is possible within a single row. If there are errors in an input data row, try to save it partially and skip the invalid part. */ - IGNORE_FAILED = 'IGNORE_FAILED', - /** Reject all rows if there is at least one error in any of them. */ - REJECT_EVERYTHING = 'REJECT_EVERYTHING', - /** Reject rows with errors. */ - REJECT_FAILED_ROWS = 'REJECT_FAILED_ROWS' -} - -export enum EventDeliveryAttemptSortField { - /** Sort event delivery attempts by created at. */ - CREATED_AT = 'CREATED_AT' -} - -export type EventDeliveryAttemptSortingInput = { - /** Specifies the direction in which to sort attempts. */ - direction: OrderDirection; - /** Sort attempts by the selected field. */ - field: EventDeliveryAttemptSortField; -}; - -export type EventDeliveryFilterInput = { - eventType?: InputMaybe; - status?: InputMaybe; -}; - -export enum EventDeliverySortField { - /** Sort event deliveries by created at. */ - CREATED_AT = 'CREATED_AT' -} - -export type EventDeliverySortingInput = { - /** Specifies the direction in which to sort deliveries. */ - direction: OrderDirection; - /** Sort deliveries by the selected field. */ - field: EventDeliverySortField; -}; - -export enum EventDeliveryStatusEnum { - FAILED = 'FAILED', - PENDING = 'PENDING', - SUCCESS = 'SUCCESS' -} - -export enum ExportErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export enum ExportEventsEnum { - EXPORTED_FILE_SENT = 'EXPORTED_FILE_SENT', - EXPORT_DELETED = 'EXPORT_DELETED', - EXPORT_FAILED = 'EXPORT_FAILED', - EXPORT_FAILED_INFO_SENT = 'EXPORT_FAILED_INFO_SENT', - EXPORT_PENDING = 'EXPORT_PENDING', - EXPORT_SUCCESS = 'EXPORT_SUCCESS' -} - -export type ExportFileFilterInput = { - app?: InputMaybe; - createdAt?: InputMaybe; - status?: InputMaybe; - updatedAt?: InputMaybe; - user?: InputMaybe; -}; - -export enum ExportFileSortField { - CREATED_AT = 'CREATED_AT', - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - STATUS = 'STATUS', - /** @deprecated Use `LAST_MODIFIED_AT` instead. */ - UPDATED_AT = 'UPDATED_AT' -} - -export type ExportFileSortingInput = { - /** Specifies the direction in which to sort export file. */ - direction: OrderDirection; - /** Sort export file by the selected field. */ - field: ExportFileSortField; -}; - -export type ExportGiftCardsInput = { - /** Type of exported file. */ - fileType: FileTypesEnum; - /** Filtering options for gift cards. */ - filter?: InputMaybe; - /** List of gift cards IDs to export. */ - ids?: InputMaybe>; - /** Determine which gift cards should be exported. */ - scope: ExportScope; -}; - -export type ExportInfoInput = { - /** List of attribute ids witch should be exported. */ - attributes?: InputMaybe>; - /** List of channels ids which should be exported. */ - channels?: InputMaybe>; - /** List of product fields witch should be exported. */ - fields?: InputMaybe>; - /** List of warehouse ids witch should be exported. */ - warehouses?: InputMaybe>; -}; - -export type ExportProductsInput = { - /** Input with info about fields which should be exported. */ - exportInfo?: InputMaybe; - /** Type of exported file. */ - fileType: FileTypesEnum; - /** Filtering options for products. */ - filter?: InputMaybe; - /** List of products IDs to export. */ - ids?: InputMaybe>; - /** Determine which products should be exported. */ - scope: ExportScope; -}; - -export enum ExportScope { - /** Export all products. */ - ALL = 'ALL', - /** Export the filtered products. */ - FILTER = 'FILTER', - /** Export products with given ids. */ - IDS = 'IDS' -} - -export type ExportVoucherCodesInput = { - /** Type of exported file. */ - fileType: FileTypesEnum; - /** List of voucher code IDs to export. */ - ids?: InputMaybe>; - /** The ID of the voucher. If provided, exports all codes belonging to the voucher. */ - voucherId?: InputMaybe; -}; - -export enum ExternalNotificationErrorCodes { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - INVALID_MODEL_TYPE = 'INVALID_MODEL_TYPE', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export type ExternalNotificationTriggerInput = { - /** External event type. This field is passed to a plugin as an event type. */ - externalEventType: Scalars['String']; - /** Additional payload that will be merged with the one based on the business object ID. */ - extraPayload?: InputMaybe; - /** The list of customers or orders node IDs that will be serialized and included in the notification payload. */ - ids: Array; -}; - -export enum FileTypesEnum { - CSV = 'CSV', - XLSX = 'XLSX' -} - -export type FulfillmentCancelInput = { - /** ID of a warehouse where items will be restocked. Optional when fulfillment is in WAITING_FOR_APPROVAL state. */ - warehouseId?: InputMaybe; -}; - -/** Filter input for order fulfillments data. */ -export type FulfillmentFilterInput = { - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by fulfillment status. */ - status?: InputMaybe; - /** Filter by fulfillment warehouse. */ - warehouse?: InputMaybe; -}; - -export enum FulfillmentStatus { - CANCELED = 'CANCELED', - FULFILLED = 'FULFILLED', - REFUNDED = 'REFUNDED', - REFUNDED_AND_RETURNED = 'REFUNDED_AND_RETURNED', - REPLACED = 'REPLACED', - RETURNED = 'RETURNED', - WAITING_FOR_APPROVAL = 'WAITING_FOR_APPROVAL' -} - -/** Filter by fulfillment status. */ -export type FulfillmentStatusEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export type FulfillmentUpdateTrackingInput = { - /** If true, send an email notification to the customer. */ - notifyCustomer?: InputMaybe; - /** Fulfillment tracking number. */ - trackingNumber?: InputMaybe; -}; - -/** Filter input for fulfillment warehouses. */ -export type FulfillmentWarehouseFilterInput = { - /** Filter fulfillments by warehouse external reference. */ - externalReference?: InputMaybe; - /** Filter fulfillments by warehouse ID. */ - id?: InputMaybe; - /** Filter fulfillments by warehouse slug. */ - slug?: InputMaybe; -}; - -export type GiftCardAddNoteInput = { - /** Note message. */ - message: Scalars['String']; -}; - -export type GiftCardBulkCreateInput = { - /** Balance of the gift card. */ - balance: PriceInput; - /** The number of cards to issue. */ - count: Scalars['Int']; - /** The gift card expiry date. */ - expiryDate?: InputMaybe; - /** Determine if gift card is active. */ - isActive: Scalars['Boolean']; - /** The gift card tags. */ - tags?: InputMaybe>; -}; - -export type GiftCardCreateInput = { - /** The gift card tags to add. */ - addTags?: InputMaybe>; - /** Balance of the gift card. */ - balance: PriceInput; - /** Slug of a channel from which the email should be sent. */ - channel?: InputMaybe; - /** - * Code to use the gift card. - * @deprecated The code is now auto generated. - */ - code?: InputMaybe; - /** - * End date of the gift card in ISO 8601 format. - * @deprecated Use `expiryDate` from `expirySettings` instead. - */ - endDate?: InputMaybe; - /** The gift card expiry date. */ - expiryDate?: InputMaybe; - /** Determine if gift card is active. */ - isActive: Scalars['Boolean']; - /** - * Gift Card public metadata. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** The gift card note from the staff member. */ - note?: InputMaybe; - /** - * Gift Card private metadata. - * - * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** - * Start date of the gift card in ISO 8601 format. - * @deprecated Field no longer supported - */ - startDate?: InputMaybe; - /** Email of the customer to whom gift card will be sent. */ - userEmail?: InputMaybe; -}; - -export enum GiftCardErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - EXPIRED_GIFT_CARD = 'EXPIRED_GIFT_CARD', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type GiftCardEventFilterInput = { - orders?: InputMaybe>; - type?: InputMaybe; -}; - -export enum GiftCardEventsEnum { - ACTIVATED = 'ACTIVATED', - BALANCE_RESET = 'BALANCE_RESET', - BOUGHT = 'BOUGHT', - DEACTIVATED = 'DEACTIVATED', - EXPIRY_DATE_UPDATED = 'EXPIRY_DATE_UPDATED', - ISSUED = 'ISSUED', - NOTE_ADDED = 'NOTE_ADDED', - RESENT = 'RESENT', - SENT_TO_CUSTOMER = 'SENT_TO_CUSTOMER', - TAGS_UPDATED = 'TAGS_UPDATED', - UPDATED = 'UPDATED', - USED_IN_ORDER = 'USED_IN_ORDER' -} - -export type GiftCardFilterInput = { - code?: InputMaybe; - createdByEmail?: InputMaybe; - currency?: InputMaybe; - currentBalance?: InputMaybe; - initialBalance?: InputMaybe; - isActive?: InputMaybe; - metadata?: InputMaybe>; - products?: InputMaybe>; - tags?: InputMaybe>; - used?: InputMaybe; - usedBy?: InputMaybe>; -}; - -export type GiftCardResendInput = { - /** Slug of a channel from which the email should be sent. */ - channel: Scalars['String']; - /** Email to which gift card should be send. */ - email?: InputMaybe; - /** ID of a gift card to resend. */ - id: Scalars['ID']; -}; - -export enum GiftCardSettingsErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - REQUIRED = 'REQUIRED' -} - -export enum GiftCardSettingsExpiryTypeEnum { - EXPIRY_PERIOD = 'EXPIRY_PERIOD', - NEVER_EXPIRE = 'NEVER_EXPIRE' -} - -export type GiftCardSettingsUpdateInput = { - /** Defines gift card expiry period. */ - expiryPeriod?: InputMaybe; - /** Defines gift card default expiry settings. */ - expiryType?: InputMaybe; -}; - -export enum GiftCardSortField { - /** Sort gift cards by created at. */ - CREATED_AT = 'CREATED_AT', - /** Sort gift cards by current balance. */ - CURRENT_BALANCE = 'CURRENT_BALANCE', - /** Sort gift cards by product. */ - PRODUCT = 'PRODUCT', - /** Sort gift cards by used by. */ - USED_BY = 'USED_BY' -} - -export type GiftCardSortingInput = { - /** Specifies the direction in which to sort gift cards. */ - direction: OrderDirection; - /** Sort gift cards by the selected field. */ - field: GiftCardSortField; -}; - -export type GiftCardTagFilterInput = { - search?: InputMaybe; -}; - -export type GiftCardUpdateInput = { - /** The gift card tags to add. */ - addTags?: InputMaybe>; - /** The gift card balance amount. */ - balanceAmount?: InputMaybe; - /** - * End date of the gift card in ISO 8601 format. - * @deprecated Use `expiryDate` from `expirySettings` instead. - */ - endDate?: InputMaybe; - /** The gift card expiry date. */ - expiryDate?: InputMaybe; - /** - * Gift Card public metadata. - * - * Added in Saleor 3.21. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Gift Card private metadata. - * - * Added in Saleor 3.21. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** The gift card tags to remove. */ - removeTags?: InputMaybe>; - /** - * Start date of the gift card in ISO 8601 format. - * @deprecated Field no longer supported - */ - startDate?: InputMaybe; -}; - -/** Define the filtering options for foreign key fields. */ -export type GlobalIdFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -/** Thumbnail formats for icon images. */ -export enum IconThumbnailFormatEnum { - ORIGINAL = 'ORIGINAL', - WEBP = 'WEBP' -} - -/** Define the filtering options for integer fields. */ -export type IntFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; - /** The value in range. */ - range?: InputMaybe; -}; - -export type IntRangeInput = { - /** Value greater than or equal to. */ - gte?: InputMaybe; - /** Value less than or equal to. */ - lte?: InputMaybe; -}; - -export type InvoiceCreateInput = { - /** - * Fields required to update the invoice metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Invoice number. */ - number: Scalars['String']; - /** - * Fields required to update the invoice private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of an invoice to download. */ - url: Scalars['String']; -}; - -export enum InvoiceErrorCode { - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - INVALID_STATUS = 'INVALID_STATUS', - NOT_FOUND = 'NOT_FOUND', - NOT_READY = 'NOT_READY', - NO_INVOICE_PLUGIN = 'NO_INVOICE_PLUGIN', - NUMBER_NOT_SET = 'NUMBER_NOT_SET', - REQUIRED = 'REQUIRED', - URL_NOT_SET = 'URL_NOT_SET' -} - -/** Filter input for invoices. */ -export type InvoiceFilterInput = { - /** Filter invoices by creation date. */ - createdAt?: InputMaybe; -}; - -export enum JobStatusEnum { - DELETED = 'DELETED', - FAILED = 'FAILED', - PENDING = 'PENDING', - SUCCESS = 'SUCCESS' -} - -export enum LanguageCodeEnum { - AF = 'AF', - AF_NA = 'AF_NA', - AF_ZA = 'AF_ZA', - AGQ = 'AGQ', - AGQ_CM = 'AGQ_CM', - AK = 'AK', - AK_GH = 'AK_GH', - AM = 'AM', - AM_ET = 'AM_ET', - AR = 'AR', - AR_AE = 'AR_AE', - AR_BH = 'AR_BH', - AR_DJ = 'AR_DJ', - AR_DZ = 'AR_DZ', - AR_EG = 'AR_EG', - AR_EH = 'AR_EH', - AR_ER = 'AR_ER', - AR_IL = 'AR_IL', - AR_IQ = 'AR_IQ', - AR_JO = 'AR_JO', - AR_KM = 'AR_KM', - AR_KW = 'AR_KW', - AR_LB = 'AR_LB', - AR_LY = 'AR_LY', - AR_MA = 'AR_MA', - AR_MR = 'AR_MR', - AR_OM = 'AR_OM', - AR_PS = 'AR_PS', - AR_QA = 'AR_QA', - AR_SA = 'AR_SA', - AR_SD = 'AR_SD', - AR_SO = 'AR_SO', - AR_SS = 'AR_SS', - AR_SY = 'AR_SY', - AR_TD = 'AR_TD', - AR_TN = 'AR_TN', - AR_YE = 'AR_YE', - AS = 'AS', - ASA = 'ASA', - ASA_TZ = 'ASA_TZ', - AST = 'AST', - AST_ES = 'AST_ES', - AS_IN = 'AS_IN', - AZ = 'AZ', - AZ_CYRL = 'AZ_CYRL', - AZ_CYRL_AZ = 'AZ_CYRL_AZ', - AZ_LATN = 'AZ_LATN', - AZ_LATN_AZ = 'AZ_LATN_AZ', - BAS = 'BAS', - BAS_CM = 'BAS_CM', - BE = 'BE', - BEM = 'BEM', - BEM_ZM = 'BEM_ZM', - BEZ = 'BEZ', - BEZ_TZ = 'BEZ_TZ', - BE_BY = 'BE_BY', - BG = 'BG', - BG_BG = 'BG_BG', - BM = 'BM', - BM_ML = 'BM_ML', - BN = 'BN', - BN_BD = 'BN_BD', - BN_IN = 'BN_IN', - BO = 'BO', - BO_CN = 'BO_CN', - BO_IN = 'BO_IN', - BR = 'BR', - BRX = 'BRX', - BRX_IN = 'BRX_IN', - BR_FR = 'BR_FR', - BS = 'BS', - BS_CYRL = 'BS_CYRL', - BS_CYRL_BA = 'BS_CYRL_BA', - BS_LATN = 'BS_LATN', - BS_LATN_BA = 'BS_LATN_BA', - CA = 'CA', - CA_AD = 'CA_AD', - CA_ES = 'CA_ES', - CA_ES_VALENCIA = 'CA_ES_VALENCIA', - CA_FR = 'CA_FR', - CA_IT = 'CA_IT', - CCP = 'CCP', - CCP_BD = 'CCP_BD', - CCP_IN = 'CCP_IN', - CE = 'CE', - CEB = 'CEB', - CEB_PH = 'CEB_PH', - CE_RU = 'CE_RU', - CGG = 'CGG', - CGG_UG = 'CGG_UG', - CHR = 'CHR', - CHR_US = 'CHR_US', - CKB = 'CKB', - CKB_IQ = 'CKB_IQ', - CKB_IR = 'CKB_IR', - CS = 'CS', - CS_CZ = 'CS_CZ', - CU = 'CU', - CU_RU = 'CU_RU', - CY = 'CY', - CY_GB = 'CY_GB', - DA = 'DA', - DAV = 'DAV', - DAV_KE = 'DAV_KE', - DA_DK = 'DA_DK', - DA_GL = 'DA_GL', - DE = 'DE', - DE_AT = 'DE_AT', - DE_BE = 'DE_BE', - DE_CH = 'DE_CH', - DE_DE = 'DE_DE', - DE_IT = 'DE_IT', - DE_LI = 'DE_LI', - DE_LU = 'DE_LU', - DJE = 'DJE', - DJE_NE = 'DJE_NE', - DSB = 'DSB', - DSB_DE = 'DSB_DE', - DUA = 'DUA', - DUA_CM = 'DUA_CM', - DYO = 'DYO', - DYO_SN = 'DYO_SN', - DZ = 'DZ', - DZ_BT = 'DZ_BT', - EBU = 'EBU', - EBU_KE = 'EBU_KE', - EE = 'EE', - EE_GH = 'EE_GH', - EE_TG = 'EE_TG', - EL = 'EL', - EL_CY = 'EL_CY', - EL_GR = 'EL_GR', - EN = 'EN', - EN_AE = 'EN_AE', - EN_AG = 'EN_AG', - EN_AI = 'EN_AI', - EN_AS = 'EN_AS', - EN_AT = 'EN_AT', - EN_AU = 'EN_AU', - EN_BB = 'EN_BB', - EN_BE = 'EN_BE', - EN_BI = 'EN_BI', - EN_BM = 'EN_BM', - EN_BS = 'EN_BS', - EN_BW = 'EN_BW', - EN_BZ = 'EN_BZ', - EN_CA = 'EN_CA', - EN_CC = 'EN_CC', - EN_CH = 'EN_CH', - EN_CK = 'EN_CK', - EN_CM = 'EN_CM', - EN_CX = 'EN_CX', - EN_CY = 'EN_CY', - EN_DE = 'EN_DE', - EN_DG = 'EN_DG', - EN_DK = 'EN_DK', - EN_DM = 'EN_DM', - EN_ER = 'EN_ER', - EN_FI = 'EN_FI', - EN_FJ = 'EN_FJ', - EN_FK = 'EN_FK', - EN_FM = 'EN_FM', - EN_GB = 'EN_GB', - EN_GD = 'EN_GD', - EN_GG = 'EN_GG', - EN_GH = 'EN_GH', - EN_GI = 'EN_GI', - EN_GM = 'EN_GM', - EN_GU = 'EN_GU', - EN_GY = 'EN_GY', - EN_HK = 'EN_HK', - EN_IE = 'EN_IE', - EN_IL = 'EN_IL', - EN_IM = 'EN_IM', - EN_IN = 'EN_IN', - EN_IO = 'EN_IO', - EN_JE = 'EN_JE', - EN_JM = 'EN_JM', - EN_KE = 'EN_KE', - EN_KI = 'EN_KI', - EN_KN = 'EN_KN', - EN_KY = 'EN_KY', - EN_LC = 'EN_LC', - EN_LR = 'EN_LR', - EN_LS = 'EN_LS', - EN_MG = 'EN_MG', - EN_MH = 'EN_MH', - EN_MO = 'EN_MO', - EN_MP = 'EN_MP', - EN_MS = 'EN_MS', - EN_MT = 'EN_MT', - EN_MU = 'EN_MU', - EN_MW = 'EN_MW', - EN_MY = 'EN_MY', - EN_NA = 'EN_NA', - EN_NF = 'EN_NF', - EN_NG = 'EN_NG', - EN_NL = 'EN_NL', - EN_NR = 'EN_NR', - EN_NU = 'EN_NU', - EN_NZ = 'EN_NZ', - EN_PG = 'EN_PG', - EN_PH = 'EN_PH', - EN_PK = 'EN_PK', - EN_PN = 'EN_PN', - EN_PR = 'EN_PR', - EN_PW = 'EN_PW', - EN_RW = 'EN_RW', - EN_SB = 'EN_SB', - EN_SC = 'EN_SC', - EN_SD = 'EN_SD', - EN_SE = 'EN_SE', - EN_SG = 'EN_SG', - EN_SH = 'EN_SH', - EN_SI = 'EN_SI', - EN_SL = 'EN_SL', - EN_SS = 'EN_SS', - EN_SX = 'EN_SX', - EN_SZ = 'EN_SZ', - EN_TC = 'EN_TC', - EN_TK = 'EN_TK', - EN_TO = 'EN_TO', - EN_TT = 'EN_TT', - EN_TV = 'EN_TV', - EN_TZ = 'EN_TZ', - EN_UG = 'EN_UG', - EN_UM = 'EN_UM', - EN_US = 'EN_US', - EN_VC = 'EN_VC', - EN_VG = 'EN_VG', - EN_VI = 'EN_VI', - EN_VU = 'EN_VU', - EN_WS = 'EN_WS', - EN_ZA = 'EN_ZA', - EN_ZM = 'EN_ZM', - EN_ZW = 'EN_ZW', - EO = 'EO', - ES = 'ES', - ES_AR = 'ES_AR', - ES_BO = 'ES_BO', - ES_BR = 'ES_BR', - ES_BZ = 'ES_BZ', - ES_CL = 'ES_CL', - ES_CO = 'ES_CO', - ES_CR = 'ES_CR', - ES_CU = 'ES_CU', - ES_DO = 'ES_DO', - ES_EA = 'ES_EA', - ES_EC = 'ES_EC', - ES_ES = 'ES_ES', - ES_GQ = 'ES_GQ', - ES_GT = 'ES_GT', - ES_HN = 'ES_HN', - ES_IC = 'ES_IC', - ES_MX = 'ES_MX', - ES_NI = 'ES_NI', - ES_PA = 'ES_PA', - ES_PE = 'ES_PE', - ES_PH = 'ES_PH', - ES_PR = 'ES_PR', - ES_PY = 'ES_PY', - ES_SV = 'ES_SV', - ES_US = 'ES_US', - ES_UY = 'ES_UY', - ES_VE = 'ES_VE', - ET = 'ET', - ET_EE = 'ET_EE', - EU = 'EU', - EU_ES = 'EU_ES', - EWO = 'EWO', - EWO_CM = 'EWO_CM', - FA = 'FA', - FA_AF = 'FA_AF', - FA_IR = 'FA_IR', - FF = 'FF', - FF_ADLM = 'FF_ADLM', - FF_ADLM_BF = 'FF_ADLM_BF', - FF_ADLM_CM = 'FF_ADLM_CM', - FF_ADLM_GH = 'FF_ADLM_GH', - FF_ADLM_GM = 'FF_ADLM_GM', - FF_ADLM_GN = 'FF_ADLM_GN', - FF_ADLM_GW = 'FF_ADLM_GW', - FF_ADLM_LR = 'FF_ADLM_LR', - FF_ADLM_MR = 'FF_ADLM_MR', - FF_ADLM_NE = 'FF_ADLM_NE', - FF_ADLM_NG = 'FF_ADLM_NG', - FF_ADLM_SL = 'FF_ADLM_SL', - FF_ADLM_SN = 'FF_ADLM_SN', - FF_LATN = 'FF_LATN', - FF_LATN_BF = 'FF_LATN_BF', - FF_LATN_CM = 'FF_LATN_CM', - FF_LATN_GH = 'FF_LATN_GH', - FF_LATN_GM = 'FF_LATN_GM', - FF_LATN_GN = 'FF_LATN_GN', - FF_LATN_GW = 'FF_LATN_GW', - FF_LATN_LR = 'FF_LATN_LR', - FF_LATN_MR = 'FF_LATN_MR', - FF_LATN_NE = 'FF_LATN_NE', - FF_LATN_NG = 'FF_LATN_NG', - FF_LATN_SL = 'FF_LATN_SL', - FF_LATN_SN = 'FF_LATN_SN', - FI = 'FI', - FIL = 'FIL', - FIL_PH = 'FIL_PH', - FI_FI = 'FI_FI', - FO = 'FO', - FO_DK = 'FO_DK', - FO_FO = 'FO_FO', - FR = 'FR', - FR_BE = 'FR_BE', - FR_BF = 'FR_BF', - FR_BI = 'FR_BI', - FR_BJ = 'FR_BJ', - FR_BL = 'FR_BL', - FR_CA = 'FR_CA', - FR_CD = 'FR_CD', - FR_CF = 'FR_CF', - FR_CG = 'FR_CG', - FR_CH = 'FR_CH', - FR_CI = 'FR_CI', - FR_CM = 'FR_CM', - FR_DJ = 'FR_DJ', - FR_DZ = 'FR_DZ', - FR_FR = 'FR_FR', - FR_GA = 'FR_GA', - FR_GF = 'FR_GF', - FR_GN = 'FR_GN', - FR_GP = 'FR_GP', - FR_GQ = 'FR_GQ', - FR_HT = 'FR_HT', - FR_KM = 'FR_KM', - FR_LU = 'FR_LU', - FR_MA = 'FR_MA', - FR_MC = 'FR_MC', - FR_MF = 'FR_MF', - FR_MG = 'FR_MG', - FR_ML = 'FR_ML', - FR_MQ = 'FR_MQ', - FR_MR = 'FR_MR', - FR_MU = 'FR_MU', - FR_NC = 'FR_NC', - FR_NE = 'FR_NE', - FR_PF = 'FR_PF', - FR_PM = 'FR_PM', - FR_RE = 'FR_RE', - FR_RW = 'FR_RW', - FR_SC = 'FR_SC', - FR_SN = 'FR_SN', - FR_SY = 'FR_SY', - FR_TD = 'FR_TD', - FR_TG = 'FR_TG', - FR_TN = 'FR_TN', - FR_VU = 'FR_VU', - FR_WF = 'FR_WF', - FR_YT = 'FR_YT', - FUR = 'FUR', - FUR_IT = 'FUR_IT', - FY = 'FY', - FY_NL = 'FY_NL', - GA = 'GA', - GA_GB = 'GA_GB', - GA_IE = 'GA_IE', - GD = 'GD', - GD_GB = 'GD_GB', - GL = 'GL', - GL_ES = 'GL_ES', - GSW = 'GSW', - GSW_CH = 'GSW_CH', - GSW_FR = 'GSW_FR', - GSW_LI = 'GSW_LI', - GU = 'GU', - GUZ = 'GUZ', - GUZ_KE = 'GUZ_KE', - GU_IN = 'GU_IN', - GV = 'GV', - GV_IM = 'GV_IM', - HA = 'HA', - HAW = 'HAW', - HAW_US = 'HAW_US', - HA_GH = 'HA_GH', - HA_NE = 'HA_NE', - HA_NG = 'HA_NG', - HE = 'HE', - HE_IL = 'HE_IL', - HI = 'HI', - HI_IN = 'HI_IN', - HR = 'HR', - HR_BA = 'HR_BA', - HR_HR = 'HR_HR', - HSB = 'HSB', - HSB_DE = 'HSB_DE', - HU = 'HU', - HU_HU = 'HU_HU', - HY = 'HY', - HY_AM = 'HY_AM', - IA = 'IA', - ID = 'ID', - ID_ID = 'ID_ID', - IG = 'IG', - IG_NG = 'IG_NG', - II = 'II', - II_CN = 'II_CN', - IS = 'IS', - IS_IS = 'IS_IS', - IT = 'IT', - IT_CH = 'IT_CH', - IT_IT = 'IT_IT', - IT_SM = 'IT_SM', - IT_VA = 'IT_VA', - JA = 'JA', - JA_JP = 'JA_JP', - JGO = 'JGO', - JGO_CM = 'JGO_CM', - JMC = 'JMC', - JMC_TZ = 'JMC_TZ', - JV = 'JV', - JV_ID = 'JV_ID', - KA = 'KA', - KAB = 'KAB', - KAB_DZ = 'KAB_DZ', - KAM = 'KAM', - KAM_KE = 'KAM_KE', - KA_GE = 'KA_GE', - KDE = 'KDE', - KDE_TZ = 'KDE_TZ', - KEA = 'KEA', - KEA_CV = 'KEA_CV', - KHQ = 'KHQ', - KHQ_ML = 'KHQ_ML', - KI = 'KI', - KI_KE = 'KI_KE', - KK = 'KK', - KKJ = 'KKJ', - KKJ_CM = 'KKJ_CM', - KK_KZ = 'KK_KZ', - KL = 'KL', - KLN = 'KLN', - KLN_KE = 'KLN_KE', - KL_GL = 'KL_GL', - KM = 'KM', - KM_KH = 'KM_KH', - KN = 'KN', - KN_IN = 'KN_IN', - KO = 'KO', - KOK = 'KOK', - KOK_IN = 'KOK_IN', - KO_KP = 'KO_KP', - KO_KR = 'KO_KR', - KS = 'KS', - KSB = 'KSB', - KSB_TZ = 'KSB_TZ', - KSF = 'KSF', - KSF_CM = 'KSF_CM', - KSH = 'KSH', - KSH_DE = 'KSH_DE', - KS_ARAB = 'KS_ARAB', - KS_ARAB_IN = 'KS_ARAB_IN', - KU = 'KU', - KU_TR = 'KU_TR', - KW = 'KW', - KW_GB = 'KW_GB', - KY = 'KY', - KY_KG = 'KY_KG', - LAG = 'LAG', - LAG_TZ = 'LAG_TZ', - LB = 'LB', - LB_LU = 'LB_LU', - LG = 'LG', - LG_UG = 'LG_UG', - LKT = 'LKT', - LKT_US = 'LKT_US', - LN = 'LN', - LN_AO = 'LN_AO', - LN_CD = 'LN_CD', - LN_CF = 'LN_CF', - LN_CG = 'LN_CG', - LO = 'LO', - LO_LA = 'LO_LA', - LRC = 'LRC', - LRC_IQ = 'LRC_IQ', - LRC_IR = 'LRC_IR', - LT = 'LT', - LT_LT = 'LT_LT', - LU = 'LU', - LUO = 'LUO', - LUO_KE = 'LUO_KE', - LUY = 'LUY', - LUY_KE = 'LUY_KE', - LU_CD = 'LU_CD', - LV = 'LV', - LV_LV = 'LV_LV', - MAI = 'MAI', - MAI_IN = 'MAI_IN', - MAS = 'MAS', - MAS_KE = 'MAS_KE', - MAS_TZ = 'MAS_TZ', - MER = 'MER', - MER_KE = 'MER_KE', - MFE = 'MFE', - MFE_MU = 'MFE_MU', - MG = 'MG', - MGH = 'MGH', - MGH_MZ = 'MGH_MZ', - MGO = 'MGO', - MGO_CM = 'MGO_CM', - MG_MG = 'MG_MG', - MI = 'MI', - MI_NZ = 'MI_NZ', - MK = 'MK', - MK_MK = 'MK_MK', - ML = 'ML', - ML_IN = 'ML_IN', - MN = 'MN', - MNI = 'MNI', - MNI_BENG = 'MNI_BENG', - MNI_BENG_IN = 'MNI_BENG_IN', - MN_MN = 'MN_MN', - MR = 'MR', - MR_IN = 'MR_IN', - MS = 'MS', - MS_BN = 'MS_BN', - MS_ID = 'MS_ID', - MS_MY = 'MS_MY', - MS_SG = 'MS_SG', - MT = 'MT', - MT_MT = 'MT_MT', - MUA = 'MUA', - MUA_CM = 'MUA_CM', - MY = 'MY', - MY_MM = 'MY_MM', - MZN = 'MZN', - MZN_IR = 'MZN_IR', - NAQ = 'NAQ', - NAQ_NA = 'NAQ_NA', - NB = 'NB', - NB_NO = 'NB_NO', - NB_SJ = 'NB_SJ', - ND = 'ND', - NDS = 'NDS', - NDS_DE = 'NDS_DE', - NDS_NL = 'NDS_NL', - ND_ZW = 'ND_ZW', - NE = 'NE', - NE_IN = 'NE_IN', - NE_NP = 'NE_NP', - NL = 'NL', - NL_AW = 'NL_AW', - NL_BE = 'NL_BE', - NL_BQ = 'NL_BQ', - NL_CW = 'NL_CW', - NL_NL = 'NL_NL', - NL_SR = 'NL_SR', - NL_SX = 'NL_SX', - NMG = 'NMG', - NMG_CM = 'NMG_CM', - NN = 'NN', - NNH = 'NNH', - NNH_CM = 'NNH_CM', - NN_NO = 'NN_NO', - NUS = 'NUS', - NUS_SS = 'NUS_SS', - NYN = 'NYN', - NYN_UG = 'NYN_UG', - OM = 'OM', - OM_ET = 'OM_ET', - OM_KE = 'OM_KE', - OR = 'OR', - OR_IN = 'OR_IN', - OS = 'OS', - OS_GE = 'OS_GE', - OS_RU = 'OS_RU', - PA = 'PA', - PA_ARAB = 'PA_ARAB', - PA_ARAB_PK = 'PA_ARAB_PK', - PA_GURU = 'PA_GURU', - PA_GURU_IN = 'PA_GURU_IN', - PCM = 'PCM', - PCM_NG = 'PCM_NG', - PL = 'PL', - PL_PL = 'PL_PL', - PRG = 'PRG', - PS = 'PS', - PS_AF = 'PS_AF', - PS_PK = 'PS_PK', - PT = 'PT', - PT_AO = 'PT_AO', - PT_BR = 'PT_BR', - PT_CH = 'PT_CH', - PT_CV = 'PT_CV', - PT_GQ = 'PT_GQ', - PT_GW = 'PT_GW', - PT_LU = 'PT_LU', - PT_MO = 'PT_MO', - PT_MZ = 'PT_MZ', - PT_PT = 'PT_PT', - PT_ST = 'PT_ST', - PT_TL = 'PT_TL', - QU = 'QU', - QU_BO = 'QU_BO', - QU_EC = 'QU_EC', - QU_PE = 'QU_PE', - RM = 'RM', - RM_CH = 'RM_CH', - RN = 'RN', - RN_BI = 'RN_BI', - RO = 'RO', - ROF = 'ROF', - ROF_TZ = 'ROF_TZ', - RO_MD = 'RO_MD', - RO_RO = 'RO_RO', - RU = 'RU', - RU_BY = 'RU_BY', - RU_KG = 'RU_KG', - RU_KZ = 'RU_KZ', - RU_MD = 'RU_MD', - RU_RU = 'RU_RU', - RU_UA = 'RU_UA', - RW = 'RW', - RWK = 'RWK', - RWK_TZ = 'RWK_TZ', - RW_RW = 'RW_RW', - SAH = 'SAH', - SAH_RU = 'SAH_RU', - SAQ = 'SAQ', - SAQ_KE = 'SAQ_KE', - SAT = 'SAT', - SAT_OLCK = 'SAT_OLCK', - SAT_OLCK_IN = 'SAT_OLCK_IN', - SBP = 'SBP', - SBP_TZ = 'SBP_TZ', - SD = 'SD', - SD_ARAB = 'SD_ARAB', - SD_ARAB_PK = 'SD_ARAB_PK', - SD_DEVA = 'SD_DEVA', - SD_DEVA_IN = 'SD_DEVA_IN', - SE = 'SE', - SEH = 'SEH', - SEH_MZ = 'SEH_MZ', - SES = 'SES', - SES_ML = 'SES_ML', - SE_FI = 'SE_FI', - SE_NO = 'SE_NO', - SE_SE = 'SE_SE', - SG = 'SG', - SG_CF = 'SG_CF', - SHI = 'SHI', - SHI_LATN = 'SHI_LATN', - SHI_LATN_MA = 'SHI_LATN_MA', - SHI_TFNG = 'SHI_TFNG', - SHI_TFNG_MA = 'SHI_TFNG_MA', - SI = 'SI', - SI_LK = 'SI_LK', - SK = 'SK', - SK_SK = 'SK_SK', - SL = 'SL', - SL_SI = 'SL_SI', - SMN = 'SMN', - SMN_FI = 'SMN_FI', - SN = 'SN', - SN_ZW = 'SN_ZW', - SO = 'SO', - SO_DJ = 'SO_DJ', - SO_ET = 'SO_ET', - SO_KE = 'SO_KE', - SO_SO = 'SO_SO', - SQ = 'SQ', - SQ_AL = 'SQ_AL', - SQ_MK = 'SQ_MK', - SQ_XK = 'SQ_XK', - SR = 'SR', - SR_CYRL = 'SR_CYRL', - SR_CYRL_BA = 'SR_CYRL_BA', - SR_CYRL_ME = 'SR_CYRL_ME', - SR_CYRL_RS = 'SR_CYRL_RS', - SR_CYRL_XK = 'SR_CYRL_XK', - SR_LATN = 'SR_LATN', - SR_LATN_BA = 'SR_LATN_BA', - SR_LATN_ME = 'SR_LATN_ME', - SR_LATN_RS = 'SR_LATN_RS', - SR_LATN_XK = 'SR_LATN_XK', - SU = 'SU', - SU_LATN = 'SU_LATN', - SU_LATN_ID = 'SU_LATN_ID', - SV = 'SV', - SV_AX = 'SV_AX', - SV_FI = 'SV_FI', - SV_SE = 'SV_SE', - SW = 'SW', - SW_CD = 'SW_CD', - SW_KE = 'SW_KE', - SW_TZ = 'SW_TZ', - SW_UG = 'SW_UG', - TA = 'TA', - TA_IN = 'TA_IN', - TA_LK = 'TA_LK', - TA_MY = 'TA_MY', - TA_SG = 'TA_SG', - TE = 'TE', - TEO = 'TEO', - TEO_KE = 'TEO_KE', - TEO_UG = 'TEO_UG', - TE_IN = 'TE_IN', - TG = 'TG', - TG_TJ = 'TG_TJ', - TH = 'TH', - TH_TH = 'TH_TH', - TI = 'TI', - TI_ER = 'TI_ER', - TI_ET = 'TI_ET', - TK = 'TK', - TK_TM = 'TK_TM', - TO = 'TO', - TO_TO = 'TO_TO', - TR = 'TR', - TR_CY = 'TR_CY', - TR_TR = 'TR_TR', - TT = 'TT', - TT_RU = 'TT_RU', - TWQ = 'TWQ', - TWQ_NE = 'TWQ_NE', - TZM = 'TZM', - TZM_MA = 'TZM_MA', - UG = 'UG', - UG_CN = 'UG_CN', - UK = 'UK', - UK_UA = 'UK_UA', - UR = 'UR', - UR_IN = 'UR_IN', - UR_PK = 'UR_PK', - UZ = 'UZ', - UZ_ARAB = 'UZ_ARAB', - UZ_ARAB_AF = 'UZ_ARAB_AF', - UZ_CYRL = 'UZ_CYRL', - UZ_CYRL_UZ = 'UZ_CYRL_UZ', - UZ_LATN = 'UZ_LATN', - UZ_LATN_UZ = 'UZ_LATN_UZ', - VAI = 'VAI', - VAI_LATN = 'VAI_LATN', - VAI_LATN_LR = 'VAI_LATN_LR', - VAI_VAII = 'VAI_VAII', - VAI_VAII_LR = 'VAI_VAII_LR', - VI = 'VI', - VI_VN = 'VI_VN', - VO = 'VO', - VUN = 'VUN', - VUN_TZ = 'VUN_TZ', - WAE = 'WAE', - WAE_CH = 'WAE_CH', - WO = 'WO', - WO_SN = 'WO_SN', - XH = 'XH', - XH_ZA = 'XH_ZA', - XOG = 'XOG', - XOG_UG = 'XOG_UG', - YAV = 'YAV', - YAV_CM = 'YAV_CM', - YI = 'YI', - YO = 'YO', - YO_BJ = 'YO_BJ', - YO_NG = 'YO_NG', - YUE = 'YUE', - YUE_HANS = 'YUE_HANS', - YUE_HANS_CN = 'YUE_HANS_CN', - YUE_HANT = 'YUE_HANT', - YUE_HANT_HK = 'YUE_HANT_HK', - ZGH = 'ZGH', - ZGH_MA = 'ZGH_MA', - ZH = 'ZH', - ZH_HANS = 'ZH_HANS', - ZH_HANS_CN = 'ZH_HANS_CN', - ZH_HANS_HK = 'ZH_HANS_HK', - ZH_HANS_MO = 'ZH_HANS_MO', - ZH_HANS_SG = 'ZH_HANS_SG', - ZH_HANT = 'ZH_HANT', - ZH_HANT_HK = 'ZH_HANT_HK', - ZH_HANT_MO = 'ZH_HANT_MO', - ZH_HANT_TW = 'ZH_HANT_TW', - ZU = 'ZU', - ZU_ZA = 'ZU_ZA' -} - -/** Filter input for order lines data. */ -export type LinesFilterInput = { - /** Filter by metadata fields of order lines. */ - metadata?: InputMaybe; -}; - -/** - * Determine the mark as paid strategy for the channel. - * - * TRANSACTION_FLOW - new orders marked as paid will receive a - * `TransactionItem` object, that will cover the `order.total`. - * - * PAYMENT_FLOW - new orders marked as paid will receive a - * `Payment` object, that will cover the `order.total`. - */ -export enum MarkAsPaidStrategyEnum { - PAYMENT_FLOW = 'PAYMENT_FLOW', - TRANSACTION_FLOW = 'TRANSACTION_FLOW' -} - -export enum MeasurementUnitsEnum { - ACRE_FT = 'ACRE_FT', - ACRE_IN = 'ACRE_IN', - CM = 'CM', - CUBIC_CENTIMETER = 'CUBIC_CENTIMETER', - CUBIC_DECIMETER = 'CUBIC_DECIMETER', - CUBIC_FOOT = 'CUBIC_FOOT', - CUBIC_INCH = 'CUBIC_INCH', - CUBIC_METER = 'CUBIC_METER', - CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', - CUBIC_YARD = 'CUBIC_YARD', - DM = 'DM', - FL_OZ = 'FL_OZ', - FT = 'FT', - G = 'G', - INCH = 'INCH', - KG = 'KG', - KM = 'KM', - LB = 'LB', - LITER = 'LITER', - M = 'M', - MM = 'MM', - OZ = 'OZ', - PINT = 'PINT', - QT = 'QT', - SQ_CM = 'SQ_CM', - SQ_DM = 'SQ_DM', - SQ_FT = 'SQ_FT', - SQ_INCH = 'SQ_INCH', - SQ_KM = 'SQ_KM', - SQ_M = 'SQ_M', - SQ_MM = 'SQ_MM', - SQ_YD = 'SQ_YD', - TONNE = 'TONNE', - YD = 'YD' -} - -export type MeasurementUnitsEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum MediaChoicesSortField { - /** Sort media by ID. */ - ID = 'ID' -} - -export type MediaInput = { - /** Alt text for a product media. */ - alt?: InputMaybe; - /** Represents an image file in a multipart request. */ - image?: InputMaybe; - /** Represents an URL to an external media. */ - mediaUrl?: InputMaybe; -}; - -export type MediaSortingInput = { - /** Specifies the direction in which to sort media. */ - direction: OrderDirection; - /** Sort media by the selected field. */ - field: MediaChoicesSortField; -}; - -export type MenuCreateInput = { - /** List of menu items. */ - items?: InputMaybe>; - /** Name of the menu. */ - name: Scalars['String']; - /** Slug of the menu. Will be generated if not provided. */ - slug?: InputMaybe; -}; - -export enum MenuErrorCode { - CANNOT_ASSIGN_NODE = 'CANNOT_ASSIGN_NODE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_MENU_ITEM = 'INVALID_MENU_ITEM', - NOT_FOUND = 'NOT_FOUND', - NO_MENU_ITEM_PROVIDED = 'NO_MENU_ITEM_PROVIDED', - REQUIRED = 'REQUIRED', - TOO_MANY_MENU_ITEMS = 'TOO_MANY_MENU_ITEMS', - UNIQUE = 'UNIQUE' -} - -export type MenuFilterInput = { - metadata?: InputMaybe>; - search?: InputMaybe; - slug?: InputMaybe>; - slugs?: InputMaybe>; -}; - -export type MenuInput = { - /** Name of the menu. */ - name?: InputMaybe; - /** Slug of the menu. */ - slug?: InputMaybe; -}; - -export type MenuItemCreateInput = { - /** Category to which item points. */ - category?: InputMaybe; - /** Collection to which item points. */ - collection?: InputMaybe; - /** Menu to which item belongs. */ - menu: Scalars['ID']; - /** Name of the menu item. */ - name: Scalars['String']; - /** Page to which item points. */ - page?: InputMaybe; - /** ID of the parent menu. If empty, menu will be top level menu. */ - parent?: InputMaybe; - /** URL of the pointed item. */ - url?: InputMaybe; -}; - -export type MenuItemFilterInput = { - metadata?: InputMaybe>; - search?: InputMaybe; -}; - -export type MenuItemInput = { - /** Category to which item points. */ - category?: InputMaybe; - /** Collection to which item points. */ - collection?: InputMaybe; - /** Name of the menu item. */ - name?: InputMaybe; - /** Page to which item points. */ - page?: InputMaybe; - /** URL of the pointed item. */ - url?: InputMaybe; -}; - -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?: InputMaybe; - /** 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?: InputMaybe; -}; - -export type MenuItemSortingInput = { - /** Specifies the direction in which to sort menu items. */ - direction: OrderDirection; - /** Sort menu items by the selected field. */ - field: MenuItemsSortField; -}; - -export enum MenuItemsSortField { - /** Sort menu items by name. */ - NAME = 'NAME' -} - -export enum MenuSortField { - /** Sort menus by items count. */ - ITEMS_COUNT = 'ITEMS_COUNT', - /** Sort menus by name. */ - NAME = 'NAME' -} - -export type MenuSortingInput = { - /** Specifies the direction in which to sort menus. */ - direction: OrderDirection; - /** Sort menus by the selected field. */ - field: MenuSortField; -}; - -export enum MetadataErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - NOT_UPDATED = 'NOT_UPDATED', - REQUIRED = 'REQUIRED' -} - -export type MetadataFilter = { - /** Key of a metadata item. */ - key: Scalars['String']; - /** Value of a metadata item. */ - value?: InputMaybe; -}; - -/** - * Allows filtering based on metadata key/value pairs. - * - * Examples: - * - `{key: "size"}` - * Matches objects where the metadata key "size" exists, regardless of its value. - * - `{key: "color", value: {oneOf: ["blue", "green"]}}` - * Matches objects where the metadata key "color" is set to either "blue" or "green". - * - `{key: "status", value: {eq: "active"}}` - * Matches objects where the metadata key "status" is set to "active". - */ -export type MetadataFilterInput = { - /** Key to filter by. If not other fields provided - checking the existence of the key in metadata. */ - key: Scalars['String']; - /** Value to filter by. */ - value?: InputMaybe; -}; - -export type MetadataInput = { - /** Key of a metadata item. */ - key: Scalars['String']; - /** Value of a metadata item. */ - value: Scalars['String']; -}; - -/** Define the filtering options for metadata value fields. */ -export type MetadataValueFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export type MoneyInput = { - /** Amount of money. */ - amount: Scalars['PositiveDecimal']; - /** Currency code. */ - currency: Scalars['String']; -}; - -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?: InputMaybe; -}; - -export type NameTranslationInput = { - name?: InputMaybe; -}; - -export enum NavigationType { - /** Main storefront navigation. */ - MAIN = 'MAIN', - /** Secondary storefront navigation. */ - SECONDARY = 'SECONDARY' -} - -export enum OrderAction { - /** Represents the capture action. */ - CAPTURE = 'CAPTURE', - /** Represents a mark-as-paid action. */ - MARK_AS_PAID = 'MARK_AS_PAID', - /** Represents a refund action. */ - REFUND = 'REFUND', - /** Represents a void action. */ - VOID = 'VOID' -} - -export type OrderAddNoteInput = { - /** Note message. */ - message: Scalars['String']; -}; - -/** - * Determine a current authorize status for order. - * - * We treat the order as fully authorized when the sum of authorized and charged funds - * cover the `order.total`-`order.totalGrantedRefund`. - * We treat the order as partially authorized when the sum of authorized and charged - * funds covers only part of the `order.total`-`order.totalGrantedRefund`. - * We treat the order as not authorized when the sum of authorized and charged funds is - * 0. - * - * NONE - the funds are not authorized - * PARTIAL - the funds that are authorized and charged don't cover fully the - * `order.total`-`order.totalGrantedRefund` - * FULL - the funds that are authorized and charged fully cover the - * `order.total`-`order.totalGrantedRefund` - */ -export enum OrderAuthorizeStatusEnum { - FULL = 'FULL', - NONE = 'NONE', - PARTIAL = 'PARTIAL' -} - -/** Filter by authorize status. */ -export type OrderAuthorizeStatusEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export type OrderBulkCreateDeliveryMethodInput = { - /** The ID of the shipping method. */ - shippingMethodId?: InputMaybe; - /** The name of the shipping method. */ - shippingMethodName?: InputMaybe; - /** The price of the shipping. */ - shippingPrice?: InputMaybe; - /** The ID of the tax class. */ - shippingTaxClassId?: InputMaybe; - /** - * Metadata of the tax class. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - shippingTaxClassMetadata?: InputMaybe>; - /** The name of the tax class. */ - shippingTaxClassName?: InputMaybe; - /** - * Private metadata of the tax class. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - shippingTaxClassPrivateMetadata?: InputMaybe>; - /** Tax rate of the shipping. */ - shippingTaxRate?: InputMaybe; - /** The ID of the warehouse. */ - warehouseId?: InputMaybe; - /** The name of the warehouse. */ - warehouseName?: InputMaybe; -}; - -export enum OrderBulkCreateErrorCode { - BULK_LIMIT = 'BULK_LIMIT', - FUTURE_DATE = 'FUTURE_DATE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID = 'INVALID', - INVALID_QUANTITY = 'INVALID_QUANTITY', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', - NEGATIVE_INDEX = 'NEGATIVE_INDEX', - NON_EXISTING_STOCK = 'NON_EXISTING_STOCK', - NOTE_LENGTH = 'NOTE_LENGTH', - NOT_FOUND = 'NOT_FOUND', - NO_RELATED_ORDER_LINE = 'NO_RELATED_ORDER_LINE', - ORDER_LINE_FULFILLMENT_LINE_MISMATCH = 'ORDER_LINE_FULFILLMENT_LINE_MISMATCH', - PRICE_ERROR = 'PRICE_ERROR', - REQUIRED = 'REQUIRED', - TOO_MANY_IDENTIFIERS = 'TOO_MANY_IDENTIFIERS', - UNIQUE = 'UNIQUE' -} - -export type OrderBulkCreateFulfillmentInput = { - /** List of items informing how to fulfill the order. */ - lines?: InputMaybe>; - /** Fulfillment's tracking code. */ - trackingCode?: InputMaybe; -}; - -export type OrderBulkCreateFulfillmentLineInput = { - /** 0-based index of order line, which the fulfillment line refers to. */ - orderLineIndex: Scalars['Int']; - /** The number of line items to be fulfilled from given warehouse. */ - quantity: Scalars['Int']; - /** The external ID of the product variant. */ - variantExternalReference?: InputMaybe; - /** The ID of the product variant. */ - variantId?: InputMaybe; - /** The SKU of the product variant. */ - variantSku?: InputMaybe; - /** ID of the warehouse from which the item will be fulfilled. */ - warehouse: Scalars['ID']; -}; - -export type OrderBulkCreateInput = { - /** Billing address of the customer. */ - billingAddress: AddressInput; - /** Slug of the channel associated with the order. */ - channel: Scalars['String']; - /** The date, when the order was inserted to Saleor database. */ - createdAt: Scalars['DateTime']; - /** Currency code. */ - currency: Scalars['String']; - /** Note about customer. */ - customerNote?: InputMaybe; - /** The delivery method selected for this order. */ - deliveryMethod?: InputMaybe; - /** List of discounts. */ - discounts?: InputMaybe>; - /** Determines whether displayed prices should include taxes. */ - displayGrossPrices?: InputMaybe; - /** External ID of the order. */ - externalReference?: InputMaybe; - /** Fulfillments of the order. */ - fulfillments?: InputMaybe>; - /** List of gift card codes associated with the order. */ - giftCards?: InputMaybe>; - /** Invoices related to the order. */ - invoices?: InputMaybe>; - /** Order language code. */ - languageCode: LanguageCodeEnum; - /** List of order lines. */ - lines: Array; - /** - * Metadata of the order. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Notes related to the order. */ - notes?: InputMaybe>; - /** - * Private metadata of the order. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view, where users should be redirected to see the order details. */ - redirectUrl?: InputMaybe; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** Status of the order. */ - status?: InputMaybe; - /** Transactions related to the order. */ - transactions?: InputMaybe>; - /** Customer associated with the order. */ - user: OrderBulkCreateUserInput; - /** - * Code of a voucher associated with the order. - * - * Added in Saleor 3.18. - */ - voucherCode?: InputMaybe; - /** Weight of the order in kg. */ - weight?: InputMaybe; -}; - -export type OrderBulkCreateInvoiceInput = { - /** The date, when the invoice was created. */ - createdAt: Scalars['DateTime']; - /** - * Metadata of the invoice. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Invoice number. */ - number?: InputMaybe; - /** - * Private metadata of the invoice. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of the invoice to download. */ - url?: InputMaybe; -}; - -export type OrderBulkCreateNoteInput = { - /** The app ID associated with the message. */ - appId?: InputMaybe; - /** The date associated with the message. */ - date?: InputMaybe; - /** Note message. Max characters: 255. */ - message: Scalars['String']; - /** The user email associated with the message. */ - userEmail?: InputMaybe; - /** The user external ID associated with the message. */ - userExternalReference?: InputMaybe; - /** The user ID associated with the message. */ - userId?: InputMaybe; -}; - -export type OrderBulkCreateOrderLineInput = { - /** The date, when the order line was created. */ - createdAt: Scalars['DateTime']; - /** Gift card flag. */ - isGiftCard: Scalars['Boolean']; - /** Determines whether shipping of the order line items is required. */ - isShippingRequired: Scalars['Boolean']; - /** - * Metadata of the order line. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Private metadata of the order line. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** The name of the product. */ - productName?: InputMaybe; - /** - * The SKU of the product. - * - * Added in Saleor 3.18. - */ - productSku?: InputMaybe; - /** Number of items in the order line */ - quantity: Scalars['Int']; - /** The ID of the tax class. */ - taxClassId?: InputMaybe; - /** - * Metadata of the tax class. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - taxClassMetadata?: InputMaybe>; - /** The name of the tax class. */ - taxClassName?: InputMaybe; - /** - * Private metadata of the tax class. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - taxClassPrivateMetadata?: InputMaybe>; - /** Tax rate of the order line. */ - taxRate?: InputMaybe; - /** Price of the order line. */ - totalPrice: TaxedMoneyInput; - /** Translation of the product name. */ - translatedProductName?: InputMaybe; - /** Translation of the product variant name. */ - translatedVariantName?: InputMaybe; - /** Price of the order line excluding applied discount. */ - undiscountedTotalPrice: TaxedMoneyInput; - /** - * Reason of the discount on order line. - * - * Added in Saleor 3.19. - */ - unitDiscountReason?: InputMaybe; - /** - * Type of the discount: fixed or percent - * - * Added in Saleor 3.19. - */ - unitDiscountType?: InputMaybe; - /** - * Value of the discount. Can store fixed value or percent value - * - * Added in Saleor 3.19. - */ - unitDiscountValue?: InputMaybe; - /** The external ID of the product variant. */ - variantExternalReference?: InputMaybe; - /** The ID of the product variant. */ - variantId?: InputMaybe; - /** The name of the product variant. */ - variantName?: InputMaybe; - /** The SKU of the product variant. */ - variantSku?: InputMaybe; - /** The ID of the warehouse, where the line will be allocated. */ - warehouse: Scalars['ID']; -}; - -export type OrderBulkCreateUserInput = { - /** Customer email associated with the order. */ - email?: InputMaybe; - /** Customer external ID associated with the order. */ - externalReference?: InputMaybe; - /** Customer ID associated with the order. */ - id?: InputMaybe; -}; - -/** - * Determine the current charge status for the order. - * - * An order is considered overcharged when the sum of the - * transactionItem's charge amounts exceeds the value of - * `order.total` - `order.totalGrantedRefund`. - * If the sum of the transactionItem's charge amounts equals - * `order.total` - `order.totalGrantedRefund`, we consider the order to be fully - * charged. - * If the sum of the transactionItem's charge amounts covers a part of the - * `order.total` - `order.totalGrantedRefund`, we treat the order as partially charged. - * - * NONE - the funds are not charged. - * PARTIAL - the funds that are charged don't cover the - * `order.total`-`order.totalGrantedRefund` - * FULL - the funds that are charged fully cover the - * `order.total`-`order.totalGrantedRefund` - * OVERCHARGED - the charged funds are bigger than the - * `order.total`-`order.totalGrantedRefund` - */ -export enum OrderChargeStatusEnum { - FULL = 'FULL', - NONE = 'NONE', - OVERCHARGED = 'OVERCHARGED', - PARTIAL = 'PARTIAL' -} - -/** Filter by charge status. */ -export type OrderChargeStatusEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum OrderCreateFromCheckoutErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - CHECKOUT_NOT_FOUND = 'CHECKOUT_NOT_FOUND', - EMAIL_NOT_SET = 'EMAIL_NOT_SET', - GIFT_CARD_NOT_APPLICABLE = 'GIFT_CARD_NOT_APPLICABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - NO_LINES = 'NO_LINES', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - TAX_ERROR = 'TAX_ERROR', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - VOUCHER_NOT_APPLICABLE = 'VOUCHER_NOT_APPLICABLE' -} - -export enum OrderDirection { - /** Specifies an ascending sort order. */ - ASC = 'ASC', - /** Specifies a descending sort order. */ - DESC = 'DESC' -} - -export type OrderDiscountCommonInput = { - /** Explanation for the applied discount. */ - reason?: InputMaybe; - /** Value of the discount. Can store fixed value or percent value */ - value: Scalars['PositiveDecimal']; - /** Type of the discount: fixed or percent */ - valueType: DiscountValueTypeEnum; -}; - -export enum OrderDiscountType { - MANUAL = 'MANUAL', - ORDER_PROMOTION = 'ORDER_PROMOTION', - PROMOTION = 'PROMOTION', - SALE = 'SALE', - VOUCHER = 'VOUCHER' -} - -export type OrderDraftFilterInput = { - channels?: InputMaybe>; - created?: InputMaybe; - customer?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; -}; - -export enum OrderErrorCode { - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CANNOT_CANCEL_FULFILLMENT = 'CANNOT_CANCEL_FULFILLMENT', - CANNOT_CANCEL_ORDER = 'CANNOT_CANCEL_ORDER', - CANNOT_DELETE = 'CANNOT_DELETE', - CANNOT_DISCOUNT = 'CANNOT_DISCOUNT', - CANNOT_FULFILL_UNPAID_ORDER = 'CANNOT_FULFILL_UNPAID_ORDER', - CANNOT_REFUND = 'CANNOT_REFUND', - CAPTURE_INACTIVE_PAYMENT = 'CAPTURE_INACTIVE_PAYMENT', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - FULFILL_ORDER_LINE = 'FULFILL_ORDER_LINE', - GIFT_CARD_LINE = 'GIFT_CARD_LINE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INSUFFICIENT_STOCK = 'INSUFFICIENT_STOCK', - INVALID = 'INVALID', - INVALID_QUANTITY = 'INVALID_QUANTITY', - INVALID_VOUCHER = 'INVALID_VOUCHER', - INVALID_VOUCHER_CODE = 'INVALID_VOUCHER_CODE', - MISSING_ADDRESS_DATA = 'MISSING_ADDRESS_DATA', - NON_EDITABLE_GIFT_LINE = 'NON_EDITABLE_GIFT_LINE', - NON_REMOVABLE_GIFT_LINE = 'NON_REMOVABLE_GIFT_LINE', - NOT_AVAILABLE_IN_CHANNEL = 'NOT_AVAILABLE_IN_CHANNEL', - NOT_EDITABLE = 'NOT_EDITABLE', - NOT_FOUND = 'NOT_FOUND', - ORDER_NO_SHIPPING_ADDRESS = 'ORDER_NO_SHIPPING_ADDRESS', - PAYMENT_ERROR = 'PAYMENT_ERROR', - PAYMENT_MISSING = 'PAYMENT_MISSING', - PRODUCT_NOT_PUBLISHED = 'PRODUCT_NOT_PUBLISHED', - PRODUCT_UNAVAILABLE_FOR_PURCHASE = 'PRODUCT_UNAVAILABLE_FOR_PURCHASE', - REQUIRED = 'REQUIRED', - SHIPPING_METHOD_NOT_APPLICABLE = 'SHIPPING_METHOD_NOT_APPLICABLE', - SHIPPING_METHOD_REQUIRED = 'SHIPPING_METHOD_REQUIRED', - TAX_ERROR = 'TAX_ERROR', - TRANSACTION_ERROR = 'TRANSACTION_ERROR', - UNIQUE = 'UNIQUE', - VOID_INACTIVE_PAYMENT = 'VOID_INACTIVE_PAYMENT', - ZERO_QUANTITY = 'ZERO_QUANTITY' -} - -/** Filter input for order events data. */ -export type OrderEventFilterInput = { - /** Filter order events by date. */ - date?: InputMaybe; - /** Filter order events by type. */ - type?: InputMaybe; -}; - -export type OrderEventTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum OrderEventsEmailsEnum { - CONFIRMED = 'CONFIRMED', - DIGITAL_LINKS = 'DIGITAL_LINKS', - FULFILLMENT_CONFIRMATION = 'FULFILLMENT_CONFIRMATION', - ORDER_CANCEL = 'ORDER_CANCEL', - ORDER_CONFIRMATION = 'ORDER_CONFIRMATION', - ORDER_REFUND = 'ORDER_REFUND', - PAYMENT_CONFIRMATION = 'PAYMENT_CONFIRMATION', - SHIPPING_CONFIRMATION = 'SHIPPING_CONFIRMATION', - TRACKING_UPDATED = 'TRACKING_UPDATED' -} - -/** The different order event types. */ -export enum OrderEventsEnum { - ADDED_PRODUCTS = 'ADDED_PRODUCTS', - CANCELED = 'CANCELED', - CONFIRMED = 'CONFIRMED', - DRAFT_CREATED = 'DRAFT_CREATED', - DRAFT_CREATED_FROM_REPLACE = 'DRAFT_CREATED_FROM_REPLACE', - EMAIL_SENT = 'EMAIL_SENT', - EXPIRED = 'EXPIRED', - EXTERNAL_SERVICE_NOTIFICATION = 'EXTERNAL_SERVICE_NOTIFICATION', - FULFILLMENT_AWAITS_APPROVAL = 'FULFILLMENT_AWAITS_APPROVAL', - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - FULFILLMENT_FULFILLED_ITEMS = 'FULFILLMENT_FULFILLED_ITEMS', - FULFILLMENT_REFUNDED = 'FULFILLMENT_REFUNDED', - FULFILLMENT_REPLACED = 'FULFILLMENT_REPLACED', - FULFILLMENT_RESTOCKED_ITEMS = 'FULFILLMENT_RESTOCKED_ITEMS', - FULFILLMENT_RETURNED = 'FULFILLMENT_RETURNED', - INVOICE_GENERATED = 'INVOICE_GENERATED', - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - INVOICE_SENT = 'INVOICE_SENT', - INVOICE_UPDATED = 'INVOICE_UPDATED', - NOTE_ADDED = 'NOTE_ADDED', - NOTE_UPDATED = 'NOTE_UPDATED', - ORDER_DISCOUNT_ADDED = 'ORDER_DISCOUNT_ADDED', - ORDER_DISCOUNT_AUTOMATICALLY_UPDATED = 'ORDER_DISCOUNT_AUTOMATICALLY_UPDATED', - ORDER_DISCOUNT_DELETED = 'ORDER_DISCOUNT_DELETED', - ORDER_DISCOUNT_UPDATED = 'ORDER_DISCOUNT_UPDATED', - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - ORDER_LINE_DISCOUNT_REMOVED = 'ORDER_LINE_DISCOUNT_REMOVED', - ORDER_LINE_DISCOUNT_UPDATED = 'ORDER_LINE_DISCOUNT_UPDATED', - ORDER_LINE_PRODUCT_DELETED = 'ORDER_LINE_PRODUCT_DELETED', - ORDER_LINE_VARIANT_DELETED = 'ORDER_LINE_VARIANT_DELETED', - ORDER_MARKED_AS_PAID = 'ORDER_MARKED_AS_PAID', - ORDER_REPLACEMENT_CREATED = 'ORDER_REPLACEMENT_CREATED', - OTHER = 'OTHER', - OVERSOLD_ITEMS = 'OVERSOLD_ITEMS', - PAYMENT_AUTHORIZED = 'PAYMENT_AUTHORIZED', - PAYMENT_CAPTURED = 'PAYMENT_CAPTURED', - PAYMENT_FAILED = 'PAYMENT_FAILED', - PAYMENT_REFUNDED = 'PAYMENT_REFUNDED', - PAYMENT_VOIDED = 'PAYMENT_VOIDED', - PLACED = 'PLACED', - PLACED_AUTOMATICALLY_FROM_PAID_CHECKOUT = 'PLACED_AUTOMATICALLY_FROM_PAID_CHECKOUT', - PLACED_FROM_DRAFT = 'PLACED_FROM_DRAFT', - REMOVED_PRODUCTS = 'REMOVED_PRODUCTS', - TRACKING_UPDATED = 'TRACKING_UPDATED', - TRANSACTION_CANCEL_REQUESTED = 'TRANSACTION_CANCEL_REQUESTED', - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - TRANSACTION_EVENT = 'TRANSACTION_EVENT', - TRANSACTION_MARK_AS_PAID_FAILED = 'TRANSACTION_MARK_AS_PAID_FAILED', - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', - UPDATED_ADDRESS = 'UPDATED_ADDRESS' -} - -export type OrderFilterInput = { - authorizeStatus?: InputMaybe>; - channels?: InputMaybe>; - chargeStatus?: InputMaybe>; - checkoutIds?: InputMaybe>; - checkoutTokens?: InputMaybe>; - created?: InputMaybe; - customer?: InputMaybe; - giftCardBought?: InputMaybe; - giftCardUsed?: InputMaybe; - ids?: InputMaybe>; - isClickAndCollect?: InputMaybe; - isPreorder?: InputMaybe; - metadata?: InputMaybe>; - numbers?: InputMaybe>; - paymentStatus?: InputMaybe>; - search?: InputMaybe; - status?: InputMaybe>; - updatedAt?: InputMaybe; -}; - -export type OrderFulfillInput = { - /** If true, then allow proceed fulfillment when stock is exceeded. */ - allowStockToBeExceeded?: InputMaybe; - /** List of items informing how to fulfill the order. */ - lines: Array; - /** If true, send an email notification to the customer. */ - notifyCustomer?: InputMaybe; - /** Fulfillment tracking number. */ - trackingNumber?: InputMaybe; -}; - -export type OrderFulfillLineInput = { - /** The ID of the order line. */ - orderLineId?: InputMaybe; - /** 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']; -}; - -export enum OrderGrantRefundCreateErrorCode { - AMOUNT_GREATER_THAN_AVAILABLE = 'AMOUNT_GREATER_THAN_AVAILABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - SHIPPING_COSTS_ALREADY_GRANTED = 'SHIPPING_COSTS_ALREADY_GRANTED' -} - -export type OrderGrantRefundCreateInput = { - /** Amount of the granted refund. If not provided, the amount will be calculated automatically based on provided `lines` and `grantRefundForShipping`. */ - amount?: InputMaybe; - /** Determine if granted refund should include shipping costs. */ - grantRefundForShipping?: InputMaybe; - /** Lines to assign to granted refund. */ - lines?: InputMaybe>; - /** Reason of the granted refund. */ - reason?: InputMaybe; - /** - * ID of a `Page` (Model) to reference in reason. - * - * Added in Saleor 3.22. - */ - reasonReference?: InputMaybe; - /** - * The ID of the transaction item related to the granted refund. If `amount` provided in the input, the transaction.chargedAmount needs to be equal or greater than provided `amount`.If `amount` is not provided in the input and calculated automatically by Saleor, the `min(calculatedAmount, transaction.chargedAmount)` will be used. Field required starting from Saleor 3.21. - * - * Added in Saleor 3.20. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - transactionId: Scalars['ID']; -}; - -export enum OrderGrantRefundCreateLineErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - QUANTITY_GREATER_THAN_AVAILABLE = 'QUANTITY_GREATER_THAN_AVAILABLE' -} - -export type OrderGrantRefundCreateLineInput = { - /** The ID of the order line. */ - id: Scalars['ID']; - /** The quantity of line items to be marked to refund. */ - quantity: Scalars['Int']; - /** Reason of the granted refund for the line. */ - reason?: InputMaybe; -}; - -export enum OrderGrantRefundUpdateErrorCode { - AMOUNT_GREATER_THAN_AVAILABLE = 'AMOUNT_GREATER_THAN_AVAILABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - SHIPPING_COSTS_ALREADY_GRANTED = 'SHIPPING_COSTS_ALREADY_GRANTED' -} - -export type OrderGrantRefundUpdateInput = { - /** Lines to assign to granted refund. */ - addLines?: InputMaybe>; - /** Amount of the granted refund. if not provided and `addLines` or `removeLines` or `grantRefundForShipping` is provided, amount will be calculated automatically. */ - amount?: InputMaybe; - /** Determine if granted refund should include shipping costs. */ - grantRefundForShipping?: InputMaybe; - /** Reason of the granted refund. */ - reason?: InputMaybe; - /** - * ID of a `Page` (Model) to reference in reason. - * - * Added in Saleor 3.22. - */ - reasonReference?: InputMaybe; - /** Lines to remove from granted refund. */ - removeLines?: InputMaybe>; - /** - * The ID of the transaction item related to the granted refund. If `amount` provided in the input, the transaction.chargedAmount needs to be equal or greater than provided `amount`.If `amount` is not provided in the input and calculated automatically by Saleor, the `min(calculatedAmount, transaction.chargedAmount)` will be used.Field will be required starting from Saleor 3.21. - * - * Added in Saleor 3.20. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - transactionId?: InputMaybe; -}; - -export type OrderGrantRefundUpdateLineAddInput = { - /** The ID of the order line. */ - id: Scalars['ID']; - /** The quantity of line items to be marked to refund. */ - quantity: Scalars['Int']; - /** Reason of the granted refund for the line. */ - reason?: InputMaybe; -}; - -export enum OrderGrantRefundUpdateLineErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - QUANTITY_GREATER_THAN_AVAILABLE = 'QUANTITY_GREATER_THAN_AVAILABLE' -} - -/** - * Represents the status of a granted refund. - * - * NONE - the refund on related transactionItem is not processed - * PENDING - the refund on related transactionItem is pending - * FULL - the refund on related transactionItem is fully processed - * FAIL - the refund on related transactionItem failed - */ -export enum OrderGrantedRefundStatusEnum { - FAILURE = 'FAILURE', - NONE = 'NONE', - PENDING = 'PENDING', - SUCCESS = 'SUCCESS' -} - -export type OrderLineCreateInput = { - /** Flag that allow force splitting the same variant into multiple lines by skipping the matching logic. */ - forceNewLine?: InputMaybe; - /** Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used. */ - price?: InputMaybe; - /** Number of variant items ordered. */ - quantity: Scalars['Int']; - /** Product variant ID. */ - variantId: Scalars['ID']; -}; - -export type OrderLineInput = { - /** Number of variant items ordered. */ - quantity: Scalars['Int']; -}; - -export enum OrderNoteAddErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - REQUIRED = 'REQUIRED' -} - -export type OrderNoteInput = { - /** Note message. */ - message: Scalars['String']; -}; - -export enum OrderNoteUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export enum OrderOriginEnum { - BULK_CREATE = 'BULK_CREATE', - CHECKOUT = 'CHECKOUT', - DRAFT = 'DRAFT', - REISSUE = 'REISSUE' -} - -export type OrderPredicateInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Defines the conditions related to checkout and order objects. */ - discountedObjectPredicate?: InputMaybe; -}; - -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 = { - /** The total amount of refund when the value is provided manually. */ - amountToRefund?: InputMaybe; - /** List of fulfilled lines to refund. */ - fulfillmentLines?: InputMaybe>; - /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ - includeShippingCosts?: InputMaybe; - /** List of unfulfilled lines to refund. */ - orderLines?: InputMaybe>; -}; - -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?: InputMaybe; -}; - -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?: InputMaybe; -}; - -export type OrderReturnProductsInput = { - /** The total amount of refund when the value is provided manually. */ - amountToRefund?: InputMaybe; - /** List of fulfilled lines to return. */ - fulfillmentLines?: InputMaybe>; - /** If true, Saleor will refund shipping costs. If amountToRefund is providedincludeShippingCosts will be ignored. */ - includeShippingCosts?: InputMaybe; - /** List of unfulfilled lines to return. */ - orderLines?: InputMaybe>; - /** If true, Saleor will call refund action for all lines. */ - refund?: InputMaybe; -}; - -export enum OrderSettingsErrorCode { - INVALID = 'INVALID' -} - -export type OrderSettingsInput = { - /** Determine if it is possible to place unpaid order by calling `checkoutComplete` mutation. */ - allowUnpaidOrders?: InputMaybe; - /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ - automaticallyConfirmAllNewOrders?: InputMaybe; - /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ - automaticallyFulfillNonShippableGiftCard?: InputMaybe; - /** The time in days after expired orders will be deleted.Allowed range is from 1 to 120. */ - deleteExpiredOrdersAfter?: InputMaybe; - /** - * Time in hours after which the draft order line price will be refreshed. Default value is 24 hours. Enter 0 or null to disable. - * - * Added in Saleor 3.21. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - draftOrderLinePriceFreezePeriod?: InputMaybe; - /** Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable. */ - expireOrdersAfter?: InputMaybe; - /** - * Specify whether a coupon applied to draft orders will count toward voucher usage. - * - * Warning: when switching this setting from `false` to `true`, the vouchers will be disconnected from all draft orders. - * - * Added in Saleor 3.18. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - includeDraftOrderInVoucherUsage?: InputMaybe; - /** - * Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid. - * `PAYMENT_FLOW` - [default option] creates the `Payment` object. - * `TRANSACTION_FLOW` - creates the `TransactionItem` object. - */ - markAsPaidStrategy?: InputMaybe; - /** - * This flag only affects orders created from checkout and applies specifically to vouchers of the types: `SPECIFIC_PRODUCT` and `ENTIRE_ORDER` with `applyOncePerOrder` enabled. - * - When legacy propagation is enabled, discounts from these vouchers are represented as `OrderDiscount` objects, attached to the order and returned in the `Order.discounts` field. Additionally, percentage-based vouchers are converted to fixed-value discounts. - * - When legacy propagation is disabled, discounts are represented as `OrderLineDiscount` objects, attached to individual lines and returned in the `OrderLine.discounts` field. In this case, percentage-based vouchers retain their original type. - * In future releases, `OrderLineDiscount` will become the default behavior, and this flag will be deprecated and removed. - * - * Added in Saleor 3.21. - */ - useLegacyLineDiscountPropagation?: InputMaybe; -}; - -export type OrderSettingsUpdateInput = { - /** When disabled, all new orders from checkout will be marked as unconfirmed. When enabled orders from checkout will become unfulfilled immediately. By default set to True */ - automaticallyConfirmAllNewOrders?: InputMaybe; - /** When enabled, all non-shippable gift card orders will be fulfilled automatically. By default set to True. */ - automaticallyFulfillNonShippableGiftCard?: InputMaybe; -}; - -export enum OrderSortField { - /** Sort orders by creation date. */ - CREATED_AT = 'CREATED_AT', - /** - * Sort orders by creation date - * @deprecated Use `CREATED_AT` instead. - */ - CREATION_DATE = 'CREATION_DATE', - /** Sort orders by customer. */ - CUSTOMER = 'CUSTOMER', - /** - * Sort orders by fulfillment status. - * @deprecated Use `STATUS` instead. - */ - FULFILLMENT_STATUS = 'FULFILLMENT_STATUS', - /** Sort orders by last modified date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** Sort orders by number. */ - NUMBER = 'NUMBER', - /** Sort orders by payment status. */ - PAYMENT = 'PAYMENT', - /** Sort orders by rank. Note: This option is available only with the `search` filter. */ - RANK = 'RANK', - /** - * Sort orders by order status. - * - * Added in Saleor 3.22. - */ - STATUS = 'STATUS' -} - -export type OrderSortingInput = { - /** Specifies the direction in which to sort orders. */ - direction: OrderDirection; - /** Sort orders by the selected field. */ - field: OrderSortField; -}; - -export enum OrderStatus { - CANCELED = 'CANCELED', - DRAFT = 'DRAFT', - EXPIRED = 'EXPIRED', - FULFILLED = 'FULFILLED', - PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', - PARTIALLY_RETURNED = 'PARTIALLY_RETURNED', - RETURNED = 'RETURNED', - UNCONFIRMED = 'UNCONFIRMED', - UNFULFILLED = 'UNFULFILLED' -} - -/** Filter by order status. */ -export type OrderStatusEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum OrderStatusFilter { - CANCELED = 'CANCELED', - FULFILLED = 'FULFILLED', - PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED', - READY_TO_CAPTURE = 'READY_TO_CAPTURE', - READY_TO_FULFILL = 'READY_TO_FULFILL', - UNCONFIRMED = 'UNCONFIRMED', - UNFULFILLED = 'UNFULFILLED' -} - -export type OrderUpdateInput = { - /** Billing address of the customer. */ - billingAddress?: InputMaybe; - /** External ID of this order. */ - externalReference?: InputMaybe; - /** - * Order language code. - * - * Added in Saleor 3.21. - */ - languageCode?: InputMaybe; - /** - * Order public metadata. - * - * Added in Saleor 3.21.Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Order private metadata. - * - * Added in Saleor 3.21.Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Shipping address of the customer. */ - shippingAddress?: InputMaybe; - /** Email address of the customer. */ - userEmail?: InputMaybe; -}; - -export type OrderUpdateShippingInput = { - /** ID of the selected shipping method, pass null to remove currently assigned shipping method. */ - shippingMethod?: InputMaybe; -}; - -export type OrderWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by authorize status. */ - authorizeStatus?: InputMaybe; - /** Filter by billing address of the order. */ - billingAddress?: InputMaybe; - /** Filter by channel. */ - channelId?: InputMaybe; - /** Filter by charge status. */ - chargeStatus?: InputMaybe; - /** Filter by checkout id. */ - checkoutId?: InputMaybe; - /** Filter by checkout token. */ - checkoutToken?: InputMaybe; - /** Filter order by created at date. */ - createdAt?: InputMaybe; - /** Filter by order events. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - events?: InputMaybe>; - /** Filter by fulfillment data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - fulfillments?: InputMaybe>; - /** Filter by whether the order has any fulfillments. */ - hasFulfillments?: InputMaybe; - /** Filter by whether the order has any invoices. */ - hasInvoices?: InputMaybe; - ids?: InputMaybe>; - /** Filter by invoice data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - invoices?: InputMaybe>; - /** Filter by whether the order uses the click and collect delivery method. */ - isClickAndCollect?: InputMaybe; - /** Filter based on whether the order includes a gift card purchase. */ - isGiftCardBought?: InputMaybe; - /** Filter based on whether a gift card was used in the order. */ - isGiftCardUsed?: InputMaybe; - /** Filter by line items associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - lines?: InputMaybe>; - /** Filter by number of lines in the order. */ - linesCount?: InputMaybe; - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by order number. */ - number?: InputMaybe; - /** Filter by the product type of related order lines. */ - productTypeId?: InputMaybe; - /** Filter by shipping address of the order. */ - shippingAddress?: InputMaybe; - /** Filter by order status. */ - status?: InputMaybe; - /** Filter by total gross amount of the order. */ - totalGross?: InputMaybe; - /** Filter by total net amount of the order. */ - totalNet?: InputMaybe; - /** Filter by transaction data associated with the order. Each list item represents conditions that must be satisfied by a single object. The filter matches orders that have related objects meeting all specified groups of conditions. */ - transactions?: InputMaybe>; - /** Filter order by updated at date. */ - updatedAt?: InputMaybe; - /** Filter by user. */ - user?: InputMaybe; - /** Filter by user email. */ - userEmail?: InputMaybe; - /** Filter by voucher code used in the order. */ - voucherCode?: InputMaybe; -}; - -export type OtherPaymentMethodDetailsInput = { - /** Name of the payment method used for the transaction. */ - name: Scalars['String']; -}; - -export type PageCreateInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** - * Page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; - /** Determines if page is visible in the storefront. */ - isPublished?: InputMaybe; - /** ID of the page type that page belongs to. */ - pageType: Scalars['ID']; - /** - * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Page internal name. */ - slug?: InputMaybe; - /** Page title. */ - title?: InputMaybe; -}; - -export enum PageErrorCode { - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type PageFilterInput = { - ids?: InputMaybe>; - metadata?: InputMaybe>; - pageTypes?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; -}; - -export type PageInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** - * Page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; - /** Determines if page is visible in the storefront. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Page internal name. */ - slug?: InputMaybe; - /** Page title. */ - title?: InputMaybe; -}; - -export enum PageSortField { - /** Sort pages by creation date. */ - CREATED_AT = 'CREATED_AT', - /** - * Sort pages by creation date. - * @deprecated Use `CREATED_AT` instead. - */ - CREATION_DATE = 'CREATION_DATE', - /** - * Sort pages by publication date. - * @deprecated Use `PUBLISHED_AT` instead. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** Sort pages by publication date. */ - PUBLISHED_AT = 'PUBLISHED_AT', - /** Sort pages by slug. */ - SLUG = 'SLUG', - /** Sort pages by title. */ - TITLE = 'TITLE', - /** Sort pages by visibility. */ - VISIBILITY = 'VISIBILITY' -} - -export type PageSortingInput = { - /** Specifies the direction in which to sort pages. */ - direction: OrderDirection; - /** Sort pages by the selected field. */ - field: PageSortField; -}; - -export type PageTranslationInput = { - /** - * Translated page content. - * - * Rich text format. For reference see https://editorjs.io/ - */ - content?: InputMaybe; - seoDescription?: InputMaybe; - seoTitle?: InputMaybe; - slug?: InputMaybe; - title?: InputMaybe; -}; - -export type PageTypeCreateInput = { - /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; - /** Name of the page type. */ - name?: InputMaybe; - /** Page type slug. */ - slug?: InputMaybe; -}; - -export type PageTypeFilterInput = { - search?: InputMaybe; - slugs?: InputMaybe>; -}; - -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 page types. */ - direction: OrderDirection; - /** Sort page types by the selected field. */ - field: PageTypeSortField; -}; - -export type PageTypeUpdateInput = { - /** List of attribute IDs to be assigned to the page type. */ - addAttributes?: InputMaybe>; - /** Name of the page type. */ - name?: InputMaybe; - /** List of attribute IDs to be unassigned from the page type. */ - removeAttributes?: InputMaybe>; - /** Page type slug. */ - slug?: InputMaybe; -}; - -export type PageWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by attributes associated with the page. */ - attributes?: InputMaybe>; - ids?: InputMaybe>; - /** Filter by metadata fields. */ - metadata?: InputMaybe; - /** Filter by page type. */ - pageType?: InputMaybe; - /** Filter by page slug. */ - slug?: InputMaybe; -}; - -export enum PaymentChargeStatusEnum { - CANCELLED = 'CANCELLED', - FULLY_CHARGED = 'FULLY_CHARGED', - FULLY_REFUNDED = 'FULLY_REFUNDED', - NOT_CHARGED = 'NOT_CHARGED', - PARTIALLY_CHARGED = 'PARTIALLY_CHARGED', - PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED', - PENDING = 'PENDING', - REFUSED = 'REFUSED' -} - -export type PaymentCheckBalanceInput = { - /** Information about card. */ - card: CardInput; - /** Slug of a channel for which the data should be returned. */ - channel: Scalars['String']; - /** An ID of a payment gateway to check. */ - gatewayId: Scalars['String']; - /** Payment method name. */ - method: Scalars['String']; -}; - -export enum PaymentErrorCode { - BALANCE_CHECK_ERROR = 'BALANCE_CHECK_ERROR', - BILLING_ADDRESS_NOT_SET = 'BILLING_ADDRESS_NOT_SET', - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - CHECKOUT_COMPLETION_IN_PROGRESS = 'CHECKOUT_COMPLETION_IN_PROGRESS', - CHECKOUT_EMAIL_NOT_SET = 'CHECKOUT_EMAIL_NOT_SET', - CHECKOUT_HAS_TRANSACTION = 'CHECKOUT_HAS_TRANSACTION', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_SHIPPING_METHOD = 'INVALID_SHIPPING_METHOD', - NOT_FOUND = 'NOT_FOUND', - NOT_SUPPORTED_GATEWAY = 'NOT_SUPPORTED_GATEWAY', - NO_CHECKOUT_LINES = 'NO_CHECKOUT_LINES', - PARTIAL_PAYMENT_NOT_ALLOWED = 'PARTIAL_PAYMENT_NOT_ALLOWED', - PAYMENT_ERROR = 'PAYMENT_ERROR', - REQUIRED = 'REQUIRED', - SHIPPING_ADDRESS_NOT_SET = 'SHIPPING_ADDRESS_NOT_SET', - SHIPPING_METHOD_NOT_SET = 'SHIPPING_METHOD_NOT_SET', - UNAVAILABLE_VARIANT_IN_CHANNEL = 'UNAVAILABLE_VARIANT_IN_CHANNEL', - UNIQUE = 'UNIQUE' -} - -export type PaymentFilterInput = { - checkouts?: InputMaybe>; - /** Filter by ids. */ - ids?: InputMaybe>; -}; - -export enum PaymentGatewayConfigErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export enum PaymentGatewayInitializeErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export enum PaymentGatewayInitializeTokenizationErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GATEWAY_ERROR = 'GATEWAY_ERROR', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -/** - * Result of initialize payment gateway for tokenization of payment method. - * - * The result of initialize payment gateway for tokenization of payment method. - * SUCCESSFULLY_INITIALIZED - The payment gateway was successfully initialized. - * FAILED_TO_INITIALIZE - The payment gateway was not initialized. - * FAILED_TO_DELIVER - The request to initialize payment gateway was not delivered. - */ -export enum PaymentGatewayInitializeTokenizationResult { - FAILED_TO_DELIVER = 'FAILED_TO_DELIVER', - FAILED_TO_INITIALIZE = 'FAILED_TO_INITIALIZE', - SUCCESSFULLY_INITIALIZED = 'SUCCESSFULLY_INITIALIZED' -} - -export type PaymentGatewayToInitialize = { - /** The data that will be passed to the payment gateway. */ - data?: InputMaybe; - /** The identifier of the payment gateway app to initialize. */ - id: Scalars['String']; -}; - -export type PaymentInput = { - /** Total amount of the transaction, including all taxes and discounts. If no amount is provided, the checkout total will be used. */ - amount?: InputMaybe; - /** A gateway to use with that payment. */ - gateway: Scalars['String']; - /** - * User public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** 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?: InputMaybe; - /** Payment store type. */ - storePaymentMethod?: InputMaybe; - /** Client-side generated payment token, representing customer's billing data in a secure manner. */ - token?: InputMaybe; -}; - -export type PaymentMethodDetailsCardFilterInput = { - /** Filter by payment method brand used to pay for the order. */ - brand?: InputMaybe; -}; - -export type PaymentMethodDetailsFilterInput = { - /** Filter by card details used to pay for the order. Skips `type` filter if provided. */ - card?: InputMaybe; - /** Filter by payment method type used to pay for the order. */ - type?: InputMaybe; -}; - -/** - * Details of the payment method used for the transaction. One of `card` or `other` is required. - * - * Added in Saleor 3.22. - */ -export type PaymentMethodDetailsInput = { - /** Details of the card payment method used for the transaction. */ - card?: InputMaybe; - /** Details of the non-card payment method used for this transaction. */ - other?: InputMaybe; -}; - -export enum PaymentMethodInitializeTokenizationErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GATEWAY_ERROR = 'GATEWAY_ERROR', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export enum PaymentMethodProcessTokenizationErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GATEWAY_ERROR = 'GATEWAY_ERROR', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -/** - * Result of tokenization of payment method. - * - * SUCCESSFULLY_TOKENIZED - The payment method was successfully tokenized. - * ADDITIONAL_ACTION_REQUIRED - The additional action is required to tokenize payment - * method. - * PENDING - The payment method is pending tokenization. - * FAILED_TO_TOKENIZE - The payment method was not tokenized. - * FAILED_TO_DELIVER - The request to tokenize payment method was not delivered. - */ -export enum PaymentMethodTokenizationResult { - ADDITIONAL_ACTION_REQUIRED = 'ADDITIONAL_ACTION_REQUIRED', - FAILED_TO_DELIVER = 'FAILED_TO_DELIVER', - FAILED_TO_TOKENIZE = 'FAILED_TO_TOKENIZE', - PENDING = 'PENDING', - SUCCESSFULLY_TOKENIZED = 'SUCCESSFULLY_TOKENIZED' -} - -/** - * Represents possible payment method types. - * - * The following types are possible: - * CARD - represents a card payment method. - * OTHER - represents any payment method that is not a card payment. - */ -export enum PaymentMethodTypeEnum { - CARD = 'CARD', - OTHER = 'OTHER' -} - -export type PaymentMethodTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export type PaymentSettingsInput = { - /** - * Specifies the earliest date on which funds for expired checkouts can begin to be released. Expired checkouts dated before this cut-off will not have their funds released. Additionally, no funds will be released for checkouts that are more than one year old, regardless of the cut-off date. - * - * Added in Saleor 3.20. - */ - checkoutReleaseFundsCutOffDate?: InputMaybe; - /** - * The time in hours after which funds for expired checkouts will be released. - * - * Added in Saleor 3.20. - */ - checkoutTtlBeforeReleasingFunds?: InputMaybe; - /** Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction. */ - defaultTransactionFlowStrategy?: InputMaybe; - /** - * Determine if the funds for expired checkouts should be released automatically. - * - * Added in Saleor 3.20. - */ - releaseFundsForExpiredCheckouts?: InputMaybe; -}; - -export enum PermissionEnum { - HANDLE_CHECKOUTS = 'HANDLE_CHECKOUTS', - HANDLE_PAYMENTS = 'HANDLE_PAYMENTS', - HANDLE_TAXES = 'HANDLE_TAXES', - IMPERSONATE_USER = 'IMPERSONATE_USER', - MANAGE_APPS = 'MANAGE_APPS', - MANAGE_CHANNELS = 'MANAGE_CHANNELS', - MANAGE_CHECKOUTS = 'MANAGE_CHECKOUTS', - MANAGE_DISCOUNTS = 'MANAGE_DISCOUNTS', - MANAGE_GIFT_CARD = 'MANAGE_GIFT_CARD', - MANAGE_MENUS = 'MANAGE_MENUS', - MANAGE_OBSERVABILITY = 'MANAGE_OBSERVABILITY', - MANAGE_ORDERS = 'MANAGE_ORDERS', - MANAGE_ORDERS_IMPORT = 'MANAGE_ORDERS_IMPORT', - MANAGE_PAGES = 'MANAGE_PAGES', - MANAGE_PAGE_TYPES_AND_ATTRIBUTES = 'MANAGE_PAGE_TYPES_AND_ATTRIBUTES', - MANAGE_PLUGINS = 'MANAGE_PLUGINS', - MANAGE_PRODUCTS = 'MANAGE_PRODUCTS', - MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES = 'MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES', - MANAGE_SETTINGS = 'MANAGE_SETTINGS', - MANAGE_SHIPPING = 'MANAGE_SHIPPING', - MANAGE_STAFF = 'MANAGE_STAFF', - MANAGE_TAXES = 'MANAGE_TAXES', - MANAGE_TRANSLATIONS = 'MANAGE_TRANSLATIONS', - MANAGE_USERS = 'MANAGE_USERS' -} - -export type PermissionGroupCreateInput = { - /** List of channels to assign to this group. */ - addChannels?: InputMaybe>; - /** List of permission code names to assign to this group. */ - addPermissions?: InputMaybe>; - /** List of users to assign to this group. */ - addUsers?: InputMaybe>; - /** Group name. */ - name: Scalars['String']; - /** Determine if the group has restricted access to channels. DEFAULT: False */ - restrictedAccessToChannels?: InputMaybe; -}; - -export enum PermissionGroupErrorCode { - ASSIGN_NON_STAFF_MEMBER = 'ASSIGN_NON_STAFF_MEMBER', - CANNOT_REMOVE_FROM_LAST_GROUP = 'CANNOT_REMOVE_FROM_LAST_GROUP', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - LEFT_NOT_MANAGEABLE_PERMISSION = 'LEFT_NOT_MANAGEABLE_PERMISSION', - OUT_OF_SCOPE_CHANNEL = 'OUT_OF_SCOPE_CHANNEL', - OUT_OF_SCOPE_PERMISSION = 'OUT_OF_SCOPE_PERMISSION', - OUT_OF_SCOPE_USER = 'OUT_OF_SCOPE_USER', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type PermissionGroupFilterInput = { - ids?: InputMaybe>; - search?: InputMaybe; -}; - -/** Sorting options for permission groups. */ -export enum PermissionGroupSortField { - /** Sort permission group accounts by name. */ - NAME = 'NAME' -} - -export type PermissionGroupSortingInput = { - /** Specifies the direction in which to sort permission group. */ - direction: OrderDirection; - /** Sort permission group by the selected field. */ - field: PermissionGroupSortField; -}; - -export type PermissionGroupUpdateInput = { - /** List of channels to assign to this group. */ - addChannels?: InputMaybe>; - /** List of permission code names to assign to this group. */ - addPermissions?: InputMaybe>; - /** List of users to assign to this group. */ - addUsers?: InputMaybe>; - /** Group name. */ - name?: InputMaybe; - /** List of channels to unassign from this group. */ - removeChannels?: InputMaybe>; - /** List of permission code names to unassign from this group. */ - removePermissions?: InputMaybe>; - /** List of users to unassign from this group. */ - removeUsers?: InputMaybe>; - /** Determine if the group has restricted access to channels. */ - restrictedAccessToChannels?: InputMaybe; -}; - -export enum PluginConfigurationType { - GLOBAL = 'GLOBAL', - PER_CHANNEL = 'PER_CHANNEL' -} - -export enum PluginErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - PLUGIN_MISCONFIGURED = 'PLUGIN_MISCONFIGURED', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type PluginFilterInput = { - search?: InputMaybe; - statusInChannels?: InputMaybe; - type?: InputMaybe; -}; - -export enum PluginSortField { - IS_ACTIVE = 'IS_ACTIVE', - NAME = 'NAME' -} - -export type PluginSortingInput = { - /** Specifies the direction in which to sort plugins. */ - direction: OrderDirection; - /** Sort plugins by the selected field. */ - field: PluginSortField; -}; - -export type PluginStatusInChannelsInput = { - active: Scalars['Boolean']; - channels: Array; -}; - -export type PluginUpdateInput = { - /** Indicates whether the plugin should be enabled. */ - active?: InputMaybe; - /** Configuration of the plugin. */ - configuration?: InputMaybe>; -}; - -export enum PostalCodeRuleInclusionTypeEnum { - EXCLUDE = 'EXCLUDE', - INCLUDE = 'INCLUDE' -} - -export type PreorderSettingsInput = { - /** The end date for preorder. */ - endDate?: InputMaybe; - /** The global threshold for preorder variant. */ - globalThreshold?: InputMaybe; -}; - -export type PriceFilterInput = { - /** The amount of the price to filter by. */ - amount: DecimalFilterInput; - /** The currency of the price to filter by. */ - currency?: InputMaybe; -}; - -export type PriceInput = { - /** Amount of money. */ - amount: Scalars['PositiveDecimal']; - /** Currency code. */ - currency: Scalars['String']; -}; - -export type PriceRangeInput = { - /** Price greater than or equal to. */ - gte?: InputMaybe; - /** Price less than or equal to. */ - lte?: InputMaybe; -}; - -export type ProductAttributeAssignInput = { - /** The ID of the attribute to assign. */ - id: Scalars['ID']; - /** The attribute type to be assigned as. */ - type: ProductAttributeType; - /** Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. */ - variantSelection?: InputMaybe; -}; - -export type ProductAttributeAssignmentUpdateInput = { - /** The ID of the attribute to assign. */ - id: Scalars['ID']; - /** Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric']. */ - variantSelection: Scalars['Boolean']; -}; - -export enum ProductAttributeType { - PRODUCT = 'PRODUCT', - VARIANT = 'VARIANT' -} - -export enum ProductBulkCreateErrorCode { - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', - ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - BLANK = 'BLANK', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_PRICE = 'INVALID_PRICE', - MAX_LENGTH = 'MAX_LENGTH', - NOT_FOUND = 'NOT_FOUND', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', - PRODUCT_WITHOUT_CATEGORY = 'PRODUCT_WITHOUT_CATEGORY', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - UNSUPPORTED_MEDIA_PROVIDER = 'UNSUPPORTED_MEDIA_PROVIDER' -} - -export type ProductBulkCreateInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** ID of the product's category. */ - category?: InputMaybe; - /** List of channels in which the product is available. */ - channelListings?: InputMaybe>; - /** - * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - */ - chargeTaxes?: InputMaybe; - /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; - /** - * Product description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** External ID of this product. */ - externalReference?: InputMaybe; - /** List of media inputs associated with the product. */ - media?: InputMaybe>; - /** - * Fields required to update the product metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Product name. */ - name?: InputMaybe; - /** - * Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** ID of the type that product belongs to. */ - productType: Scalars['ID']; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Product slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. - */ - taxCode?: InputMaybe; - /** Input list of product variants to create. */ - variants?: InputMaybe>; - /** Weight of the Product. */ - weight?: InputMaybe; -}; - -export type ProductBulkTranslateInput = { - /** External reference of an product. */ - externalReference?: InputMaybe; - /** Product ID. */ - id?: InputMaybe; - /** Translation language code. */ - languageCode: LanguageCodeEnum; - /** Translation fields. */ - translationFields: TranslationInput; -}; - -export type ProductChannelListingAddInput = { - /** List of variants to which the channel should be assigned. */ - addVariants?: InputMaybe>; - /** A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. */ - availableForPurchaseAt?: InputMaybe; - /** - * 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. - * @deprecated Use `availableForPurchaseAt` field instead. - */ - availableForPurchaseDate?: InputMaybe; - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ - isAvailableForPurchase?: InputMaybe; - /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; - /** List of variants from which the channel should be unassigned. */ - removeVariants?: InputMaybe>; - /** Determines if product is visible in product listings (doesn't apply to product collections). */ - visibleInListings?: InputMaybe; -}; - -export type ProductChannelListingCreateInput = { - /** A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed. */ - availableForPurchaseAt?: InputMaybe; - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased. */ - isAvailableForPurchase?: InputMaybe; - /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; - /** Determines if product is visible in product listings (doesn't apply to product collections). */ - visibleInListings?: InputMaybe; -}; - -export type ProductChannelListingUpdateInput = { - /** List of channels from which the product should be unassigned. */ - removeChannels?: InputMaybe>; - /** List of channels to which the product should be assigned or updated. */ - updateChannels?: InputMaybe>; -}; - -export type ProductCreateInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** ID of the product's category. */ - category?: InputMaybe; - /** - * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - */ - chargeTaxes?: InputMaybe; - /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; - /** - * Product description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** External ID of this product. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Product name. */ - name?: InputMaybe; - /** - * Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** ID of the type that product belongs to. */ - productType: Scalars['ID']; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Product slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. - */ - taxCode?: InputMaybe; - /** Weight of the Product. */ - weight?: InputMaybe; -}; - -export enum ProductErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', - ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT = 'CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANT', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_PRICE = 'INVALID_PRICE', - MEDIA_ALREADY_ASSIGNED = 'MEDIA_ALREADY_ASSIGNED', - NOT_FOUND = 'NOT_FOUND', - NOT_PRODUCTS_IMAGE = 'NOT_PRODUCTS_IMAGE', - NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', - PREORDER_VARIANT_CANNOT_BE_DEACTIVATED = 'PREORDER_VARIANT_CANNOT_BE_DEACTIVATED', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', - PRODUCT_WITHOUT_CATEGORY = 'PRODUCT_WITHOUT_CATEGORY', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE', - UNSUPPORTED_MEDIA_PROVIDER = 'UNSUPPORTED_MEDIA_PROVIDER', - VARIANT_NO_DIGITAL_CONTENT = 'VARIANT_NO_DIGITAL_CONTENT' -} - -export enum ProductFieldEnum { - CATEGORY = 'CATEGORY', - CHARGE_TAXES = 'CHARGE_TAXES', - COLLECTIONS = 'COLLECTIONS', - DESCRIPTION = 'DESCRIPTION', - NAME = 'NAME', - PRODUCT_MEDIA = 'PRODUCT_MEDIA', - PRODUCT_TYPE = 'PRODUCT_TYPE', - PRODUCT_WEIGHT = 'PRODUCT_WEIGHT', - VARIANT_ID = 'VARIANT_ID', - VARIANT_MEDIA = 'VARIANT_MEDIA', - VARIANT_SKU = 'VARIANT_SKU', - VARIANT_WEIGHT = 'VARIANT_WEIGHT' -} - -export type ProductFilterInput = { - attributes?: InputMaybe>; - /** Filter by the date of availability for purchase. */ - availableFrom?: InputMaybe; - categories?: InputMaybe>; - /** - * Specifies the channel by which the data should be filtered. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - collections?: InputMaybe>; - /** Filter on whether product is a gift card or not. */ - giftCard?: InputMaybe; - hasCategory?: InputMaybe; - hasPreorderedVariants?: InputMaybe; - ids?: InputMaybe>; - /** Filter by availability for purchase. */ - isAvailable?: InputMaybe; - isPublished?: InputMaybe; - /** Filter by visibility in product listings. */ - isVisibleInListing?: InputMaybe; - metadata?: InputMaybe>; - /** Filter by the lowest variant price after discounts. */ - minimalPrice?: InputMaybe; - price?: InputMaybe; - productTypes?: InputMaybe>; - /** Filter by the publication date. */ - publishedFrom?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; - /** Filter by variants having specific stock status. */ - stockAvailability?: InputMaybe; - stocks?: InputMaybe; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; -}; - -export type ProductInput = { - /** List of attributes. */ - attributes?: InputMaybe>; - /** ID of the product's category. */ - category?: InputMaybe; - /** - * Determine if taxes are being charged for the product. - * @deprecated Use `Channel.taxConfiguration` to configure whether tax collection is enabled. - */ - chargeTaxes?: InputMaybe; - /** List of IDs of collections that the product belongs to. */ - collections?: InputMaybe>; - /** - * Product description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - /** External ID of this product. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Product name. */ - name?: InputMaybe; - /** - * Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Defines the product rating value. */ - rating?: InputMaybe; - /** Search engine optimization fields. */ - seo?: InputMaybe; - /** Product slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. - */ - taxCode?: InputMaybe; - /** Weight of the Product. */ - weight?: InputMaybe; -}; - -export type ProductMediaCreateInput = { - /** Alt text for a product media. */ - alt?: InputMaybe; - /** Represents an image file in a multipart request. */ - image?: InputMaybe; - /** Represents an URL to an external media. */ - mediaUrl?: InputMaybe; - /** ID of an product. */ - product: Scalars['ID']; -}; - -export enum ProductMediaType { - IMAGE = 'IMAGE', - VIDEO = 'VIDEO' -} - -export type ProductMediaUpdateInput = { - /** Alt text for a product media. */ - alt?: InputMaybe; -}; - -export type ProductOrder = { - /** - * Sort product by the selected attribute's values. - * Note: this doesn't take translations into account yet. - */ - attributeId?: InputMaybe; - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort products. */ - direction: OrderDirection; - /** Sort products by the selected field. */ - field?: InputMaybe; -}; - -export enum ProductOrderField { - /** - * Sort products by collection. Note: This option is available only for the `Collection.products` query. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - COLLECTION = 'COLLECTION', - /** Sort products by creation date. */ - CREATED_AT = 'CREATED_AT', - /** - * Sort products by update date. - * @deprecated Use `LAST_MODIFIED_AT` instead. - */ - DATE = 'DATE', - /** - * Sort products by update date. - * @deprecated Use `LAST_MODIFIED_AT` instead. - */ - LAST_MODIFIED = 'LAST_MODIFIED', - /** Sort products by update date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** - * Sort products by a minimal price of a product's variant. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - MINIMAL_PRICE = 'MINIMAL_PRICE', - /** Sort products by name. */ - NAME = 'NAME', - /** - * Sort products by price. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PRICE = 'PRICE', - /** - * Sort products by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - * @deprecated Use `PUBLISHED_AT` instead. - */ - PUBLICATION_DATE = 'PUBLICATION_DATE', - /** - * Sort products by publication status. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED = 'PUBLISHED', - /** - * Sort products by publication date. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - PUBLISHED_AT = 'PUBLISHED_AT', - /** Sort products by rank. Note: This option is available only with the `search` filter. */ - RANK = 'RANK', - /** Sort products by rating. */ - RATING = 'RATING', - /** Sort products by type. */ - TYPE = 'TYPE' -} - -export type ProductStockFilterInput = { - quantity?: InputMaybe; - warehouseIds?: InputMaybe>; -}; - -export enum ProductTranslateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export enum ProductTypeConfigurable { - CONFIGURABLE = 'CONFIGURABLE', - SIMPLE = 'SIMPLE' -} - -export enum ProductTypeEnum { - DIGITAL = 'DIGITAL', - SHIPPABLE = 'SHIPPABLE' -} - -export type ProductTypeFilterInput = { - configurable?: InputMaybe; - ids?: InputMaybe>; - kind?: InputMaybe; - metadata?: InputMaybe>; - productType?: InputMaybe; - search?: InputMaybe; - slugs?: InputMaybe>; -}; - -export type ProductTypeInput = { - /** 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?: InputMaybe; - /** Determines if products are digital. */ - isDigital?: InputMaybe; - /** Determines if shipping is required for products of this variant. */ - isShippingRequired?: InputMaybe; - /** The product type kind. */ - kind?: InputMaybe; - /** Name of the product type. */ - name?: InputMaybe; - /** List of attributes shared among all product variants. */ - productAttributes?: InputMaybe>; - /** Product type slug. */ - slug?: InputMaybe; - /** ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it's overridden in the `Product` type. */ - taxClass?: InputMaybe; - /** - * Tax rate for enabled tax gateway. - * @deprecated Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned. - */ - taxCode?: InputMaybe; - /** List of attributes used to distinguish between different variants of a product. */ - variantAttributes?: InputMaybe>; - /** Weight of the ProductType items. */ - weight?: InputMaybe; -}; - -export enum ProductTypeKindEnum { - GIFT_CARD = 'GIFT_CARD', - NORMAL = 'NORMAL' -} - -export enum ProductTypeSortField { - /** Sort products by type. */ - DIGITAL = 'DIGITAL', - /** Sort products by name. */ - NAME = 'NAME', - /** Sort products by shipping. */ - SHIPPING_REQUIRED = 'SHIPPING_REQUIRED' -} - -export type ProductTypeSortingInput = { - /** Specifies the direction in which to sort product types. */ - direction: OrderDirection; - /** Sort product types by the selected field. */ - field: ProductTypeSortField; -}; - -export type ProductVariantBulkCreateInput = { - /** List of attributes specific to this variant. */ - attributes: Array; - /** List of prices assigned to channels. */ - channelListings?: InputMaybe>; - /** External ID of this product variant. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Variant name. */ - name?: InputMaybe; - /** Determines if variant is in preorder. */ - preorder?: InputMaybe; - /** - * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ - quantityLimitPerCustomer?: InputMaybe; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Stocks of a product available for sale. */ - stocks?: InputMaybe>; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; -}; - -export enum ProductVariantBulkErrorCode { - ATTRIBUTE_ALREADY_ASSIGNED = 'ATTRIBUTE_ALREADY_ASSIGNED', - ATTRIBUTE_CANNOT_BE_ASSIGNED = 'ATTRIBUTE_CANNOT_BE_ASSIGNED', - ATTRIBUTE_VARIANTS_DISABLED = 'ATTRIBUTE_VARIANTS_DISABLED', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_PRICE = 'INVALID_PRICE', - NOT_FOUND = 'NOT_FOUND', - NOT_PRODUCTS_VARIANT = 'NOT_PRODUCTS_VARIANT', - PRODUCT_NOT_ASSIGNED_TO_CHANNEL = 'PRODUCT_NOT_ASSIGNED_TO_CHANNEL', - REQUIRED = 'REQUIRED', - STOCK_ALREADY_EXISTS = 'STOCK_ALREADY_EXISTS', - UNIQUE = 'UNIQUE' -} - -export type ProductVariantBulkTranslateInput = { - /** External reference of a product variant. */ - externalReference?: InputMaybe; - /** Product variant ID. */ - id?: InputMaybe; - /** Translation language code. */ - languageCode: LanguageCodeEnum; - /** Translation fields. */ - translationFields: NameTranslationInput; -}; - -/** Input fields to update product variants. */ -export type ProductVariantBulkUpdateInput = { - /** List of attributes specific to this variant. */ - attributes?: InputMaybe>; - /** Channel listings input. */ - channelListings?: InputMaybe; - /** External ID of this product variant. */ - externalReference?: InputMaybe; - /** ID of the product variant to update. */ - id: Scalars['ID']; - /** - * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Variant name. */ - name?: InputMaybe; - /** Determines if variant is in preorder. */ - preorder?: InputMaybe; - /** - * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ - quantityLimitPerCustomer?: InputMaybe; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Stocks input. */ - stocks?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; -}; - -export type ProductVariantChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Cost price of the variant in channel. */ - costPrice?: InputMaybe; - /** The threshold for preorder variant in channel. */ - preorderThreshold?: InputMaybe; - /** Price of the particular variant in channel. */ - price: Scalars['PositiveDecimal']; - /** - * Previous price of the variant in channel. Useful for providing promotion information required by customer protection laws such as EU Omnibus directive. - * - * Added in Saleor 3.21. - */ - priorPrice?: InputMaybe; -}; - -export type ProductVariantChannelListingUpdateInput = { - /** List of channels to create variant channel listings. */ - create?: InputMaybe>; - /** List of channel listings to remove. */ - remove?: InputMaybe>; - /** List of channel listings to update. */ - update?: InputMaybe>; -}; - -export type ProductVariantCreateInput = { - /** List of attributes specific to this variant. */ - attributes: Array; - /** External ID of this product variant. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Variant name. */ - name?: InputMaybe; - /** Determines if variant is in preorder. */ - preorder?: InputMaybe; - /** - * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Product ID of which type is the variant. */ - product: Scalars['ID']; - /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ - quantityLimitPerCustomer?: InputMaybe; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Stocks of a product available for sale. */ - stocks?: InputMaybe>; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; -}; - -export type ProductVariantFilterInput = { - isPreorder?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - sku?: InputMaybe>; - updatedAt?: InputMaybe; -}; - -export type ProductVariantInput = { - /** List of attributes specific to this variant. */ - attributes?: InputMaybe>; - /** External ID of this product variant. */ - externalReference?: InputMaybe; - /** - * Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Variant name. */ - name?: InputMaybe; - /** Determines if variant is in preorder. */ - preorder?: InputMaybe; - /** - * Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout. */ - quantityLimitPerCustomer?: InputMaybe; - /** Stock keeping unit. */ - sku?: InputMaybe; - /** Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used. */ - trackInventory?: InputMaybe; - /** Weight of the Product Variant. */ - weight?: InputMaybe; -}; - -export enum ProductVariantSortField { - /** Sort product variants by last modification date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT' -} - -export type ProductVariantSortingInput = { - /** Specifies the direction in which to sort productVariants. */ - direction: OrderDirection; - /** Sort productVariants by the selected field. */ - field: ProductVariantSortField; -}; - -export type ProductVariantStocksUpdateInput = { - /** List of warehouses to create stocks. */ - create?: InputMaybe>; - /** List of stocks to remove. */ - remove?: InputMaybe>; - /** List of stocks to update. */ - update?: InputMaybe>; -}; - -export enum ProductVariantTranslateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export type ProductVariantWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** - * Filter by attributes associated with the variant. - * - * Added in Saleor 3.22. - */ - attributes?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; - /** Filter by product SKU. */ - sku?: InputMaybe; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; -}; - -export type ProductWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter by attributes associated with the product. */ - attributes?: InputMaybe>; - /** Filter by the date of availability for purchase. */ - availableFrom?: InputMaybe; - /** Filter by product category. */ - category?: InputMaybe; - /** Filter by collection. */ - collection?: InputMaybe; - /** Filter on whether product is a gift card or not. */ - giftCard?: InputMaybe; - /** Filter by product with category assigned. */ - hasCategory?: InputMaybe; - /** Filter by product with preordered variants. */ - hasPreorderedVariants?: InputMaybe; - ids?: InputMaybe>; - /** Filter by availability for purchase. */ - isAvailable?: InputMaybe; - /** Filter by public visibility. */ - isPublished?: InputMaybe; - /** Filter by visibility on the channel. */ - isVisibleInListing?: InputMaybe; - metadata?: InputMaybe>; - /** Filter by the lowest variant price after discounts. */ - minimalPrice?: InputMaybe; - /** Filter by product name. */ - name?: InputMaybe; - /** Filter by product variant price. */ - price?: InputMaybe; - /** Filter by product type. */ - productType?: InputMaybe; - /** Filter by the publication date. */ - publishedFrom?: InputMaybe; - /** Filter by product slug. */ - slug?: InputMaybe; - /** Filter by variants having specific stock status. */ - stockAvailability?: InputMaybe; - /** Filter by stock of the product variant. */ - stocks?: InputMaybe; - /** Filter by when was the most recent update. */ - updatedAt?: InputMaybe; -}; - -export enum PromotionCreateErrorCode { - GIFTS_NUMBER_LIMIT = 'GIFTS_NUMBER_LIMIT', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_GIFT_TYPE = 'INVALID_GIFT_TYPE', - INVALID_PRECISION = 'INVALID_PRECISION', - MISSING_CHANNELS = 'MISSING_CHANNELS', - MULTIPLE_CURRENCIES_NOT_ALLOWED = 'MULTIPLE_CURRENCIES_NOT_ALLOWED', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - RULES_NUMBER_LIMIT = 'RULES_NUMBER_LIMIT' -} - -export type PromotionCreateInput = { - /** Promotion description. */ - description?: InputMaybe; - /** The end date of the promotion in ISO 8601 format. */ - endDate?: InputMaybe; - /** Promotion name. */ - name: Scalars['String']; - /** List of promotion rules. */ - rules?: InputMaybe>; - /** The start date of the promotion in ISO 8601 format. */ - startDate?: InputMaybe; - /** - * Defines the promotion type. Implicate the required promotion rules predicate type and whether the promotion rules will give the catalogue or order discount. - * - * Added in Saleor 3.19. - */ - type: PromotionTypeEnum; -}; - -export enum PromotionDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND' -} - -export enum PromotionEventsEnum { - PROMOTION_CREATED = 'PROMOTION_CREATED', - PROMOTION_ENDED = 'PROMOTION_ENDED', - PROMOTION_STARTED = 'PROMOTION_STARTED', - PROMOTION_UPDATED = 'PROMOTION_UPDATED', - RULE_CREATED = 'RULE_CREATED', - RULE_DELETED = 'RULE_DELETED', - RULE_UPDATED = 'RULE_UPDATED' -} - -export enum PromotionRuleCreateErrorCode { - GIFTS_NUMBER_LIMIT = 'GIFTS_NUMBER_LIMIT', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_GIFT_TYPE = 'INVALID_GIFT_TYPE', - INVALID_PRECISION = 'INVALID_PRECISION', - MISSING_CHANNELS = 'MISSING_CHANNELS', - MULTIPLE_CURRENCIES_NOT_ALLOWED = 'MULTIPLE_CURRENCIES_NOT_ALLOWED', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - RULES_NUMBER_LIMIT = 'RULES_NUMBER_LIMIT' -} - -export type PromotionRuleCreateInput = { - /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ - cataloguePredicate?: InputMaybe; - /** List of channel ids to which the rule should apply to. */ - channels?: InputMaybe>; - /** Promotion rule description. */ - description?: InputMaybe; - /** - * Product variant IDs available as a gift to choose. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - gifts?: InputMaybe>; - /** Promotion rule name. */ - name?: InputMaybe; - /** - * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - orderPredicate?: InputMaybe; - /** The ID of the promotion that rule belongs to. */ - promotion: Scalars['ID']; - /** - * Defines the reward type of the promotion rule. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - rewardType?: InputMaybe; - /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; - /** Defines the promotion rule reward value type. Must be provided together with reward value. */ - rewardValueType?: InputMaybe; -}; - -export enum PromotionRuleDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - NOT_FOUND = 'NOT_FOUND' -} - -export type PromotionRuleInput = { - /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ - cataloguePredicate?: InputMaybe; - /** List of channel ids to which the rule should apply to. */ - channels?: InputMaybe>; - /** Promotion rule description. */ - description?: InputMaybe; - /** - * Product variant IDs available as a gift to choose. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - gifts?: InputMaybe>; - /** Promotion rule name. */ - name?: InputMaybe; - /** - * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - orderPredicate?: InputMaybe; - /** - * Defines the reward type of the promotion rule. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - rewardType?: InputMaybe; - /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; - /** Defines the promotion rule reward value type. Must be provided together with reward value. */ - rewardValueType?: InputMaybe; -}; - -export type PromotionRuleTranslationInput = { - /** - * Translated promotion description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - name?: InputMaybe; -}; - -export enum PromotionRuleUpdateErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GIFTS_NUMBER_LIMIT = 'GIFTS_NUMBER_LIMIT', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_GIFT_TYPE = 'INVALID_GIFT_TYPE', - INVALID_PRECISION = 'INVALID_PRECISION', - MISSING_CHANNELS = 'MISSING_CHANNELS', - MULTIPLE_CURRENCIES_NOT_ALLOWED = 'MULTIPLE_CURRENCIES_NOT_ALLOWED', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export type PromotionRuleUpdateInput = { - /** List of channel ids to add. */ - addChannels?: InputMaybe>; - /** - * List of variant IDs available as a gift to add. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - addGifts?: InputMaybe>; - /** Defines the conditions on the catalogue level that must be met for the reward to be applied. */ - cataloguePredicate?: InputMaybe; - /** Promotion rule description. */ - description?: InputMaybe; - /** Promotion rule name. */ - name?: InputMaybe; - /** - * Defines the conditions on the checkout/draft order level that must be met for the reward to be applied. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - orderPredicate?: InputMaybe; - /** List of channel ids to remove. */ - removeChannels?: InputMaybe>; - /** - * List of variant IDs available as a gift to remove. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - removeGifts?: InputMaybe>; - /** - * Defines the reward type of the promotion rule. - * - * Added in Saleor 3.19. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - rewardType?: InputMaybe; - /** Defines the discount value. Required when catalogue predicate is provided. */ - rewardValue?: InputMaybe; - /** Defines the promotion rule reward value type. Must be provided together with reward value. */ - rewardValueType?: InputMaybe; -}; - -export enum PromotionSortField { - /** Sort promotions by creation date. */ - CREATED_AT = 'CREATED_AT', - /** Sort promotions by end date. */ - END_DATE = 'END_DATE', - /** Sort promotions by name. */ - NAME = 'NAME', - /** Sort promotions by start date. */ - START_DATE = 'START_DATE' -} - -export type PromotionSortingInput = { - /** Specifies the direction in which to sort promotions. */ - direction: OrderDirection; - /** Sort promotions by the selected field. */ - field: PromotionSortField; -}; - -export type PromotionTranslationInput = { - /** - * Translated promotion description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - name?: InputMaybe; -}; - -export enum PromotionTypeEnum { - CATALOGUE = 'CATALOGUE', - ORDER = 'ORDER' -} - -export type PromotionTypeEnumFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum PromotionUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export type PromotionUpdateInput = { - /** Promotion description. */ - description?: InputMaybe; - /** The end date of the promotion in ISO 8601 format. */ - endDate?: InputMaybe; - /** Promotion name. */ - name?: InputMaybe; - /** The start date of the promotion in ISO 8601 format. */ - startDate?: InputMaybe; -}; - -export type PromotionWhereInput = { - /** List of conditions that must be met. */ - AND?: InputMaybe>; - /** A list of conditions of which at least one must be met. */ - OR?: InputMaybe>; - /** Filter promotions by end date. */ - endDate?: InputMaybe; - ids?: InputMaybe>; - isOldSale?: InputMaybe; - metadata?: InputMaybe>; - /** Filter by promotion name. */ - name?: InputMaybe; - /** Filter promotions by start date. */ - startDate?: InputMaybe; - type?: InputMaybe; -}; - -export type PublishableChannelListingInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Determines if object is visible to customers. */ - isPublished?: InputMaybe; - /** - * Publication date. ISO 8601 standard. - * @deprecated Use `publishedAt` field instead. - */ - publicationDate?: InputMaybe; - /** Publication date time. ISO 8601 standard. */ - publishedAt?: InputMaybe; -}; - -export enum RefundSettingsErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - REQUIRED = 'REQUIRED' -} - -export type RefundSettingsUpdateInput = { - /** - * The ID of a model type, that will be used to reference refund reasons. All models with of this type will be accepted as refund reasons. - * - * Added in Saleor 3.22. - */ - refundReasonReferenceType: Scalars['ID']; -}; - -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?: InputMaybe; -}; - -export enum ReportingPeriod { - THIS_MONTH = 'THIS_MONTH', - TODAY = 'TODAY' -} - -export enum RewardTypeEnum { - GIFT = 'GIFT', - SUBTOTAL_DISCOUNT = 'SUBTOTAL_DISCOUNT' -} - -export enum RewardValueTypeEnum { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE' -} - -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?: InputMaybe>; - /** List of channels from which the sale should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -export type SaleFilterInput = { - metadata?: InputMaybe>; - saleType?: InputMaybe; - search?: InputMaybe; - started?: InputMaybe; - status?: InputMaybe>; - updatedAt?: InputMaybe; -}; - -export type SaleInput = { - /** Categories related to the discount. */ - categories?: InputMaybe>; - /** Collections related to the discount. */ - collections?: InputMaybe>; - /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; - /** Voucher name. */ - name?: InputMaybe; - /** Products related to the discount. */ - products?: InputMaybe>; - /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; - /** Fixed or percentage. */ - type?: InputMaybe; - /** Value of the voucher. */ - value?: InputMaybe; - variants?: InputMaybe>; -}; - -export enum SaleSortField { - /** Sort sales by creation date. */ - CREATED_AT = 'CREATED_AT', - /** Sort sales by end date. */ - END_DATE = 'END_DATE', - /** Sort sales by last modification date. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** Sort sales by name. */ - NAME = 'NAME', - /** Sort sales by start date. */ - START_DATE = 'START_DATE', - /** Sort sales by type. */ - TYPE = 'TYPE', - /** - * Sort sales by value. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - VALUE = 'VALUE' -} - -export type SaleSortingInput = { - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort sales. */ - direction: OrderDirection; - /** Sort sales by the selected field. */ - field: SaleSortField; -}; - -export enum SaleType { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE' -} - -export enum SendConfirmationEmailErrorCode { - ACCOUNT_CONFIRMED = 'ACCOUNT_CONFIRMED', - CONFIRMATION_ALREADY_REQUESTED = 'CONFIRMATION_ALREADY_REQUESTED', - INVALID = 'INVALID', - MISSING_CHANNEL_SLUG = 'MISSING_CHANNEL_SLUG' -} - -export type SeoInput = { - /** SEO description. */ - description?: InputMaybe; - /** SEO title. */ - title?: InputMaybe; -}; - -export enum ShippingErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MAX_LESS_THAN_MIN = 'MAX_LESS_THAN_MIN', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type ShippingMethodChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Maximum order price to use this shipping method. */ - maximumOrderPrice?: InputMaybe; - /** Minimum order price to use this shipping method. */ - minimumOrderPrice?: InputMaybe; - /** Shipping price of the shipping method in this channel. */ - price?: InputMaybe; -}; - -export type ShippingMethodChannelListingInput = { - /** List of channels to which the shipping method should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the shipping method should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -export enum ShippingMethodTypeEnum { - PRICE = 'PRICE', - WEIGHT = 'WEIGHT' -} - -export type ShippingPostalCodeRulesCreateInputRange = { - /** End range of the postal code. */ - end?: InputMaybe; - /** Start range of the postal code. */ - start: Scalars['String']; -}; - -export type ShippingPriceExcludeProductsInput = { - /** List of products which will be excluded. */ - products: Array; -}; - -export type ShippingPriceInput = { - /** Postal code rules to add. */ - addPostalCodeRules?: InputMaybe>; - /** Postal code rules to delete. */ - deletePostalCodeRules?: InputMaybe>; - /** Shipping method description. */ - description?: InputMaybe; - /** Inclusion type for currently assigned postal code rules. */ - inclusionType?: InputMaybe; - /** Maximum number of days for delivery. */ - maximumDeliveryDays?: InputMaybe; - /** Maximum order weight to use this shipping method. */ - maximumOrderWeight?: InputMaybe; - /** Minimal number of days for delivery. */ - minimumDeliveryDays?: InputMaybe; - /** Minimum order weight to use this shipping method. */ - minimumOrderWeight?: InputMaybe; - /** Name of the shipping method. */ - name?: InputMaybe; - /** Shipping zone this method belongs to. */ - shippingZone?: InputMaybe; - /** ID of a tax class to assign to this shipping method. If not provided, the default tax class will be used. */ - taxClass?: InputMaybe; - /** Shipping type: price or weight based. */ - type?: InputMaybe; -}; - -export type ShippingPriceTranslationInput = { - /** - * Translated shipping method description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - name?: InputMaybe; -}; - -export type ShippingZoneCreateInput = { - /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; - /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; - /** List of countries in this shipping zone. */ - countries?: InputMaybe>; - /** Default shipping zone will be used for countries not covered by other zones. */ - default?: InputMaybe; - /** Description of the shipping zone. */ - description?: InputMaybe; - /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; -}; - -export type ShippingZoneFilterInput = { - channels?: InputMaybe>; - search?: InputMaybe; -}; - -export type ShippingZoneUpdateInput = { - /** List of channels to assign to the shipping zone. */ - addChannels?: InputMaybe>; - /** List of warehouses to assign to a shipping zone */ - addWarehouses?: InputMaybe>; - /** List of countries in this shipping zone. */ - countries?: InputMaybe>; - /** Default shipping zone will be used for countries not covered by other zones. */ - default?: InputMaybe; - /** Description of the shipping zone. */ - description?: InputMaybe; - /** Shipping zone's name. Visible only to the staff. */ - name?: InputMaybe; - /** List of channels to unassign from the shipping zone. */ - removeChannels?: InputMaybe>; - /** List of warehouses to unassign from a shipping zone */ - removeWarehouses?: InputMaybe>; -}; - -export enum ShopErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - CANNOT_FETCH_TAX_RATES = 'CANNOT_FETCH_TAX_RATES', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type ShopSettingsInput = { - /** Enable possibility to login without account confirmation. */ - allowLoginWithoutConfirmation?: InputMaybe; - /** Enable automatic fulfillment for all digital products. */ - automaticFulfillmentDigitalProducts?: InputMaybe; - /** - * Charge taxes on shipping. - * @deprecated To enable taxes for a shipping method, assign a tax class to the shipping method with `shippingPriceCreate` or `shippingPriceUpdate` mutations. - */ - chargeTaxesOnShipping?: InputMaybe; - /** URL of a view where customers can set their password. */ - customerSetPasswordUrl?: InputMaybe; - /** Default number of max downloads per digital content URL. */ - defaultDigitalMaxDownloads?: InputMaybe; - /** Default number of days which digital content URL will be valid. */ - defaultDigitalUrlValidDays?: InputMaybe; - /** Default email sender's address. */ - defaultMailSenderAddress?: InputMaybe; - /** Default email sender's name. */ - defaultMailSenderName?: InputMaybe; - /** Default weight unit. */ - defaultWeightUnit?: InputMaybe; - /** SEO description. */ - description?: InputMaybe; - /** - * Display prices with tax in store. - * @deprecated Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - */ - displayGrossPrices?: InputMaybe; - /** Enable automatic account confirmation by email. */ - enableAccountConfirmationByEmail?: InputMaybe; - /** Enable ability to approve fulfillments which are unpaid. */ - fulfillmentAllowUnpaid?: InputMaybe; - /** Enable automatic approval of all new fulfillments. */ - fulfillmentAutoApprove?: InputMaybe; - /** Header text. */ - headerText?: InputMaybe; - /** - * Include taxes in prices. - * @deprecated Use `taxConfigurationUpdate` mutation to configure this setting per channel or country. - */ - includeTaxesInPrices?: InputMaybe; - /** Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50. */ - limitQuantityPerCheckout?: InputMaybe; - /** - * Shop public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** - * Shop private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable. */ - reserveStockDurationAnonymousUser?: InputMaybe; - /** Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable. */ - reserveStockDurationAuthenticatedUser?: InputMaybe; - /** This field is used as a default value for `ProductVariant.trackInventory`. */ - trackInventoryByDefault?: InputMaybe; -}; - -export type ShopSettingsTranslationInput = { - description?: InputMaybe; - headerText?: InputMaybe; -}; - -export type SiteDomainInput = { - /** Domain name for shop. */ - domain?: InputMaybe; - /** Shop site name. */ - name?: InputMaybe; -}; - -/** Fields required to create a staff user. */ -export type StaffCreateInput = { - /** List of permission group IDs to which user should be assigned. */ - addGroups?: InputMaybe>; - /** The unique email address of the user. */ - email?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** A note about the user. */ - note?: InputMaybe; - /** - * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; -}; - -/** Represents status of a staff account. */ -export enum StaffMemberStatus { - /** User account has been activated. */ - ACTIVE = 'ACTIVE', - /** User account has not been activated yet. */ - DEACTIVATED = 'DEACTIVATED' -} - -export type StaffNotificationRecipientInput = { - /** Determines if a notification active. */ - active?: InputMaybe; - /** Email address of a user subscribed to email notifications. */ - email?: InputMaybe; - /** The ID of the user subscribed to email notifications.. */ - user?: InputMaybe; -}; - -/** Fields required to update a staff user. */ -export type StaffUpdateInput = { - /** List of permission group IDs to which user should be assigned. */ - addGroups?: InputMaybe>; - /** The unique email address of the user. */ - email?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** A note about the user. */ - note?: InputMaybe; - /** - * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** List of permission group IDs from which user should be unassigned. */ - removeGroups?: InputMaybe>; -}; - -export type StaffUserInput = { - ids?: InputMaybe>; - search?: InputMaybe; - status?: InputMaybe; -}; - -export enum StockAvailability { - IN_STOCK = 'IN_STOCK', - OUT_OF_STOCK = 'OUT_OF_STOCK' -} - -export enum StockBulkUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export type StockBulkUpdateInput = { - /** Quantity of items available for sell. */ - quantity: Scalars['Int']; - /** Variant external reference. */ - variantExternalReference?: InputMaybe; - /** Variant ID. */ - variantId?: InputMaybe; - /** Warehouse external reference. */ - warehouseExternalReference?: InputMaybe; - /** Warehouse ID. */ - warehouseId?: InputMaybe; -}; - -export enum StockErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type StockFilterInput = { - quantity?: InputMaybe; - search?: InputMaybe; -}; - -export type StockInput = { - /** Quantity of items available for sell. */ - quantity: Scalars['Int']; - /** Warehouse in which stock is located. */ - warehouse: Scalars['ID']; -}; - -export type StockSettingsInput = { - /** Allocation strategy options. Strategy defines the preference of warehouses for allocations and reservations. */ - allocationStrategy: AllocationStrategyEnum; -}; - -export type StockUpdateInput = { - /** Quantity of items available for sell. */ - quantity: Scalars['Int']; - /** Stock. */ - stock: Scalars['ID']; -}; - -/** - * Determine how stocks should be updated, while processing an order. - * - * SKIP - stocks are not checked and not updated. - * UPDATE - only do update, if there is enough stock. - * FORCE - force update, if there is not enough stock. - */ -export enum StockUpdatePolicyEnum { - FORCE = 'FORCE', - SKIP = 'SKIP', - UPDATE = 'UPDATE' -} - -/** Enum representing the type of a payment storage in a gateway. */ -export enum StorePaymentMethodEnum { - /** Storage is disabled. The payment is not stored. */ - NONE = 'NONE', - /** Off session storage type. The payment is stored to be reused even if the customer is absent. */ - OFF_SESSION = 'OFF_SESSION', - /** On session storage type. The payment is stored only to be reused when the customer is present in the checkout flow. */ - ON_SESSION = 'ON_SESSION' -} - -export enum StoredPaymentMethodRequestDeleteErrorCode { - CHANNEL_INACTIVE = 'CHANNEL_INACTIVE', - GATEWAY_ERROR = 'GATEWAY_ERROR', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -/** - * Result of deleting a stored payment method. - * - * This enum is used to determine the result of deleting a stored payment method. - * SUCCESSFULLY_DELETED - The stored payment method was successfully deleted. - * FAILED_TO_DELETE - The stored payment method was not deleted. - * FAILED_TO_DELIVER - The request to delete the stored payment method was not - * delivered. - */ -export enum StoredPaymentMethodRequestDeleteResult { - FAILED_TO_DELETE = 'FAILED_TO_DELETE', - FAILED_TO_DELIVER = 'FAILED_TO_DELIVER', - SUCCESSFULLY_DELETED = 'SUCCESSFULLY_DELETED' -} - -/** Define the filtering options for string fields. */ -export type StringFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export enum TaxCalculationStrategy { - FLAT_RATES = 'FLAT_RATES', - TAX_APP = 'TAX_APP' -} - -export enum TaxClassCreateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export type TaxClassCreateInput = { - /** List of country-specific tax rates to create for this tax class. */ - createCountryRates?: InputMaybe>; - /** Name of the tax class. */ - name: Scalars['String']; -}; - -export enum TaxClassDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export type TaxClassFilterInput = { - countries?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; -}; - -export type TaxClassRateInput = { - /** Tax rate value. */ - rate?: InputMaybe; - /** ID of a tax class for which to update the tax rate */ - taxClassId?: InputMaybe; -}; - -export enum TaxClassSortField { - /** Sort tax classes by name. */ - NAME = 'NAME' -} - -export type TaxClassSortingInput = { - /** Specifies the direction in which to sort tax classes. */ - direction: OrderDirection; - /** Sort tax classes by the selected field. */ - field: TaxClassSortField; -}; - -export enum TaxClassUpdateErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export type TaxClassUpdateInput = { - /** Name of the tax class. */ - name?: InputMaybe; - /** List of country codes for which to remove the tax class rates. Note: It removes all rates for given country code. */ - removeCountryRates?: InputMaybe>; - /** List of country-specific tax rates to create or update for this tax class. */ - updateCountryRates?: InputMaybe>; -}; - -export type TaxConfigurationFilterInput = { - ids?: InputMaybe>; - metadata?: InputMaybe>; -}; - -export type TaxConfigurationPerCountryInput = { - /** Determines whether taxes are charged in this country. */ - chargeTaxes: Scalars['Boolean']; - /** Country in which this configuration applies. */ - countryCode: CountryCode; - /** Determines whether displayed prices should include taxes for this country. */ - displayGrossPrices: Scalars['Boolean']; - /** - * The tax app `App.identifier` that will be used to calculate the taxes for the given channel and country. If not provided, use the value from the channel's tax configuration. - * - * Added in Saleor 3.19. - */ - taxAppId?: InputMaybe; - /** A country-specific strategy to use for tax calculation. Taxes can be calculated either using user-defined flat rates or with a tax app. If not provided, use the value from the channel's tax configuration. */ - taxCalculationStrategy?: InputMaybe; - /** - * Determines whether to use weighted tax for shipping. When set to true, the tax rate for shipping will be calculated based on the weighted average of tax rates from the order or checkout lines. Default value is `False`.Can be used only with `taxCalculationStrategy` set to `FLAT_RATES`. - * - * Added in Saleor 3.21. - */ - useWeightedTaxForShipping?: InputMaybe; -}; - -export enum TaxConfigurationUpdateErrorCode { - DUPLICATED_INPUT_ITEM = 'DUPLICATED_INPUT_ITEM', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export type TaxConfigurationUpdateInput = { - /** Determines whether taxes are charged in the given channel. */ - chargeTaxes?: InputMaybe; - /** Determines whether displayed prices should include taxes. */ - displayGrossPrices?: InputMaybe; - /** Determines whether prices are entered with the tax included. */ - pricesEnteredWithTax?: InputMaybe; - /** List of country codes for which to remove the tax configuration. */ - removeCountriesConfiguration?: InputMaybe>; - /** - * The tax app `App.identifier` that will be used to calculate the taxes for the given channel. Empty value for `TAX_APP` set as `taxCalculationStrategy` means that Saleor will iterate over all installed tax apps. If multiple tax apps exist with provided tax app id use the `App` with newest `created` date. It's possible to set plugin by using prefix `plugin:` with `PLUGIN_ID` e.g. with Avalara `plugin:mirumee.taxes.avalara`.Will become mandatory in 4.0 for `TAX_APP` `taxCalculationStrategy`. - * - * Added in Saleor 3.19. - */ - taxAppId?: InputMaybe; - /** The default strategy to use for tax calculation in the given channel. Taxes can be calculated either using user-defined flat rates or with a tax app. Empty value means that no method is selected and taxes are not calculated. */ - taxCalculationStrategy?: InputMaybe; - /** List of tax country configurations to create or update (identified by a country code). */ - updateCountriesConfiguration?: InputMaybe>; - /** - * Determines whether to use weighted tax for shipping. When set to true, the tax rate for shipping will be calculated based on the weighted average of tax rates from the order or checkout lines. Default value is `False`.Can be used only with `taxCalculationStrategy` set to `FLAT_RATES`. - * - * Added in Saleor 3.21. - */ - useWeightedTaxForShipping?: InputMaybe; -}; - -export enum TaxCountryConfigurationDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export enum TaxCountryConfigurationUpdateErrorCode { - CANNOT_CREATE_NEGATIVE_RATE = 'CANNOT_CREATE_NEGATIVE_RATE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED = 'ONLY_ONE_DEFAULT_COUNTRY_RATE_ALLOWED' -} - -export enum TaxExemptionManageErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_EDITABLE_ORDER = 'NOT_EDITABLE_ORDER', - NOT_FOUND = 'NOT_FOUND' -} - -/** Indicates which part of the order the discount should affect: SUBTOTAL or SHIPPING. */ -export enum TaxableObjectDiscountTypeEnum { - SHIPPING = 'SHIPPING', - SUBTOTAL = 'SUBTOTAL' -} - -export type TaxedMoneyInput = { - /** Gross value of an item. */ - gross: Scalars['PositiveDecimal']; - /** Net value of an item. */ - net: Scalars['PositiveDecimal']; -}; - -export enum ThumbnailFormatEnum { - AVIF = 'AVIF', - ORIGINAL = 'ORIGINAL', - WEBP = 'WEBP' -} - -export type TimePeriodInputType = { - /** The length of the period. */ - amount: Scalars['Int']; - /** The type of the period. */ - type: TimePeriodTypeEnum; -}; - -export enum TimePeriodTypeEnum { - DAY = 'DAY', - MONTH = 'MONTH', - WEEK = 'WEEK', - YEAR = 'YEAR' -} - -/** - * Represents possible tokenized payment flows that can be used to process payment. - * - * The following flows are possible: - * INTERACTIVE - Payment method can be used for 1 click checkout - it's prefilled in - * checkout form (might require additional authentication from user) - */ -export enum TokenizedPaymentFlowEnum { - INTERACTIVE = 'INTERACTIVE' -} - -/** - * Represents possible actions on payment transaction. - * - * The following actions are possible: - * CHARGE - Represents the charge action. - * REFUND - Represents a refund action. - * CANCEL - Represents a cancel action. Added in Saleor 3.12. - */ -export enum TransactionActionEnum { - CANCEL = 'CANCEL', - CHARGE = 'CHARGE', - REFUND = 'REFUND' -} - -export enum TransactionCreateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - INVALID = 'INVALID', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', - NOT_FOUND = 'NOT_FOUND', - UNIQUE = 'UNIQUE' -} - -export type TransactionCreateInput = { - /** Amount authorized by this transaction. */ - amountAuthorized?: InputMaybe; - /** Amount canceled by this transaction. */ - amountCanceled?: InputMaybe; - /** Amount charged by this transaction. */ - amountCharged?: InputMaybe; - /** Amount refunded by this transaction. */ - amountRefunded?: InputMaybe; - /** List of all possible actions for the transaction */ - availableActions?: InputMaybe>; - /** The url that will allow to redirect user to payment provider page with transaction event details. */ - externalUrl?: InputMaybe; - /** The message of the transaction. */ - message?: InputMaybe; - /** - * Payment public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Payment name of the transaction. */ - name?: InputMaybe; - /** - * Details of the payment method used for the transaction. - * - * Added in Saleor 3.22. - */ - paymentMethodDetails?: InputMaybe; - /** - * Payment private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** PSP Reference of the transaction. */ - pspReference?: InputMaybe; -}; - -export type TransactionEventInput = { - /** The message related to the event. */ - message?: InputMaybe; - /** PSP Reference related to this action. */ - pspReference?: InputMaybe; -}; - -export enum TransactionEventReportErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INCORRECT_DETAILS = 'INCORRECT_DETAILS', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -/** - * Represents possible event types. - * - * Added in Saleor 3.12. - * - * The following types are possible: - * AUTHORIZATION_SUCCESS - represents success authorization. - * AUTHORIZATION_FAILURE - represents failure authorization. - * AUTHORIZATION_ADJUSTMENT - represents authorization adjustment. - * AUTHORIZATION_REQUEST - represents authorization request. - * AUTHORIZATION_ACTION_REQUIRED - represents authorization that needs - * additional actions from the customer. - * CHARGE_ACTION_REQUIRED - represents charge that needs - * additional actions from the customer. - * CHARGE_SUCCESS - represents success charge. - * CHARGE_FAILURE - represents failure charge. - * CHARGE_BACK - represents chargeback. - * CHARGE_REQUEST - represents charge request. - * REFUND_SUCCESS - represents success refund. - * REFUND_FAILURE - represents failure refund. - * REFUND_REVERSE - represents reverse refund. - * REFUND_REQUEST - represents refund request. - * CANCEL_SUCCESS - represents success cancel. - * CANCEL_FAILURE - represents failure cancel. - * CANCEL_REQUEST - represents cancel request. - * INFO - represents info event. - */ -export enum TransactionEventTypeEnum { - AUTHORIZATION_ACTION_REQUIRED = 'AUTHORIZATION_ACTION_REQUIRED', - AUTHORIZATION_ADJUSTMENT = 'AUTHORIZATION_ADJUSTMENT', - AUTHORIZATION_FAILURE = 'AUTHORIZATION_FAILURE', - AUTHORIZATION_REQUEST = 'AUTHORIZATION_REQUEST', - AUTHORIZATION_SUCCESS = 'AUTHORIZATION_SUCCESS', - CANCEL_FAILURE = 'CANCEL_FAILURE', - CANCEL_REQUEST = 'CANCEL_REQUEST', - CANCEL_SUCCESS = 'CANCEL_SUCCESS', - CHARGE_ACTION_REQUIRED = 'CHARGE_ACTION_REQUIRED', - CHARGE_BACK = 'CHARGE_BACK', - CHARGE_FAILURE = 'CHARGE_FAILURE', - CHARGE_REQUEST = 'CHARGE_REQUEST', - CHARGE_SUCCESS = 'CHARGE_SUCCESS', - INFO = 'INFO', - REFUND_FAILURE = 'REFUND_FAILURE', - REFUND_REQUEST = 'REFUND_REQUEST', - REFUND_REVERSE = 'REFUND_REVERSE', - REFUND_SUCCESS = 'REFUND_SUCCESS' -} - -/** Filter input for transactions. */ -export type TransactionFilterInput = { - /** Filter by metadata fields of transactions. */ - metadata?: InputMaybe; - /** Filter by payment method details used to pay for the order. */ - paymentMethodDetails?: InputMaybe; -}; - -/** - * Determine the transaction flow strategy. - * - * AUTHORIZATION - the processed transaction should be only authorized - * CHARGE - the processed transaction should be charged. - */ -export enum TransactionFlowStrategyEnum { - AUTHORIZATION = 'AUTHORIZATION', - CHARGE = 'CHARGE' -} - -export enum TransactionInitializeErrorCode { - CHECKOUT_COMPLETION_IN_PROGRESS = 'CHECKOUT_COMPLETION_IN_PROGRESS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - UNIQUE = 'UNIQUE' -} - -export enum TransactionKind { - ACTION_TO_CONFIRM = 'ACTION_TO_CONFIRM', - AUTH = 'AUTH', - CANCEL = 'CANCEL', - CAPTURE = 'CAPTURE', - CONFIRM = 'CONFIRM', - EXTERNAL = 'EXTERNAL', - PENDING = 'PENDING', - REFUND = 'REFUND', - REFUND_ONGOING = 'REFUND_ONGOING', - VOID = 'VOID' -} - -export enum TransactionProcessErrorCode { - CHECKOUT_COMPLETION_IN_PROGRESS = 'CHECKOUT_COMPLETION_IN_PROGRESS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MISSING_PAYMENT_APP = 'MISSING_PAYMENT_APP', - MISSING_PAYMENT_APP_RELATION = 'MISSING_PAYMENT_APP_RELATION', - NOT_FOUND = 'NOT_FOUND', - TRANSACTION_ALREADY_PROCESSED = 'TRANSACTION_ALREADY_PROCESSED' -} - -export enum TransactionRequestActionErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK = 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED' -} - -export enum TransactionRequestRefundForGrantedRefundErrorCode { - AMOUNT_GREATER_THAN_AVAILABLE = 'AMOUNT_GREATER_THAN_AVAILABLE', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK = 'MISSING_TRANSACTION_ACTION_REQUEST_WEBHOOK', - NOT_FOUND = 'NOT_FOUND', - REFUND_ALREADY_PROCESSED = 'REFUND_ALREADY_PROCESSED', - REFUND_IS_PENDING = 'REFUND_IS_PENDING' -} - -export enum TransactionUpdateErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INCORRECT_CURRENCY = 'INCORRECT_CURRENCY', - INVALID = 'INVALID', - METADATA_KEY_REQUIRED = 'METADATA_KEY_REQUIRED', - NOT_FOUND = 'NOT_FOUND', - UNIQUE = 'UNIQUE' -} - -export type TransactionUpdateInput = { - /** Amount authorized by this transaction. */ - amountAuthorized?: InputMaybe; - /** Amount canceled by this transaction. */ - amountCanceled?: InputMaybe; - /** Amount charged by this transaction. */ - amountCharged?: InputMaybe; - /** Amount refunded by this transaction. */ - amountRefunded?: InputMaybe; - /** List of all possible actions for the transaction */ - availableActions?: InputMaybe>; - /** The url that will allow to redirect user to payment provider page with transaction event details. */ - externalUrl?: InputMaybe; - /** The message of the transaction. */ - message?: InputMaybe; - /** - * Payment public metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Payment name of the transaction. */ - name?: InputMaybe; - /** - * Details of the payment method used for the transaction. - * - * Added in Saleor 3.22. - */ - paymentMethodDetails?: InputMaybe; - /** - * Payment private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** PSP Reference of the transaction. */ - pspReference?: InputMaybe; -}; - -export enum TranslatableKinds { - ATTRIBUTE = 'ATTRIBUTE', - ATTRIBUTE_VALUE = 'ATTRIBUTE_VALUE', - CATEGORY = 'CATEGORY', - COLLECTION = 'COLLECTION', - MENU_ITEM = 'MENU_ITEM', - PAGE = 'PAGE', - PRODUCT = 'PRODUCT', - PROMOTION = 'PROMOTION', - PROMOTION_RULE = 'PROMOTION_RULE', - SALE = 'SALE', - SHIPPING_METHOD = 'SHIPPING_METHOD', - VARIANT = 'VARIANT', - VOUCHER = 'VOUCHER' -} - -export enum TranslationErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type TranslationInput = { - /** - * Translated description. - * - * Rich text format. For reference see https://editorjs.io/ - */ - description?: InputMaybe; - name?: InputMaybe; - seoDescription?: InputMaybe; - seoTitle?: InputMaybe; - slug?: InputMaybe; -}; - -/** Define the filtering options for string fields. */ -export type UuidFilterInput = { - /** The value equal to. */ - eq?: InputMaybe; - /** The value included in. */ - oneOf?: InputMaybe>; -}; - -export type UpdateInvoiceInput = { - /** - * Fields required to update the invoice metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** Invoice number */ - number?: InputMaybe; - /** - * Fields required to update the invoice private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of an invoice to download. */ - url?: InputMaybe; -}; - -export enum UploadErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR' -} - -export type UserCreateInput = { - /** Slug of a channel which will be used for notify user. Optional when only one channel exists. */ - channel?: InputMaybe; - /** Billing address of the customer. */ - defaultBillingAddress?: InputMaybe; - /** Shipping address of the customer. */ - defaultShippingAddress?: InputMaybe; - /** The unique email address of the user. */ - email?: InputMaybe; - /** External ID of the customer. */ - externalReference?: InputMaybe; - /** Given name. */ - firstName?: InputMaybe; - /** User account is active. */ - isActive?: InputMaybe; - /** - * User account is confirmed. - * @deprecated The user will be always set as unconfirmed. The confirmation will take place when the user sets the password. - */ - isConfirmed?: InputMaybe; - /** User language code. */ - languageCode?: InputMaybe; - /** Family name. */ - lastName?: InputMaybe; - /** - * Fields required to update the user metadata. Can be read by any API client authorized to read the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - metadata?: InputMaybe>; - /** A note about the user. */ - note?: InputMaybe; - /** - * Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it's attached to. - * - * Warning: never store sensitive information, including financial data such as credit card details. - */ - privateMetadata?: InputMaybe>; - /** URL of a view where users should be redirected to set the password. URL in RFC 1808 format. */ - redirectUrl?: InputMaybe; -}; - -export enum UserSortField { - /** Sort users by created at. */ - CREATED_AT = 'CREATED_AT', - /** Sort users by email. */ - EMAIL = 'EMAIL', - /** Sort users by first name. */ - FIRST_NAME = 'FIRST_NAME', - /** Sort users by last modified at. */ - LAST_MODIFIED_AT = 'LAST_MODIFIED_AT', - /** Sort users by last name. */ - LAST_NAME = 'LAST_NAME', - /** Sort users by order count. */ - ORDER_COUNT = 'ORDER_COUNT' -} - -export type UserSortingInput = { - /** Specifies the direction in which to sort users. */ - direction: OrderDirection; - /** Sort users by the selected field. */ - field: UserSortField; -}; - -export enum VariantAttributeScope { - ALL = 'ALL', - NOT_VARIANT_SELECTION = 'NOT_VARIANT_SELECTION', - VARIANT_SELECTION = 'VARIANT_SELECTION' -} - -export enum VolumeUnitsEnum { - ACRE_FT = 'ACRE_FT', - ACRE_IN = 'ACRE_IN', - CUBIC_CENTIMETER = 'CUBIC_CENTIMETER', - CUBIC_DECIMETER = 'CUBIC_DECIMETER', - CUBIC_FOOT = 'CUBIC_FOOT', - CUBIC_INCH = 'CUBIC_INCH', - CUBIC_METER = 'CUBIC_METER', - CUBIC_MILLIMETER = 'CUBIC_MILLIMETER', - CUBIC_YARD = 'CUBIC_YARD', - FL_OZ = 'FL_OZ', - LITER = 'LITER', - PINT = 'PINT', - QT = 'QT' -} - -export type VoucherChannelListingAddInput = { - /** ID of a channel. */ - channelId: Scalars['ID']; - /** Value of the voucher. */ - discountValue?: InputMaybe; - /** Min purchase amount required to apply the voucher. */ - minAmountSpent?: InputMaybe; -}; - -export type VoucherChannelListingInput = { - /** List of channels to which the voucher should be assigned. */ - addChannels?: InputMaybe>; - /** List of channels from which the voucher should be unassigned. */ - removeChannels?: InputMaybe>; -}; - -export enum VoucherCodeBulkDeleteErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND' -} - -export enum VoucherDiscountType { - FIXED = 'FIXED', - PERCENTAGE = 'PERCENTAGE', - SHIPPING = 'SHIPPING' -} - -export type VoucherFilterInput = { - discountType?: InputMaybe>; - ids?: InputMaybe>; - metadata?: InputMaybe>; - search?: InputMaybe; - started?: InputMaybe; - status?: InputMaybe>; - timesUsed?: InputMaybe; -}; - -export type VoucherInput = { - /** - * List of codes to add. - * - * Added in Saleor 3.18. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - addCodes?: InputMaybe>; - /** Voucher should be applied once per customer. */ - applyOncePerCustomer?: InputMaybe; - /** Voucher should be applied to the cheapest item or entire order. */ - applyOncePerOrder?: InputMaybe; - /** Categories discounted by the voucher. */ - categories?: InputMaybe>; - /** - * Code to use the voucher. - * @deprecated Use `addCodes` instead. - */ - code?: InputMaybe; - /** Collections discounted by the voucher. */ - collections?: InputMaybe>; - /** Country codes that can be used with the shipping voucher. */ - countries?: InputMaybe>; - /** Choices: fixed or percentage. */ - discountValueType?: InputMaybe; - /** End date of the voucher in ISO 8601 format. */ - endDate?: InputMaybe; - /** Minimal quantity of checkout items required to apply the voucher. */ - minCheckoutItemsQuantity?: InputMaybe; - /** Voucher name. */ - name?: InputMaybe; - /** Voucher can be used only by staff user. */ - onlyForStaff?: InputMaybe; - /** Products discounted by the voucher. */ - products?: InputMaybe>; - /** - * When set to 'True', each voucher code can be used only once; otherwise, codes can be used multiple times depending on `usageLimit`. - * - * The option can only be changed if none of the voucher codes have been used. - * - * Added in Saleor 3.18. - * - * Note: this API is currently in Feature Preview and can be subject to changes at later point. - */ - singleUse?: InputMaybe; - /** Start date of the voucher in ISO 8601 format. */ - startDate?: InputMaybe; - /** Voucher type: PRODUCT, CATEGORY SHIPPING or ENTIRE_ORDER. */ - type?: InputMaybe; - /** Limit number of times this voucher can be used in total. */ - usageLimit?: InputMaybe; - /** Variants discounted by the voucher. */ - variants?: InputMaybe>; -}; - -export enum VoucherSortField { - /** - * Sort vouchers by code. - * @deprecated Field no longer supported - */ - CODE = 'CODE', - /** Sort vouchers by end date. */ - END_DATE = 'END_DATE', - /** - * Sort vouchers by minimum spent amount. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - MINIMUM_SPENT_AMOUNT = 'MINIMUM_SPENT_AMOUNT', - /** - * Sort vouchers by name. - * - * Added in Saleor 3.18. - */ - NAME = 'NAME', - /** Sort vouchers by start date. */ - START_DATE = 'START_DATE', - /** Sort vouchers by type. */ - TYPE = 'TYPE', - /** Sort vouchers by usage limit. */ - USAGE_LIMIT = 'USAGE_LIMIT', - /** - * Sort vouchers by value. - * - * This option requires a channel filter to work as the values can vary between channels. - */ - VALUE = 'VALUE' -} - -export type VoucherSortingInput = { - /** - * Specifies the channel in which to sort the data. - * @deprecated Use root-level channel argument instead. - */ - channel?: InputMaybe; - /** Specifies the direction in which to sort vouchers. */ - direction: OrderDirection; - /** Sort vouchers by the selected field. */ - field: VoucherSortField; -}; - -export enum VoucherTypeEnum { - ENTIRE_ORDER = 'ENTIRE_ORDER', - SHIPPING = 'SHIPPING', - SPECIFIC_PRODUCT = 'SPECIFIC_PRODUCT' -} - -export enum WarehouseClickAndCollectOptionEnum { - ALL = 'ALL', - DISABLED = 'DISABLED', - LOCAL = 'LOCAL' -} - -export type WarehouseCreateInput = { - /** Address of the warehouse. */ - address: AddressInput; - /** The email address of the warehouse. */ - email?: InputMaybe; - /** External ID of the warehouse. */ - externalReference?: InputMaybe; - /** Warehouse name. */ - name: Scalars['String']; - /** - * Shipping zones supported by the warehouse. - * @deprecated Providing the zone ids will raise a ValidationError. - */ - shippingZones?: InputMaybe>; - /** Warehouse slug. */ - slug?: InputMaybe; -}; - -export enum WarehouseErrorCode { - ALREADY_EXISTS = 'ALREADY_EXISTS', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - UNIQUE = 'UNIQUE' -} - -export type WarehouseFilterInput = { - channels?: InputMaybe>; - clickAndCollectOption?: InputMaybe; - ids?: InputMaybe>; - isPrivate?: InputMaybe; - metadata?: InputMaybe>; - search?: InputMaybe; - slugs?: InputMaybe>; -}; - -export enum WarehouseSortField { - /** Sort warehouses by name. */ - NAME = 'NAME' -} - -export type WarehouseSortingInput = { - /** Specifies the direction in which to sort warehouses. */ - direction: OrderDirection; - /** Sort warehouses by the selected field. */ - field: WarehouseSortField; -}; - -export type WarehouseUpdateInput = { - /** Address of the warehouse. */ - address?: InputMaybe; - /** Click and collect options: local, all or disabled. */ - clickAndCollectOption?: InputMaybe; - /** The email address of the warehouse. */ - email?: InputMaybe; - /** External ID of the warehouse. */ - externalReference?: InputMaybe; - /** Visibility of warehouse stocks. */ - isPrivate?: InputMaybe; - /** Warehouse name. */ - name?: InputMaybe; - /** Warehouse slug. */ - slug?: InputMaybe; -}; - -export type WebhookCreateInput = { - /** ID of the app to which webhook belongs. */ - app?: InputMaybe; - /** The asynchronous events that webhook wants to subscribe. */ - asyncEvents?: InputMaybe>; - /** Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed. */ - customHeaders?: InputMaybe; - /** - * The events that webhook wants to subscribe. - * @deprecated Use `asyncEvents` or `syncEvents` instead. - */ - events?: InputMaybe>; - /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; - /** The name of the webhook. */ - name?: InputMaybe; - /** Subscription query used to define a webhook payload. */ - query?: InputMaybe; - /** - * The secret key used to create a hash signature with each payload. - * @deprecated As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - */ - secretKey?: InputMaybe; - /** The synchronous events that webhook wants to subscribe. */ - syncEvents?: InputMaybe>; - /** The url to receive the payload. */ - targetUrl?: InputMaybe; -}; - -export enum WebhookDryRunErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID_ID = 'INVALID_ID', - MISSING_EVENT = 'MISSING_EVENT', - MISSING_PERMISSION = 'MISSING_PERMISSION', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - NOT_FOUND = 'NOT_FOUND', - SYNTAX = 'SYNTAX', - TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE' -} - -export enum WebhookErrorCode { - DELETE_FAILED = 'DELETE_FAILED', - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID = 'INVALID', - INVALID_CUSTOM_HEADERS = 'INVALID_CUSTOM_HEADERS', - INVALID_NOTIFY_WITH_SUBSCRIPTION = 'INVALID_NOTIFY_WITH_SUBSCRIPTION', - MISSING_EVENT = 'MISSING_EVENT', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - NOT_FOUND = 'NOT_FOUND', - REQUIRED = 'REQUIRED', - SYNTAX = 'SYNTAX', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE', - UNIQUE = 'UNIQUE' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeAsyncEnum { - /** An account email change is requested. */ - ACCOUNT_CHANGE_EMAIL_REQUESTED = 'ACCOUNT_CHANGE_EMAIL_REQUESTED', - /** An account confirmation is requested. */ - ACCOUNT_CONFIRMATION_REQUESTED = 'ACCOUNT_CONFIRMATION_REQUESTED', - /** An account is confirmed. */ - ACCOUNT_CONFIRMED = 'ACCOUNT_CONFIRMED', - /** An account is deleted. */ - ACCOUNT_DELETED = 'ACCOUNT_DELETED', - /** An account delete is requested. */ - ACCOUNT_DELETE_REQUESTED = 'ACCOUNT_DELETE_REQUESTED', - /** An account email was changed */ - ACCOUNT_EMAIL_CHANGED = 'ACCOUNT_EMAIL_CHANGED', - /** Setting a new password for the account is requested. */ - ACCOUNT_SET_PASSWORD_REQUESTED = 'ACCOUNT_SET_PASSWORD_REQUESTED', - /** A new address created. */ - ADDRESS_CREATED = 'ADDRESS_CREATED', - /** An address deleted. */ - ADDRESS_DELETED = 'ADDRESS_DELETED', - /** An address updated. */ - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - /** - * All the events. - * @deprecated Field no longer supported - */ - ANY_EVENTS = 'ANY_EVENTS', - /** An app deleted. */ - APP_DELETED = 'APP_DELETED', - /** A new app installed. */ - APP_INSTALLED = 'APP_INSTALLED', - /** An app status is changed. */ - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - /** An app updated. */ - APP_UPDATED = 'APP_UPDATED', - /** A new attribute is created. */ - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - /** An attribute is deleted. */ - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - /** An attribute is updated. */ - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - /** A new attribute value is created. */ - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - /** An attribute value is deleted. */ - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - /** An attribute value is updated. */ - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - /** A new category created. */ - CATEGORY_CREATED = 'CATEGORY_CREATED', - /** A category is deleted. */ - CATEGORY_DELETED = 'CATEGORY_DELETED', - /** A category is updated. */ - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - /** A new channel created. */ - CHANNEL_CREATED = 'CHANNEL_CREATED', - /** A channel is deleted. */ - CHANNEL_DELETED = 'CHANNEL_DELETED', - /** A channel metadata is updated. */ - CHANNEL_METADATA_UPDATED = 'CHANNEL_METADATA_UPDATED', - /** A channel status is changed. */ - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - /** A channel is updated. */ - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - /** A new checkout is created. */ - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - /** - * A checkout was fully authorized (its `authorizeStatus` is `FULL`). - * - * This event is emitted only for checkouts whose payments are processed through the Transaction API. - */ - CHECKOUT_FULLY_AUTHORIZED = 'CHECKOUT_FULLY_AUTHORIZED', - /** - * A checkout was fully paid (its `chargeStatus` is `FULL` or `OVERCHARGED`). This event is not sent if payments are only authorized but not fully charged. - * - * This event is emitted only for checkouts whose payments are processed through the Transaction API. - */ - CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', - /** A checkout metadata is updated. */ - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - /** A checkout is updated. It also triggers all updates related to the checkout. */ - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - /** A new collection is created. */ - COLLECTION_CREATED = 'COLLECTION_CREATED', - /** A collection is deleted. */ - COLLECTION_DELETED = 'COLLECTION_DELETED', - /** A collection metadata is updated. */ - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - /** A collection is updated. */ - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - /** A new customer account is created. */ - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - /** A customer account is deleted. */ - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - /** A customer account metadata is updated. */ - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - /** A customer account is updated. */ - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - /** A draft order is created. */ - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - /** A draft order is deleted. */ - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - /** A draft order is updated. */ - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - /** A fulfillment is approved. */ - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - /** A fulfillment is cancelled. */ - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - /** A new fulfillment is created. */ - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - /** A fulfillment metadata is updated. */ - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - FULFILLMENT_TRACKING_NUMBER_UPDATED = 'FULFILLMENT_TRACKING_NUMBER_UPDATED', - /** A new gift card created. */ - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - /** A gift card is deleted. */ - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - /** A gift card export is completed. */ - GIFT_CARD_EXPORT_COMPLETED = 'GIFT_CARD_EXPORT_COMPLETED', - /** A gift card metadata is updated. */ - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - /** A gift card has been sent. */ - GIFT_CARD_SENT = 'GIFT_CARD_SENT', - /** A gift card status is changed. */ - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - /** A gift card is updated. */ - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - /** An invoice is deleted. */ - INVOICE_DELETED = 'INVOICE_DELETED', - /** An invoice for order requested. */ - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - /** Invoice has been sent. */ - INVOICE_SENT = 'INVOICE_SENT', - /** A new menu created. */ - MENU_CREATED = 'MENU_CREATED', - /** A menu is deleted. */ - MENU_DELETED = 'MENU_DELETED', - /** A new menu item created. */ - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - /** A menu item is deleted. */ - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - /** A menu item is updated. */ - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - /** A menu is updated. */ - MENU_UPDATED = 'MENU_UPDATED', - /** - * User notification triggered. - * @deprecated See the docs for more details about migrating from NOTIFY_USER to other events: https://docs.saleor.io/upgrade-guides/core/3-16-to-3-17#migrating-from-notify_user - */ - NOTIFY_USER = 'NOTIFY_USER', - /** An observability event is created. */ - OBSERVABILITY = 'OBSERVABILITY', - /** Orders are imported. */ - ORDER_BULK_CREATED = 'ORDER_BULK_CREATED', - /** An order is cancelled. */ - ORDER_CANCELLED = 'ORDER_CANCELLED', - /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - /** A new order is placed. */ - ORDER_CREATED = 'ORDER_CREATED', - /** An order is expired. */ - ORDER_EXPIRED = 'ORDER_EXPIRED', - /** An order is fulfilled. */ - ORDER_FULFILLED = 'ORDER_FULFILLED', - /** Payment is made and an order is fully paid. */ - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - /** The order is fully refunded. */ - ORDER_FULLY_REFUNDED = 'ORDER_FULLY_REFUNDED', - /** An order metadata is updated. */ - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - /** Payment has been made. The order may be partially or fully paid. */ - ORDER_PAID = 'ORDER_PAID', - /** The order received a refund. The order may be partially or fully refunded. */ - ORDER_REFUNDED = 'ORDER_REFUNDED', - /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - ORDER_UPDATED = 'ORDER_UPDATED', - /** A new page is created. */ - PAGE_CREATED = 'PAGE_CREATED', - /** A page is deleted. */ - PAGE_DELETED = 'PAGE_DELETED', - /** A new page type is created. */ - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - /** A page type is deleted. */ - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - /** A page type is updated. */ - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - /** A page is updated. */ - PAGE_UPDATED = 'PAGE_UPDATED', - /** A new permission group is created. */ - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - /** A permission group is deleted. */ - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - /** A permission group is updated. */ - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - /** A new product is created. */ - PRODUCT_CREATED = 'PRODUCT_CREATED', - /** A product is deleted. */ - PRODUCT_DELETED = 'PRODUCT_DELETED', - /** A product export is completed. */ - PRODUCT_EXPORT_COMPLETED = 'PRODUCT_EXPORT_COMPLETED', - /** A new product media is created. */ - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - /** A product media is deleted. */ - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - /** A product media is updated. */ - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - /** A product metadata is updated. */ - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - /** A product is updated. */ - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - /** A product variant is back in stock. */ - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - /** A new product variant is created. */ - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - /** A product variant metadata is updated. */ - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - /** A product variant is out of stock. */ - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - /** A product variant stock is updated */ - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - /** A product variant is updated. */ - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - /** A promotion is created. */ - PROMOTION_CREATED = 'PROMOTION_CREATED', - /** A promotion is deleted. */ - PROMOTION_DELETED = 'PROMOTION_DELETED', - /** A promotion is deactivated. */ - PROMOTION_ENDED = 'PROMOTION_ENDED', - /** A promotion rule is created. */ - PROMOTION_RULE_CREATED = 'PROMOTION_RULE_CREATED', - /** A promotion rule is deleted. */ - PROMOTION_RULE_DELETED = 'PROMOTION_RULE_DELETED', - /** A promotion rule is updated. */ - PROMOTION_RULE_UPDATED = 'PROMOTION_RULE_UPDATED', - /** A promotion is activated. */ - PROMOTION_STARTED = 'PROMOTION_STARTED', - /** A promotion is updated. */ - PROMOTION_UPDATED = 'PROMOTION_UPDATED', - /** A sale is created. */ - SALE_CREATED = 'SALE_CREATED', - /** A sale is deleted. */ - SALE_DELETED = 'SALE_DELETED', - /** A sale is activated or deactivated. */ - SALE_TOGGLE = 'SALE_TOGGLE', - /** A sale is updated. */ - SALE_UPDATED = 'SALE_UPDATED', - /** A new shipping price is created. */ - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - /** A shipping price is deleted. */ - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - /** A shipping price is updated. */ - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - /** A new shipping zone is created. */ - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - /** A shipping zone is deleted. */ - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - /** A shipping zone metadata is updated. */ - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - /** A shipping zone is updated. */ - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - /** Shop metadata is updated. */ - SHOP_METADATA_UPDATED = 'SHOP_METADATA_UPDATED', - /** A new staff user is created. */ - STAFF_CREATED = 'STAFF_CREATED', - /** A staff user is deleted. */ - STAFF_DELETED = 'STAFF_DELETED', - /** Setting a new password for the staff account is requested. */ - STAFF_SET_PASSWORD_REQUESTED = 'STAFF_SET_PASSWORD_REQUESTED', - /** A staff user is updated. */ - STAFF_UPDATED = 'STAFF_UPDATED', - /** A thumbnail is created. */ - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', - /** Transaction item metadata is updated. */ - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - /** A new translation is created. */ - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - /** A translation is updated. */ - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - VOUCHER_CODES_CREATED = 'VOUCHER_CODES_CREATED', - VOUCHER_CODES_DELETED = 'VOUCHER_CODES_DELETED', - /** - * A voucher code export is completed. - * - * Added in Saleor 3.18. - */ - VOUCHER_CODE_EXPORT_COMPLETED = 'VOUCHER_CODE_EXPORT_COMPLETED', - /** A new voucher created. */ - VOUCHER_CREATED = 'VOUCHER_CREATED', - /** A voucher is deleted. */ - VOUCHER_DELETED = 'VOUCHER_DELETED', - /** A voucher metadata is updated. */ - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - /** A voucher is updated. */ - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - /** A new warehouse created. */ - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - /** A warehouse is deleted. */ - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - /** A warehouse metadata is updated. */ - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - /** A warehouse is updated. */ - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeEnum { - /** An account email change is requested. */ - ACCOUNT_CHANGE_EMAIL_REQUESTED = 'ACCOUNT_CHANGE_EMAIL_REQUESTED', - /** An account confirmation is requested. */ - ACCOUNT_CONFIRMATION_REQUESTED = 'ACCOUNT_CONFIRMATION_REQUESTED', - /** An account is confirmed. */ - ACCOUNT_CONFIRMED = 'ACCOUNT_CONFIRMED', - /** An account is deleted. */ - ACCOUNT_DELETED = 'ACCOUNT_DELETED', - /** An account delete is requested. */ - ACCOUNT_DELETE_REQUESTED = 'ACCOUNT_DELETE_REQUESTED', - /** An account email was changed */ - ACCOUNT_EMAIL_CHANGED = 'ACCOUNT_EMAIL_CHANGED', - /** Setting a new password for the account is requested. */ - ACCOUNT_SET_PASSWORD_REQUESTED = 'ACCOUNT_SET_PASSWORD_REQUESTED', - /** A new address created. */ - ADDRESS_CREATED = 'ADDRESS_CREATED', - /** An address deleted. */ - ADDRESS_DELETED = 'ADDRESS_DELETED', - /** An address updated. */ - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - /** - * All the events. - * @deprecated Field no longer supported - */ - ANY_EVENTS = 'ANY_EVENTS', - /** An app deleted. */ - APP_DELETED = 'APP_DELETED', - /** A new app installed. */ - APP_INSTALLED = 'APP_INSTALLED', - /** An app status is changed. */ - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - /** An app updated. */ - APP_UPDATED = 'APP_UPDATED', - /** A new attribute is created. */ - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - /** An attribute is deleted. */ - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - /** An attribute is updated. */ - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - /** A new attribute value is created. */ - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - /** An attribute value is deleted. */ - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - /** An attribute value is updated. */ - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - /** A new category created. */ - CATEGORY_CREATED = 'CATEGORY_CREATED', - /** A category is deleted. */ - CATEGORY_DELETED = 'CATEGORY_DELETED', - /** A category is updated. */ - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - /** A new channel created. */ - CHANNEL_CREATED = 'CHANNEL_CREATED', - /** A channel is deleted. */ - CHANNEL_DELETED = 'CHANNEL_DELETED', - /** A channel metadata is updated. */ - CHANNEL_METADATA_UPDATED = 'CHANNEL_METADATA_UPDATED', - /** A channel status is changed. */ - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - /** A channel is updated. */ - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - /** Event called for checkout tax calculation. */ - CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', - /** A new checkout is created. */ - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - /** Filter shipping methods for checkout. */ - CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS', - /** - * A checkout was fully authorized (its `authorizeStatus` is `FULL`). - * - * This event is emitted only for checkouts whose payments are processed through the Transaction API. - */ - CHECKOUT_FULLY_AUTHORIZED = 'CHECKOUT_FULLY_AUTHORIZED', - /** - * A checkout was fully paid (its `chargeStatus` is `FULL` or `OVERCHARGED`). This event is not sent if payments are only authorized but not fully charged. - * - * This event is emitted only for checkouts whose payments are processed through the Transaction API. - */ - CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', - /** A checkout metadata is updated. */ - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - /** A checkout is updated. It also triggers all updates related to the checkout. */ - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - /** A new collection is created. */ - COLLECTION_CREATED = 'COLLECTION_CREATED', - /** A collection is deleted. */ - COLLECTION_DELETED = 'COLLECTION_DELETED', - /** A collection metadata is updated. */ - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - /** A collection is updated. */ - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - /** A new customer account is created. */ - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - /** A customer account is deleted. */ - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - /** A customer account metadata is updated. */ - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - /** A customer account is updated. */ - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - /** A draft order is created. */ - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - /** A draft order is deleted. */ - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - /** A draft order is updated. */ - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - /** A fulfillment is approved. */ - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - /** A fulfillment is cancelled. */ - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - /** A new fulfillment is created. */ - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - /** A fulfillment metadata is updated. */ - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - FULFILLMENT_TRACKING_NUMBER_UPDATED = 'FULFILLMENT_TRACKING_NUMBER_UPDATED', - /** A new gift card created. */ - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - /** A gift card is deleted. */ - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - /** A gift card export is completed. */ - GIFT_CARD_EXPORT_COMPLETED = 'GIFT_CARD_EXPORT_COMPLETED', - /** A gift card metadata is updated. */ - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - /** A gift card has been sent. */ - GIFT_CARD_SENT = 'GIFT_CARD_SENT', - /** A gift card status is changed. */ - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - /** A gift card is updated. */ - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - /** An invoice is deleted. */ - INVOICE_DELETED = 'INVOICE_DELETED', - /** An invoice for order requested. */ - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - /** Invoice has been sent. */ - INVOICE_SENT = 'INVOICE_SENT', - LIST_STORED_PAYMENT_METHODS = 'LIST_STORED_PAYMENT_METHODS', - /** A new menu created. */ - MENU_CREATED = 'MENU_CREATED', - /** A menu is deleted. */ - MENU_DELETED = 'MENU_DELETED', - /** A new menu item created. */ - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - /** A menu item is deleted. */ - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - /** A menu item is updated. */ - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - /** A menu is updated. */ - MENU_UPDATED = 'MENU_UPDATED', - /** - * User notification triggered. - * @deprecated See the docs for more details about migrating from NOTIFY_USER to other events: https://docs.saleor.io/upgrade-guides/core/3-16-to-3-17#migrating-from-notify_user - */ - NOTIFY_USER = 'NOTIFY_USER', - /** An observability event is created. */ - OBSERVABILITY = 'OBSERVABILITY', - /** Orders are imported. */ - ORDER_BULK_CREATED = 'ORDER_BULK_CREATED', - /** Event called for order tax calculation. */ - ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', - /** An order is cancelled. */ - ORDER_CANCELLED = 'ORDER_CANCELLED', - /** An order is confirmed (status change unconfirmed -> unfulfilled) by a staff user using the OrderConfirm mutation. It also triggers when the user completes the checkout and the shop setting `automatically_confirm_all_new_orders` is enabled. */ - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - /** A new order is placed. */ - ORDER_CREATED = 'ORDER_CREATED', - /** An order is expired. */ - ORDER_EXPIRED = 'ORDER_EXPIRED', - /** Filter shipping methods for order. */ - ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', - /** An order is fulfilled. */ - ORDER_FULFILLED = 'ORDER_FULFILLED', - /** Payment is made and an order is fully paid. */ - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - /** The order is fully refunded. */ - ORDER_FULLY_REFUNDED = 'ORDER_FULLY_REFUNDED', - /** An order metadata is updated. */ - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - /** Payment has been made. The order may be partially or fully paid. */ - ORDER_PAID = 'ORDER_PAID', - /** The order received a refund. The order may be partially or fully refunded. */ - ORDER_REFUNDED = 'ORDER_REFUNDED', - /** An order is updated; triggered for all changes related to an order; covers all other order webhooks, except for ORDER_CREATED. */ - ORDER_UPDATED = 'ORDER_UPDATED', - /** A new page is created. */ - PAGE_CREATED = 'PAGE_CREATED', - /** A page is deleted. */ - PAGE_DELETED = 'PAGE_DELETED', - /** A new page type is created. */ - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - /** A page type is deleted. */ - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - /** A page type is updated. */ - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - /** A page is updated. */ - PAGE_UPDATED = 'PAGE_UPDATED', - /** Authorize payment. */ - PAYMENT_AUTHORIZE = 'PAYMENT_AUTHORIZE', - /** Capture payment. */ - PAYMENT_CAPTURE = 'PAYMENT_CAPTURE', - /** Confirm payment. */ - PAYMENT_CONFIRM = 'PAYMENT_CONFIRM', - PAYMENT_GATEWAY_INITIALIZE_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_SESSION', - PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION', - /** Listing available payment gateways. */ - PAYMENT_LIST_GATEWAYS = 'PAYMENT_LIST_GATEWAYS', - PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION = 'PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION', - PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION = 'PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION', - /** Process payment. */ - PAYMENT_PROCESS = 'PAYMENT_PROCESS', - /** Refund payment. */ - PAYMENT_REFUND = 'PAYMENT_REFUND', - /** Void payment. */ - PAYMENT_VOID = 'PAYMENT_VOID', - /** A new permission group is created. */ - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - /** A permission group is deleted. */ - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - /** A permission group is updated. */ - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - /** A new product is created. */ - PRODUCT_CREATED = 'PRODUCT_CREATED', - /** A product is deleted. */ - PRODUCT_DELETED = 'PRODUCT_DELETED', - /** A product export is completed. */ - PRODUCT_EXPORT_COMPLETED = 'PRODUCT_EXPORT_COMPLETED', - /** A new product media is created. */ - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - /** A product media is deleted. */ - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - /** A product media is updated. */ - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - /** A product metadata is updated. */ - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - /** A product is updated. */ - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - /** A product variant is back in stock. */ - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - /** A new product variant is created. */ - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - /** A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED. */ - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - /** A product variant metadata is updated. */ - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - /** A product variant is out of stock. */ - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - /** A product variant stock is updated */ - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - /** A product variant is updated. */ - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - /** A promotion is created. */ - PROMOTION_CREATED = 'PROMOTION_CREATED', - /** A promotion is deleted. */ - PROMOTION_DELETED = 'PROMOTION_DELETED', - /** A promotion is deactivated. */ - PROMOTION_ENDED = 'PROMOTION_ENDED', - /** A promotion rule is created. */ - PROMOTION_RULE_CREATED = 'PROMOTION_RULE_CREATED', - /** A promotion rule is deleted. */ - PROMOTION_RULE_DELETED = 'PROMOTION_RULE_DELETED', - /** A promotion rule is updated. */ - PROMOTION_RULE_UPDATED = 'PROMOTION_RULE_UPDATED', - /** A promotion is activated. */ - PROMOTION_STARTED = 'PROMOTION_STARTED', - /** A promotion is updated. */ - PROMOTION_UPDATED = 'PROMOTION_UPDATED', - /** A sale is created. */ - SALE_CREATED = 'SALE_CREATED', - /** A sale is deleted. */ - SALE_DELETED = 'SALE_DELETED', - /** A sale is activated or deactivated. */ - SALE_TOGGLE = 'SALE_TOGGLE', - /** A sale is updated. */ - SALE_UPDATED = 'SALE_UPDATED', - /** Fetch external shipping methods for checkout. */ - SHIPPING_LIST_METHODS_FOR_CHECKOUT = 'SHIPPING_LIST_METHODS_FOR_CHECKOUT', - /** A new shipping price is created. */ - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - /** A shipping price is deleted. */ - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - /** A shipping price is updated. */ - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - /** A new shipping zone is created. */ - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - /** A shipping zone is deleted. */ - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - /** A shipping zone metadata is updated. */ - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - /** A shipping zone is updated. */ - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - /** Shop metadata is updated. */ - SHOP_METADATA_UPDATED = 'SHOP_METADATA_UPDATED', - /** A new staff user is created. */ - STAFF_CREATED = 'STAFF_CREATED', - /** A staff user is deleted. */ - STAFF_DELETED = 'STAFF_DELETED', - /** Setting a new password for the staff account is requested. */ - STAFF_SET_PASSWORD_REQUESTED = 'STAFF_SET_PASSWORD_REQUESTED', - /** A staff user is updated. */ - STAFF_UPDATED = 'STAFF_UPDATED', - STORED_PAYMENT_METHOD_DELETE_REQUESTED = 'STORED_PAYMENT_METHOD_DELETE_REQUESTED', - /** A thumbnail is created. */ - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', - /** Event called when cancel has been requested for transaction. */ - TRANSACTION_CANCELATION_REQUESTED = 'TRANSACTION_CANCELATION_REQUESTED', - /** Event called when charge has been requested for transaction. */ - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - TRANSACTION_INITIALIZE_SESSION = 'TRANSACTION_INITIALIZE_SESSION', - /** Transaction item metadata is updated. */ - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - TRANSACTION_PROCESS_SESSION = 'TRANSACTION_PROCESS_SESSION', - /** Event called when refund has been requested for transaction. */ - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED', - /** A new translation is created. */ - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - /** A translation is updated. */ - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - VOUCHER_CODES_CREATED = 'VOUCHER_CODES_CREATED', - VOUCHER_CODES_DELETED = 'VOUCHER_CODES_DELETED', - /** - * A voucher code export is completed. - * - * Added in Saleor 3.18. - */ - VOUCHER_CODE_EXPORT_COMPLETED = 'VOUCHER_CODE_EXPORT_COMPLETED', - /** A new voucher created. */ - VOUCHER_CREATED = 'VOUCHER_CREATED', - /** A voucher is deleted. */ - VOUCHER_DELETED = 'VOUCHER_DELETED', - /** A voucher metadata is updated. */ - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - /** A voucher is updated. */ - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - /** A new warehouse created. */ - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - /** A warehouse is deleted. */ - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - /** A warehouse metadata is updated. */ - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - /** A warehouse is updated. */ - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' -} - -/** Enum determining type of webhook. */ -export enum WebhookEventTypeSyncEnum { - /** Event called for checkout tax calculation. */ - CHECKOUT_CALCULATE_TAXES = 'CHECKOUT_CALCULATE_TAXES', - /** Filter shipping methods for checkout. */ - CHECKOUT_FILTER_SHIPPING_METHODS = 'CHECKOUT_FILTER_SHIPPING_METHODS', - LIST_STORED_PAYMENT_METHODS = 'LIST_STORED_PAYMENT_METHODS', - /** Event called for order tax calculation. */ - ORDER_CALCULATE_TAXES = 'ORDER_CALCULATE_TAXES', - /** Filter shipping methods for order. */ - ORDER_FILTER_SHIPPING_METHODS = 'ORDER_FILTER_SHIPPING_METHODS', - /** Authorize payment. */ - PAYMENT_AUTHORIZE = 'PAYMENT_AUTHORIZE', - /** Capture payment. */ - PAYMENT_CAPTURE = 'PAYMENT_CAPTURE', - /** Confirm payment. */ - PAYMENT_CONFIRM = 'PAYMENT_CONFIRM', - PAYMENT_GATEWAY_INITIALIZE_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_SESSION', - PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION = 'PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION', - /** Listing available payment gateways. */ - PAYMENT_LIST_GATEWAYS = 'PAYMENT_LIST_GATEWAYS', - PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION = 'PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION', - PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION = 'PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION', - /** Process payment. */ - PAYMENT_PROCESS = 'PAYMENT_PROCESS', - /** Refund payment. */ - PAYMENT_REFUND = 'PAYMENT_REFUND', - /** Void payment. */ - PAYMENT_VOID = 'PAYMENT_VOID', - /** Fetch external shipping methods for checkout. */ - SHIPPING_LIST_METHODS_FOR_CHECKOUT = 'SHIPPING_LIST_METHODS_FOR_CHECKOUT', - STORED_PAYMENT_METHOD_DELETE_REQUESTED = 'STORED_PAYMENT_METHOD_DELETE_REQUESTED', - /** Event called when cancel has been requested for transaction. */ - TRANSACTION_CANCELATION_REQUESTED = 'TRANSACTION_CANCELATION_REQUESTED', - /** Event called when charge has been requested for transaction. */ - TRANSACTION_CHARGE_REQUESTED = 'TRANSACTION_CHARGE_REQUESTED', - TRANSACTION_INITIALIZE_SESSION = 'TRANSACTION_INITIALIZE_SESSION', - TRANSACTION_PROCESS_SESSION = 'TRANSACTION_PROCESS_SESSION', - /** Event called when refund has been requested for transaction. */ - TRANSACTION_REFUND_REQUESTED = 'TRANSACTION_REFUND_REQUESTED' -} - -export enum WebhookSampleEventTypeEnum { - ACCOUNT_CHANGE_EMAIL_REQUESTED = 'ACCOUNT_CHANGE_EMAIL_REQUESTED', - ACCOUNT_CONFIRMATION_REQUESTED = 'ACCOUNT_CONFIRMATION_REQUESTED', - ACCOUNT_CONFIRMED = 'ACCOUNT_CONFIRMED', - ACCOUNT_DELETED = 'ACCOUNT_DELETED', - ACCOUNT_DELETE_REQUESTED = 'ACCOUNT_DELETE_REQUESTED', - ACCOUNT_EMAIL_CHANGED = 'ACCOUNT_EMAIL_CHANGED', - ACCOUNT_SET_PASSWORD_REQUESTED = 'ACCOUNT_SET_PASSWORD_REQUESTED', - ADDRESS_CREATED = 'ADDRESS_CREATED', - ADDRESS_DELETED = 'ADDRESS_DELETED', - ADDRESS_UPDATED = 'ADDRESS_UPDATED', - APP_DELETED = 'APP_DELETED', - APP_INSTALLED = 'APP_INSTALLED', - APP_STATUS_CHANGED = 'APP_STATUS_CHANGED', - APP_UPDATED = 'APP_UPDATED', - ATTRIBUTE_CREATED = 'ATTRIBUTE_CREATED', - ATTRIBUTE_DELETED = 'ATTRIBUTE_DELETED', - ATTRIBUTE_UPDATED = 'ATTRIBUTE_UPDATED', - ATTRIBUTE_VALUE_CREATED = 'ATTRIBUTE_VALUE_CREATED', - ATTRIBUTE_VALUE_DELETED = 'ATTRIBUTE_VALUE_DELETED', - ATTRIBUTE_VALUE_UPDATED = 'ATTRIBUTE_VALUE_UPDATED', - CATEGORY_CREATED = 'CATEGORY_CREATED', - CATEGORY_DELETED = 'CATEGORY_DELETED', - CATEGORY_UPDATED = 'CATEGORY_UPDATED', - CHANNEL_CREATED = 'CHANNEL_CREATED', - CHANNEL_DELETED = 'CHANNEL_DELETED', - CHANNEL_METADATA_UPDATED = 'CHANNEL_METADATA_UPDATED', - CHANNEL_STATUS_CHANGED = 'CHANNEL_STATUS_CHANGED', - CHANNEL_UPDATED = 'CHANNEL_UPDATED', - CHECKOUT_CREATED = 'CHECKOUT_CREATED', - CHECKOUT_FULLY_AUTHORIZED = 'CHECKOUT_FULLY_AUTHORIZED', - CHECKOUT_FULLY_PAID = 'CHECKOUT_FULLY_PAID', - CHECKOUT_METADATA_UPDATED = 'CHECKOUT_METADATA_UPDATED', - CHECKOUT_UPDATED = 'CHECKOUT_UPDATED', - COLLECTION_CREATED = 'COLLECTION_CREATED', - COLLECTION_DELETED = 'COLLECTION_DELETED', - COLLECTION_METADATA_UPDATED = 'COLLECTION_METADATA_UPDATED', - COLLECTION_UPDATED = 'COLLECTION_UPDATED', - CUSTOMER_CREATED = 'CUSTOMER_CREATED', - CUSTOMER_DELETED = 'CUSTOMER_DELETED', - CUSTOMER_METADATA_UPDATED = 'CUSTOMER_METADATA_UPDATED', - CUSTOMER_UPDATED = 'CUSTOMER_UPDATED', - DRAFT_ORDER_CREATED = 'DRAFT_ORDER_CREATED', - DRAFT_ORDER_DELETED = 'DRAFT_ORDER_DELETED', - DRAFT_ORDER_UPDATED = 'DRAFT_ORDER_UPDATED', - FULFILLMENT_APPROVED = 'FULFILLMENT_APPROVED', - FULFILLMENT_CANCELED = 'FULFILLMENT_CANCELED', - FULFILLMENT_CREATED = 'FULFILLMENT_CREATED', - FULFILLMENT_METADATA_UPDATED = 'FULFILLMENT_METADATA_UPDATED', - FULFILLMENT_TRACKING_NUMBER_UPDATED = 'FULFILLMENT_TRACKING_NUMBER_UPDATED', - GIFT_CARD_CREATED = 'GIFT_CARD_CREATED', - GIFT_CARD_DELETED = 'GIFT_CARD_DELETED', - GIFT_CARD_EXPORT_COMPLETED = 'GIFT_CARD_EXPORT_COMPLETED', - GIFT_CARD_METADATA_UPDATED = 'GIFT_CARD_METADATA_UPDATED', - GIFT_CARD_SENT = 'GIFT_CARD_SENT', - GIFT_CARD_STATUS_CHANGED = 'GIFT_CARD_STATUS_CHANGED', - GIFT_CARD_UPDATED = 'GIFT_CARD_UPDATED', - INVOICE_DELETED = 'INVOICE_DELETED', - INVOICE_REQUESTED = 'INVOICE_REQUESTED', - INVOICE_SENT = 'INVOICE_SENT', - MENU_CREATED = 'MENU_CREATED', - MENU_DELETED = 'MENU_DELETED', - MENU_ITEM_CREATED = 'MENU_ITEM_CREATED', - MENU_ITEM_DELETED = 'MENU_ITEM_DELETED', - MENU_ITEM_UPDATED = 'MENU_ITEM_UPDATED', - MENU_UPDATED = 'MENU_UPDATED', - NOTIFY_USER = 'NOTIFY_USER', - OBSERVABILITY = 'OBSERVABILITY', - ORDER_BULK_CREATED = 'ORDER_BULK_CREATED', - ORDER_CANCELLED = 'ORDER_CANCELLED', - ORDER_CONFIRMED = 'ORDER_CONFIRMED', - ORDER_CREATED = 'ORDER_CREATED', - ORDER_EXPIRED = 'ORDER_EXPIRED', - ORDER_FULFILLED = 'ORDER_FULFILLED', - ORDER_FULLY_PAID = 'ORDER_FULLY_PAID', - ORDER_FULLY_REFUNDED = 'ORDER_FULLY_REFUNDED', - ORDER_METADATA_UPDATED = 'ORDER_METADATA_UPDATED', - ORDER_PAID = 'ORDER_PAID', - ORDER_REFUNDED = 'ORDER_REFUNDED', - ORDER_UPDATED = 'ORDER_UPDATED', - PAGE_CREATED = 'PAGE_CREATED', - PAGE_DELETED = 'PAGE_DELETED', - PAGE_TYPE_CREATED = 'PAGE_TYPE_CREATED', - PAGE_TYPE_DELETED = 'PAGE_TYPE_DELETED', - PAGE_TYPE_UPDATED = 'PAGE_TYPE_UPDATED', - PAGE_UPDATED = 'PAGE_UPDATED', - PERMISSION_GROUP_CREATED = 'PERMISSION_GROUP_CREATED', - PERMISSION_GROUP_DELETED = 'PERMISSION_GROUP_DELETED', - PERMISSION_GROUP_UPDATED = 'PERMISSION_GROUP_UPDATED', - PRODUCT_CREATED = 'PRODUCT_CREATED', - PRODUCT_DELETED = 'PRODUCT_DELETED', - PRODUCT_EXPORT_COMPLETED = 'PRODUCT_EXPORT_COMPLETED', - PRODUCT_MEDIA_CREATED = 'PRODUCT_MEDIA_CREATED', - PRODUCT_MEDIA_DELETED = 'PRODUCT_MEDIA_DELETED', - PRODUCT_MEDIA_UPDATED = 'PRODUCT_MEDIA_UPDATED', - PRODUCT_METADATA_UPDATED = 'PRODUCT_METADATA_UPDATED', - PRODUCT_UPDATED = 'PRODUCT_UPDATED', - PRODUCT_VARIANT_BACK_IN_STOCK = 'PRODUCT_VARIANT_BACK_IN_STOCK', - PRODUCT_VARIANT_CREATED = 'PRODUCT_VARIANT_CREATED', - PRODUCT_VARIANT_DELETED = 'PRODUCT_VARIANT_DELETED', - PRODUCT_VARIANT_METADATA_UPDATED = 'PRODUCT_VARIANT_METADATA_UPDATED', - PRODUCT_VARIANT_OUT_OF_STOCK = 'PRODUCT_VARIANT_OUT_OF_STOCK', - PRODUCT_VARIANT_STOCK_UPDATED = 'PRODUCT_VARIANT_STOCK_UPDATED', - PRODUCT_VARIANT_UPDATED = 'PRODUCT_VARIANT_UPDATED', - PROMOTION_CREATED = 'PROMOTION_CREATED', - PROMOTION_DELETED = 'PROMOTION_DELETED', - PROMOTION_ENDED = 'PROMOTION_ENDED', - PROMOTION_RULE_CREATED = 'PROMOTION_RULE_CREATED', - PROMOTION_RULE_DELETED = 'PROMOTION_RULE_DELETED', - PROMOTION_RULE_UPDATED = 'PROMOTION_RULE_UPDATED', - PROMOTION_STARTED = 'PROMOTION_STARTED', - PROMOTION_UPDATED = 'PROMOTION_UPDATED', - SALE_CREATED = 'SALE_CREATED', - SALE_DELETED = 'SALE_DELETED', - SALE_TOGGLE = 'SALE_TOGGLE', - SALE_UPDATED = 'SALE_UPDATED', - SHIPPING_PRICE_CREATED = 'SHIPPING_PRICE_CREATED', - SHIPPING_PRICE_DELETED = 'SHIPPING_PRICE_DELETED', - SHIPPING_PRICE_UPDATED = 'SHIPPING_PRICE_UPDATED', - SHIPPING_ZONE_CREATED = 'SHIPPING_ZONE_CREATED', - SHIPPING_ZONE_DELETED = 'SHIPPING_ZONE_DELETED', - SHIPPING_ZONE_METADATA_UPDATED = 'SHIPPING_ZONE_METADATA_UPDATED', - SHIPPING_ZONE_UPDATED = 'SHIPPING_ZONE_UPDATED', - SHOP_METADATA_UPDATED = 'SHOP_METADATA_UPDATED', - STAFF_CREATED = 'STAFF_CREATED', - STAFF_DELETED = 'STAFF_DELETED', - STAFF_SET_PASSWORD_REQUESTED = 'STAFF_SET_PASSWORD_REQUESTED', - STAFF_UPDATED = 'STAFF_UPDATED', - THUMBNAIL_CREATED = 'THUMBNAIL_CREATED', - TRANSACTION_ITEM_METADATA_UPDATED = 'TRANSACTION_ITEM_METADATA_UPDATED', - TRANSLATION_CREATED = 'TRANSLATION_CREATED', - TRANSLATION_UPDATED = 'TRANSLATION_UPDATED', - VOUCHER_CODES_CREATED = 'VOUCHER_CODES_CREATED', - VOUCHER_CODES_DELETED = 'VOUCHER_CODES_DELETED', - VOUCHER_CODE_EXPORT_COMPLETED = 'VOUCHER_CODE_EXPORT_COMPLETED', - VOUCHER_CREATED = 'VOUCHER_CREATED', - VOUCHER_DELETED = 'VOUCHER_DELETED', - VOUCHER_METADATA_UPDATED = 'VOUCHER_METADATA_UPDATED', - VOUCHER_UPDATED = 'VOUCHER_UPDATED', - WAREHOUSE_CREATED = 'WAREHOUSE_CREATED', - WAREHOUSE_DELETED = 'WAREHOUSE_DELETED', - WAREHOUSE_METADATA_UPDATED = 'WAREHOUSE_METADATA_UPDATED', - WAREHOUSE_UPDATED = 'WAREHOUSE_UPDATED' -} - -export enum WebhookTriggerErrorCode { - GRAPHQL_ERROR = 'GRAPHQL_ERROR', - INVALID_ID = 'INVALID_ID', - MISSING_EVENT = 'MISSING_EVENT', - MISSING_PERMISSION = 'MISSING_PERMISSION', - MISSING_QUERY = 'MISSING_QUERY', - MISSING_SUBSCRIPTION = 'MISSING_SUBSCRIPTION', - NOT_FOUND = 'NOT_FOUND', - SYNTAX = 'SYNTAX', - TYPE_NOT_SUPPORTED = 'TYPE_NOT_SUPPORTED', - UNABLE_TO_PARSE = 'UNABLE_TO_PARSE' -} - -export type WebhookUpdateInput = { - /** ID of the app to which webhook belongs. */ - app?: InputMaybe; - /** The asynchronous events that webhook wants to subscribe. */ - asyncEvents?: InputMaybe>; - /** Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed. */ - customHeaders?: InputMaybe; - /** - * The events that webhook wants to subscribe. - * @deprecated Use `asyncEvents` or `syncEvents` instead. - */ - events?: InputMaybe>; - /** Determine if webhook will be set active or not. */ - isActive?: InputMaybe; - /** The new name of the webhook. */ - name?: InputMaybe; - /** Subscription query used to define a webhook payload. */ - query?: InputMaybe; - /** - * Use to create a hash signature with each payload. - * @deprecated As of Saleor 3.5, webhook payloads default to signing using a verifiable JWS. - */ - secretKey?: InputMaybe; - /** The synchronous events that webhook wants to subscribe. */ - syncEvents?: InputMaybe>; - /** The url to receive the payload. */ - targetUrl?: InputMaybe; -}; - -export enum WeightUnitsEnum { - G = 'G', - KG = 'KG', - LB = 'LB', - OZ = 'OZ', - TONNE = 'TONNE' -} - -export type ChannelCreateMutationVariables = Exact<{ - input: ChannelCreateInput; -}>; - - -export type ChannelCreateMutation = { __typename: 'Mutation', channelCreate: { __typename: 'ChannelCreate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type ChannelUpdateMutationVariables = Exact<{ - id: Scalars['ID']; - input: ChannelUpdateInput; -}>; - - -export type ChannelUpdateMutation = { __typename: 'Mutation', channelUpdate: { __typename: 'ChannelUpdate', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null, errors: Array<{ __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }> } | null }; - -export type BaseChannelsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type BaseChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; - -export type ChannelsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type ChannelsQuery = { __typename: 'Query', channels: Array<{ __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }> | null }; - -export type ChannelQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type ChannelQuery = { __typename: 'Query', channel: { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } } | null }; - -export type AddressFragment = { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }; - -export type ChannelErrorFragment = { __typename: 'ChannelError', code: ChannelErrorCode, field: string | null, message: string | null }; - -export type ChannelFragment = { __typename: 'Channel', id: string, isActive: boolean, name: string, slug: string, currencyCode: string, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; - -export type ChannelDetailsFragment = { __typename: 'Channel', hasOrders: boolean, id: string, isActive: boolean, name: string, slug: string, currencyCode: string, warehouses: Array<{ __typename: 'Warehouse', id: string, name: string }>, orderSettings: { __typename: 'OrderSettings', markAsPaidStrategy: MarkAsPaidStrategyEnum, deleteExpiredOrdersAfter: any, allowUnpaidOrders: boolean }, paymentSettings: { __typename: 'PaymentSettings', defaultTransactionFlowStrategy: TransactionFlowStrategyEnum }, checkoutSettings: { __typename: 'CheckoutSettings', automaticallyCompleteFullyPaidCheckouts: boolean, automaticCompletionDelay: any | null, automaticCompletionCutOffDate: any | null, allowLegacyGiftCardUse: boolean }, defaultCountry: { __typename: 'CountryDisplay', code: string, country: string }, stockSettings: { __typename: 'StockSettings', allocationStrategy: AllocationStrategyEnum } }; - -export type WarehouseFragment = { __typename: 'Warehouse', id: string, name: string }; - -export type WarehouseWithShippingFragment = { __typename: 'Warehouse', id: string, name: string, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; - -export type WarehouseDetailsFragment = { __typename: 'Warehouse', isPrivate: boolean, clickAndCollectOption: WarehouseClickAndCollectOptionEnum, email: string, id: string, name: string, address: { __typename: 'Address', city: string, cityArea: string, companyName: string, countryArea: string, firstName: string, id: string, lastName: string, phone: string | null, postalCode: string, streetAddress1: string, streetAddress2: string, country: { __typename: 'CountryDisplay', code: string, country: string } }, shippingZones: { __typename: 'ShippingZoneCountableConnection', edges: Array<{ __typename: 'ShippingZoneCountableEdge', node: { __typename: 'ShippingZone', id: string, name: string } }> } }; +export type TransactionFlowStrategyEnum = + | 'AUTHORIZATION' + | 'CHARGE'; + +export type WarehouseClickAndCollectOptionEnum = + | 'ALL' + | 'DISABLED' + | 'LOCAL'; + +export type WeightUnitsEnum = + | 'G' + | 'KG' + | 'LB' + | 'OZ' + | 'TONNE';