From 6f970d46ec898cdfdf41fe82daef45cf777bbe68 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Fri, 6 Jan 2023 21:05:20 +0100 Subject: [PATCH] First draft of multivendor data model for Orders Relates to #1329. This implements the "partial order" concept (renamed to VendorOrder). This commit includes just the bare minimum data model changes and assignment flow. --- packages/common/src/generated-shop-types.ts | 4705 +++--- packages/common/src/generated-types.ts | 94 + .../e2e/graphql/generated-e2e-admin-types.ts | 13052 ++++++++++------ .../e2e/graphql/generated-e2e-shop-types.ts | 5826 ++++--- packages/core/src/api/api-internal-modules.ts | 4 + .../api/resolvers/admin/vendor.resolver.ts | 59 + .../entity/channel-entity.resolver.ts | 20 + .../api/schema/admin-api/channel.api.graphql | 2 + .../api/schema/admin-api/vendor.api.graphql | 29 + .../api/schema/common/channel.type.graphql | 1 + .../src/api/schema/common/vendor.type.graphql | 6 + packages/core/src/common/constants.ts | 1 + packages/core/src/config/config.module.ts | 2 + packages/core/src/config/default-config.ts | 2 + .../default-vendor-selection-strategy.ts | 7 + .../src/config/order/order-code-strategy.ts | 4 +- .../config/order/vendor-selection-strategy.ts | 27 + packages/core/src/config/vendure-config.ts | 2 + .../core/src/entity/channel/channel.entity.ts | 13 +- packages/core/src/entity/entities.ts | 4 + .../core/src/entity/order/order.entity.ts | 4 + .../vendor-order/vendor-order.entity.ts | 83 + .../core/src/entity/vendor/vendor.entity.ts | 26 + .../helpers/order-modifier/order-modifier.ts | 37 + packages/core/src/service/index.ts | 1 + packages/core/src/service/service.module.ts | 2 + .../src/service/services/channel.service.ts | 25 +- .../src/service/services/order.service.ts | 22 +- .../src/service/services/vendor.service.ts | 60 + 29 files changed, 14744 insertions(+), 9376 deletions(-) create mode 100644 packages/core/src/api/resolvers/admin/vendor.resolver.ts create mode 100644 packages/core/src/api/resolvers/entity/channel-entity.resolver.ts create mode 100644 packages/core/src/api/schema/admin-api/vendor.api.graphql create mode 100644 packages/core/src/api/schema/common/vendor.type.graphql create mode 100644 packages/core/src/config/order/default-vendor-selection-strategy.ts create mode 100644 packages/core/src/config/order/vendor-selection-strategy.ts create mode 100644 packages/core/src/entity/vendor-order/vendor-order.entity.ts create mode 100644 packages/core/src/entity/vendor/vendor.entity.ts create mode 100644 packages/core/src/service/services/vendor.service.ts diff --git a/packages/common/src/generated-shop-types.ts b/packages/common/src/generated-shop-types.ts index e3f716a253..abd83b4d31 100644 --- a/packages/common/src/generated-shop-types.ts +++ b/packages/common/src/generated-shop-types.ts @@ -6,208 +6,220 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string | number; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - DateTime: any; - /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSON: any; - /** The `Upload` scalar type represents a file upload. */ - Upload: any; + ID: string | number; + String: string; + Boolean: boolean; + Int: number; + Float: number; + /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ + DateTime: any; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ + JSON: any; + /** The `Upload` scalar type represents a file upload. */ + Upload: any; }; export type ActiveOrderResult = NoActiveOrderError | Order; -export type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError; +export type AddPaymentToOrderResult = + | IneligiblePaymentMethodError + | NoActiveOrderError + | Order + | OrderPaymentStateError + | OrderStateTransitionError + | PaymentDeclinedError + | PaymentFailedError; export type Address = Node & { - __typename?: 'Address'; - city?: Maybe; - company?: Maybe; - country: Country; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - defaultBillingAddress?: Maybe; - defaultShippingAddress?: Maybe; - fullName?: Maybe; - id: Scalars['ID']; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Address'; + city?: Maybe; + company?: Maybe; + country: Country; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + defaultBillingAddress?: Maybe; + defaultShippingAddress?: Maybe; + fullName?: Maybe; + id: Scalars['ID']; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + updatedAt: Scalars['DateTime']; }; export type Adjustment = { - __typename?: 'Adjustment'; - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + __typename?: 'Adjustment'; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION' + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION', } /** Returned when attempting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - __typename?: 'AlreadyLoggedInError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'AlreadyLoggedInError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; +export type ApplyCouponCodeResult = + | CouponCodeExpiredError + | CouponCodeInvalidError + | CouponCodeLimitError + | Order; export type Asset = Node & { - __typename?: 'Asset'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + __typename?: 'Asset'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetList = PaginatedList & { - __typename?: 'AssetList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'AssetList'; + items: Array; + totalItems: Scalars['Int']; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO' + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO', } export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - __typename?: 'AuthenticationMethod'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'AuthenticationMethod'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type BooleanCustomFieldConfig = CustomField & { - __typename?: 'BooleanCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'BooleanCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type Channel = Node & { - __typename?: 'Channel'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - token: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'Channel'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + token: Scalars['String']; + updatedAt: Scalars['DateTime']; + vendor?: Maybe; }; export type Collection = Node & { - __typename?: 'Collection'; - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Collection'; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; - export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - __typename?: 'CollectionBreadcrumb'; - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + __typename?: 'CollectionBreadcrumb'; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - __typename?: 'CollectionList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CollectionList'; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -215,155 +227,155 @@ export type CollectionListOptions = { * by the search, and in what quantity. */ export type CollectionResult = { - __typename?: 'CollectionResult'; - collection: Collection; - count: Scalars['Int']; + __typename?: 'CollectionResult'; + collection: Collection; + count: Scalars['Int']; }; export type CollectionSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionTranslation = { - __typename?: 'CollectionTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CollectionTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ConfigArg = { - __typename?: 'ConfigArg'; - name: Scalars['String']; - value: Scalars['String']; + __typename?: 'ConfigArg'; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - __typename?: 'ConfigArgDefinition'; - defaultValue?: Maybe; - description?: Maybe; - label?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - required: Scalars['Boolean']; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'ConfigArgDefinition'; + defaultValue?: Maybe; + description?: Maybe; + label?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + required: Scalars['Boolean']; + type: Scalars['String']; + ui?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - /** A JSON stringified representation of the actual value */ - value: Scalars['String']; + name: Scalars['String']; + /** A JSON stringified representation of the actual value */ + value: Scalars['String']; }; export type ConfigurableOperation = { - __typename?: 'ConfigurableOperation'; - args: Array; - code: Scalars['String']; + __typename?: 'ConfigurableOperation'; + args: Array; + code: Scalars['String']; }; export type ConfigurableOperationDefinition = { - __typename?: 'ConfigurableOperationDefinition'; - args: Array; - code: Scalars['String']; - description: Scalars['String']; + __typename?: 'ConfigurableOperationDefinition'; + args: Array; + code: Scalars['String']; + description: Scalars['String']; }; export type ConfigurableOperationInput = { - arguments: Array; - code: Scalars['String']; + arguments: Array; + code: Scalars['String']; }; export type Coordinate = { - __typename?: 'Coordinate'; - x: Scalars['Float']; - y: Scalars['Float']; + __typename?: 'Coordinate'; + x: Scalars['Float']; + y: Scalars['Float']; }; export type Country = Node & { - __typename?: 'Country'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Country'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type CountryList = PaginatedList & { - __typename?: 'CountryList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CountryList'; + items: Array; + totalItems: Scalars['Int']; }; export type CountryTranslation = { - __typename?: 'CountryTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CountryTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - __typename?: 'CouponCodeExpiredError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'CouponCodeExpiredError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - __typename?: 'CouponCodeInvalidError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'CouponCodeInvalidError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - __typename?: 'CouponCodeLimitError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - limit: Scalars['Int']; - message: Scalars['String']; + __typename?: 'CouponCodeLimitError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + limit: Scalars['Int']; + message: Scalars['String']; }; export type CreateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode: Scalars['String']; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1: Scalars['String']; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode: Scalars['String']; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1: Scalars['String']; + streetLine2?: InputMaybe; }; export type CreateCustomerInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; /** @@ -373,445 +385,451 @@ export type CreateCustomerInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL' + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL', } export type CurrentUser = { - __typename?: 'CurrentUser'; - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + __typename?: 'CurrentUser'; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - __typename?: 'CurrentUserChannel'; - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + __typename?: 'CurrentUserChannel'; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; +}; + +export type CustomFieldConfig = + | BooleanCustomFieldConfig + | DateTimeCustomFieldConfig + | FloatCustomFieldConfig + | IntCustomFieldConfig + | LocaleStringCustomFieldConfig + | RelationCustomFieldConfig + | StringCustomFieldConfig + | TextCustomFieldConfig; export type Customer = Node & { - __typename?: 'Customer'; - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + __typename?: 'Customer'; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; - export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - __typename?: 'CustomerGroup'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CustomerGroup'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; - export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerList = PaginatedList & { - __typename?: 'CustomerList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CustomerList'; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -819,156 +837,156 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - __typename?: 'DateTimeCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'DateTimeCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeletionResponse = { - __typename?: 'DeletionResponse'; - message?: Maybe; - result: DeletionResult; + __typename?: 'DeletionResponse'; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED' + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED', } export type Discount = { - __typename?: 'Discount'; - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - amountWithTax: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + __typename?: 'Discount'; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + amountWithTax: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - __typename?: 'EmailAddressConflictError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'EmailAddressConflictError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export enum ErrorCode { - ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', - IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', - INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', - INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', - INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', - NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', - PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', - PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', - PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', - PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', - PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', - UNKNOWN_ERROR = 'UNKNOWN_ERROR', - VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', - VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR' + ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', + IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', + INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', + INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', + INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', + NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', + PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', + PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', + PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', + PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', + PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', + VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', + VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Facet = Node & { - __typename?: 'Facet'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - values: Array; + __typename?: 'Facet'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + values: Array; }; export type FacetFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetList = PaginatedList & { - __typename?: 'FacetList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'FacetList'; + items: Array; + totalItems: Scalars['Int']; }; export type FacetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type FacetSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetTranslation = { - __typename?: 'FacetTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValue = Node & { - __typename?: 'FacetValue'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - facet: Facet; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetValue'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + facet: Facet; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; /** @@ -980,8 +998,8 @@ export type FacetValue = Node & { * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }` */ export type FacetValueFilterInput = { - and?: InputMaybe; - or?: InputMaybe>; + and?: InputMaybe; + or?: InputMaybe>; }; /** @@ -989,141 +1007,141 @@ export type FacetValueFilterInput = { * by the search, and in what quantity. */ export type FacetValueResult = { - __typename?: 'FacetValueResult'; - count: Scalars['Int']; - facetValue: FacetValue; + __typename?: 'FacetValueResult'; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueTranslation = { - __typename?: 'FacetValueTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetValueTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FloatCustomFieldConfig = CustomField & { - __typename?: 'FloatCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'FloatCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type Fulfillment = Node & { - __typename?: 'Fulfillment'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - method: Scalars['String']; - orderItems: Array; - state: Scalars['String']; - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Fulfillment'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + method: Scalars['String']; + orderItems: Array; + state: Scalars['String']; + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLineSummary = { - __typename?: 'FulfillmentLineSummary'; - orderLine: OrderLine; - quantity: Scalars['Int']; + __typename?: 'FulfillmentLineSummary'; + orderLine: OrderLine; + quantity: Scalars['Int']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE' + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE', } export type HistoryEntry = Node & { - __typename?: 'HistoryEntry'; - createdAt: Scalars['DateTime']; - data: Scalars['JSON']; - id: Scalars['ID']; - type: HistoryEntryType; - updatedAt: Scalars['DateTime']; + __typename?: 'HistoryEntry'; + createdAt: Scalars['DateTime']; + data: Scalars['JSON']; + id: Scalars['ID']; + type: HistoryEntryType; + updatedAt: Scalars['DateTime']; }; export type HistoryEntryFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type HistoryEntryList = PaginatedList & { - __typename?: 'HistoryEntryList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'HistoryEntryList'; + items: Array; + totalItems: Scalars['Int']; }; export type HistoryEntryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type HistoryEntrySortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export enum HistoryEntryType { - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_MODIFIED = 'ORDER_MODIFIED', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION' + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_MODIFIED = 'ORDER_MODIFIED', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', } /** Operators for filtering on a list of ID fields */ export type IdListOperators = { - inList: Scalars['ID']; + inList: Scalars['ID']; }; /** Operators for filtering on an ID field */ export type IdOperators = { - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; }; /** @@ -1131,9 +1149,9 @@ export type IdOperators = { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type IdentifierChangeTokenExpiredError = ErrorResult & { - __typename?: 'IdentifierChangeTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IdentifierChangeTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1141,57 +1159,57 @@ export type IdentifierChangeTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type IdentifierChangeTokenInvalidError = ErrorResult & { - __typename?: 'IdentifierChangeTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IdentifierChangeTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */ export type IneligiblePaymentMethodError = ErrorResult & { - __typename?: 'IneligiblePaymentMethodError'; - eligibilityCheckerMessage?: Maybe; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IneligiblePaymentMethodError'; + eligibilityCheckerMessage?: Maybe; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */ export type IneligibleShippingMethodError = ErrorResult & { - __typename?: 'IneligibleShippingMethodError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IneligibleShippingMethodError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add more items to the Order than are available */ export type InsufficientStockError = ErrorResult & { - __typename?: 'InsufficientStockError'; - errorCode: ErrorCode; - message: Scalars['String']; - order: Order; - quantityAvailable: Scalars['Int']; + __typename?: 'InsufficientStockError'; + errorCode: ErrorCode; + message: Scalars['String']; + order: Order; + quantityAvailable: Scalars['Int']; }; export type IntCustomFieldConfig = CustomField & { - __typename?: 'IntCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'IntCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - __typename?: 'InvalidCredentialsError'; - authenticationError: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'InvalidCredentialsError'; + authenticationError: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1204,601 +1222,579 @@ export type InvalidCredentialsError = ErrorResult & { * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Belarusian */ - be = 'be', - /** Bulgarian */ - bg = 'bg', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Tibetan */ - bo = 'bo', - /** Breton */ - br = 'br', - /** Bosnian */ - bs = 'bs', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Corsican */ - co = 'co', - /** Czech */ - cs = 'cs', - /** Church Slavic */ - cu = 'cu', - /** Welsh */ - cy = 'cy', - /** Danish */ - da = 'da', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Dzongkha */ - dz = 'dz', - /** Ewe */ - ee = 'ee', - /** Greek */ - el = 'el', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Estonian */ - et = 'et', - /** Basque */ - eu = 'eu', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Fulah */ - ff = 'ff', - /** Finnish */ - fi = 'fi', - /** Faroese */ - fo = 'fo', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Western Frisian */ - fy = 'fy', - /** Irish */ - ga = 'ga', - /** Scottish Gaelic */ - gd = 'gd', - /** Galician */ - gl = 'gl', - /** Gujarati */ - gu = 'gu', - /** Manx */ - gv = 'gv', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Croatian */ - hr = 'hr', - /** Haitian Creole */ - ht = 'ht', - /** Hungarian */ - hu = 'hu', - /** Armenian */ - hy = 'hy', - /** Interlingua */ - ia = 'ia', - /** Indonesian */ - id = 'id', - /** Igbo */ - ig = 'ig', - /** Sichuan Yi */ - ii = 'ii', - /** Icelandic */ - is = 'is', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Georgian */ - ka = 'ka', - /** Kikuyu */ - ki = 'ki', - /** Kazakh */ - kk = 'kk', - /** Kalaallisut */ - kl = 'kl', - /** Khmer */ - km = 'km', - /** Kannada */ - kn = 'kn', - /** Korean */ - ko = 'ko', - /** Kashmiri */ - ks = 'ks', - /** Kurdish */ - ku = 'ku', - /** Cornish */ - kw = 'kw', - /** Kyrgyz */ - ky = 'ky', - /** Latin */ - la = 'la', - /** Luxembourgish */ - lb = 'lb', - /** Ganda */ - lg = 'lg', - /** Lingala */ - ln = 'ln', - /** Lao */ - lo = 'lo', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Latvian */ - lv = 'lv', - /** Malagasy */ - mg = 'mg', - /** Maori */ - mi = 'mi', - /** Macedonian */ - mk = 'mk', - /** Malayalam */ - ml = 'ml', - /** Mongolian */ - mn = 'mn', - /** Marathi */ - mr = 'mr', - /** Malay */ - ms = 'ms', - /** Maltese */ - mt = 'mt', - /** Burmese */ - my = 'my', - /** Norwegian Bokmål */ - nb = 'nb', - /** North Ndebele */ - nd = 'nd', - /** Nepali */ - ne = 'ne', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Oromo */ - om = 'om', - /** Odia */ - or = 'or', - /** Ossetic */ - os = 'os', - /** Punjabi */ - pa = 'pa', - /** Polish */ - pl = 'pl', - /** Pashto */ - ps = 'ps', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Quechua */ - qu = 'qu', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Russian */ - ru = 'ru', - /** Kinyarwanda */ - rw = 'rw', - /** Sanskrit */ - sa = 'sa', - /** Sindhi */ - sd = 'sd', - /** Northern Sami */ - se = 'se', - /** Sango */ - sg = 'sg', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Samoan */ - sm = 'sm', - /** Shona */ - sn = 'sn', - /** Somali */ - so = 'so', - /** Albanian */ - sq = 'sq', - /** Serbian */ - sr = 'sr', - /** Southern Sotho */ - st = 'st', - /** Sundanese */ - su = 'su', - /** Swedish */ - sv = 'sv', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Tamil */ - ta = 'ta', - /** Telugu */ - te = 'te', - /** Tajik */ - tg = 'tg', - /** Thai */ - th = 'th', - /** Tigrinya */ - ti = 'ti', - /** Turkmen */ - tk = 'tk', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Tatar */ - tt = 'tt', - /** Uyghur */ - ug = 'ug', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Zulu */ - zu = 'zu' + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Belarusian */ + be = 'be', + /** Bulgarian */ + bg = 'bg', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Tibetan */ + bo = 'bo', + /** Breton */ + br = 'br', + /** Bosnian */ + bs = 'bs', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Corsican */ + co = 'co', + /** Czech */ + cs = 'cs', + /** Church Slavic */ + cu = 'cu', + /** Welsh */ + cy = 'cy', + /** Danish */ + da = 'da', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Dzongkha */ + dz = 'dz', + /** Ewe */ + ee = 'ee', + /** Greek */ + el = 'el', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Estonian */ + et = 'et', + /** Basque */ + eu = 'eu', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Fulah */ + ff = 'ff', + /** Finnish */ + fi = 'fi', + /** Faroese */ + fo = 'fo', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Western Frisian */ + fy = 'fy', + /** Irish */ + ga = 'ga', + /** Scottish Gaelic */ + gd = 'gd', + /** Galician */ + gl = 'gl', + /** Gujarati */ + gu = 'gu', + /** Manx */ + gv = 'gv', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Croatian */ + hr = 'hr', + /** Haitian Creole */ + ht = 'ht', + /** Hungarian */ + hu = 'hu', + /** Armenian */ + hy = 'hy', + /** Interlingua */ + ia = 'ia', + /** Indonesian */ + id = 'id', + /** Igbo */ + ig = 'ig', + /** Sichuan Yi */ + ii = 'ii', + /** Icelandic */ + is = 'is', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Georgian */ + ka = 'ka', + /** Kikuyu */ + ki = 'ki', + /** Kazakh */ + kk = 'kk', + /** Kalaallisut */ + kl = 'kl', + /** Khmer */ + km = 'km', + /** Kannada */ + kn = 'kn', + /** Korean */ + ko = 'ko', + /** Kashmiri */ + ks = 'ks', + /** Kurdish */ + ku = 'ku', + /** Cornish */ + kw = 'kw', + /** Kyrgyz */ + ky = 'ky', + /** Latin */ + la = 'la', + /** Luxembourgish */ + lb = 'lb', + /** Ganda */ + lg = 'lg', + /** Lingala */ + ln = 'ln', + /** Lao */ + lo = 'lo', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Latvian */ + lv = 'lv', + /** Malagasy */ + mg = 'mg', + /** Maori */ + mi = 'mi', + /** Macedonian */ + mk = 'mk', + /** Malayalam */ + ml = 'ml', + /** Mongolian */ + mn = 'mn', + /** Marathi */ + mr = 'mr', + /** Malay */ + ms = 'ms', + /** Maltese */ + mt = 'mt', + /** Burmese */ + my = 'my', + /** Norwegian Bokmål */ + nb = 'nb', + /** North Ndebele */ + nd = 'nd', + /** Nepali */ + ne = 'ne', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Oromo */ + om = 'om', + /** Odia */ + or = 'or', + /** Ossetic */ + os = 'os', + /** Punjabi */ + pa = 'pa', + /** Polish */ + pl = 'pl', + /** Pashto */ + ps = 'ps', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Quechua */ + qu = 'qu', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Russian */ + ru = 'ru', + /** Kinyarwanda */ + rw = 'rw', + /** Sanskrit */ + sa = 'sa', + /** Sindhi */ + sd = 'sd', + /** Northern Sami */ + se = 'se', + /** Sango */ + sg = 'sg', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Samoan */ + sm = 'sm', + /** Shona */ + sn = 'sn', + /** Somali */ + so = 'so', + /** Albanian */ + sq = 'sq', + /** Serbian */ + sr = 'sr', + /** Southern Sotho */ + st = 'st', + /** Sundanese */ + su = 'su', + /** Swedish */ + sv = 'sv', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Tamil */ + ta = 'ta', + /** Telugu */ + te = 'te', + /** Tajik */ + tg = 'tg', + /** Thai */ + th = 'th', + /** Tigrinya */ + ti = 'ti', + /** Turkmen */ + tk = 'tk', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Tatar */ + tt = 'tt', + /** Uyghur */ + ug = 'ug', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Zulu */ + zu = 'zu', } export type LocaleStringCustomFieldConfig = CustomField & { - __typename?: 'LocaleStringCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'LocaleStringCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type LocalizedString = { - __typename?: 'LocalizedString'; - languageCode: LanguageCode; - value: Scalars['String']; + __typename?: 'LocalizedString'; + languageCode: LanguageCode; + value: Scalars['String']; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR' + AND = 'AND', + OR = 'OR', } /** Returned when attempting to register or verify a customer account without a password, when one is required. */ export type MissingPasswordError = ErrorResult & { - __typename?: 'MissingPasswordError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'MissingPasswordError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Mutation = { - __typename?: 'Mutation'; - /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ - addItemToOrder: UpdateOrderItemsResult; - /** Add a Payment to the Order */ - addPaymentToOrder: AddPaymentToOrderResult; - /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the active Order */ - applyCouponCode: ApplyCouponCodeResult; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - /** Create a new Customer Address */ - createCustomerAddress: Address; - /** Delete an existing Address */ - deleteCustomerAddress: Success; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - /** End the current authenticated session */ - logout: Success; - /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ - refreshCustomerVerification: RefreshCustomerVerificationResult; - /** - * Register a Customer account with the given credentials. There are three possible registration flows: - * - * _If `authOptions.requireVerification` is set to `true`:_ - * - * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then - * verified and authenticated in one step. - * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then - * verified and authenticated in one step. - * - * _If `authOptions.requireVerification` is set to `false`:_ - * - * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. - */ - registerCustomerAccount: RegisterCustomerAccountResult; - /** Remove all OrderLine from the Order */ - removeAllOrderLines: RemoveOrderItemsResult; - /** Removes the given coupon code from the active Order */ - removeCouponCode?: Maybe; - /** Remove an OrderLine from the Order */ - removeOrderLine: RemoveOrderItemsResult; - /** Requests a password reset email to be sent */ - requestPasswordReset?: Maybe; - /** - * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled - * (as is the default), then the `identifierChangeToken` will be assigned to the current User and - * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email - * that verification token to the Customer, which is then used to verify the change of email address. - */ - requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; - /** Resets a Customer's password based on the provided token */ - resetPassword: ResetPasswordResult; - /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ - setCustomerForOrder: SetCustomerForOrderResult; - /** Sets the billing address for this order */ - setOrderBillingAddress: ActiveOrderResult; - /** Allows any custom fields to be set for the active order */ - setOrderCustomFields: ActiveOrderResult; - /** Sets the shipping address for this order */ - setOrderShippingAddress: ActiveOrderResult; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; + __typename?: 'Mutation'; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Add a Payment to the Order */ + addPaymentToOrder: AddPaymentToOrderResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** + * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled + * (as is the default), then the `identifierChangeToken` will be assigned to the current User and + * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email + * that verification token to the Customer, which is then used to verify the change of email address. + */ + requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder: SetCustomerForOrderResult; + /** Sets the billing address for this order */ + setOrderBillingAddress: ActiveOrderResult; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields: ActiveOrderResult; + /** Sets the shipping address for this order */ + setOrderShippingAddress: ActiveOrderResult; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; }; - export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; - export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; - export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; - export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; - export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; - export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; - export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; - export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; - export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; - export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }; - export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; - export type MutationRequestUpdateCustomerEmailAddressArgs = { - newEmailAddress: Scalars['String']; - password: Scalars['String']; + newEmailAddress: Scalars['String']; + password: Scalars['String']; }; - export type MutationResetPasswordArgs = { - password: Scalars['String']; - token: Scalars['String']; + password: Scalars['String']; + token: Scalars['String']; }; - export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; - export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; - export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; - export type MutationTransitionOrderToStateArgs = { - state: Scalars['String']; + state: Scalars['String']; }; - export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; - export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; - export type MutationUpdateCustomerEmailAddressArgs = { - token: Scalars['String']; + token: Scalars['String']; }; - export type MutationUpdateCustomerPasswordArgs = { - currentPassword: Scalars['String']; - newPassword: Scalars['String']; + currentPassword: Scalars['String']; + newPassword: Scalars['String']; }; - export type MutationVerifyCustomerAccountArgs = { - password?: InputMaybe; - token: Scalars['String']; + password?: InputMaybe; + token: Scalars['String']; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - __typename?: 'NativeAuthStrategyError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NativeAuthStrategyError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError; +export type NativeAuthenticationResult = + | CurrentUser + | InvalidCredentialsError + | NativeAuthStrategyError + | NotVerifiedError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - __typename?: 'NegativeQuantityError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NegativeQuantityError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1806,13 +1802,13 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - __typename?: 'NoActiveOrderError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NoActiveOrderError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** @@ -1820,291 +1816,290 @@ export type Node = { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - __typename?: 'NotVerifiedError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NotVerifiedError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - __typename?: 'Order'; - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['Int']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Int']; - state: Scalars['String']; - /** - * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level - * discounts which have been prorated (proportionally distributed) amongst the OrderItems. - * To get a total of all OrderLines which does not account for prorated discounts, use the - * sum of `OrderLine.discountedLinePrice` values. - */ - subTotal: Scalars['Int']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Int']; - /** - * Surcharges are arbitrary modifications to the Order total which are neither - * ProductVariants nor discounts resulting from applied Promotions. For example, - * one-off discounts based on customer interaction, or surcharges based on payment - * methods. - */ - surcharges: Array; - /** A summary of the taxes being applied to this Order */ - taxSummary: Array; - /** Equal to subTotal plus shipping */ - total: Scalars['Int']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + __typename?: 'Order'; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']; + billingAddress?: Maybe; + /** A unique code for the Order */ + code: Scalars['String']; + /** An array of all coupon codes applied to the Order */ + couponCodes: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + customer?: Maybe; + discounts: Array; + fulfillments?: Maybe>; + history: HistoryEntryList; + id: Scalars['ID']; + lines: Array; + /** + * The date & time that the Order was placed, i.e. the Customer + * completed the checkout and the Order is no longer "active" + */ + orderPlacedAt?: Maybe; + payments?: Maybe>; + /** Promotions applied to the order. Only gets populated after the payment process has completed. */ + promotions: Array; + shipping: Scalars['Int']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Int']; + state: Scalars['String']; + /** + * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level + * discounts which have been prorated (proportionally distributed) amongst the OrderItems. + * To get a total of all OrderLines which does not account for prorated discounts, use the + * sum of `OrderLine.discountedLinePrice` values. + */ + subTotal: Scalars['Int']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Int']; + /** + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + surcharges: Array; + /** A summary of the taxes being applied to this Order */ + taxSummary: Array; + /** Equal to subTotal plus shipping */ + total: Scalars['Int']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; - export type OrderHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type OrderAddress = { - __typename?: 'OrderAddress'; - city?: Maybe; - company?: Maybe; - country?: Maybe; - countryCode?: Maybe; - customFields?: Maybe; - fullName?: Maybe; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; + __typename?: 'OrderAddress'; + city?: Maybe; + company?: Maybe; + country?: Maybe; + countryCode?: Maybe; + customFields?: Maybe; + fullName?: Maybe; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; }; export type OrderFilterParameter = { - active?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - updatedAt?: InputMaybe; + active?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + updatedAt?: InputMaybe; }; export type OrderItem = Node & { - __typename?: 'OrderItem'; - adjustments: Array; - cancelled: Scalars['Boolean']; - createdAt: Scalars['DateTime']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - fulfillment?: Maybe; - id: Scalars['ID']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - unitTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + __typename?: 'OrderItem'; + adjustments: Array; + cancelled: Scalars['Boolean']; + createdAt: Scalars['DateTime']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + fulfillment?: Maybe; + id: Scalars['ID']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + unitTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; /** Returned when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - __typename?: 'OrderLimitError'; - errorCode: ErrorCode; - maxItems: Scalars['Int']; - message: Scalars['String']; + __typename?: 'OrderLimitError'; + errorCode: ErrorCode; + maxItems: Scalars['Int']; + message: Scalars['String']; }; export type OrderLine = Node & { - __typename?: 'OrderLine'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - /** The price of the line including discounts, excluding tax */ - discountedLinePrice: Scalars['Int']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Int']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - discounts: Array; - featuredAsset?: Maybe; - fulfillments?: Maybe>; - id: Scalars['ID']; - items: Array; - /** The total price of the line excluding tax and discounts. */ - linePrice: Scalars['Int']; - /** The total price of the line including tax but excluding discounts. */ - linePriceWithTax: Scalars['Int']; - /** The total tax on this line */ - lineTax: Scalars['Int']; - order: Order; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['Int']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Int']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Int']; - updatedAt: Scalars['DateTime']; + __typename?: 'OrderLine'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Int']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Int']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + discounts: Array; + featuredAsset?: Maybe; + fulfillments?: Maybe>; + id: Scalars['ID']; + items: Array; + /** The total price of the line excluding tax and discounts. */ + linePrice: Scalars['Int']; + /** The total price of the line including tax but excluding discounts. */ + linePriceWithTax: Scalars['Int']; + /** The total tax on this line */ + lineTax: Scalars['Int']; + order: Order; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['Int']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Int']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type OrderList = PaginatedList & { - __typename?: 'OrderList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'OrderList'; + items: Array; + totalItems: Scalars['Int']; }; export type OrderListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - __typename?: 'OrderModificationError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'OrderModificationError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */ export type OrderPaymentStateError = ErrorResult & { - __typename?: 'OrderPaymentStateError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'OrderPaymentStateError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - __typename?: 'OrderStateTransitionError'; - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + __typename?: 'OrderStateTransitionError'; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -2112,27 +2107,27 @@ export type OrderStateTransitionError = ErrorResult & { * by taxRate. */ export type OrderTaxSummary = { - __typename?: 'OrderTaxSummary'; - /** A description of this tax */ - description: Scalars['String']; - /** The total net price or OrderItems to which this taxRate applies */ - taxBase: Scalars['Int']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Int']; + __typename?: 'OrderTaxSummary'; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Int']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Int']; }; export type PaginatedList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; /** Returned when attempting to verify a customer account with a password, when a password has already been set. */ export type PasswordAlreadySetError = ErrorResult & { - __typename?: 'PasswordAlreadySetError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordAlreadySetError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -2140,9 +2135,9 @@ export type PasswordAlreadySetError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type PasswordResetTokenExpiredError = ErrorResult & { - __typename?: 'PasswordResetTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordResetTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -2150,84 +2145,84 @@ export type PasswordResetTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type PasswordResetTokenInvalidError = ErrorResult & { - __typename?: 'PasswordResetTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordResetTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to register or verify a customer account where the given password fails password validation. */ export type PasswordValidationError = ErrorResult & { - __typename?: 'PasswordValidationError'; - errorCode: ErrorCode; - message: Scalars['String']; - validationErrorMessage: Scalars['String']; + __typename?: 'PasswordValidationError'; + errorCode: ErrorCode; + message: Scalars['String']; + validationErrorMessage: Scalars['String']; }; export type Payment = Node & { - __typename?: 'Payment'; - amount: Scalars['Int']; - createdAt: Scalars['DateTime']; - errorMessage?: Maybe; - id: Scalars['ID']; - metadata?: Maybe; - method: Scalars['String']; - refunds: Array; - state: Scalars['String']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Payment'; + amount: Scalars['Int']; + createdAt: Scalars['DateTime']; + errorMessage?: Maybe; + id: Scalars['ID']; + metadata?: Maybe; + method: Scalars['String']; + refunds: Array; + state: Scalars['String']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; /** Returned when a Payment is declined by the payment provider. */ export type PaymentDeclinedError = ErrorResult & { - __typename?: 'PaymentDeclinedError'; - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + __typename?: 'PaymentDeclinedError'; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned when a Payment fails due to an error. */ export type PaymentFailedError = ErrorResult & { - __typename?: 'PaymentFailedError'; - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + __typename?: 'PaymentFailedError'; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Passed as input to the `addPaymentToOrder` mutation. */ export type PaymentInput = { - /** - * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method - * as the "metadata" argument. For example, it could contain an ID for the payment and other - * data generated by the payment provider. - */ - metadata: Scalars['JSON']; - /** This field should correspond to the `code` property of a PaymentMethod. */ - method: Scalars['String']; + /** + * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method + * as the "metadata" argument. For example, it could contain an ID for the payment and other + * data generated by the payment provider. + */ + metadata: Scalars['JSON']; + /** This field should correspond to the `code` property of a PaymentMethod. */ + method: Scalars['String']; }; export type PaymentMethod = Node & { - __typename?: 'PaymentMethod'; - checker?: Maybe; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - handler: ConfigurableOperation; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'PaymentMethod'; + checker?: Maybe; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + handler: ConfigurableOperation; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type PaymentMethodQuote = { - __typename?: 'PaymentMethodQuote'; - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - eligibilityMessage?: Maybe; - id: Scalars['ID']; - isEligible: Scalars['Boolean']; - name: Scalars['String']; + __typename?: 'PaymentMethodQuote'; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + eligibilityMessage?: Maybe; + id: Scalars['ID']; + isEligible: Scalars['Boolean']; + name: Scalars['String']; }; /** @@ -2263,876 +2258,917 @@ export type PaymentMethodQuote = { * @docsCategory common */ export enum Permission { - /** Authenticated means simply that the user is logged in */ - Authenticated = 'Authenticated', - /** Grants permission to create Administrator */ - CreateAdministrator = 'CreateAdministrator', - /** Grants permission to create Asset */ - CreateAsset = 'CreateAsset', - /** Grants permission to create Products, Facets, Assets, Collections */ - CreateCatalog = 'CreateCatalog', - /** Grants permission to create Channel */ - CreateChannel = 'CreateChannel', - /** Grants permission to create Collection */ - CreateCollection = 'CreateCollection', - /** Grants permission to create Country */ - CreateCountry = 'CreateCountry', - /** Grants permission to create Customer */ - CreateCustomer = 'CreateCustomer', - /** Grants permission to create CustomerGroup */ - CreateCustomerGroup = 'CreateCustomerGroup', - /** Grants permission to create Facet */ - CreateFacet = 'CreateFacet', - /** Grants permission to create Order */ - CreateOrder = 'CreateOrder', - /** Grants permission to create PaymentMethod */ - CreatePaymentMethod = 'CreatePaymentMethod', - /** Grants permission to create Product */ - CreateProduct = 'CreateProduct', - /** Grants permission to create Promotion */ - CreatePromotion = 'CreatePromotion', - /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - CreateSettings = 'CreateSettings', - /** Grants permission to create ShippingMethod */ - CreateShippingMethod = 'CreateShippingMethod', - /** Grants permission to create System */ - CreateSystem = 'CreateSystem', - /** Grants permission to create Tag */ - CreateTag = 'CreateTag', - /** Grants permission to create TaxCategory */ - CreateTaxCategory = 'CreateTaxCategory', - /** Grants permission to create TaxRate */ - CreateTaxRate = 'CreateTaxRate', - /** Grants permission to create Zone */ - CreateZone = 'CreateZone', - /** Grants permission to delete Administrator */ - DeleteAdministrator = 'DeleteAdministrator', - /** Grants permission to delete Asset */ - DeleteAsset = 'DeleteAsset', - /** Grants permission to delete Products, Facets, Assets, Collections */ - DeleteCatalog = 'DeleteCatalog', - /** Grants permission to delete Channel */ - DeleteChannel = 'DeleteChannel', - /** Grants permission to delete Collection */ - DeleteCollection = 'DeleteCollection', - /** Grants permission to delete Country */ - DeleteCountry = 'DeleteCountry', - /** Grants permission to delete Customer */ - DeleteCustomer = 'DeleteCustomer', - /** Grants permission to delete CustomerGroup */ - DeleteCustomerGroup = 'DeleteCustomerGroup', - /** Grants permission to delete Facet */ - DeleteFacet = 'DeleteFacet', - /** Grants permission to delete Order */ - DeleteOrder = 'DeleteOrder', - /** Grants permission to delete PaymentMethod */ - DeletePaymentMethod = 'DeletePaymentMethod', - /** Grants permission to delete Product */ - DeleteProduct = 'DeleteProduct', - /** Grants permission to delete Promotion */ - DeletePromotion = 'DeletePromotion', - /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - DeleteSettings = 'DeleteSettings', - /** Grants permission to delete ShippingMethod */ - DeleteShippingMethod = 'DeleteShippingMethod', - /** Grants permission to delete System */ - DeleteSystem = 'DeleteSystem', - /** Grants permission to delete Tag */ - DeleteTag = 'DeleteTag', - /** Grants permission to delete TaxCategory */ - DeleteTaxCategory = 'DeleteTaxCategory', - /** Grants permission to delete TaxRate */ - DeleteTaxRate = 'DeleteTaxRate', - /** Grants permission to delete Zone */ - DeleteZone = 'DeleteZone', - /** Owner means the user owns this entity, e.g. a Customer's own Order */ - Owner = 'Owner', - /** Public means any unauthenticated user may perform the operation */ - Public = 'Public', - /** Grants permission to read Administrator */ - ReadAdministrator = 'ReadAdministrator', - /** Grants permission to read Asset */ - ReadAsset = 'ReadAsset', - /** Grants permission to read Products, Facets, Assets, Collections */ - ReadCatalog = 'ReadCatalog', - /** Grants permission to read Channel */ - ReadChannel = 'ReadChannel', - /** Grants permission to read Collection */ - ReadCollection = 'ReadCollection', - /** Grants permission to read Country */ - ReadCountry = 'ReadCountry', - /** Grants permission to read Customer */ - ReadCustomer = 'ReadCustomer', - /** Grants permission to read CustomerGroup */ - ReadCustomerGroup = 'ReadCustomerGroup', - /** Grants permission to read Facet */ - ReadFacet = 'ReadFacet', - /** Grants permission to read Order */ - ReadOrder = 'ReadOrder', - /** Grants permission to read PaymentMethod */ - ReadPaymentMethod = 'ReadPaymentMethod', - /** Grants permission to read Product */ - ReadProduct = 'ReadProduct', - /** Grants permission to read Promotion */ - ReadPromotion = 'ReadPromotion', - /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - ReadSettings = 'ReadSettings', - /** Grants permission to read ShippingMethod */ - ReadShippingMethod = 'ReadShippingMethod', - /** Grants permission to read System */ - ReadSystem = 'ReadSystem', - /** Grants permission to read Tag */ - ReadTag = 'ReadTag', - /** Grants permission to read TaxCategory */ - ReadTaxCategory = 'ReadTaxCategory', - /** Grants permission to read TaxRate */ - ReadTaxRate = 'ReadTaxRate', - /** Grants permission to read Zone */ - ReadZone = 'ReadZone', - /** SuperAdmin has unrestricted access to all operations */ - SuperAdmin = 'SuperAdmin', - /** Grants permission to update Administrator */ - UpdateAdministrator = 'UpdateAdministrator', - /** Grants permission to update Asset */ - UpdateAsset = 'UpdateAsset', - /** Grants permission to update Products, Facets, Assets, Collections */ - UpdateCatalog = 'UpdateCatalog', - /** Grants permission to update Channel */ - UpdateChannel = 'UpdateChannel', - /** Grants permission to update Collection */ - UpdateCollection = 'UpdateCollection', - /** Grants permission to update Country */ - UpdateCountry = 'UpdateCountry', - /** Grants permission to update Customer */ - UpdateCustomer = 'UpdateCustomer', - /** Grants permission to update CustomerGroup */ - UpdateCustomerGroup = 'UpdateCustomerGroup', - /** Grants permission to update Facet */ - UpdateFacet = 'UpdateFacet', - /** Grants permission to update GlobalSettings */ - UpdateGlobalSettings = 'UpdateGlobalSettings', - /** Grants permission to update Order */ - UpdateOrder = 'UpdateOrder', - /** Grants permission to update PaymentMethod */ - UpdatePaymentMethod = 'UpdatePaymentMethod', - /** Grants permission to update Product */ - UpdateProduct = 'UpdateProduct', - /** Grants permission to update Promotion */ - UpdatePromotion = 'UpdatePromotion', - /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - UpdateSettings = 'UpdateSettings', - /** Grants permission to update ShippingMethod */ - UpdateShippingMethod = 'UpdateShippingMethod', - /** Grants permission to update System */ - UpdateSystem = 'UpdateSystem', - /** Grants permission to update Tag */ - UpdateTag = 'UpdateTag', - /** Grants permission to update TaxCategory */ - UpdateTaxCategory = 'UpdateTaxCategory', - /** Grants permission to update TaxRate */ - UpdateTaxRate = 'UpdateTaxRate', - /** Grants permission to update Zone */ - UpdateZone = 'UpdateZone' + /** Authenticated means simply that the user is logged in */ + Authenticated = 'Authenticated', + /** Grants permission to create Administrator */ + CreateAdministrator = 'CreateAdministrator', + /** Grants permission to create Asset */ + CreateAsset = 'CreateAsset', + /** Grants permission to create Products, Facets, Assets, Collections */ + CreateCatalog = 'CreateCatalog', + /** Grants permission to create Channel */ + CreateChannel = 'CreateChannel', + /** Grants permission to create Collection */ + CreateCollection = 'CreateCollection', + /** Grants permission to create Country */ + CreateCountry = 'CreateCountry', + /** Grants permission to create Customer */ + CreateCustomer = 'CreateCustomer', + /** Grants permission to create CustomerGroup */ + CreateCustomerGroup = 'CreateCustomerGroup', + /** Grants permission to create Facet */ + CreateFacet = 'CreateFacet', + /** Grants permission to create Order */ + CreateOrder = 'CreateOrder', + /** Grants permission to create PaymentMethod */ + CreatePaymentMethod = 'CreatePaymentMethod', + /** Grants permission to create Product */ + CreateProduct = 'CreateProduct', + /** Grants permission to create Promotion */ + CreatePromotion = 'CreatePromotion', + /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + CreateSettings = 'CreateSettings', + /** Grants permission to create ShippingMethod */ + CreateShippingMethod = 'CreateShippingMethod', + /** Grants permission to create System */ + CreateSystem = 'CreateSystem', + /** Grants permission to create Tag */ + CreateTag = 'CreateTag', + /** Grants permission to create TaxCategory */ + CreateTaxCategory = 'CreateTaxCategory', + /** Grants permission to create TaxRate */ + CreateTaxRate = 'CreateTaxRate', + /** Grants permission to create Vendor */ + CreateVendor = 'CreateVendor', + /** Grants permission to create Zone */ + CreateZone = 'CreateZone', + /** Grants permission to delete Administrator */ + DeleteAdministrator = 'DeleteAdministrator', + /** Grants permission to delete Asset */ + DeleteAsset = 'DeleteAsset', + /** Grants permission to delete Products, Facets, Assets, Collections */ + DeleteCatalog = 'DeleteCatalog', + /** Grants permission to delete Channel */ + DeleteChannel = 'DeleteChannel', + /** Grants permission to delete Collection */ + DeleteCollection = 'DeleteCollection', + /** Grants permission to delete Country */ + DeleteCountry = 'DeleteCountry', + /** Grants permission to delete Customer */ + DeleteCustomer = 'DeleteCustomer', + /** Grants permission to delete CustomerGroup */ + DeleteCustomerGroup = 'DeleteCustomerGroup', + /** Grants permission to delete Facet */ + DeleteFacet = 'DeleteFacet', + /** Grants permission to delete Order */ + DeleteOrder = 'DeleteOrder', + /** Grants permission to delete PaymentMethod */ + DeletePaymentMethod = 'DeletePaymentMethod', + /** Grants permission to delete Product */ + DeleteProduct = 'DeleteProduct', + /** Grants permission to delete Promotion */ + DeletePromotion = 'DeletePromotion', + /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + DeleteSettings = 'DeleteSettings', + /** Grants permission to delete ShippingMethod */ + DeleteShippingMethod = 'DeleteShippingMethod', + /** Grants permission to delete System */ + DeleteSystem = 'DeleteSystem', + /** Grants permission to delete Tag */ + DeleteTag = 'DeleteTag', + /** Grants permission to delete TaxCategory */ + DeleteTaxCategory = 'DeleteTaxCategory', + /** Grants permission to delete TaxRate */ + DeleteTaxRate = 'DeleteTaxRate', + /** Grants permission to delete Vendor */ + DeleteVendor = 'DeleteVendor', + /** Grants permission to delete Zone */ + DeleteZone = 'DeleteZone', + /** Owner means the user owns this entity, e.g. a Customer's own Order */ + Owner = 'Owner', + /** Public means any unauthenticated user may perform the operation */ + Public = 'Public', + /** Grants permission to read Administrator */ + ReadAdministrator = 'ReadAdministrator', + /** Grants permission to read Asset */ + ReadAsset = 'ReadAsset', + /** Grants permission to read Products, Facets, Assets, Collections */ + ReadCatalog = 'ReadCatalog', + /** Grants permission to read Channel */ + ReadChannel = 'ReadChannel', + /** Grants permission to read Collection */ + ReadCollection = 'ReadCollection', + /** Grants permission to read Country */ + ReadCountry = 'ReadCountry', + /** Grants permission to read Customer */ + ReadCustomer = 'ReadCustomer', + /** Grants permission to read CustomerGroup */ + ReadCustomerGroup = 'ReadCustomerGroup', + /** Grants permission to read Facet */ + ReadFacet = 'ReadFacet', + /** Grants permission to read Order */ + ReadOrder = 'ReadOrder', + /** Grants permission to read PaymentMethod */ + ReadPaymentMethod = 'ReadPaymentMethod', + /** Grants permission to read Product */ + ReadProduct = 'ReadProduct', + /** Grants permission to read Promotion */ + ReadPromotion = 'ReadPromotion', + /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + ReadSettings = 'ReadSettings', + /** Grants permission to read ShippingMethod */ + ReadShippingMethod = 'ReadShippingMethod', + /** Grants permission to read System */ + ReadSystem = 'ReadSystem', + /** Grants permission to read Tag */ + ReadTag = 'ReadTag', + /** Grants permission to read TaxCategory */ + ReadTaxCategory = 'ReadTaxCategory', + /** Grants permission to read TaxRate */ + ReadTaxRate = 'ReadTaxRate', + /** Grants permission to read Vendor */ + ReadVendor = 'ReadVendor', + /** Grants permission to read Zone */ + ReadZone = 'ReadZone', + /** SuperAdmin has unrestricted access to all operations */ + SuperAdmin = 'SuperAdmin', + /** Grants permission to update Administrator */ + UpdateAdministrator = 'UpdateAdministrator', + /** Grants permission to update Asset */ + UpdateAsset = 'UpdateAsset', + /** Grants permission to update Products, Facets, Assets, Collections */ + UpdateCatalog = 'UpdateCatalog', + /** Grants permission to update Channel */ + UpdateChannel = 'UpdateChannel', + /** Grants permission to update Collection */ + UpdateCollection = 'UpdateCollection', + /** Grants permission to update Country */ + UpdateCountry = 'UpdateCountry', + /** Grants permission to update Customer */ + UpdateCustomer = 'UpdateCustomer', + /** Grants permission to update CustomerGroup */ + UpdateCustomerGroup = 'UpdateCustomerGroup', + /** Grants permission to update Facet */ + UpdateFacet = 'UpdateFacet', + /** Grants permission to update GlobalSettings */ + UpdateGlobalSettings = 'UpdateGlobalSettings', + /** Grants permission to update Order */ + UpdateOrder = 'UpdateOrder', + /** Grants permission to update PaymentMethod */ + UpdatePaymentMethod = 'UpdatePaymentMethod', + /** Grants permission to update Product */ + UpdateProduct = 'UpdateProduct', + /** Grants permission to update Promotion */ + UpdatePromotion = 'UpdatePromotion', + /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + UpdateSettings = 'UpdateSettings', + /** Grants permission to update ShippingMethod */ + UpdateShippingMethod = 'UpdateShippingMethod', + /** Grants permission to update System */ + UpdateSystem = 'UpdateSystem', + /** Grants permission to update Tag */ + UpdateTag = 'UpdateTag', + /** Grants permission to update TaxCategory */ + UpdateTaxCategory = 'UpdateTaxCategory', + /** Grants permission to update TaxRate */ + UpdateTaxRate = 'UpdateTaxRate', + /** Grants permission to update Vendor */ + UpdateVendor = 'UpdateVendor', + /** Grants permission to update Zone */ + UpdateZone = 'UpdateZone', } /** The price range where the result has more than one price */ export type PriceRange = { - __typename?: 'PriceRange'; - max: Scalars['Int']; - min: Scalars['Int']; + __typename?: 'PriceRange'; + max: Scalars['Int']; + min: Scalars['Int']; }; export type Product = Node & { - __typename?: 'Product'; - assets: Array; - collections: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - optionGroups: Array; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - /** Returns a paginated, sortable, filterable list of ProductVariants */ - variantList: ProductVariantList; - /** Returns all ProductVariants */ - variants: Array; + __typename?: 'Product'; + assets: Array; + collections: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + optionGroups: Array; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + /** Returns a paginated, sortable, filterable list of ProductVariants */ + variantList: ProductVariantList; + /** Returns all ProductVariants */ + variants: Array; }; - export type ProductVariantListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductList = PaginatedList & { - __typename?: 'ProductList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ProductList'; + items: Array; + totalItems: Scalars['Int']; }; export type ProductListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductOption = Node & { - __typename?: 'ProductOption'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - group: ProductOptionGroup; - groupId: Scalars['ID']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOption'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + group: ProductOptionGroup; + groupId: Scalars['ID']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroup = Node & { - __typename?: 'ProductOptionGroup'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionGroup'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslation = { - __typename?: 'ProductOptionGroupTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionGroupTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionTranslation = { - __typename?: 'ProductOptionTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductTranslation = { - __typename?: 'ProductTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariant = Node & { - __typename?: 'ProductVariant'; - assets: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - product: Product; - productId: Scalars['ID']; - sku: Scalars['String']; - stockLevel: Scalars['String']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductVariant'; + assets: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevel: Scalars['String']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - __typename?: 'ProductVariantList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ProductVariantList'; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - __typename?: 'ProductVariantTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductVariantTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type Promotion = Node & { - __typename?: 'Promotion'; - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Promotion'; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PromotionList = PaginatedList & { - __typename?: 'PromotionList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'PromotionList'; + items: Array; + totalItems: Scalars['Int']; }; export type Query = { - __typename?: 'Query'; - /** The active Channel */ - activeChannel: Channel; - /** The active Customer */ - activeCustomer?: Maybe; - /** - * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the - * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this - * query will once again return `null`. - */ - activeOrder?: Maybe; - /** An array of supported Countries */ - availableCountries: Array; - /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - collection?: Maybe; - /** A list of Collections available to the shop */ - collections: CollectionList; - /** Returns a list of payment methods and their eligibility based on the current active Order */ - eligiblePaymentMethods: Array; - /** Returns a list of eligible shipping methods based on the current active Order */ - eligibleShippingMethods: Array; - /** Returns a Facet by its id */ - facet?: Maybe; - /** A list of Facets available to the shop */ - facets: FacetList; - /** Returns information about the current authenticated User */ - me?: Maybe; - /** Returns the possible next states that the activeOrder can transition to */ - nextOrderStates: Array; - /** - * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the - * currently-authenticated User may be queried. - */ - order?: Maybe; - /** - * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) - * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation - * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing - * general anonymous access to Order data. - */ - orderByCode?: Maybe; - /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - product?: Maybe; - /** Get a list of Products */ - products: ProductList; - /** Search Products based on the criteria set by the `SearchInput` */ - search: SearchResponse; + __typename?: 'Query'; + /** The active Channel */ + activeChannel: Channel; + /** The active Customer */ + activeCustomer?: Maybe; + /** + * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the + * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this + * query will once again return `null`. + */ + activeOrder?: Maybe; + /** An array of supported Countries */ + availableCountries: Array; + /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + collection?: Maybe; + /** A list of Collections available to the shop */ + collections: CollectionList; + /** Returns a list of payment methods and their eligibility based on the current active Order */ + eligiblePaymentMethods: Array; + /** Returns a list of eligible shipping methods based on the current active Order */ + eligibleShippingMethods: Array; + /** Returns a Facet by its id */ + facet?: Maybe; + /** A list of Facets available to the shop */ + facets: FacetList; + /** Returns information about the current authenticated User */ + me?: Maybe; + /** Returns the possible next states that the activeOrder can transition to */ + nextOrderStates: Array; + /** + * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the + * currently-authenticated User may be queried. + */ + order?: Maybe; + /** + * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) + * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation + * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing + * general anonymous access to Order data. + */ + orderByCode?: Maybe; + /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + product?: Maybe; + /** Get a list of Products */ + products: ProductList; + /** Search Products based on the criteria set by the `SearchInput` */ + search: SearchResponse; }; - export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryOrderByCodeArgs = { - code: Scalars['String']; + code: Scalars['String']; }; - export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; export type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success; export type Refund = Node & { - __typename?: 'Refund'; - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - metadata?: Maybe; - method?: Maybe; - orderItems: Array; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Int']; - state: Scalars['String']; - total: Scalars['Int']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; -}; - -export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success; + __typename?: 'Refund'; + adjustment: Scalars['Int']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Int']; + metadata?: Maybe; + method?: Maybe; + orderItems: Array; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; +}; + +export type RegisterCustomerAccountResult = + | MissingPasswordError + | NativeAuthStrategyError + | PasswordValidationError + | Success; export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + emailAddress: Scalars['String']; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type RelationCustomFieldConfig = CustomField & { - __typename?: 'RelationCustomFieldConfig'; - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'RelationCustomFieldConfig'; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; }; export type RemoveOrderItemsResult = Order | OrderModificationError; export type RequestPasswordResetResult = NativeAuthStrategyError | Success; -export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success; +export type RequestUpdateCustomerEmailAddressResult = + | EmailAddressConflictError + | InvalidCredentialsError + | NativeAuthStrategyError + | Success; -export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError; +export type ResetPasswordResult = + | CurrentUser + | NativeAuthStrategyError + | NotVerifiedError + | PasswordResetTokenExpiredError + | PasswordResetTokenInvalidError + | PasswordValidationError; export type Role = Node & { - __typename?: 'Role'; - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Role'; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleList = PaginatedList & { - __typename?: 'RoleList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'RoleList'; + items: Array; + totalItems: Scalars['Int']; }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - facetValueIds?: InputMaybe>; - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + facetValueIds?: InputMaybe>; + facetValueOperator?: InputMaybe; + groupByProduct?: InputMaybe; + skip?: InputMaybe; + sort?: InputMaybe; + take?: InputMaybe; + term?: InputMaybe; }; export type SearchReindexResponse = { - __typename?: 'SearchReindexResponse'; - success: Scalars['Boolean']; + __typename?: 'SearchReindexResponse'; + success: Scalars['Boolean']; }; export type SearchResponse = { - __typename?: 'SearchResponse'; - collections: Array; - facetValues: Array; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'SearchResponse'; + collections: Array; + facetValues: Array; + items: Array; + totalItems: Scalars['Int']; }; export type SearchResult = { - __typename?: 'SearchResult'; - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - currencyCode: CurrencyCode; - description: Scalars['String']; - facetIds: Array; - facetValueIds: Array; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - productAsset?: Maybe; - productId: Scalars['ID']; - productName: Scalars['String']; - productVariantAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** A relevance score for the result. Differs between database implementations */ - score: Scalars['Float']; - sku: Scalars['String']; - slug: Scalars['String']; + __typename?: 'SearchResult'; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + currencyCode: CurrencyCode; + description: Scalars['String']; + facetIds: Array; + facetValueIds: Array; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + productAsset?: Maybe; + productId: Scalars['ID']; + productName: Scalars['String']; + productVariantAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** A relevance score for the result. Differs between database implementations */ + score: Scalars['Float']; + sku: Scalars['String']; + slug: Scalars['String']; }; export type SearchResultAsset = { - __typename?: 'SearchResultAsset'; - focalPoint?: Maybe; - id: Scalars['ID']; - preview: Scalars['String']; + __typename?: 'SearchResultAsset'; + focalPoint?: Maybe; + id: Scalars['ID']; + preview: Scalars['String']; }; /** The price of a search result product, either as a range or as a single price */ export type SearchResultPrice = PriceRange | SinglePrice; export type SearchResultSortParameter = { - name?: InputMaybe; - price?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; }; -export type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | NoActiveOrderError | Order; +export type SetCustomerForOrderResult = + | AlreadyLoggedInError + | EmailAddressConflictError + | NoActiveOrderError + | Order; -export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; +export type SetOrderShippingMethodResult = + | IneligibleShippingMethodError + | NoActiveOrderError + | Order + | OrderModificationError; export type ShippingLine = { - __typename?: 'ShippingLine'; - discountedPrice: Scalars['Int']; - discountedPriceWithTax: Scalars['Int']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - shippingMethod: ShippingMethod; + __typename?: 'ShippingLine'; + discountedPrice: Scalars['Int']; + discountedPriceWithTax: Scalars['Int']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + shippingMethod: ShippingMethod; }; export type ShippingMethod = Node & { - __typename?: 'ShippingMethod'; - calculator: ConfigurableOperation; - checker: ConfigurableOperation; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - fulfillmentHandlerCode: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ShippingMethod'; + calculator: ConfigurableOperation; + checker: ConfigurableOperation; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + fulfillmentHandlerCode: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodList = PaginatedList & { - __typename?: 'ShippingMethodList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ShippingMethodList'; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodQuote = { - __typename?: 'ShippingMethodQuote'; - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ - metadata?: Maybe; - name: Scalars['String']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + __typename?: 'ShippingMethodQuote'; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ + metadata?: Maybe; + name: Scalars['String']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type ShippingMethodTranslation = { - __typename?: 'ShippingMethodTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ShippingMethodTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** The price value where the result has a single price */ export type SinglePrice = { - __typename?: 'SinglePrice'; - value: Scalars['Int']; + __typename?: 'SinglePrice'; + value: Scalars['Int']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC' + ASC = 'ASC', + DESC = 'DESC', } export type StringCustomFieldConfig = CustomField & { - __typename?: 'StringCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'StringCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - __typename?: 'StringFieldOption'; - label?: Maybe>; - value: Scalars['String']; + __typename?: 'StringFieldOption'; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - __typename?: 'Success'; - success: Scalars['Boolean']; + __typename?: 'Success'; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - __typename?: 'Surcharge'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + __typename?: 'Surcharge'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type Tag = Node & { - __typename?: 'Tag'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - updatedAt: Scalars['DateTime']; - value: Scalars['String']; + __typename?: 'Tag'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + value: Scalars['String']; }; export type TagList = PaginatedList & { - __typename?: 'TagList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'TagList'; + items: Array; + totalItems: Scalars['Int']; }; export type TaxCategory = Node & { - __typename?: 'TaxCategory'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isDefault: Scalars['Boolean']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'TaxCategory'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isDefault: Scalars['Boolean']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type TaxLine = { - __typename?: 'TaxLine'; - description: Scalars['String']; - taxRate: Scalars['Float']; + __typename?: 'TaxLine'; + description: Scalars['String']; + taxRate: Scalars['Float']; }; export type TaxRate = Node & { - __typename?: 'TaxRate'; - category: TaxCategory; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customerGroup?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; - value: Scalars['Float']; - zone: Zone; + __typename?: 'TaxRate'; + category: TaxCategory; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customerGroup?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; + value: Scalars['Float']; + zone: Zone; }; export type TaxRateList = PaginatedList & { - __typename?: 'TaxRateList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'TaxRateList'; + items: Array; + totalItems: Scalars['Int']; }; export type TextCustomFieldConfig = CustomField & { - __typename?: 'TextCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'TextCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type TransitionOrderToStateResult = Order | OrderStateTransitionError; export type UpdateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode?: InputMaybe; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - id: Scalars['ID']; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1?: InputMaybe; - streetLine2?: InputMaybe; -}; - -export type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success; + city?: InputMaybe; + company?: InputMaybe; + countryCode?: InputMaybe; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + id: Scalars['ID']; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1?: InputMaybe; + streetLine2?: InputMaybe; +}; + +export type UpdateCustomerEmailAddressResult = + | IdentifierChangeTokenExpiredError + | IdentifierChangeTokenInvalidError + | NativeAuthStrategyError + | Success; export type UpdateCustomerInput = { - customFields?: InputMaybe; - firstName?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + firstName?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; -export type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success; +export type UpdateCustomerPasswordResult = + | InvalidCredentialsError + | NativeAuthStrategyError + | PasswordValidationError + | Success; export type UpdateOrderInput = { - customFields?: InputMaybe; + customFields?: InputMaybe; }; -export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError; +export type UpdateOrderItemsResult = + | InsufficientStockError + | NegativeQuantityError + | Order + | OrderLimitError + | OrderModificationError; export type User = Node & { - __typename?: 'User'; - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + __typename?: 'User'; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; +}; + +export type Vendor = Node & { + __typename?: 'Vendor'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** @@ -3140,9 +3176,9 @@ export type User = Node & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - __typename?: 'VerificationTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'VerificationTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3150,19 +3186,26 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - __typename?: 'VerificationTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'VerificationTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError; +export type VerifyCustomerAccountResult = + | CurrentUser + | MissingPasswordError + | NativeAuthStrategyError + | PasswordAlreadySetError + | PasswordValidationError + | VerificationTokenExpiredError + | VerificationTokenInvalidError; export type Zone = Node & { - __typename?: 'Zone'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'Zone'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; diff --git a/packages/common/src/generated-types.ts b/packages/common/src/generated-types.ts index 1f1f105f84..b620b77890 100644 --- a/packages/common/src/generated-types.ts +++ b/packages/common/src/generated-types.ts @@ -364,6 +364,7 @@ export type Channel = Node & { pricesIncludeTax: Scalars['Boolean']; token: Scalars['String']; updatedAt: Scalars['DateTime']; + vendor?: Maybe; }; /** @@ -661,6 +662,7 @@ export type CreateChannelInput = { defaultTaxZoneId: Scalars['ID']; pricesIncludeTax: Scalars['Boolean']; token: Scalars['String']; + vendorId?: InputMaybe; }; export type CreateChannelResult = Channel | LanguageNotAvailableError; @@ -847,6 +849,10 @@ export type CreateTaxRateInput = { zoneId: Scalars['ID']; }; +export type CreateVendorInput = { + name: Scalars['String']; +}; + export type CreateZoneInput = { customFields?: InputMaybe; memberIds?: InputMaybe>; @@ -2486,6 +2492,8 @@ export type Mutation = { createTaxCategory: TaxCategory; /** Create a new TaxRate */ createTaxRate: TaxRate; + /** Create a new Vendor */ + createVendor: Vendor; /** Create a new Zone */ createZone: Zone; /** Delete an Administrator */ @@ -2541,6 +2549,8 @@ export type Mutation = { deleteTaxCategory: DeletionResponse; /** Delete a TaxRate */ deleteTaxRate: DeletionResponse; + /** Delete a Vendor */ + deleteVendor: DeletionResponse; /** Delete a Zone */ deleteZone: DeletionResponse; flushBufferedJobs: Success; @@ -2643,6 +2653,8 @@ export type Mutation = { updateTaxCategory: TaxCategory; /** Update an existing TaxRate */ updateTaxRate: TaxRate; + /** Update an existing Vendor */ + updateVendor: Vendor; /** Update an existing Zone */ updateZone: Zone; }; @@ -2868,6 +2880,11 @@ export type MutationCreateTaxRateArgs = { }; +export type MutationCreateVendorArgs = { + input: CreateVendorInput; +}; + + export type MutationCreateZoneArgs = { input: CreateZoneInput; }; @@ -3017,6 +3034,11 @@ export type MutationDeleteTaxRateArgs = { }; +export type MutationDeleteVendorArgs = { + id: Scalars['ID']; +}; + + export type MutationDeleteZoneArgs = { id: Scalars['ID']; }; @@ -3309,6 +3331,11 @@ export type MutationUpdateTaxRateArgs = { }; +export type MutationUpdateVendorArgs = { + input: UpdateVendorInput; +}; + + export type MutationUpdateZoneArgs = { input: UpdateZoneInput; }; @@ -3874,6 +3901,8 @@ export enum Permission { CreateTaxCategory = 'CreateTaxCategory', /** Grants permission to create TaxRate */ CreateTaxRate = 'CreateTaxRate', + /** Grants permission to create Vendor */ + CreateVendor = 'CreateVendor', /** Grants permission to create Zone */ CreateZone = 'CreateZone', /** Grants permission to delete Administrator */ @@ -3914,6 +3943,8 @@ export enum Permission { DeleteTaxCategory = 'DeleteTaxCategory', /** Grants permission to delete TaxRate */ DeleteTaxRate = 'DeleteTaxRate', + /** Grants permission to delete Vendor */ + DeleteVendor = 'DeleteVendor', /** Grants permission to delete Zone */ DeleteZone = 'DeleteZone', /** Owner means the user owns this entity, e.g. a Customer's own Order */ @@ -3958,6 +3989,8 @@ export enum Permission { ReadTaxCategory = 'ReadTaxCategory', /** Grants permission to read TaxRate */ ReadTaxRate = 'ReadTaxRate', + /** Grants permission to read Vendor */ + ReadVendor = 'ReadVendor', /** Grants permission to read Zone */ ReadZone = 'ReadZone', /** SuperAdmin has unrestricted access to all operations */ @@ -4002,6 +4035,8 @@ export enum Permission { UpdateTaxCategory = 'UpdateTaxCategory', /** Grants permission to update TaxRate */ UpdateTaxRate = 'UpdateTaxRate', + /** Grants permission to update Vendor */ + UpdateVendor = 'UpdateVendor', /** Grants permission to update Zone */ UpdateZone = 'UpdateZone' } @@ -4426,6 +4461,8 @@ export type Query = { taxRates: TaxRateList; testEligibleShippingMethods: Array; testShippingMethod: TestShippingMethodResult; + vendor?: Maybe; + vendors: VendorList; zone?: Maybe; zones: Array; }; @@ -4665,6 +4702,16 @@ export type QueryTestShippingMethodArgs = { }; +export type QueryVendorArgs = { + id: Scalars['ID']; +}; + + +export type QueryVendorsArgs = { + options?: InputMaybe; +}; + + export type QueryZoneArgs = { id: Scalars['ID']; }; @@ -5372,6 +5419,7 @@ export type UpdateChannelInput = { id: Scalars['ID']; pricesIncludeTax?: InputMaybe; token?: InputMaybe; + vendorId?: InputMaybe; }; export type UpdateChannelResult = Channel | LanguageNotAvailableError; @@ -5585,6 +5633,11 @@ export type UpdateTaxRateInput = { zoneId?: InputMaybe; }; +export type UpdateVendorInput = { + id: Scalars['ID']; + name?: InputMaybe; +}; + export type UpdateZoneInput = { customFields?: InputMaybe; id: Scalars['ID']; @@ -5604,6 +5657,47 @@ export type User = Node & { verified: Scalars['Boolean']; }; +export type Vendor = Node & { + __typename?: 'Vendor'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; + +export type VendorFilterParameter = { + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type VendorList = PaginatedList & { + __typename?: 'VendorList'; + items: Array; + totalItems: Scalars['Int']; +}; + +export type VendorListOptions = { + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; +}; + +export type VendorSortParameter = { + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; +}; + export type Zone = Node & { __typename?: 'Zone'; createdAt: Scalars['DateTime']; diff --git a/packages/core/e2e/graphql/generated-e2e-admin-types.ts b/packages/core/e2e/graphql/generated-e2e-admin-types.ts index 4e31ae87a7..1c4b2c41ab 100644 --- a/packages/core/e2e/graphql/generated-e2e-admin-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-admin-types.ts @@ -6,350 +6,370 @@ export type MakeOptional = Omit & { [SubKey in K]?: 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; - /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - DateTime: any; - /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSON: any; - /** The `Upload` scalar type represents a file upload. */ - Upload: any; -}; - -export type AddFulfillmentToOrderResult = CreateFulfillmentError | EmptyOrderLineSelectionError | Fulfillment | FulfillmentStateTransitionError | InsufficientStockOnHandError | InvalidFulfillmentHandlerError | ItemsAlreadyFulfilledError; + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ + DateTime: any; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ + JSON: any; + /** The `Upload` scalar type represents a file upload. */ + Upload: any; +}; + +export type AddFulfillmentToOrderResult = + | CreateFulfillmentError + | EmptyOrderLineSelectionError + | Fulfillment + | FulfillmentStateTransitionError + | InsufficientStockOnHandError + | InvalidFulfillmentHandlerError + | ItemsAlreadyFulfilledError; export type AddItemInput = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; export type AddItemToDraftOrderInput = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; export type AddManualPaymentToOrderResult = ManualPaymentStateError | Order; export type AddNoteToCustomerInput = { - id: Scalars['ID']; - isPublic: Scalars['Boolean']; - note: Scalars['String']; + id: Scalars['ID']; + isPublic: Scalars['Boolean']; + note: Scalars['String']; }; export type AddNoteToOrderInput = { - id: Scalars['ID']; - isPublic: Scalars['Boolean']; - note: Scalars['String']; + id: Scalars['ID']; + isPublic: Scalars['Boolean']; + note: Scalars['String']; }; export type Address = Node & { - city?: Maybe; - company?: Maybe; - country: Country; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - defaultBillingAddress?: Maybe; - defaultShippingAddress?: Maybe; - fullName?: Maybe; - id: Scalars['ID']; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - updatedAt: Scalars['DateTime']; + city?: Maybe; + company?: Maybe; + country: Country; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + defaultBillingAddress?: Maybe; + defaultShippingAddress?: Maybe; + fullName?: Maybe; + id: Scalars['ID']; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + updatedAt: Scalars['DateTime']; }; export type AdjustDraftOrderLineInput = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export type AdjustOrderLineInput = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export type Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION' + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION', } export type Administrator = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - updatedAt: Scalars['DateTime']; - user: User; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + updatedAt: Scalars['DateTime']; + user: User; }; export type AdministratorFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; }; export type AdministratorList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AdministratorListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AdministratorPaymentInput = { - metadata?: InputMaybe; - paymentMethod?: InputMaybe; + metadata?: InputMaybe; + paymentMethod?: InputMaybe; }; export type AdministratorRefundInput = { - paymentId: Scalars['ID']; - reason?: InputMaybe; + paymentId: Scalars['ID']; + reason?: InputMaybe; }; export type AdministratorSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type Allocation = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type Allocation = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; /** Returned if an attempting to refund an OrderItem which has already been refunded */ export type AlreadyRefundedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - refundId: Scalars['ID']; + errorCode: ErrorCode; + message: Scalars['String']; + refundId: Scalars['ID']; }; -export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; +export type ApplyCouponCodeResult = + | CouponCodeExpiredError + | CouponCodeInvalidError + | CouponCodeLimitError + | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetFilterParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AssetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - tags?: InputMaybe>; - tagsOperator?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + tags?: InputMaybe>; + tagsOperator?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AssetSortParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO' + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO', } export type AssignAssetsToChannelInput = { - assetIds: Array; - channelId: Scalars['ID']; + assetIds: Array; + channelId: Scalars['ID']; }; export type AssignCollectionsToChannelInput = { - channelId: Scalars['ID']; - collectionIds: Array; + channelId: Scalars['ID']; + collectionIds: Array; }; export type AssignFacetsToChannelInput = { - channelId: Scalars['ID']; - facetIds: Array; + channelId: Scalars['ID']; + facetIds: Array; }; export type AssignProductVariantsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productVariantIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productVariantIds: Array; }; export type AssignProductsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productIds: Array; }; export type AssignPromotionsToChannelInput = { - channelId: Scalars['ID']; - promotionIds: Array; + channelId: Scalars['ID']; + promotionIds: Array; }; export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; /** Returned if an attempting to cancel lines from an Order which is still active */ export type CancelActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - orderState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + orderState: Scalars['String']; }; export type CancelOrderInput = { - /** Specify whether the shipping charges should also be cancelled. Defaults to false */ - cancelShipping?: InputMaybe; - /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ - lines?: InputMaybe>; - /** The id of the order to be cancelled */ - orderId: Scalars['ID']; - reason?: InputMaybe; -}; - -export type CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError; + /** Specify whether the shipping charges should also be cancelled. Defaults to false */ + cancelShipping?: InputMaybe; + /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ + lines?: InputMaybe>; + /** The id of the order to be cancelled */ + orderId: Scalars['ID']; + reason?: InputMaybe; +}; + +export type CancelOrderResult = + | CancelActiveOrderError + | EmptyOrderLineSelectionError + | MultipleOrderError + | Order + | OrderStateTransitionError + | QuantityTooGreatError; /** Returned if the Payment cancellation fails */ export type CancelPaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError; -export type Cancellation = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; +export type Cancellation = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - token: Scalars['String']; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + token: Scalars['String']; + updatedAt: Scalars['DateTime']; + vendor?: Maybe; }; /** @@ -357,74 +377,73 @@ export type Channel = Node & { * of the GlobalSettings */ export type ChannelDefaultLanguageError = ErrorResult & { - channelCode: Scalars['String']; - errorCode: ErrorCode; - language: Scalars['String']; - message: Scalars['String']; + channelCode: Scalars['String']; + errorCode: ErrorCode; + language: Scalars['String']; + message: Scalars['String']; }; export type Collection = Node & { - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - inheritFilters: Scalars['Boolean']; - isPrivate: Scalars['Boolean']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + inheritFilters: Scalars['Boolean']; + isPrivate: Scalars['Boolean']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; - export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - inheritFilters?: InputMaybe; - isPrivate?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + inheritFilters?: InputMaybe; + isPrivate?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -432,393 +451,398 @@ export type CollectionListOptions = { * by the search, and in what quantity. */ export type CollectionResult = { - collection: Collection; - count: Scalars['Int']; + collection: Collection; + count: Scalars['Int']; }; export type CollectionSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ConfigArg = { - name: Scalars['String']; - value: Scalars['String']; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - defaultValue?: Maybe; - description?: Maybe; - label?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - required: Scalars['Boolean']; - type: Scalars['String']; - ui?: Maybe; + defaultValue?: Maybe; + description?: Maybe; + label?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + required: Scalars['Boolean']; + type: Scalars['String']; + ui?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - /** A JSON stringified representation of the actual value */ - value: Scalars['String']; + name: Scalars['String']; + /** A JSON stringified representation of the actual value */ + value: Scalars['String']; }; export type ConfigurableOperation = { - args: Array; - code: Scalars['String']; + args: Array; + code: Scalars['String']; }; export type ConfigurableOperationDefinition = { - args: Array; - code: Scalars['String']; - description: Scalars['String']; + args: Array; + code: Scalars['String']; + description: Scalars['String']; }; export type ConfigurableOperationInput = { - arguments: Array; - code: Scalars['String']; + arguments: Array; + code: Scalars['String']; }; export type Coordinate = { - x: Scalars['Float']; - y: Scalars['Float']; + x: Scalars['Float']; + y: Scalars['Float']; }; export type CoordinateInput = { - x: Scalars['Float']; - y: Scalars['Float']; + x: Scalars['Float']; + y: Scalars['Float']; }; export type Country = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type CountryFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CountryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CountryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CountrySortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CountryTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type CountryTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - limit: Scalars['Int']; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + limit: Scalars['Int']; + message: Scalars['String']; }; export type CreateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode: Scalars['String']; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1: Scalars['String']; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode: Scalars['String']; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1: Scalars['String']; + streetLine2?: InputMaybe; }; export type CreateAdministratorInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - lastName: Scalars['String']; - password: Scalars['String']; - roleIds: Array; + customFields?: InputMaybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + password: Scalars['String']; + roleIds: Array; }; export type CreateAssetInput = { - customFields?: InputMaybe; - file: Scalars['Upload']; - tags?: InputMaybe>; + customFields?: InputMaybe; + file: Scalars['Upload']; + tags?: InputMaybe>; }; export type CreateAssetResult = Asset | MimeTypeError; export type CreateChannelInput = { - code: Scalars['String']; - currencyCode: CurrencyCode; - customFields?: InputMaybe; - defaultLanguageCode: LanguageCode; - defaultShippingZoneId: Scalars['ID']; - defaultTaxZoneId: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - token: Scalars['String']; + code: Scalars['String']; + currencyCode: CurrencyCode; + customFields?: InputMaybe; + defaultLanguageCode: LanguageCode; + defaultShippingZoneId: Scalars['ID']; + defaultTaxZoneId: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + token: Scalars['String']; + vendorId?: InputMaybe; }; export type CreateChannelResult = Channel | LanguageNotAvailableError; export type CreateCollectionInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - featuredAssetId?: InputMaybe; - filters: Array; - inheritFilters?: InputMaybe; - isPrivate?: InputMaybe; - parentId?: InputMaybe; - translations: Array; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + featuredAssetId?: InputMaybe; + filters: Array; + inheritFilters?: InputMaybe; + isPrivate?: InputMaybe; + parentId?: InputMaybe; + translations: Array; }; export type CreateCollectionTranslationInput = { - customFields?: InputMaybe; - description: Scalars['String']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; + customFields?: InputMaybe; + description: Scalars['String']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; }; export type CreateCountryInput = { - code: Scalars['String']; - customFields?: InputMaybe; - enabled: Scalars['Boolean']; - translations: Array; + code: Scalars['String']; + customFields?: InputMaybe; + enabled: Scalars['Boolean']; + translations: Array; }; export type CreateCustomerGroupInput = { - customFields?: InputMaybe; - customerIds?: InputMaybe>; - name: Scalars['String']; + customFields?: InputMaybe; + customerIds?: InputMaybe>; + name: Scalars['String']; }; export type CreateCustomerInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type CreateCustomerResult = Customer | EmailAddressConflictError; export type CreateFacetInput = { - code: Scalars['String']; - customFields?: InputMaybe; - isPrivate: Scalars['Boolean']; - translations: Array; - values?: InputMaybe>; + code: Scalars['String']; + customFields?: InputMaybe; + isPrivate: Scalars['Boolean']; + translations: Array; + values?: InputMaybe>; }; export type CreateFacetValueInput = { - code: Scalars['String']; - customFields?: InputMaybe; - facetId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + customFields?: InputMaybe; + facetId: Scalars['ID']; + translations: Array; }; export type CreateFacetValueWithFacetInput = { - code: Scalars['String']; - translations: Array; + code: Scalars['String']; + translations: Array; }; /** Returned if an error is thrown in a FulfillmentHandler's createFulfillment method */ export type CreateFulfillmentError = ErrorResult & { - errorCode: ErrorCode; - fulfillmentHandlerError: Scalars['String']; - message: Scalars['String']; + errorCode: ErrorCode; + fulfillmentHandlerError: Scalars['String']; + message: Scalars['String']; }; export type CreateGroupOptionInput = { - code: Scalars['String']; - translations: Array; + code: Scalars['String']; + translations: Array; }; export type CreatePaymentMethodInput = { - checker?: InputMaybe; - code: Scalars['String']; - customFields?: InputMaybe; - description?: InputMaybe; - enabled: Scalars['Boolean']; - handler: ConfigurableOperationInput; - name: Scalars['String']; + checker?: InputMaybe; + code: Scalars['String']; + customFields?: InputMaybe; + description?: InputMaybe; + enabled: Scalars['Boolean']; + handler: ConfigurableOperationInput; + name: Scalars['String']; }; export type CreateProductInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - enabled?: InputMaybe; - facetValueIds?: InputMaybe>; - featuredAssetId?: InputMaybe; - translations: Array; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + translations: Array; }; export type CreateProductOptionGroupInput = { - code: Scalars['String']; - customFields?: InputMaybe; - options: Array; - translations: Array; + code: Scalars['String']; + customFields?: InputMaybe; + options: Array; + translations: Array; }; export type CreateProductOptionInput = { - code: Scalars['String']; - customFields?: InputMaybe; - productOptionGroupId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + customFields?: InputMaybe; + productOptionGroupId: Scalars['ID']; + translations: Array; }; export type CreateProductVariantInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - facetValueIds?: InputMaybe>; - featuredAssetId?: InputMaybe; - optionIds?: InputMaybe>; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - productId: Scalars['ID']; - sku: Scalars['String']; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations: Array; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + optionIds?: InputMaybe>; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + productId: Scalars['ID']; + sku: Scalars['String']; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations: Array; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type CreateProductVariantOptionInput = { - code: Scalars['String']; - optionGroupId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + optionGroupId: Scalars['ID']; + translations: Array; }; export type CreatePromotionInput = { - actions: Array; - conditions: Array; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled: Scalars['Boolean']; - endsAt?: InputMaybe; - name: Scalars['String']; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; + actions: Array; + conditions: Array; + couponCode?: InputMaybe; + customFields?: InputMaybe; + enabled: Scalars['Boolean']; + endsAt?: InputMaybe; + name: Scalars['String']; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; }; export type CreatePromotionResult = MissingConditionsError | Promotion; export type CreateRoleInput = { - channelIds?: InputMaybe>; - code: Scalars['String']; - description: Scalars['String']; - permissions: Array; + channelIds?: InputMaybe>; + code: Scalars['String']; + description: Scalars['String']; + permissions: Array; }; export type CreateShippingMethodInput = { - calculator: ConfigurableOperationInput; - checker: ConfigurableOperationInput; - code: Scalars['String']; - customFields?: InputMaybe; - fulfillmentHandler: Scalars['String']; - translations: Array; + calculator: ConfigurableOperationInput; + checker: ConfigurableOperationInput; + code: Scalars['String']; + customFields?: InputMaybe; + fulfillmentHandler: Scalars['String']; + translations: Array; }; export type CreateTagInput = { - value: Scalars['String']; + value: Scalars['String']; }; export type CreateTaxCategoryInput = { - customFields?: InputMaybe; - isDefault?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + isDefault?: InputMaybe; + name: Scalars['String']; }; export type CreateTaxRateInput = { - categoryId: Scalars['ID']; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled: Scalars['Boolean']; - name: Scalars['String']; - value: Scalars['Float']; - zoneId: Scalars['ID']; + categoryId: Scalars['ID']; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled: Scalars['Boolean']; + name: Scalars['String']; + value: Scalars['Float']; + zoneId: Scalars['ID']; +}; + +export type CreateVendorInput = { + name: Scalars['String']; }; export type CreateZoneInput = { - customFields?: InputMaybe; - memberIds?: InputMaybe>; - name: Scalars['String']; + customFields?: InputMaybe; + memberIds?: InputMaybe>; + name: Scalars['String']; }; /** @@ -828,508 +852,513 @@ export type CreateZoneInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL' + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL', } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; +}; + +export type CustomFieldConfig = + | BooleanCustomFieldConfig + | DateTimeCustomFieldConfig + | FloatCustomFieldConfig + | IntCustomFieldConfig + | LocaleStringCustomFieldConfig + | RelationCustomFieldConfig + | StringCustomFieldConfig + | TextCustomFieldConfig; export type CustomFields = { - Address: Array; - Administrator: Array; - Asset: Array; - Channel: Array; - Collection: Array; - Country: Array; - Customer: Array; - CustomerGroup: Array; - Facet: Array; - FacetValue: Array; - Fulfillment: Array; - GlobalSettings: Array; - Order: Array; - OrderLine: Array; - PaymentMethod: Array; - Product: Array; - ProductOption: Array; - ProductOptionGroup: Array; - ProductVariant: Array; - Promotion: Array; - ShippingMethod: Array; - TaxCategory: Array; - TaxRate: Array; - User: Array; - Zone: Array; + Address: Array; + Administrator: Array; + Asset: Array; + Channel: Array; + Collection: Array; + Country: Array; + Customer: Array; + CustomerGroup: Array; + Facet: Array; + FacetValue: Array; + Fulfillment: Array; + GlobalSettings: Array; + Order: Array; + OrderLine: Array; + PaymentMethod: Array; + Product: Array; + ProductOption: Array; + ProductOptionGroup: Array; + ProductVariant: Array; + Promotion: Array; + ShippingMethod: Array; + TaxCategory: Array; + TaxRate: Array; + User: Array; + Zone: Array; }; export type Customer = Node & { - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - groups: Array; - history: HistoryEntryList; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + groups: Array; + history: HistoryEntryList; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; - export type CustomerHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; - export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerGroupFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroupList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerGroupListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerGroupSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -1337,196 +1366,196 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeleteAssetInput = { - assetId: Scalars['ID']; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetId: Scalars['ID']; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteAssetsInput = { - assetIds: Array; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetIds: Array; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeletionResponse = { - message?: Maybe; - result: DeletionResult; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED' + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED', } export type Discount = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - amountWithTax: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + amountWithTax: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if no OrderLines have been specified for the operation */ export type EmptyOrderLineSelectionError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export enum ErrorCode { - ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR', - CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR', - CANCEL_PAYMENT_ERROR = 'CANCEL_PAYMENT_ERROR', - CHANNEL_DEFAULT_LANGUAGE_ERROR = 'CHANNEL_DEFAULT_LANGUAGE_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', - FACET_IN_USE_ERROR = 'FACET_IN_USE_ERROR', - FULFILLMENT_STATE_TRANSITION_ERROR = 'FULFILLMENT_STATE_TRANSITION_ERROR', - INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', - INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', - INSUFFICIENT_STOCK_ON_HAND_ERROR = 'INSUFFICIENT_STOCK_ON_HAND_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - INVALID_FULFILLMENT_HANDLER_ERROR = 'INVALID_FULFILLMENT_HANDLER_ERROR', - ITEMS_ALREADY_FULFILLED_ERROR = 'ITEMS_ALREADY_FULFILLED_ERROR', - LANGUAGE_NOT_AVAILABLE_ERROR = 'LANGUAGE_NOT_AVAILABLE_ERROR', - MANUAL_PAYMENT_STATE_ERROR = 'MANUAL_PAYMENT_STATE_ERROR', - MIME_TYPE_ERROR = 'MIME_TYPE_ERROR', - MISSING_CONDITIONS_ERROR = 'MISSING_CONDITIONS_ERROR', - MULTIPLE_ORDER_ERROR = 'MULTIPLE_ORDER_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - NOTHING_TO_REFUND_ERROR = 'NOTHING_TO_REFUND_ERROR', - NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', - NO_CHANGES_SPECIFIED_ERROR = 'NO_CHANGES_SPECIFIED_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_MODIFICATION_STATE_ERROR = 'ORDER_MODIFICATION_STATE_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - PAYMENT_METHOD_MISSING_ERROR = 'PAYMENT_METHOD_MISSING_ERROR', - PAYMENT_ORDER_MISMATCH_ERROR = 'PAYMENT_ORDER_MISMATCH_ERROR', - PAYMENT_STATE_TRANSITION_ERROR = 'PAYMENT_STATE_TRANSITION_ERROR', - PRODUCT_OPTION_IN_USE_ERROR = 'PRODUCT_OPTION_IN_USE_ERROR', - QUANTITY_TOO_GREAT_ERROR = 'QUANTITY_TOO_GREAT_ERROR', - REFUND_ORDER_STATE_ERROR = 'REFUND_ORDER_STATE_ERROR', - REFUND_PAYMENT_ID_MISSING_ERROR = 'REFUND_PAYMENT_ID_MISSING_ERROR', - REFUND_STATE_TRANSITION_ERROR = 'REFUND_STATE_TRANSITION_ERROR', - SETTLE_PAYMENT_ERROR = 'SETTLE_PAYMENT_ERROR', - UNKNOWN_ERROR = 'UNKNOWN_ERROR' + ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR', + CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR', + CANCEL_PAYMENT_ERROR = 'CANCEL_PAYMENT_ERROR', + CHANNEL_DEFAULT_LANGUAGE_ERROR = 'CHANNEL_DEFAULT_LANGUAGE_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', + FACET_IN_USE_ERROR = 'FACET_IN_USE_ERROR', + FULFILLMENT_STATE_TRANSITION_ERROR = 'FULFILLMENT_STATE_TRANSITION_ERROR', + INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', + INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', + INSUFFICIENT_STOCK_ON_HAND_ERROR = 'INSUFFICIENT_STOCK_ON_HAND_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + INVALID_FULFILLMENT_HANDLER_ERROR = 'INVALID_FULFILLMENT_HANDLER_ERROR', + ITEMS_ALREADY_FULFILLED_ERROR = 'ITEMS_ALREADY_FULFILLED_ERROR', + LANGUAGE_NOT_AVAILABLE_ERROR = 'LANGUAGE_NOT_AVAILABLE_ERROR', + MANUAL_PAYMENT_STATE_ERROR = 'MANUAL_PAYMENT_STATE_ERROR', + MIME_TYPE_ERROR = 'MIME_TYPE_ERROR', + MISSING_CONDITIONS_ERROR = 'MISSING_CONDITIONS_ERROR', + MULTIPLE_ORDER_ERROR = 'MULTIPLE_ORDER_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + NOTHING_TO_REFUND_ERROR = 'NOTHING_TO_REFUND_ERROR', + NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', + NO_CHANGES_SPECIFIED_ERROR = 'NO_CHANGES_SPECIFIED_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_MODIFICATION_STATE_ERROR = 'ORDER_MODIFICATION_STATE_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + PAYMENT_METHOD_MISSING_ERROR = 'PAYMENT_METHOD_MISSING_ERROR', + PAYMENT_ORDER_MISMATCH_ERROR = 'PAYMENT_ORDER_MISMATCH_ERROR', + PAYMENT_STATE_TRANSITION_ERROR = 'PAYMENT_STATE_TRANSITION_ERROR', + PRODUCT_OPTION_IN_USE_ERROR = 'PRODUCT_OPTION_IN_USE_ERROR', + QUANTITY_TOO_GREAT_ERROR = 'QUANTITY_TOO_GREAT_ERROR', + REFUND_ORDER_STATE_ERROR = 'REFUND_ORDER_STATE_ERROR', + REFUND_PAYMENT_ID_MISSING_ERROR = 'REFUND_PAYMENT_ID_MISSING_ERROR', + REFUND_STATE_TRANSITION_ERROR = 'REFUND_STATE_TRANSITION_ERROR', + SETTLE_PAYMENT_ERROR = 'SETTLE_PAYMENT_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Facet = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isPrivate: Scalars['Boolean']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - values: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isPrivate: Scalars['Boolean']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + values: Array; }; export type FacetFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - isPrivate?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + isPrivate?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetInUseError = ErrorResult & { - errorCode: ErrorCode; - facetCode: Scalars['String']; - message: Scalars['String']; - productCount: Scalars['Int']; - variantCount: Scalars['Int']; + errorCode: ErrorCode; + facetCode: Scalars['String']; + message: Scalars['String']; + productCount: Scalars['Int']; + variantCount: Scalars['Int']; }; export type FacetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type FacetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type FacetSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type FacetValue = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - facet: Facet; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + facet: Facet; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; /** @@ -1538,35 +1567,35 @@ export type FacetValue = Node & { * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }` */ export type FacetValueFilterInput = { - and?: InputMaybe; - or?: InputMaybe>; + and?: InputMaybe; + or?: InputMaybe>; }; export type FacetValueFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type FacetValueListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -1574,198 +1603,198 @@ export type FacetValueListOptions = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValueTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type FulfillOrderInput = { - handler: ConfigurableOperationInput; - lines: Array; + handler: ConfigurableOperationInput; + lines: Array; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - method: Scalars['String']; - nextStates: Array; - orderItems: Array; - state: Scalars['String']; - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + method: Scalars['String']; + nextStates: Array; + orderItems: Array; + state: Scalars['String']; + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLineSummary = { - orderLine: OrderLine; - quantity: Scalars['Int']; + orderLine: OrderLine; + quantity: Scalars['Int']; }; /** Returned when there is an error in transitioning the Fulfillment state */ export type FulfillmentStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE' + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE', } export type GlobalSettings = { - availableLanguages: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - outOfStockThreshold: Scalars['Int']; - serverConfig: ServerConfig; - trackInventory: Scalars['Boolean']; - updatedAt: Scalars['DateTime']; + availableLanguages: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + outOfStockThreshold: Scalars['Int']; + serverConfig: ServerConfig; + trackInventory: Scalars['Boolean']; + updatedAt: Scalars['DateTime']; }; export type HistoryEntry = Node & { - administrator?: Maybe; - createdAt: Scalars['DateTime']; - data: Scalars['JSON']; - id: Scalars['ID']; - isPublic: Scalars['Boolean']; - type: HistoryEntryType; - updatedAt: Scalars['DateTime']; + administrator?: Maybe; + createdAt: Scalars['DateTime']; + data: Scalars['JSON']; + id: Scalars['ID']; + isPublic: Scalars['Boolean']; + type: HistoryEntryType; + updatedAt: Scalars['DateTime']; }; export type HistoryEntryFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - isPublic?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + isPublic?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type HistoryEntryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type HistoryEntryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type HistoryEntrySortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export enum HistoryEntryType { - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_MODIFIED = 'ORDER_MODIFIED', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION' + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_MODIFIED = 'ORDER_MODIFIED', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', } /** Operators for filtering on a list of ID fields */ export type IdListOperators = { - inList: Scalars['ID']; + inList: Scalars['ID']; }; /** Operators for filtering on an ID field */ export type IdOperators = { - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; }; export type ImportInfo = { - errors?: Maybe>; - imported: Scalars['Int']; - processed: Scalars['Int']; + errors?: Maybe>; + imported: Scalars['Int']; + processed: Scalars['Int']; }; /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */ export type IneligibleShippingMethodError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add more items to the Order than are available */ export type InsufficientStockError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - order: Order; - quantityAvailable: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + order: Order; + quantityAvailable: Scalars['Int']; }; /** @@ -1773,116 +1802,116 @@ export type InsufficientStockError = ErrorResult & { * stockOnHand of a ProductVariant to satisfy the requested quantity. */ export type InsufficientStockOnHandError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - stockOnHand: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + stockOnHand: Scalars['Int']; }; export type IntCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - authenticationError: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + authenticationError: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the specified FulfillmentHandler code is not valid */ export type InvalidFulfillmentHandlerError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the specified items are already part of a Fulfillment */ export type ItemsAlreadyFulfilledError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Job = Node & { - attempts: Scalars['Int']; - createdAt: Scalars['DateTime']; - data?: Maybe; - duration: Scalars['Int']; - error?: Maybe; - id: Scalars['ID']; - isSettled: Scalars['Boolean']; - progress: Scalars['Float']; - queueName: Scalars['String']; - result?: Maybe; - retries: Scalars['Int']; - settledAt?: Maybe; - startedAt?: Maybe; - state: JobState; + attempts: Scalars['Int']; + createdAt: Scalars['DateTime']; + data?: Maybe; + duration: Scalars['Int']; + error?: Maybe; + id: Scalars['ID']; + isSettled: Scalars['Boolean']; + progress: Scalars['Float']; + queueName: Scalars['String']; + result?: Maybe; + retries: Scalars['Int']; + settledAt?: Maybe; + startedAt?: Maybe; + state: JobState; }; export type JobBufferSize = { - bufferId: Scalars['String']; - size: Scalars['Int']; + bufferId: Scalars['String']; + size: Scalars['Int']; }; export type JobFilterParameter = { - attempts?: InputMaybe; - createdAt?: InputMaybe; - duration?: InputMaybe; - id?: InputMaybe; - isSettled?: InputMaybe; - progress?: InputMaybe; - queueName?: InputMaybe; - retries?: InputMaybe; - settledAt?: InputMaybe; - startedAt?: InputMaybe; - state?: InputMaybe; + attempts?: InputMaybe; + createdAt?: InputMaybe; + duration?: InputMaybe; + id?: InputMaybe; + isSettled?: InputMaybe; + progress?: InputMaybe; + queueName?: InputMaybe; + retries?: InputMaybe; + settledAt?: InputMaybe; + startedAt?: InputMaybe; + state?: InputMaybe; }; export type JobList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type JobListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type JobQueue = { - name: Scalars['String']; - running: Scalars['Boolean']; + name: Scalars['String']; + running: Scalars['Boolean']; }; export type JobSortParameter = { - attempts?: InputMaybe; - createdAt?: InputMaybe; - duration?: InputMaybe; - id?: InputMaybe; - progress?: InputMaybe; - queueName?: InputMaybe; - retries?: InputMaybe; - settledAt?: InputMaybe; - startedAt?: InputMaybe; + attempts?: InputMaybe; + createdAt?: InputMaybe; + duration?: InputMaybe; + id?: InputMaybe; + progress?: InputMaybe; + queueName?: InputMaybe; + retries?: InputMaybe; + settledAt?: InputMaybe; + startedAt?: InputMaybe; }; /** @@ -1892,12 +1921,12 @@ export type JobSortParameter = { * @docsCategory common */ export enum JobState { - CANCELLED = 'CANCELLED', - COMPLETED = 'COMPLETED', - FAILED = 'FAILED', - PENDING = 'PENDING', - RETRYING = 'RETRYING', - RUNNING = 'RUNNING' + CANCELLED = 'CANCELLED', + COMPLETED = 'COMPLETED', + FAILED = 'FAILED', + PENDING = 'PENDING', + RETRYING = 'RETRYING', + RUNNING = 'RUNNING', } /** @@ -1910,358 +1939,358 @@ export enum JobState { * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Belarusian */ - be = 'be', - /** Bulgarian */ - bg = 'bg', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Tibetan */ - bo = 'bo', - /** Breton */ - br = 'br', - /** Bosnian */ - bs = 'bs', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Corsican */ - co = 'co', - /** Czech */ - cs = 'cs', - /** Church Slavic */ - cu = 'cu', - /** Welsh */ - cy = 'cy', - /** Danish */ - da = 'da', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Dzongkha */ - dz = 'dz', - /** Ewe */ - ee = 'ee', - /** Greek */ - el = 'el', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Estonian */ - et = 'et', - /** Basque */ - eu = 'eu', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Fulah */ - ff = 'ff', - /** Finnish */ - fi = 'fi', - /** Faroese */ - fo = 'fo', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Western Frisian */ - fy = 'fy', - /** Irish */ - ga = 'ga', - /** Scottish Gaelic */ - gd = 'gd', - /** Galician */ - gl = 'gl', - /** Gujarati */ - gu = 'gu', - /** Manx */ - gv = 'gv', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Croatian */ - hr = 'hr', - /** Haitian Creole */ - ht = 'ht', - /** Hungarian */ - hu = 'hu', - /** Armenian */ - hy = 'hy', - /** Interlingua */ - ia = 'ia', - /** Indonesian */ - id = 'id', - /** Igbo */ - ig = 'ig', - /** Sichuan Yi */ - ii = 'ii', - /** Icelandic */ - is = 'is', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Georgian */ - ka = 'ka', - /** Kikuyu */ - ki = 'ki', - /** Kazakh */ - kk = 'kk', - /** Kalaallisut */ - kl = 'kl', - /** Khmer */ - km = 'km', - /** Kannada */ - kn = 'kn', - /** Korean */ - ko = 'ko', - /** Kashmiri */ - ks = 'ks', - /** Kurdish */ - ku = 'ku', - /** Cornish */ - kw = 'kw', - /** Kyrgyz */ - ky = 'ky', - /** Latin */ - la = 'la', - /** Luxembourgish */ - lb = 'lb', - /** Ganda */ - lg = 'lg', - /** Lingala */ - ln = 'ln', - /** Lao */ - lo = 'lo', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Latvian */ - lv = 'lv', - /** Malagasy */ - mg = 'mg', - /** Maori */ - mi = 'mi', - /** Macedonian */ - mk = 'mk', - /** Malayalam */ - ml = 'ml', - /** Mongolian */ - mn = 'mn', - /** Marathi */ - mr = 'mr', - /** Malay */ - ms = 'ms', - /** Maltese */ - mt = 'mt', - /** Burmese */ - my = 'my', - /** Norwegian Bokmål */ - nb = 'nb', - /** North Ndebele */ - nd = 'nd', - /** Nepali */ - ne = 'ne', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Oromo */ - om = 'om', - /** Odia */ - or = 'or', - /** Ossetic */ - os = 'os', - /** Punjabi */ - pa = 'pa', - /** Polish */ - pl = 'pl', - /** Pashto */ - ps = 'ps', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Quechua */ - qu = 'qu', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Russian */ - ru = 'ru', - /** Kinyarwanda */ - rw = 'rw', - /** Sanskrit */ - sa = 'sa', - /** Sindhi */ - sd = 'sd', - /** Northern Sami */ - se = 'se', - /** Sango */ - sg = 'sg', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Samoan */ - sm = 'sm', - /** Shona */ - sn = 'sn', - /** Somali */ - so = 'so', - /** Albanian */ - sq = 'sq', - /** Serbian */ - sr = 'sr', - /** Southern Sotho */ - st = 'st', - /** Sundanese */ - su = 'su', - /** Swedish */ - sv = 'sv', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Tamil */ - ta = 'ta', - /** Telugu */ - te = 'te', - /** Tajik */ - tg = 'tg', - /** Thai */ - th = 'th', - /** Tigrinya */ - ti = 'ti', - /** Turkmen */ - tk = 'tk', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Tatar */ - tt = 'tt', - /** Uyghur */ - ug = 'ug', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Zulu */ - zu = 'zu' + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Belarusian */ + be = 'be', + /** Bulgarian */ + bg = 'bg', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Tibetan */ + bo = 'bo', + /** Breton */ + br = 'br', + /** Bosnian */ + bs = 'bs', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Corsican */ + co = 'co', + /** Czech */ + cs = 'cs', + /** Church Slavic */ + cu = 'cu', + /** Welsh */ + cy = 'cy', + /** Danish */ + da = 'da', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Dzongkha */ + dz = 'dz', + /** Ewe */ + ee = 'ee', + /** Greek */ + el = 'el', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Estonian */ + et = 'et', + /** Basque */ + eu = 'eu', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Fulah */ + ff = 'ff', + /** Finnish */ + fi = 'fi', + /** Faroese */ + fo = 'fo', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Western Frisian */ + fy = 'fy', + /** Irish */ + ga = 'ga', + /** Scottish Gaelic */ + gd = 'gd', + /** Galician */ + gl = 'gl', + /** Gujarati */ + gu = 'gu', + /** Manx */ + gv = 'gv', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Croatian */ + hr = 'hr', + /** Haitian Creole */ + ht = 'ht', + /** Hungarian */ + hu = 'hu', + /** Armenian */ + hy = 'hy', + /** Interlingua */ + ia = 'ia', + /** Indonesian */ + id = 'id', + /** Igbo */ + ig = 'ig', + /** Sichuan Yi */ + ii = 'ii', + /** Icelandic */ + is = 'is', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Georgian */ + ka = 'ka', + /** Kikuyu */ + ki = 'ki', + /** Kazakh */ + kk = 'kk', + /** Kalaallisut */ + kl = 'kl', + /** Khmer */ + km = 'km', + /** Kannada */ + kn = 'kn', + /** Korean */ + ko = 'ko', + /** Kashmiri */ + ks = 'ks', + /** Kurdish */ + ku = 'ku', + /** Cornish */ + kw = 'kw', + /** Kyrgyz */ + ky = 'ky', + /** Latin */ + la = 'la', + /** Luxembourgish */ + lb = 'lb', + /** Ganda */ + lg = 'lg', + /** Lingala */ + ln = 'ln', + /** Lao */ + lo = 'lo', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Latvian */ + lv = 'lv', + /** Malagasy */ + mg = 'mg', + /** Maori */ + mi = 'mi', + /** Macedonian */ + mk = 'mk', + /** Malayalam */ + ml = 'ml', + /** Mongolian */ + mn = 'mn', + /** Marathi */ + mr = 'mr', + /** Malay */ + ms = 'ms', + /** Maltese */ + mt = 'mt', + /** Burmese */ + my = 'my', + /** Norwegian Bokmål */ + nb = 'nb', + /** North Ndebele */ + nd = 'nd', + /** Nepali */ + ne = 'ne', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Oromo */ + om = 'om', + /** Odia */ + or = 'or', + /** Ossetic */ + os = 'os', + /** Punjabi */ + pa = 'pa', + /** Polish */ + pl = 'pl', + /** Pashto */ + ps = 'ps', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Quechua */ + qu = 'qu', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Russian */ + ru = 'ru', + /** Kinyarwanda */ + rw = 'rw', + /** Sanskrit */ + sa = 'sa', + /** Sindhi */ + sd = 'sd', + /** Northern Sami */ + se = 'se', + /** Sango */ + sg = 'sg', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Samoan */ + sm = 'sm', + /** Shona */ + sn = 'sn', + /** Somali */ + so = 'so', + /** Albanian */ + sq = 'sq', + /** Serbian */ + sr = 'sr', + /** Southern Sotho */ + st = 'st', + /** Sundanese */ + su = 'su', + /** Swedish */ + sv = 'sv', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Tamil */ + ta = 'ta', + /** Telugu */ + te = 'te', + /** Tajik */ + tg = 'tg', + /** Thai */ + th = 'th', + /** Tigrinya */ + ti = 'ti', + /** Turkmen */ + tk = 'tk', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Tatar */ + tt = 'tt', + /** Uyghur */ + ug = 'ug', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Zulu */ + zu = 'zu', } /** Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings */ export type LanguageNotAvailableError = ErrorResult & { - errorCode: ErrorCode; - languageCode: Scalars['String']; - message: Scalars['String']; + errorCode: ErrorCode; + languageCode: Scalars['String']; + message: Scalars['String']; }; export type LocaleStringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type LocalizedString = { - languageCode: LanguageCode; - value: Scalars['String']; + languageCode: LanguageCode; + value: Scalars['String']; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR' + AND = 'AND', + OR = 'OR', } export type ManualPaymentInput = { - metadata?: InputMaybe; - method: Scalars['String']; - orderId: Scalars['ID']; - transactionId?: InputMaybe; + metadata?: InputMaybe; + method: Scalars['String']; + orderId: Scalars['ID']; + transactionId?: InputMaybe; }; /** @@ -2269,988 +2298,890 @@ export type ManualPaymentInput = { * is not in the required state. */ export type ManualPaymentStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type MimeTypeError = ErrorResult & { - errorCode: ErrorCode; - fileName: Scalars['String']; - message: Scalars['String']; - mimeType: Scalars['String']; + errorCode: ErrorCode; + fileName: Scalars['String']; + message: Scalars['String']; + mimeType: Scalars['String']; }; /** Returned if a PromotionCondition has neither a couponCode nor any conditions set */ export type MissingConditionsError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type ModifyOrderInput = { - addItems?: InputMaybe>; - adjustOrderLines?: InputMaybe>; - couponCodes?: InputMaybe>; - dryRun: Scalars['Boolean']; - note?: InputMaybe; - options?: InputMaybe; - orderId: Scalars['ID']; - refund?: InputMaybe; - surcharges?: InputMaybe>; - updateBillingAddress?: InputMaybe; - updateShippingAddress?: InputMaybe; + addItems?: InputMaybe>; + adjustOrderLines?: InputMaybe>; + couponCodes?: InputMaybe>; + dryRun: Scalars['Boolean']; + note?: InputMaybe; + options?: InputMaybe; + orderId: Scalars['ID']; + refund?: InputMaybe; + surcharges?: InputMaybe>; + updateBillingAddress?: InputMaybe; + updateShippingAddress?: InputMaybe; }; export type ModifyOrderOptions = { - freezePromotions?: InputMaybe; - recalculateShipping?: InputMaybe; -}; - -export type ModifyOrderResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | InsufficientStockError | NegativeQuantityError | NoChangesSpecifiedError | Order | OrderLimitError | OrderModificationStateError | PaymentMethodMissingError | RefundPaymentIdMissingError; + freezePromotions?: InputMaybe; + recalculateShipping?: InputMaybe; +}; + +export type ModifyOrderResult = + | CouponCodeExpiredError + | CouponCodeInvalidError + | CouponCodeLimitError + | InsufficientStockError + | NegativeQuantityError + | NoChangesSpecifiedError + | Order + | OrderLimitError + | OrderModificationStateError + | PaymentMethodMissingError + | RefundPaymentIdMissingError; export type MoveCollectionInput = { - collectionId: Scalars['ID']; - index: Scalars['Int']; - parentId: Scalars['ID']; + collectionId: Scalars['ID']; + index: Scalars['Int']; + parentId: Scalars['ID']; }; /** Returned if an operation has specified OrderLines from multiple Orders */ export type MultipleOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Mutation = { - /** Add Customers to a CustomerGroup */ - addCustomersToGroup: CustomerGroup; - addFulfillmentToOrder: AddFulfillmentToOrderResult; - /** Adds an item to the draft Order. */ - addItemToDraftOrder: UpdateOrderItemsResult; - /** - * Used to manually create a new Payment against an Order. - * This can be used by an Administrator when an Order is in the ArrangingPayment state. - * - * It is also used when a completed Order - * has been modified (using `modifyOrder`) and the price has increased. The extra payment - * can then be manually arranged by the administrator, and the details used to create a new - * Payment. - */ - addManualPaymentToOrder: AddManualPaymentToOrderResult; - /** Add members to a Zone */ - addMembersToZone: Zone; - addNoteToCustomer: Customer; - addNoteToOrder: Order; - /** Add an OptionGroup to a Product */ - addOptionGroupToProduct: Product; - /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustDraftOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the draft Order */ - applyCouponCodeToDraftOrder: ApplyCouponCodeResult; - /** Assign assets to channel */ - assignAssetsToChannel: Array; - /** Assigns Collections to the specified Channel */ - assignCollectionsToChannel: Array; - /** Assigns Facets to the specified Channel */ - assignFacetsToChannel: Array; - /** Assigns ProductVariants to the specified Channel */ - assignProductVariantsToChannel: Array; - /** Assigns all ProductVariants of Product to the specified Channel */ - assignProductsToChannel: Array; - /** Assigns Promotions to the specified Channel */ - assignPromotionsToChannel: Array; - /** Assign a Role to an Administrator */ - assignRoleToAdministrator: Administrator; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - cancelJob: Job; - cancelOrder: CancelOrderResult; - cancelPayment: CancelPaymentResult; - /** Create a new Administrator */ - createAdministrator: Administrator; - /** Create a new Asset */ - createAssets: Array; - /** Create a new Channel */ - createChannel: CreateChannelResult; - /** Create a new Collection */ - createCollection: Collection; - /** Create a new Country */ - createCountry: Country; - /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */ - createCustomer: CreateCustomerResult; - /** Create a new Address and associate it with the Customer specified by customerId */ - createCustomerAddress: Address; - /** Create a new CustomerGroup */ - createCustomerGroup: CustomerGroup; - /** Creates a draft Order */ - createDraftOrder: Order; - /** Create a new Facet */ - createFacet: Facet; - /** Create one or more FacetValues */ - createFacetValues: Array; - /** Create existing PaymentMethod */ - createPaymentMethod: PaymentMethod; - /** Create a new Product */ - createProduct: Product; - /** Create a new ProductOption within a ProductOptionGroup */ - createProductOption: ProductOption; - /** Create a new ProductOptionGroup */ - createProductOptionGroup: ProductOptionGroup; - /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */ - createProductVariants: Array>; - createPromotion: CreatePromotionResult; - /** Create a new Role */ - createRole: Role; - /** Create a new ShippingMethod */ - createShippingMethod: ShippingMethod; - /** Create a new Tag */ - createTag: Tag; - /** Create a new TaxCategory */ - createTaxCategory: TaxCategory; - /** Create a new TaxRate */ - createTaxRate: TaxRate; - /** Create a new Zone */ - createZone: Zone; - /** Delete an Administrator */ - deleteAdministrator: DeletionResponse; - /** Delete an Asset */ - deleteAsset: DeletionResponse; - /** Delete multiple Assets */ - deleteAssets: DeletionResponse; - /** Delete a Channel */ - deleteChannel: DeletionResponse; - /** Delete a Collection and all of its descendants */ - deleteCollection: DeletionResponse; - /** Delete multiple Collections and all of their descendants */ - deleteCollections: Array; - /** Delete a Country */ - deleteCountry: DeletionResponse; - /** Delete a Customer */ - deleteCustomer: DeletionResponse; - /** Update an existing Address */ - deleteCustomerAddress: Success; - /** Delete a CustomerGroup */ - deleteCustomerGroup: DeletionResponse; - deleteCustomerNote: DeletionResponse; - /** Deletes a draft Order */ - deleteDraftOrder: DeletionResponse; - /** Delete an existing Facet */ - deleteFacet: DeletionResponse; - /** Delete one or more FacetValues */ - deleteFacetValues: Array; - /** Delete multiple existing Facets */ - deleteFacets: Array; - deleteOrderNote: DeletionResponse; - /** Delete a PaymentMethod */ - deletePaymentMethod: DeletionResponse; - /** Delete a Product */ - deleteProduct: DeletionResponse; - /** Delete a ProductOption */ - deleteProductOption: DeletionResponse; - /** Delete a ProductVariant */ - deleteProductVariant: DeletionResponse; - /** Delete multiple ProductVariants */ - deleteProductVariants: Array; - /** Delete multiple Products */ - deleteProducts: Array; - deletePromotion: DeletionResponse; - /** Delete an existing Role */ - deleteRole: DeletionResponse; - /** Delete a ShippingMethod */ - deleteShippingMethod: DeletionResponse; - /** Delete an existing Tag */ - deleteTag: DeletionResponse; - /** Deletes a TaxCategory */ - deleteTaxCategory: DeletionResponse; - /** Delete a TaxRate */ - deleteTaxRate: DeletionResponse; - /** Delete a Zone */ - deleteZone: DeletionResponse; - flushBufferedJobs: Success; - importProducts?: Maybe; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - logout: Success; - /** - * Allows an Order to be modified after it has been completed by the Customer. The Order must first - * be in the `Modifying` state. - */ - modifyOrder: ModifyOrderResult; - /** Move a Collection to a different parent or index */ - moveCollection: Collection; - refundOrder: RefundOrderResult; - reindex: Job; - /** Removes Collections from the specified Channel */ - removeCollectionsFromChannel: Array; - /** Removes the given coupon code from the draft Order */ - removeCouponCodeFromDraftOrder?: Maybe; - /** Remove Customers from a CustomerGroup */ - removeCustomersFromGroup: CustomerGroup; - /** Remove an OrderLine from the draft Order */ - removeDraftOrderLine: RemoveOrderItemsResult; - /** Removes Facets from the specified Channel */ - removeFacetsFromChannel: Array; - /** Remove members from a Zone */ - removeMembersFromZone: Zone; - /** Remove an OptionGroup from a Product */ - removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; - /** Removes ProductVariants from the specified Channel */ - removeProductVariantsFromChannel: Array; - /** Removes all ProductVariants of Product from the specified Channel */ - removeProductsFromChannel: Array; - /** Removes Promotions from the specified Channel */ - removePromotionsFromChannel: Array; - /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ - removeSettledJobs: Scalars['Int']; - runPendingSearchIndexUpdates: Success; - setCustomerForDraftOrder: SetCustomerForDraftOrderResult; - /** Sets the billing address for a draft Order */ - setDraftOrderBillingAddress: Order; - /** Allows any custom fields to be set for the active order */ - setDraftOrderCustomFields: Order; - /** Sets the shipping address for a draft Order */ - setDraftOrderShippingAddress: Order; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ - setDraftOrderShippingMethod: SetOrderShippingMethodResult; - setOrderCustomFields?: Maybe; - settlePayment: SettlePaymentResult; - settleRefund: SettleRefundResult; - transitionFulfillmentToState: TransitionFulfillmentToStateResult; - transitionOrderToState?: Maybe; - transitionPaymentToState: TransitionPaymentToStateResult; - /** Update the active (currently logged-in) Administrator */ - updateActiveAdministrator: Administrator; - /** Update an existing Administrator */ - updateAdministrator: Administrator; - /** Update an existing Asset */ - updateAsset: Asset; - /** Update an existing Channel */ - updateChannel: UpdateChannelResult; - /** Update an existing Collection */ - updateCollection: Collection; - /** Update an existing Country */ - updateCountry: Country; - /** Update an existing Customer */ - updateCustomer: UpdateCustomerResult; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** Update an existing CustomerGroup */ - updateCustomerGroup: CustomerGroup; - updateCustomerNote: HistoryEntry; - /** Update an existing Facet */ - updateFacet: Facet; - /** Update one or more FacetValues */ - updateFacetValues: Array; - updateGlobalSettings: UpdateGlobalSettingsResult; - updateOrderNote: HistoryEntry; - /** Update an existing PaymentMethod */ - updatePaymentMethod: PaymentMethod; - /** Update an existing Product */ - updateProduct: Product; - /** Create a new ProductOption within a ProductOptionGroup */ - updateProductOption: ProductOption; - /** Update an existing ProductOptionGroup */ - updateProductOptionGroup: ProductOptionGroup; - /** Update existing ProductVariants */ - updateProductVariants: Array>; - /** Update multiple existing Products */ - updateProducts: Array; - updatePromotion: UpdatePromotionResult; - /** Update an existing Role */ - updateRole: Role; - /** Update an existing ShippingMethod */ - updateShippingMethod: ShippingMethod; - /** Update an existing Tag */ - updateTag: Tag; - /** Update an existing TaxCategory */ - updateTaxCategory: TaxCategory; - /** Update an existing TaxRate */ - updateTaxRate: TaxRate; - /** Update an existing Zone */ - updateZone: Zone; + /** Add Customers to a CustomerGroup */ + addCustomersToGroup: CustomerGroup; + addFulfillmentToOrder: AddFulfillmentToOrderResult; + /** Adds an item to the draft Order. */ + addItemToDraftOrder: UpdateOrderItemsResult; + /** + * Used to manually create a new Payment against an Order. + * This can be used by an Administrator when an Order is in the ArrangingPayment state. + * + * It is also used when a completed Order + * has been modified (using `modifyOrder`) and the price has increased. The extra payment + * can then be manually arranged by the administrator, and the details used to create a new + * Payment. + */ + addManualPaymentToOrder: AddManualPaymentToOrderResult; + /** Add members to a Zone */ + addMembersToZone: Zone; + addNoteToCustomer: Customer; + addNoteToOrder: Order; + /** Add an OptionGroup to a Product */ + addOptionGroupToProduct: Product; + /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustDraftOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the draft Order */ + applyCouponCodeToDraftOrder: ApplyCouponCodeResult; + /** Assign assets to channel */ + assignAssetsToChannel: Array; + /** Assigns Collections to the specified Channel */ + assignCollectionsToChannel: Array; + /** Assigns Facets to the specified Channel */ + assignFacetsToChannel: Array; + /** Assigns ProductVariants to the specified Channel */ + assignProductVariantsToChannel: Array; + /** Assigns all ProductVariants of Product to the specified Channel */ + assignProductsToChannel: Array; + /** Assigns Promotions to the specified Channel */ + assignPromotionsToChannel: Array; + /** Assign a Role to an Administrator */ + assignRoleToAdministrator: Administrator; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + cancelJob: Job; + cancelOrder: CancelOrderResult; + cancelPayment: CancelPaymentResult; + /** Create a new Administrator */ + createAdministrator: Administrator; + /** Create a new Asset */ + createAssets: Array; + /** Create a new Channel */ + createChannel: CreateChannelResult; + /** Create a new Collection */ + createCollection: Collection; + /** Create a new Country */ + createCountry: Country; + /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */ + createCustomer: CreateCustomerResult; + /** Create a new Address and associate it with the Customer specified by customerId */ + createCustomerAddress: Address; + /** Create a new CustomerGroup */ + createCustomerGroup: CustomerGroup; + /** Creates a draft Order */ + createDraftOrder: Order; + /** Create a new Facet */ + createFacet: Facet; + /** Create one or more FacetValues */ + createFacetValues: Array; + /** Create existing PaymentMethod */ + createPaymentMethod: PaymentMethod; + /** Create a new Product */ + createProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + createProductOption: ProductOption; + /** Create a new ProductOptionGroup */ + createProductOptionGroup: ProductOptionGroup; + /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */ + createProductVariants: Array>; + createPromotion: CreatePromotionResult; + /** Create a new Role */ + createRole: Role; + /** Create a new ShippingMethod */ + createShippingMethod: ShippingMethod; + /** Create a new Tag */ + createTag: Tag; + /** Create a new TaxCategory */ + createTaxCategory: TaxCategory; + /** Create a new TaxRate */ + createTaxRate: TaxRate; + /** Create a new Vendor */ + createVendor: Vendor; + /** Create a new Zone */ + createZone: Zone; + /** Delete an Administrator */ + deleteAdministrator: DeletionResponse; + /** Delete an Asset */ + deleteAsset: DeletionResponse; + /** Delete multiple Assets */ + deleteAssets: DeletionResponse; + /** Delete a Channel */ + deleteChannel: DeletionResponse; + /** Delete a Collection and all of its descendants */ + deleteCollection: DeletionResponse; + /** Delete multiple Collections and all of their descendants */ + deleteCollections: Array; + /** Delete a Country */ + deleteCountry: DeletionResponse; + /** Delete a Customer */ + deleteCustomer: DeletionResponse; + /** Update an existing Address */ + deleteCustomerAddress: Success; + /** Delete a CustomerGroup */ + deleteCustomerGroup: DeletionResponse; + deleteCustomerNote: DeletionResponse; + /** Deletes a draft Order */ + deleteDraftOrder: DeletionResponse; + /** Delete an existing Facet */ + deleteFacet: DeletionResponse; + /** Delete one or more FacetValues */ + deleteFacetValues: Array; + /** Delete multiple existing Facets */ + deleteFacets: Array; + deleteOrderNote: DeletionResponse; + /** Delete a PaymentMethod */ + deletePaymentMethod: DeletionResponse; + /** Delete a Product */ + deleteProduct: DeletionResponse; + /** Delete a ProductOption */ + deleteProductOption: DeletionResponse; + /** Delete a ProductVariant */ + deleteProductVariant: DeletionResponse; + /** Delete multiple ProductVariants */ + deleteProductVariants: Array; + /** Delete multiple Products */ + deleteProducts: Array; + deletePromotion: DeletionResponse; + /** Delete an existing Role */ + deleteRole: DeletionResponse; + /** Delete a ShippingMethod */ + deleteShippingMethod: DeletionResponse; + /** Delete an existing Tag */ + deleteTag: DeletionResponse; + /** Deletes a TaxCategory */ + deleteTaxCategory: DeletionResponse; + /** Delete a TaxRate */ + deleteTaxRate: DeletionResponse; + /** Delete a Vendor */ + deleteVendor: DeletionResponse; + /** Delete a Zone */ + deleteZone: DeletionResponse; + flushBufferedJobs: Success; + importProducts?: Maybe; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + logout: Success; + /** + * Allows an Order to be modified after it has been completed by the Customer. The Order must first + * be in the `Modifying` state. + */ + modifyOrder: ModifyOrderResult; + /** Move a Collection to a different parent or index */ + moveCollection: Collection; + refundOrder: RefundOrderResult; + reindex: Job; + /** Removes Collections from the specified Channel */ + removeCollectionsFromChannel: Array; + /** Removes the given coupon code from the draft Order */ + removeCouponCodeFromDraftOrder?: Maybe; + /** Remove Customers from a CustomerGroup */ + removeCustomersFromGroup: CustomerGroup; + /** Remove an OrderLine from the draft Order */ + removeDraftOrderLine: RemoveOrderItemsResult; + /** Removes Facets from the specified Channel */ + removeFacetsFromChannel: Array; + /** Remove members from a Zone */ + removeMembersFromZone: Zone; + /** Remove an OptionGroup from a Product */ + removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; + /** Removes ProductVariants from the specified Channel */ + removeProductVariantsFromChannel: Array; + /** Removes all ProductVariants of Product from the specified Channel */ + removeProductsFromChannel: Array; + /** Removes Promotions from the specified Channel */ + removePromotionsFromChannel: Array; + /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ + removeSettledJobs: Scalars['Int']; + runPendingSearchIndexUpdates: Success; + setCustomerForDraftOrder: SetCustomerForDraftOrderResult; + /** Sets the billing address for a draft Order */ + setDraftOrderBillingAddress: Order; + /** Allows any custom fields to be set for the active order */ + setDraftOrderCustomFields: Order; + /** Sets the shipping address for a draft Order */ + setDraftOrderShippingAddress: Order; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ + setDraftOrderShippingMethod: SetOrderShippingMethodResult; + setOrderCustomFields?: Maybe; + settlePayment: SettlePaymentResult; + settleRefund: SettleRefundResult; + transitionFulfillmentToState: TransitionFulfillmentToStateResult; + transitionOrderToState?: Maybe; + transitionPaymentToState: TransitionPaymentToStateResult; + /** Update the active (currently logged-in) Administrator */ + updateActiveAdministrator: Administrator; + /** Update an existing Administrator */ + updateAdministrator: Administrator; + /** Update an existing Asset */ + updateAsset: Asset; + /** Update an existing Channel */ + updateChannel: UpdateChannelResult; + /** Update an existing Collection */ + updateCollection: Collection; + /** Update an existing Country */ + updateCountry: Country; + /** Update an existing Customer */ + updateCustomer: UpdateCustomerResult; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** Update an existing CustomerGroup */ + updateCustomerGroup: CustomerGroup; + updateCustomerNote: HistoryEntry; + /** Update an existing Facet */ + updateFacet: Facet; + /** Update one or more FacetValues */ + updateFacetValues: Array; + updateGlobalSettings: UpdateGlobalSettingsResult; + updateOrderNote: HistoryEntry; + /** Update an existing PaymentMethod */ + updatePaymentMethod: PaymentMethod; + /** Update an existing Product */ + updateProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + updateProductOption: ProductOption; + /** Update an existing ProductOptionGroup */ + updateProductOptionGroup: ProductOptionGroup; + /** Update existing ProductVariants */ + updateProductVariants: Array>; + /** Update multiple existing Products */ + updateProducts: Array; + updatePromotion: UpdatePromotionResult; + /** Update an existing Role */ + updateRole: Role; + /** Update an existing ShippingMethod */ + updateShippingMethod: ShippingMethod; + /** Update an existing Tag */ + updateTag: Tag; + /** Update an existing TaxCategory */ + updateTaxCategory: TaxCategory; + /** Update an existing TaxRate */ + updateTaxRate: TaxRate; + /** Update an existing Vendor */ + updateVendor: Vendor; + /** Update an existing Zone */ + updateZone: Zone; }; - export type MutationAddCustomersToGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; - export type MutationAddFulfillmentToOrderArgs = { - input: FulfillOrderInput; + input: FulfillOrderInput; }; - export type MutationAddItemToDraftOrderArgs = { - input: AddItemToDraftOrderInput; - orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; + orderId: Scalars['ID']; }; - export type MutationAddManualPaymentToOrderArgs = { - input: ManualPaymentInput; + input: ManualPaymentInput; }; - export type MutationAddMembersToZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; - export type MutationAddNoteToCustomerArgs = { - input: AddNoteToCustomerInput; + input: AddNoteToCustomerInput; }; - export type MutationAddNoteToOrderArgs = { - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }; - export type MutationAddOptionGroupToProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; - export type MutationAdjustDraftOrderLineArgs = { - input: AdjustDraftOrderLineInput; - orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; + orderId: Scalars['ID']; }; - export type MutationApplyCouponCodeToDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; - export type MutationAssignAssetsToChannelArgs = { - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }; - export type MutationAssignCollectionsToChannelArgs = { - input: AssignCollectionsToChannelInput; + input: AssignCollectionsToChannelInput; }; - export type MutationAssignFacetsToChannelArgs = { - input: AssignFacetsToChannelInput; + input: AssignFacetsToChannelInput; }; - export type MutationAssignProductVariantsToChannelArgs = { - input: AssignProductVariantsToChannelInput; + input: AssignProductVariantsToChannelInput; }; - export type MutationAssignProductsToChannelArgs = { - input: AssignProductsToChannelInput; + input: AssignProductsToChannelInput; }; - export type MutationAssignPromotionsToChannelArgs = { - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }; - export type MutationAssignRoleToAdministratorArgs = { - administratorId: Scalars['ID']; - roleId: Scalars['ID']; + administratorId: Scalars['ID']; + roleId: Scalars['ID']; }; - export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; - export type MutationCancelJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; - export type MutationCancelOrderArgs = { - input: CancelOrderInput; + input: CancelOrderInput; }; - export type MutationCancelPaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationCreateAdministratorArgs = { - input: CreateAdministratorInput; + input: CreateAdministratorInput; }; - export type MutationCreateAssetsArgs = { - input: Array; + input: Array; }; - export type MutationCreateChannelArgs = { - input: CreateChannelInput; + input: CreateChannelInput; }; - export type MutationCreateCollectionArgs = { - input: CreateCollectionInput; + input: CreateCollectionInput; }; - export type MutationCreateCountryArgs = { - input: CreateCountryInput; + input: CreateCountryInput; }; - export type MutationCreateCustomerArgs = { - input: CreateCustomerInput; - password?: InputMaybe; + input: CreateCustomerInput; + password?: InputMaybe; }; - export type MutationCreateCustomerAddressArgs = { - customerId: Scalars['ID']; - input: CreateAddressInput; + customerId: Scalars['ID']; + input: CreateAddressInput; }; - export type MutationCreateCustomerGroupArgs = { - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }; - export type MutationCreateFacetArgs = { - input: CreateFacetInput; + input: CreateFacetInput; }; - export type MutationCreateFacetValuesArgs = { - input: Array; + input: Array; }; - export type MutationCreatePaymentMethodArgs = { - input: CreatePaymentMethodInput; + input: CreatePaymentMethodInput; }; - export type MutationCreateProductArgs = { - input: CreateProductInput; + input: CreateProductInput; }; - export type MutationCreateProductOptionArgs = { - input: CreateProductOptionInput; + input: CreateProductOptionInput; }; - export type MutationCreateProductOptionGroupArgs = { - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }; - export type MutationCreateProductVariantsArgs = { - input: Array; + input: Array; }; - export type MutationCreatePromotionArgs = { - input: CreatePromotionInput; + input: CreatePromotionInput; }; - export type MutationCreateRoleArgs = { - input: CreateRoleInput; + input: CreateRoleInput; }; - export type MutationCreateShippingMethodArgs = { - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }; - export type MutationCreateTagArgs = { - input: CreateTagInput; + input: CreateTagInput; }; - export type MutationCreateTaxCategoryArgs = { - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }; - export type MutationCreateTaxRateArgs = { - input: CreateTaxRateInput; + input: CreateTaxRateInput; }; +export type MutationCreateVendorArgs = { + input: CreateVendorInput; +}; export type MutationCreateZoneArgs = { - input: CreateZoneInput; + input: CreateZoneInput; }; - export type MutationDeleteAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteAssetArgs = { - input: DeleteAssetInput; + input: DeleteAssetInput; }; - export type MutationDeleteAssetsArgs = { - input: DeleteAssetsInput; + input: DeleteAssetsInput; }; - export type MutationDeleteChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCollectionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCollectionsArgs = { - ids: Array; + ids: Array; }; - export type MutationDeleteCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCustomerNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; - export type MutationDeleteFacetArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; - export type MutationDeleteFacetValuesArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; - export type MutationDeleteFacetsArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; - export type MutationDeleteOrderNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeletePaymentMethodArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; - export type MutationDeleteProductArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteProductOptionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteProductVariantsArgs = { - ids: Array; + ids: Array; }; - export type MutationDeleteProductsArgs = { - ids: Array; + ids: Array; }; - export type MutationDeletePromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; +export type MutationDeleteVendorArgs = { + id: Scalars['ID']; +}; export type MutationDeleteZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationFlushBufferedJobsArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; - export type MutationImportProductsArgs = { - csvFile: Scalars['Upload']; + csvFile: Scalars['Upload']; }; - export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; - export type MutationModifyOrderArgs = { - input: ModifyOrderInput; + input: ModifyOrderInput; }; - export type MutationMoveCollectionArgs = { - input: MoveCollectionInput; + input: MoveCollectionInput; }; - export type MutationRefundOrderArgs = { - input: RefundOrderInput; + input: RefundOrderInput; }; - export type MutationRemoveCollectionsFromChannelArgs = { - input: RemoveCollectionsFromChannelInput; + input: RemoveCollectionsFromChannelInput; }; - export type MutationRemoveCouponCodeFromDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; - export type MutationRemoveCustomersFromGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; - export type MutationRemoveDraftOrderLineArgs = { - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; }; - export type MutationRemoveFacetsFromChannelArgs = { - input: RemoveFacetsFromChannelInput; + input: RemoveFacetsFromChannelInput; }; - export type MutationRemoveMembersFromZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; - export type MutationRemoveOptionGroupFromProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; - export type MutationRemoveProductVariantsFromChannelArgs = { - input: RemoveProductVariantsFromChannelInput; + input: RemoveProductVariantsFromChannelInput; }; - export type MutationRemoveProductsFromChannelArgs = { - input: RemoveProductsFromChannelInput; + input: RemoveProductsFromChannelInput; }; - export type MutationRemovePromotionsFromChannelArgs = { - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }; - export type MutationRemoveSettledJobsArgs = { - olderThan?: InputMaybe; - queueNames?: InputMaybe>; + olderThan?: InputMaybe; + queueNames?: InputMaybe>; }; - export type MutationSetCustomerForDraftOrderArgs = { - customerId?: InputMaybe; - input?: InputMaybe; - orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; + orderId: Scalars['ID']; }; - export type MutationSetDraftOrderBillingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; - export type MutationSetDraftOrderCustomFieldsArgs = { - input: UpdateOrderInput; - orderId: Scalars['ID']; + input: UpdateOrderInput; + orderId: Scalars['ID']; }; - export type MutationSetDraftOrderShippingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; - export type MutationSetDraftOrderShippingMethodArgs = { - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; - export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; - export type MutationSettlePaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationSettleRefundArgs = { - input: SettleRefundInput; + input: SettleRefundInput; }; - export type MutationTransitionFulfillmentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; - export type MutationTransitionOrderToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; - export type MutationTransitionPaymentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; - export type MutationUpdateActiveAdministratorArgs = { - input: UpdateActiveAdministratorInput; + input: UpdateActiveAdministratorInput; }; - export type MutationUpdateAdministratorArgs = { - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }; - export type MutationUpdateAssetArgs = { - input: UpdateAssetInput; + input: UpdateAssetInput; }; - export type MutationUpdateChannelArgs = { - input: UpdateChannelInput; + input: UpdateChannelInput; }; - export type MutationUpdateCollectionArgs = { - input: UpdateCollectionInput; + input: UpdateCollectionInput; }; - export type MutationUpdateCountryArgs = { - input: UpdateCountryInput; + input: UpdateCountryInput; }; - export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; - export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; - export type MutationUpdateCustomerGroupArgs = { - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }; - export type MutationUpdateCustomerNoteArgs = { - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }; - export type MutationUpdateFacetArgs = { - input: UpdateFacetInput; + input: UpdateFacetInput; }; - export type MutationUpdateFacetValuesArgs = { - input: Array; + input: Array; }; - export type MutationUpdateGlobalSettingsArgs = { - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }; - export type MutationUpdateOrderNoteArgs = { - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }; - export type MutationUpdatePaymentMethodArgs = { - input: UpdatePaymentMethodInput; + input: UpdatePaymentMethodInput; }; - export type MutationUpdateProductArgs = { - input: UpdateProductInput; + input: UpdateProductInput; }; - export type MutationUpdateProductOptionArgs = { - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }; - export type MutationUpdateProductOptionGroupArgs = { - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }; - export type MutationUpdateProductVariantsArgs = { - input: Array; + input: Array; }; - export type MutationUpdateProductsArgs = { - input: Array; + input: Array; }; - export type MutationUpdatePromotionArgs = { - input: UpdatePromotionInput; + input: UpdatePromotionInput; }; - export type MutationUpdateRoleArgs = { - input: UpdateRoleInput; + input: UpdateRoleInput; }; - export type MutationUpdateShippingMethodArgs = { - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }; - export type MutationUpdateTagArgs = { - input: UpdateTagInput; + input: UpdateTagInput; }; - export type MutationUpdateTaxCategoryArgs = { - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }; - export type MutationUpdateTaxRateArgs = { - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }; +export type MutationUpdateVendorArgs = { + input: UpdateVendorInput; +}; export type MutationUpdateZoneArgs = { - input: UpdateZoneInput; + input: UpdateZoneInput; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3258,326 +3189,325 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when a call to modifyOrder fails to specify any changes */ export type NoChangesSpecifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** Returned if an attempting to refund an Order but neither items nor shipping refund was specified */ export type NothingToRefundError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - modifications: Array; - nextStates: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['Int']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Int']; - state: Scalars['String']; - /** - * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level - * discounts which have been prorated (proportionally distributed) amongst the OrderItems. - * To get a total of all OrderLines which does not account for prorated discounts, use the - * sum of `OrderLine.discountedLinePrice` values. - */ - subTotal: Scalars['Int']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Int']; - /** - * Surcharges are arbitrary modifications to the Order total which are neither - * ProductVariants nor discounts resulting from applied Promotions. For example, - * one-off discounts based on customer interaction, or surcharges based on payment - * methods. - */ - surcharges: Array; - /** A summary of the taxes being applied to this Order */ - taxSummary: Array; - /** Equal to subTotal plus shipping */ - total: Scalars['Int']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']; + billingAddress?: Maybe; + /** A unique code for the Order */ + code: Scalars['String']; + /** An array of all coupon codes applied to the Order */ + couponCodes: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + customer?: Maybe; + discounts: Array; + fulfillments?: Maybe>; + history: HistoryEntryList; + id: Scalars['ID']; + lines: Array; + modifications: Array; + nextStates: Array; + /** + * The date & time that the Order was placed, i.e. the Customer + * completed the checkout and the Order is no longer "active" + */ + orderPlacedAt?: Maybe; + payments?: Maybe>; + /** Promotions applied to the order. Only gets populated after the payment process has completed. */ + promotions: Array; + shipping: Scalars['Int']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Int']; + state: Scalars['String']; + /** + * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level + * discounts which have been prorated (proportionally distributed) amongst the OrderItems. + * To get a total of all OrderLines which does not account for prorated discounts, use the + * sum of `OrderLine.discountedLinePrice` values. + */ + subTotal: Scalars['Int']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Int']; + /** + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + surcharges: Array; + /** A summary of the taxes being applied to this Order */ + taxSummary: Array; + /** Equal to subTotal plus shipping */ + total: Scalars['Int']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; - export type OrderHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type OrderAddress = { - city?: Maybe; - company?: Maybe; - country?: Maybe; - countryCode?: Maybe; - customFields?: Maybe; - fullName?: Maybe; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; + city?: Maybe; + company?: Maybe; + country?: Maybe; + countryCode?: Maybe; + customFields?: Maybe; + fullName?: Maybe; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; }; export type OrderFilterParameter = { - active?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - customerLastName?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - transactionId?: InputMaybe; - updatedAt?: InputMaybe; + active?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + customerLastName?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + transactionId?: InputMaybe; + updatedAt?: InputMaybe; }; export type OrderItem = Node & { - adjustments: Array; - cancelled: Scalars['Boolean']; - createdAt: Scalars['DateTime']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - fulfillment?: Maybe; - id: Scalars['ID']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - unitTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + adjustments: Array; + cancelled: Scalars['Boolean']; + createdAt: Scalars['DateTime']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + fulfillment?: Maybe; + id: Scalars['ID']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + unitTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; /** Returned when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - errorCode: ErrorCode; - maxItems: Scalars['Int']; - message: Scalars['String']; + errorCode: ErrorCode; + maxItems: Scalars['Int']; + message: Scalars['String']; }; export type OrderLine = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - /** The price of the line including discounts, excluding tax */ - discountedLinePrice: Scalars['Int']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Int']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - discounts: Array; - featuredAsset?: Maybe; - fulfillments?: Maybe>; - id: Scalars['ID']; - items: Array; - /** The total price of the line excluding tax and discounts. */ - linePrice: Scalars['Int']; - /** The total price of the line including tax but excluding discounts. */ - linePriceWithTax: Scalars['Int']; - /** The total tax on this line */ - lineTax: Scalars['Int']; - order: Order; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['Int']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Int']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Int']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Int']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + discounts: Array; + featuredAsset?: Maybe; + fulfillments?: Maybe>; + id: Scalars['ID']; + items: Array; + /** The total price of the line excluding tax and discounts. */ + linePrice: Scalars['Int']; + /** The total price of the line including tax but excluding discounts. */ + linePriceWithTax: Scalars['Int']; + /** The total tax on this line */ + lineTax: Scalars['Int']; + order: Order; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['Int']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Int']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type OrderLineInput = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export type OrderList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type OrderListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type OrderModification = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - isSettled: Scalars['Boolean']; - note: Scalars['String']; - orderItems?: Maybe>; - payment?: Maybe; - priceChange: Scalars['Int']; - refund?: Maybe; - surcharges?: Maybe>; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + isSettled: Scalars['Boolean']; + note: Scalars['String']; + orderItems?: Maybe>; + payment?: Maybe; + priceChange: Scalars['Int']; + refund?: Maybe; + surcharges?: Maybe>; + updatedAt: Scalars['DateTime']; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to modify the contents of an Order that is not in the `Modifying` state. */ export type OrderModificationStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderProcessState = { - name: Scalars['String']; - to: Array; + name: Scalars['String']; + to: Array; }; export type OrderSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - customerLastName?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - transactionId?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + customerLastName?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + transactionId?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -3585,74 +3515,74 @@ export type OrderStateTransitionError = ErrorResult & { * by taxRate. */ export type OrderTaxSummary = { - /** A description of this tax */ - description: Scalars['String']; - /** The total net price or OrderItems to which this taxRate applies */ - taxBase: Scalars['Int']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Int']; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Int']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Int']; }; export type PaginatedList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Payment = Node & { - amount: Scalars['Int']; - createdAt: Scalars['DateTime']; - errorMessage?: Maybe; - id: Scalars['ID']; - metadata?: Maybe; - method: Scalars['String']; - nextStates: Array; - refunds: Array; - state: Scalars['String']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + amount: Scalars['Int']; + createdAt: Scalars['DateTime']; + errorMessage?: Maybe; + id: Scalars['ID']; + metadata?: Maybe; + method: Scalars['String']; + nextStates: Array; + refunds: Array; + state: Scalars['String']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PaymentMethod = Node & { - checker?: Maybe; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - handler: ConfigurableOperation; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + checker?: Maybe; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + handler: ConfigurableOperation; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type PaymentMethodFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type PaymentMethodList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type PaymentMethodListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -3660,42 +3590,42 @@ export type PaymentMethodListOptions = { * though the price has increased as a result of the changes. */ export type PaymentMethodMissingError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type PaymentMethodQuote = { - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - eligibilityMessage?: Maybe; - id: Scalars['ID']; - isEligible: Scalars['Boolean']; - name: Scalars['String']; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + eligibilityMessage?: Maybe; + id: Scalars['ID']; + isEligible: Scalars['Boolean']; + name: Scalars['String']; }; export type PaymentMethodSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if an attempting to refund a Payment against OrderLines from a different Order */ export type PaymentOrderMismatchError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when there is an error in transitioning the Payment state */ export type PaymentStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -3731,856 +3661,834 @@ export type PaymentStateTransitionError = ErrorResult & { * @docsCategory common */ export enum Permission { - /** Authenticated means simply that the user is logged in */ - Authenticated = 'Authenticated', - /** Grants permission to create Administrator */ - CreateAdministrator = 'CreateAdministrator', - /** Grants permission to create Asset */ - CreateAsset = 'CreateAsset', - /** Grants permission to create Products, Facets, Assets, Collections */ - CreateCatalog = 'CreateCatalog', - /** Grants permission to create Channel */ - CreateChannel = 'CreateChannel', - /** Grants permission to create Collection */ - CreateCollection = 'CreateCollection', - /** Grants permission to create Country */ - CreateCountry = 'CreateCountry', - /** Grants permission to create Customer */ - CreateCustomer = 'CreateCustomer', - /** Grants permission to create CustomerGroup */ - CreateCustomerGroup = 'CreateCustomerGroup', - /** Grants permission to create Facet */ - CreateFacet = 'CreateFacet', - /** Grants permission to create Order */ - CreateOrder = 'CreateOrder', - /** Grants permission to create PaymentMethod */ - CreatePaymentMethod = 'CreatePaymentMethod', - /** Grants permission to create Product */ - CreateProduct = 'CreateProduct', - /** Grants permission to create Promotion */ - CreatePromotion = 'CreatePromotion', - /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - CreateSettings = 'CreateSettings', - /** Grants permission to create ShippingMethod */ - CreateShippingMethod = 'CreateShippingMethod', - /** Grants permission to create System */ - CreateSystem = 'CreateSystem', - /** Grants permission to create Tag */ - CreateTag = 'CreateTag', - /** Grants permission to create TaxCategory */ - CreateTaxCategory = 'CreateTaxCategory', - /** Grants permission to create TaxRate */ - CreateTaxRate = 'CreateTaxRate', - /** Grants permission to create Zone */ - CreateZone = 'CreateZone', - /** Grants permission to delete Administrator */ - DeleteAdministrator = 'DeleteAdministrator', - /** Grants permission to delete Asset */ - DeleteAsset = 'DeleteAsset', - /** Grants permission to delete Products, Facets, Assets, Collections */ - DeleteCatalog = 'DeleteCatalog', - /** Grants permission to delete Channel */ - DeleteChannel = 'DeleteChannel', - /** Grants permission to delete Collection */ - DeleteCollection = 'DeleteCollection', - /** Grants permission to delete Country */ - DeleteCountry = 'DeleteCountry', - /** Grants permission to delete Customer */ - DeleteCustomer = 'DeleteCustomer', - /** Grants permission to delete CustomerGroup */ - DeleteCustomerGroup = 'DeleteCustomerGroup', - /** Grants permission to delete Facet */ - DeleteFacet = 'DeleteFacet', - /** Grants permission to delete Order */ - DeleteOrder = 'DeleteOrder', - /** Grants permission to delete PaymentMethod */ - DeletePaymentMethod = 'DeletePaymentMethod', - /** Grants permission to delete Product */ - DeleteProduct = 'DeleteProduct', - /** Grants permission to delete Promotion */ - DeletePromotion = 'DeletePromotion', - /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - DeleteSettings = 'DeleteSettings', - /** Grants permission to delete ShippingMethod */ - DeleteShippingMethod = 'DeleteShippingMethod', - /** Grants permission to delete System */ - DeleteSystem = 'DeleteSystem', - /** Grants permission to delete Tag */ - DeleteTag = 'DeleteTag', - /** Grants permission to delete TaxCategory */ - DeleteTaxCategory = 'DeleteTaxCategory', - /** Grants permission to delete TaxRate */ - DeleteTaxRate = 'DeleteTaxRate', - /** Grants permission to delete Zone */ - DeleteZone = 'DeleteZone', - /** Owner means the user owns this entity, e.g. a Customer's own Order */ - Owner = 'Owner', - /** Public means any unauthenticated user may perform the operation */ - Public = 'Public', - /** Grants permission to read Administrator */ - ReadAdministrator = 'ReadAdministrator', - /** Grants permission to read Asset */ - ReadAsset = 'ReadAsset', - /** Grants permission to read Products, Facets, Assets, Collections */ - ReadCatalog = 'ReadCatalog', - /** Grants permission to read Channel */ - ReadChannel = 'ReadChannel', - /** Grants permission to read Collection */ - ReadCollection = 'ReadCollection', - /** Grants permission to read Country */ - ReadCountry = 'ReadCountry', - /** Grants permission to read Customer */ - ReadCustomer = 'ReadCustomer', - /** Grants permission to read CustomerGroup */ - ReadCustomerGroup = 'ReadCustomerGroup', - /** Grants permission to read Facet */ - ReadFacet = 'ReadFacet', - /** Grants permission to read Order */ - ReadOrder = 'ReadOrder', - /** Grants permission to read PaymentMethod */ - ReadPaymentMethod = 'ReadPaymentMethod', - /** Grants permission to read Product */ - ReadProduct = 'ReadProduct', - /** Grants permission to read Promotion */ - ReadPromotion = 'ReadPromotion', - /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - ReadSettings = 'ReadSettings', - /** Grants permission to read ShippingMethod */ - ReadShippingMethod = 'ReadShippingMethod', - /** Grants permission to read System */ - ReadSystem = 'ReadSystem', - /** Grants permission to read Tag */ - ReadTag = 'ReadTag', - /** Grants permission to read TaxCategory */ - ReadTaxCategory = 'ReadTaxCategory', - /** Grants permission to read TaxRate */ - ReadTaxRate = 'ReadTaxRate', - /** Grants permission to read Zone */ - ReadZone = 'ReadZone', - /** SuperAdmin has unrestricted access to all operations */ - SuperAdmin = 'SuperAdmin', - /** Grants permission to update Administrator */ - UpdateAdministrator = 'UpdateAdministrator', - /** Grants permission to update Asset */ - UpdateAsset = 'UpdateAsset', - /** Grants permission to update Products, Facets, Assets, Collections */ - UpdateCatalog = 'UpdateCatalog', - /** Grants permission to update Channel */ - UpdateChannel = 'UpdateChannel', - /** Grants permission to update Collection */ - UpdateCollection = 'UpdateCollection', - /** Grants permission to update Country */ - UpdateCountry = 'UpdateCountry', - /** Grants permission to update Customer */ - UpdateCustomer = 'UpdateCustomer', - /** Grants permission to update CustomerGroup */ - UpdateCustomerGroup = 'UpdateCustomerGroup', - /** Grants permission to update Facet */ - UpdateFacet = 'UpdateFacet', - /** Grants permission to update GlobalSettings */ - UpdateGlobalSettings = 'UpdateGlobalSettings', - /** Grants permission to update Order */ - UpdateOrder = 'UpdateOrder', - /** Grants permission to update PaymentMethod */ - UpdatePaymentMethod = 'UpdatePaymentMethod', - /** Grants permission to update Product */ - UpdateProduct = 'UpdateProduct', - /** Grants permission to update Promotion */ - UpdatePromotion = 'UpdatePromotion', - /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - UpdateSettings = 'UpdateSettings', - /** Grants permission to update ShippingMethod */ - UpdateShippingMethod = 'UpdateShippingMethod', - /** Grants permission to update System */ - UpdateSystem = 'UpdateSystem', - /** Grants permission to update Tag */ - UpdateTag = 'UpdateTag', - /** Grants permission to update TaxCategory */ - UpdateTaxCategory = 'UpdateTaxCategory', - /** Grants permission to update TaxRate */ - UpdateTaxRate = 'UpdateTaxRate', - /** Grants permission to update Zone */ - UpdateZone = 'UpdateZone' + /** Authenticated means simply that the user is logged in */ + Authenticated = 'Authenticated', + /** Grants permission to create Administrator */ + CreateAdministrator = 'CreateAdministrator', + /** Grants permission to create Asset */ + CreateAsset = 'CreateAsset', + /** Grants permission to create Products, Facets, Assets, Collections */ + CreateCatalog = 'CreateCatalog', + /** Grants permission to create Channel */ + CreateChannel = 'CreateChannel', + /** Grants permission to create Collection */ + CreateCollection = 'CreateCollection', + /** Grants permission to create Country */ + CreateCountry = 'CreateCountry', + /** Grants permission to create Customer */ + CreateCustomer = 'CreateCustomer', + /** Grants permission to create CustomerGroup */ + CreateCustomerGroup = 'CreateCustomerGroup', + /** Grants permission to create Facet */ + CreateFacet = 'CreateFacet', + /** Grants permission to create Order */ + CreateOrder = 'CreateOrder', + /** Grants permission to create PaymentMethod */ + CreatePaymentMethod = 'CreatePaymentMethod', + /** Grants permission to create Product */ + CreateProduct = 'CreateProduct', + /** Grants permission to create Promotion */ + CreatePromotion = 'CreatePromotion', + /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + CreateSettings = 'CreateSettings', + /** Grants permission to create ShippingMethod */ + CreateShippingMethod = 'CreateShippingMethod', + /** Grants permission to create System */ + CreateSystem = 'CreateSystem', + /** Grants permission to create Tag */ + CreateTag = 'CreateTag', + /** Grants permission to create TaxCategory */ + CreateTaxCategory = 'CreateTaxCategory', + /** Grants permission to create TaxRate */ + CreateTaxRate = 'CreateTaxRate', + /** Grants permission to create Vendor */ + CreateVendor = 'CreateVendor', + /** Grants permission to create Zone */ + CreateZone = 'CreateZone', + /** Grants permission to delete Administrator */ + DeleteAdministrator = 'DeleteAdministrator', + /** Grants permission to delete Asset */ + DeleteAsset = 'DeleteAsset', + /** Grants permission to delete Products, Facets, Assets, Collections */ + DeleteCatalog = 'DeleteCatalog', + /** Grants permission to delete Channel */ + DeleteChannel = 'DeleteChannel', + /** Grants permission to delete Collection */ + DeleteCollection = 'DeleteCollection', + /** Grants permission to delete Country */ + DeleteCountry = 'DeleteCountry', + /** Grants permission to delete Customer */ + DeleteCustomer = 'DeleteCustomer', + /** Grants permission to delete CustomerGroup */ + DeleteCustomerGroup = 'DeleteCustomerGroup', + /** Grants permission to delete Facet */ + DeleteFacet = 'DeleteFacet', + /** Grants permission to delete Order */ + DeleteOrder = 'DeleteOrder', + /** Grants permission to delete PaymentMethod */ + DeletePaymentMethod = 'DeletePaymentMethod', + /** Grants permission to delete Product */ + DeleteProduct = 'DeleteProduct', + /** Grants permission to delete Promotion */ + DeletePromotion = 'DeletePromotion', + /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + DeleteSettings = 'DeleteSettings', + /** Grants permission to delete ShippingMethod */ + DeleteShippingMethod = 'DeleteShippingMethod', + /** Grants permission to delete System */ + DeleteSystem = 'DeleteSystem', + /** Grants permission to delete Tag */ + DeleteTag = 'DeleteTag', + /** Grants permission to delete TaxCategory */ + DeleteTaxCategory = 'DeleteTaxCategory', + /** Grants permission to delete TaxRate */ + DeleteTaxRate = 'DeleteTaxRate', + /** Grants permission to delete Vendor */ + DeleteVendor = 'DeleteVendor', + /** Grants permission to delete Zone */ + DeleteZone = 'DeleteZone', + /** Owner means the user owns this entity, e.g. a Customer's own Order */ + Owner = 'Owner', + /** Public means any unauthenticated user may perform the operation */ + Public = 'Public', + /** Grants permission to read Administrator */ + ReadAdministrator = 'ReadAdministrator', + /** Grants permission to read Asset */ + ReadAsset = 'ReadAsset', + /** Grants permission to read Products, Facets, Assets, Collections */ + ReadCatalog = 'ReadCatalog', + /** Grants permission to read Channel */ + ReadChannel = 'ReadChannel', + /** Grants permission to read Collection */ + ReadCollection = 'ReadCollection', + /** Grants permission to read Country */ + ReadCountry = 'ReadCountry', + /** Grants permission to read Customer */ + ReadCustomer = 'ReadCustomer', + /** Grants permission to read CustomerGroup */ + ReadCustomerGroup = 'ReadCustomerGroup', + /** Grants permission to read Facet */ + ReadFacet = 'ReadFacet', + /** Grants permission to read Order */ + ReadOrder = 'ReadOrder', + /** Grants permission to read PaymentMethod */ + ReadPaymentMethod = 'ReadPaymentMethod', + /** Grants permission to read Product */ + ReadProduct = 'ReadProduct', + /** Grants permission to read Promotion */ + ReadPromotion = 'ReadPromotion', + /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + ReadSettings = 'ReadSettings', + /** Grants permission to read ShippingMethod */ + ReadShippingMethod = 'ReadShippingMethod', + /** Grants permission to read System */ + ReadSystem = 'ReadSystem', + /** Grants permission to read Tag */ + ReadTag = 'ReadTag', + /** Grants permission to read TaxCategory */ + ReadTaxCategory = 'ReadTaxCategory', + /** Grants permission to read TaxRate */ + ReadTaxRate = 'ReadTaxRate', + /** Grants permission to read Vendor */ + ReadVendor = 'ReadVendor', + /** Grants permission to read Zone */ + ReadZone = 'ReadZone', + /** SuperAdmin has unrestricted access to all operations */ + SuperAdmin = 'SuperAdmin', + /** Grants permission to update Administrator */ + UpdateAdministrator = 'UpdateAdministrator', + /** Grants permission to update Asset */ + UpdateAsset = 'UpdateAsset', + /** Grants permission to update Products, Facets, Assets, Collections */ + UpdateCatalog = 'UpdateCatalog', + /** Grants permission to update Channel */ + UpdateChannel = 'UpdateChannel', + /** Grants permission to update Collection */ + UpdateCollection = 'UpdateCollection', + /** Grants permission to update Country */ + UpdateCountry = 'UpdateCountry', + /** Grants permission to update Customer */ + UpdateCustomer = 'UpdateCustomer', + /** Grants permission to update CustomerGroup */ + UpdateCustomerGroup = 'UpdateCustomerGroup', + /** Grants permission to update Facet */ + UpdateFacet = 'UpdateFacet', + /** Grants permission to update GlobalSettings */ + UpdateGlobalSettings = 'UpdateGlobalSettings', + /** Grants permission to update Order */ + UpdateOrder = 'UpdateOrder', + /** Grants permission to update PaymentMethod */ + UpdatePaymentMethod = 'UpdatePaymentMethod', + /** Grants permission to update Product */ + UpdateProduct = 'UpdateProduct', + /** Grants permission to update Promotion */ + UpdatePromotion = 'UpdatePromotion', + /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + UpdateSettings = 'UpdateSettings', + /** Grants permission to update ShippingMethod */ + UpdateShippingMethod = 'UpdateShippingMethod', + /** Grants permission to update System */ + UpdateSystem = 'UpdateSystem', + /** Grants permission to update Tag */ + UpdateTag = 'UpdateTag', + /** Grants permission to update TaxCategory */ + UpdateTaxCategory = 'UpdateTaxCategory', + /** Grants permission to update TaxRate */ + UpdateTaxRate = 'UpdateTaxRate', + /** Grants permission to update Vendor */ + UpdateVendor = 'UpdateVendor', + /** Grants permission to update Zone */ + UpdateZone = 'UpdateZone', } export type PermissionDefinition = { - assignable: Scalars['Boolean']; - description: Scalars['String']; - name: Scalars['String']; + assignable: Scalars['Boolean']; + description: Scalars['String']; + name: Scalars['String']; }; export type PreviewCollectionVariantsInput = { - filters: Array; - inheritFilters: Scalars['Boolean']; - parentId?: InputMaybe; + filters: Array; + inheritFilters: Scalars['Boolean']; + parentId?: InputMaybe; }; /** The price range where the result has more than one price */ export type PriceRange = { - max: Scalars['Int']; - min: Scalars['Int']; + max: Scalars['Int']; + min: Scalars['Int']; }; export type Product = Node & { - assets: Array; - channels: Array; - collections: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - optionGroups: Array; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - /** Returns a paginated, sortable, filterable list of ProductVariants */ - variantList: ProductVariantList; - /** Returns all ProductVariants */ - variants: Array; + assets: Array; + channels: Array; + collections: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + optionGroups: Array; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + /** Returns a paginated, sortable, filterable list of ProductVariants */ + variantList: ProductVariantList; + /** Returns all ProductVariants */ + variants: Array; }; - export type ProductVariantListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductOption = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - group: ProductOptionGroup; - groupId: Scalars['ID']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + group: ProductOptionGroup; + groupId: Scalars['ID']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroup = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type ProductOptionInUseError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - optionGroupCode: Scalars['String']; - productVariantCount: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + optionGroupCode: Scalars['String']; + productVariantCount: Scalars['Int']; }; export type ProductOptionTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type ProductSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductTranslationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; - slug?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; + slug?: InputMaybe; }; export type ProductVariant = Node & { - assets: Array; - channels: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - enabled: Scalars['Boolean']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - outOfStockThreshold: Scalars['Int']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - product: Product; - productId: Scalars['ID']; - sku: Scalars['String']; - stockAllocated: Scalars['Int']; - stockLevel: Scalars['String']; - stockMovements: StockMovementList; - stockOnHand: Scalars['Int']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - trackInventory: GlobalFlag; - translations: Array; - updatedAt: Scalars['DateTime']; - useGlobalOutOfStockThreshold: Scalars['Boolean']; + assets: Array; + channels: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + enabled: Scalars['Boolean']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + outOfStockThreshold: Scalars['Int']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + stockAllocated: Scalars['Int']; + stockLevel: Scalars['String']; + stockMovements: StockMovementList; + stockOnHand: Scalars['Int']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + trackInventory: GlobalFlag; + translations: Array; + updatedAt: Scalars['DateTime']; + useGlobalOutOfStockThreshold: Scalars['Boolean']; }; - export type ProductVariantStockMovementsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - trackInventory?: InputMaybe; - updatedAt?: InputMaybe; - useGlobalOutOfStockThreshold?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + trackInventory?: InputMaybe; + updatedAt?: InputMaybe; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariantTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type Promotion = Node & { - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - updatedAt: Scalars['DateTime']; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PromotionFilterParameter = { - couponCode?: InputMaybe; - createdAt?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; - updatedAt?: InputMaybe; + couponCode?: InputMaybe; + createdAt?: InputMaybe; + enabled?: InputMaybe; + endsAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; + updatedAt?: InputMaybe; }; export type PromotionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type PromotionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type PromotionSortParameter = { - couponCode?: InputMaybe; - createdAt?: InputMaybe; - endsAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; - updatedAt?: InputMaybe; + couponCode?: InputMaybe; + createdAt?: InputMaybe; + endsAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if the specified quantity of an OrderLine is greater than the number of items in that line */ export type QuantityTooGreatError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Query = { - activeAdministrator?: Maybe; - activeChannel: Channel; - administrator?: Maybe; - administrators: AdministratorList; - /** Get a single Asset by id */ - asset?: Maybe; - /** Get a list of Assets */ - assets: AssetList; - channel?: Maybe; - channels: Array; - /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */ - collection?: Maybe; - collectionFilters: Array; - collections: CollectionList; - countries: CountryList; - country?: Maybe; - customer?: Maybe; - customerGroup?: Maybe; - customerGroups: CustomerGroupList; - customers: CustomerList; - /** Returns a list of eligible shipping methods for the draft Order */ - eligibleShippingMethodsForDraftOrder: Array; - facet?: Maybe; - facetValues: FacetValueList; - facets: FacetList; - fulfillmentHandlers: Array; - globalSettings: GlobalSettings; - job?: Maybe; - jobBufferSize: Array; - jobQueues: Array; - jobs: JobList; - jobsById: Array; - me?: Maybe; - order?: Maybe; - orders: OrderList; - paymentMethod?: Maybe; - paymentMethodEligibilityCheckers: Array; - paymentMethodHandlers: Array; - paymentMethods: PaymentMethodList; - pendingSearchIndexUpdates: Scalars['Int']; - /** Used for real-time previews of the contents of a Collection */ - previewCollectionVariants: ProductVariantList; - /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */ - product?: Maybe; - productOptionGroup?: Maybe; - productOptionGroups: Array; - /** Get a ProductVariant by id */ - productVariant?: Maybe; - /** List ProductVariants either all or for the specific product. */ - productVariants: ProductVariantList; - /** List Products */ - products: ProductList; - promotion?: Maybe; - promotionActions: Array; - promotionConditions: Array; - promotions: PromotionList; - role?: Maybe; - roles: RoleList; - search: SearchResponse; - shippingCalculators: Array; - shippingEligibilityCheckers: Array; - shippingMethod?: Maybe; - shippingMethods: ShippingMethodList; - tag: Tag; - tags: TagList; - taxCategories: Array; - taxCategory?: Maybe; - taxRate?: Maybe; - taxRates: TaxRateList; - testEligibleShippingMethods: Array; - testShippingMethod: TestShippingMethodResult; - zone?: Maybe; - zones: Array; + activeAdministrator?: Maybe; + activeChannel: Channel; + administrator?: Maybe; + administrators: AdministratorList; + /** Get a single Asset by id */ + asset?: Maybe; + /** Get a list of Assets */ + assets: AssetList; + channel?: Maybe; + channels: Array; + /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */ + collection?: Maybe; + collectionFilters: Array; + collections: CollectionList; + countries: CountryList; + country?: Maybe; + customer?: Maybe; + customerGroup?: Maybe; + customerGroups: CustomerGroupList; + customers: CustomerList; + /** Returns a list of eligible shipping methods for the draft Order */ + eligibleShippingMethodsForDraftOrder: Array; + facet?: Maybe; + facetValues: FacetValueList; + facets: FacetList; + fulfillmentHandlers: Array; + globalSettings: GlobalSettings; + job?: Maybe; + jobBufferSize: Array; + jobQueues: Array; + jobs: JobList; + jobsById: Array; + me?: Maybe; + order?: Maybe; + orders: OrderList; + paymentMethod?: Maybe; + paymentMethodEligibilityCheckers: Array; + paymentMethodHandlers: Array; + paymentMethods: PaymentMethodList; + pendingSearchIndexUpdates: Scalars['Int']; + /** Used for real-time previews of the contents of a Collection */ + previewCollectionVariants: ProductVariantList; + /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */ + product?: Maybe; + productOptionGroup?: Maybe; + productOptionGroups: Array; + /** Get a ProductVariant by id */ + productVariant?: Maybe; + /** List ProductVariants either all or for the specific product. */ + productVariants: ProductVariantList; + /** List Products */ + products: ProductList; + promotion?: Maybe; + promotionActions: Array; + promotionConditions: Array; + promotions: PromotionList; + role?: Maybe; + roles: RoleList; + search: SearchResponse; + shippingCalculators: Array; + shippingEligibilityCheckers: Array; + shippingMethod?: Maybe; + shippingMethods: ShippingMethodList; + tag: Tag; + tags: TagList; + taxCategories: Array; + taxCategory?: Maybe; + taxRate?: Maybe; + taxRates: TaxRateList; + testEligibleShippingMethods: Array; + testShippingMethod: TestShippingMethodResult; + vendor?: Maybe; + vendors: VendorList; + zone?: Maybe; + zones: Array; }; - export type QueryAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryAdministratorsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryAssetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryAssetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryCountriesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryCustomerGroupsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryEligibleShippingMethodsForDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; - export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryFacetValuesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; - export type QueryJobBufferSizeArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; - export type QueryJobsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryJobsByIdArgs = { - jobIds: Array; + jobIds: Array; }; - export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryPaymentMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryPaymentMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryPreviewCollectionVariantsArgs = { - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }; - export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryProductOptionGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryProductOptionGroupsArgs = { - filterTerm?: InputMaybe; + filterTerm?: InputMaybe; }; - export type QueryProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryProductVariantsArgs = { - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }; - export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryPromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryPromotionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryRolesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; - export type QueryShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryShippingMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryTagsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryTaxRatesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryTestEligibleShippingMethodsArgs = { - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }; - export type QueryTestShippingMethodArgs = { - input: TestShippingMethodInput; + input: TestShippingMethodInput; +}; + +export type QueryVendorArgs = { + id: Scalars['ID']; }; +export type QueryVendorsArgs = { + options?: InputMaybe; +}; export type QueryZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; export type Refund = Node & { - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - metadata?: Maybe; - method?: Maybe; - orderItems: Array; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Int']; - state: Scalars['String']; - total: Scalars['Int']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + adjustment: Scalars['Int']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Int']; + metadata?: Maybe; + method?: Maybe; + orderItems: Array; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundOrderInput = { - adjustment: Scalars['Int']; - lines: Array; - paymentId: Scalars['ID']; - reason?: InputMaybe; - shipping: Scalars['Int']; -}; - -export type RefundOrderResult = AlreadyRefundedError | MultipleOrderError | NothingToRefundError | OrderStateTransitionError | PaymentOrderMismatchError | QuantityTooGreatError | Refund | RefundOrderStateError | RefundStateTransitionError; + adjustment: Scalars['Int']; + lines: Array; + paymentId: Scalars['ID']; + reason?: InputMaybe; + shipping: Scalars['Int']; +}; + +export type RefundOrderResult = + | AlreadyRefundedError + | MultipleOrderError + | NothingToRefundError + | OrderStateTransitionError + | PaymentOrderMismatchError + | QuantityTooGreatError + | Refund + | RefundOrderStateError + | RefundStateTransitionError; /** Returned if an attempting to refund an Order which is not in the expected state */ export type RefundOrderStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - orderState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + orderState: Scalars['String']; }; /** @@ -4588,54 +4496,55 @@ export type RefundOrderStateError = ErrorResult & { * though the price has decreased as a result of the changes. */ export type RefundPaymentIdMissingError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when there is an error in transitioning the Refund state */ export type RefundStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; export type RelationCustomFieldConfig = CustomField & { - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; -}; - -export type Release = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderItem: OrderItem; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; +}; + +export type Release = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderItem: OrderItem; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type RemoveCollectionsFromChannelInput = { - channelId: Scalars['ID']; - collectionIds: Array; + channelId: Scalars['ID']; + collectionIds: Array; }; export type RemoveFacetFromChannelResult = Facet | FacetInUseError; export type RemoveFacetsFromChannelInput = { - channelId: Scalars['ID']; - facetIds: Array; - force?: InputMaybe; + channelId: Scalars['ID']; + facetIds: Array; + force?: InputMaybe; }; export type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError; @@ -4643,518 +4552,529 @@ export type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseErr export type RemoveOrderItemsResult = Order | OrderModificationError; export type RemoveProductVariantsFromChannelInput = { - channelId: Scalars['ID']; - productVariantIds: Array; + channelId: Scalars['ID']; + productVariantIds: Array; }; export type RemoveProductsFromChannelInput = { - channelId: Scalars['ID']; - productIds: Array; + channelId: Scalars['ID']; + productIds: Array; }; export type RemovePromotionsFromChannelInput = { - channelId: Scalars['ID']; - promotionIds: Array; + channelId: Scalars['ID']; + promotionIds: Array; }; -export type Return = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderItem: OrderItem; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; +export type Return = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderItem: OrderItem; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type Role = Node & { - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export type RoleList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type RoleListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type RoleSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type Sale = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderItem: OrderItem; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type Sale = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderItem: OrderItem; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - facetValueIds?: InputMaybe>; - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + facetValueIds?: InputMaybe>; + facetValueOperator?: InputMaybe; + groupByProduct?: InputMaybe; + skip?: InputMaybe; + sort?: InputMaybe; + take?: InputMaybe; + term?: InputMaybe; }; export type SearchReindexResponse = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type SearchResponse = { - collections: Array; - facetValues: Array; - items: Array; - totalItems: Scalars['Int']; + collections: Array; + facetValues: Array; + items: Array; + totalItems: Scalars['Int']; }; export type SearchResult = { - /** An array of ids of the Channels in which this result appears */ - channelIds: Array; - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - currencyCode: CurrencyCode; - description: Scalars['String']; - enabled: Scalars['Boolean']; - facetIds: Array; - facetValueIds: Array; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - productAsset?: Maybe; - productId: Scalars['ID']; - productName: Scalars['String']; - productVariantAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** A relevance score for the result. Differs between database implementations */ - score: Scalars['Float']; - sku: Scalars['String']; - slug: Scalars['String']; + /** An array of ids of the Channels in which this result appears */ + channelIds: Array; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + currencyCode: CurrencyCode; + description: Scalars['String']; + enabled: Scalars['Boolean']; + facetIds: Array; + facetValueIds: Array; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + productAsset?: Maybe; + productId: Scalars['ID']; + productName: Scalars['String']; + productVariantAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** A relevance score for the result. Differs between database implementations */ + score: Scalars['Float']; + sku: Scalars['String']; + slug: Scalars['String']; }; export type SearchResultAsset = { - focalPoint?: Maybe; - id: Scalars['ID']; - preview: Scalars['String']; + focalPoint?: Maybe; + id: Scalars['ID']; + preview: Scalars['String']; }; /** The price of a search result product, either as a range or as a single price */ export type SearchResultPrice = PriceRange | SinglePrice; export type SearchResultSortParameter = { - name?: InputMaybe; - price?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; }; export type ServerConfig = { - customFieldConfig: CustomFields; - orderProcess: Array; - permissions: Array; - permittedAssetTypes: Array; + customFieldConfig: CustomFields; + orderProcess: Array; + permissions: Array; + permittedAssetTypes: Array; }; export type SetCustomerForDraftOrderResult = EmailAddressConflictError | Order; -export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; +export type SetOrderShippingMethodResult = + | IneligibleShippingMethodError + | NoActiveOrderError + | Order + | OrderModificationError; /** Returned if the Payment settlement fails */ export type SettlePaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; -export type SettlePaymentResult = OrderStateTransitionError | Payment | PaymentStateTransitionError | SettlePaymentError; +export type SettlePaymentResult = + | OrderStateTransitionError + | Payment + | PaymentStateTransitionError + | SettlePaymentError; export type SettleRefundInput = { - id: Scalars['ID']; - transactionId: Scalars['String']; + id: Scalars['ID']; + transactionId: Scalars['String']; }; export type SettleRefundResult = Refund | RefundStateTransitionError; export type ShippingLine = { - discountedPrice: Scalars['Int']; - discountedPriceWithTax: Scalars['Int']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - shippingMethod: ShippingMethod; + discountedPrice: Scalars['Int']; + discountedPriceWithTax: Scalars['Int']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + shippingMethod: ShippingMethod; }; export type ShippingMethod = Node & { - calculator: ConfigurableOperation; - checker: ConfigurableOperation; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - fulfillmentHandlerCode: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + calculator: ConfigurableOperation; + checker: ConfigurableOperation; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + fulfillmentHandlerCode: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - fulfillmentHandlerCode?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + fulfillmentHandlerCode?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type ShippingMethodList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ShippingMethodQuote = { - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ - metadata?: Maybe; - name: Scalars['String']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ + metadata?: Maybe; + name: Scalars['String']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type ShippingMethodSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - fulfillmentHandlerCode?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + fulfillmentHandlerCode?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type ShippingMethodTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodTranslationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; /** The price value where the result has a single price */ export type SinglePrice = { - value: Scalars['Int']; + value: Scalars['Int']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC' + ASC = 'ASC', + DESC = 'DESC', } -export type StockAdjustment = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; +export type StockAdjustment = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type StockMovement = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; }; export type StockMovementItem = Allocation | Cancellation | Release | Return | Sale | StockAdjustment; export type StockMovementList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockMovementListOptions = { - skip?: InputMaybe; - take?: InputMaybe; - type?: InputMaybe; + skip?: InputMaybe; + take?: InputMaybe; + type?: InputMaybe; }; export enum StockMovementType { - ADJUSTMENT = 'ADJUSTMENT', - ALLOCATION = 'ALLOCATION', - CANCELLATION = 'CANCELLATION', - RELEASE = 'RELEASE', - RETURN = 'RETURN', - SALE = 'SALE' + ADJUSTMENT = 'ADJUSTMENT', + ALLOCATION = 'ALLOCATION', + CANCELLATION = 'CANCELLATION', + RELEASE = 'RELEASE', + RETURN = 'RETURN', + SALE = 'SALE', } export type StringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - label?: Maybe>; - value: Scalars['String']; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type SurchargeInput = { - description: Scalars['String']; - price: Scalars['Int']; - priceIncludesTax: Scalars['Boolean']; - sku?: InputMaybe; - taxDescription?: InputMaybe; - taxRate?: InputMaybe; + description: Scalars['String']; + price: Scalars['Int']; + priceIncludesTax: Scalars['Boolean']; + sku?: InputMaybe; + taxDescription?: InputMaybe; + taxRate?: InputMaybe; }; export type Tag = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - updatedAt: Scalars['DateTime']; - value: Scalars['String']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + value: Scalars['String']; }; export type TagFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; - value?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; + value?: InputMaybe; }; export type TagList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TagListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type TagSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; - value?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; + value?: InputMaybe; }; export type TaxCategory = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isDefault: Scalars['Boolean']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isDefault: Scalars['Boolean']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type TaxLine = { - description: Scalars['String']; - taxRate: Scalars['Float']; + description: Scalars['String']; + taxRate: Scalars['Float']; }; export type TaxRate = Node & { - category: TaxCategory; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customerGroup?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; - value: Scalars['Float']; - zone: Zone; + category: TaxCategory; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customerGroup?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; + value: Scalars['Float']; + zone: Zone; }; export type TaxRateFilterParameter = { - createdAt?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; - value?: InputMaybe; + createdAt?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; + value?: InputMaybe; }; export type TaxRateList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TaxRateListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type TaxRateSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; - value?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; + value?: InputMaybe; }; export type TestEligibleShippingMethodsInput = { - lines: Array; - shippingAddress: CreateAddressInput; + lines: Array; + shippingAddress: CreateAddressInput; }; export type TestShippingMethodInput = { - calculator: ConfigurableOperationInput; - checker: ConfigurableOperationInput; - lines: Array; - shippingAddress: CreateAddressInput; + calculator: ConfigurableOperationInput; + checker: ConfigurableOperationInput; + lines: Array; + shippingAddress: CreateAddressInput; }; export type TestShippingMethodOrderLineInput = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; export type TestShippingMethodQuote = { - metadata?: Maybe; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + metadata?: Maybe; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type TestShippingMethodResult = { - eligible: Scalars['Boolean']; - quote?: Maybe; + eligible: Scalars['Boolean']; + quote?: Maybe; }; export type TextCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type TransitionFulfillmentToStateResult = Fulfillment | FulfillmentStateTransitionError; @@ -5164,2061 +5084,5877 @@ export type TransitionOrderToStateResult = Order | OrderStateTransitionError; export type TransitionPaymentToStateResult = Payment | PaymentStateTransitionError; export type UpdateActiveAdministratorInput = { - customFields?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; + customFields?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; }; export type UpdateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode?: InputMaybe; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - id: Scalars['ID']; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1?: InputMaybe; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode?: InputMaybe; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + id: Scalars['ID']; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1?: InputMaybe; + streetLine2?: InputMaybe; }; export type UpdateAdministratorInput = { - customFields?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id: Scalars['ID']; - lastName?: InputMaybe; - password?: InputMaybe; - roleIds?: InputMaybe>; + customFields?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id: Scalars['ID']; + lastName?: InputMaybe; + password?: InputMaybe; + roleIds?: InputMaybe>; }; export type UpdateAssetInput = { - customFields?: InputMaybe; - focalPoint?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - tags?: InputMaybe>; + customFields?: InputMaybe; + focalPoint?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + tags?: InputMaybe>; }; export type UpdateChannelInput = { - code?: InputMaybe; - currencyCode?: InputMaybe; - customFields?: InputMaybe; - defaultLanguageCode?: InputMaybe; - defaultShippingZoneId?: InputMaybe; - defaultTaxZoneId?: InputMaybe; - id: Scalars['ID']; - pricesIncludeTax?: InputMaybe; - token?: InputMaybe; + code?: InputMaybe; + currencyCode?: InputMaybe; + customFields?: InputMaybe; + defaultLanguageCode?: InputMaybe; + defaultShippingZoneId?: InputMaybe; + defaultTaxZoneId?: InputMaybe; + id: Scalars['ID']; + pricesIncludeTax?: InputMaybe; + token?: InputMaybe; + vendorId?: InputMaybe; }; export type UpdateChannelResult = Channel | LanguageNotAvailableError; export type UpdateCollectionInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - featuredAssetId?: InputMaybe; - filters?: InputMaybe>; - id: Scalars['ID']; - inheritFilters?: InputMaybe; - isPrivate?: InputMaybe; - parentId?: InputMaybe; - translations?: InputMaybe>; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + featuredAssetId?: InputMaybe; + filters?: InputMaybe>; + id: Scalars['ID']; + inheritFilters?: InputMaybe; + isPrivate?: InputMaybe; + parentId?: InputMaybe; + translations?: InputMaybe>; }; export type UpdateCollectionTranslationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; - slug?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; + slug?: InputMaybe; }; export type UpdateCountryInput = { - code?: InputMaybe; - customFields?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + code?: InputMaybe; + customFields?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; export type UpdateCustomerGroupInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateCustomerInput = { - customFields?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id: Scalars['ID']; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id: Scalars['ID']; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type UpdateCustomerNoteInput = { - note: Scalars['String']; - noteId: Scalars['ID']; + note: Scalars['String']; + noteId: Scalars['ID']; }; export type UpdateCustomerResult = Customer | EmailAddressConflictError; export type UpdateFacetInput = { - code?: InputMaybe; - customFields?: InputMaybe; - id: Scalars['ID']; - isPrivate?: InputMaybe; - translations?: InputMaybe>; + code?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + isPrivate?: InputMaybe; + translations?: InputMaybe>; }; export type UpdateFacetValueInput = { - code?: InputMaybe; - customFields?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + code?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; export type UpdateGlobalSettingsInput = { - availableLanguages?: InputMaybe>; - customFields?: InputMaybe; - outOfStockThreshold?: InputMaybe; - trackInventory?: InputMaybe; + availableLanguages?: InputMaybe>; + customFields?: InputMaybe; + outOfStockThreshold?: InputMaybe; + trackInventory?: InputMaybe; }; export type UpdateGlobalSettingsResult = ChannelDefaultLanguageError | GlobalSettings; export type UpdateOrderAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1?: InputMaybe; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1?: InputMaybe; + streetLine2?: InputMaybe; }; export type UpdateOrderInput = { - customFields?: InputMaybe; - id: Scalars['ID']; + customFields?: InputMaybe; + id: Scalars['ID']; }; -export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError; +export type UpdateOrderItemsResult = + | InsufficientStockError + | NegativeQuantityError + | Order + | OrderLimitError + | OrderModificationError; export type UpdateOrderNoteInput = { - isPublic?: InputMaybe; - note?: InputMaybe; - noteId: Scalars['ID']; + isPublic?: InputMaybe; + note?: InputMaybe; + noteId: Scalars['ID']; }; export type UpdatePaymentMethodInput = { - checker?: InputMaybe; - code?: InputMaybe; - customFields?: InputMaybe; - description?: InputMaybe; - enabled?: InputMaybe; - handler?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + checker?: InputMaybe; + code?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + enabled?: InputMaybe; + handler?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateProductInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - enabled?: InputMaybe; - facetValueIds?: InputMaybe>; - featuredAssetId?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; export type UpdateProductOptionGroupInput = { - code?: InputMaybe; - customFields?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + code?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; export type UpdateProductOptionInput = { - code?: InputMaybe; - customFields?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + code?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; export type UpdateProductVariantInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - enabled?: InputMaybe; - facetValueIds?: InputMaybe>; - featuredAssetId?: InputMaybe; - id: Scalars['ID']; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - sku?: InputMaybe; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations?: InputMaybe>; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + id: Scalars['ID']; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + sku?: InputMaybe; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations?: InputMaybe>; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type UpdatePromotionInput = { - actions?: InputMaybe>; - conditions?: InputMaybe>; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; + actions?: InputMaybe>; + conditions?: InputMaybe>; + couponCode?: InputMaybe; + customFields?: InputMaybe; + enabled?: InputMaybe; + endsAt?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; }; export type UpdatePromotionResult = MissingConditionsError | Promotion; export type UpdateRoleInput = { - channelIds?: InputMaybe>; - code?: InputMaybe; - description?: InputMaybe; - id: Scalars['ID']; - permissions?: InputMaybe>; + channelIds?: InputMaybe>; + code?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']; + permissions?: InputMaybe>; }; export type UpdateShippingMethodInput = { - calculator?: InputMaybe; - checker?: InputMaybe; - code?: InputMaybe; - customFields?: InputMaybe; - fulfillmentHandler?: InputMaybe; - id: Scalars['ID']; - translations: Array; + calculator?: InputMaybe; + checker?: InputMaybe; + code?: InputMaybe; + customFields?: InputMaybe; + fulfillmentHandler?: InputMaybe; + id: Scalars['ID']; + translations: Array; }; export type UpdateTagInput = { - id: Scalars['ID']; - value?: InputMaybe; + id: Scalars['ID']; + value?: InputMaybe; }; export type UpdateTaxCategoryInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - isDefault?: InputMaybe; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + isDefault?: InputMaybe; + name?: InputMaybe; }; export type UpdateTaxRateInput = { - categoryId?: InputMaybe; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - value?: InputMaybe; - zoneId?: InputMaybe; + categoryId?: InputMaybe; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + value?: InputMaybe; + zoneId?: InputMaybe; +}; + +export type UpdateVendorInput = { + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateZoneInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type User = Node & { - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; -export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; +export type Vendor = Node & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; -export type GetAdministratorsQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetAdministratorsQuery = { administrators: { totalItems: number, items: Array<{ id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } }> } }; +export type VendorFilterParameter = { + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; +}; -export type GetAdministratorQueryVariables = Exact<{ - id: Scalars['ID']; -}>; +export type VendorList = PaginatedList & { + items: Array; + totalItems: Scalars['Int']; +}; +export type VendorListOptions = { + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; +}; -export type GetAdministratorQuery = { administrator?: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } | null }; +export type VendorSortParameter = { + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; +}; -export type ActiveAdministratorQueryVariables = Exact<{ [key: string]: never; }>; +export type Zone = Node & { + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; +export type GetAdministratorsQueryVariables = Exact<{ + options?: InputMaybe; +}>; + +export type GetAdministratorsQuery = { + administrators: { + totalItems: number; + items: Array<{ + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ + id: string; + code: string; + description: string; + permissions: Array; + }>; + }; + }>; + }; +}; -export type ActiveAdministratorQuery = { activeAdministrator?: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } | null }; +export type GetAdministratorQueryVariables = Exact<{ + id: Scalars['ID']; +}>; + +export type GetAdministratorQuery = { + administrator?: { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; + } | null; +}; + +export type ActiveAdministratorQueryVariables = Exact<{ [key: string]: never }>; + +export type ActiveAdministratorQuery = { + activeAdministrator?: { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; + } | null; +}; export type UpdateActiveAdministratorMutationVariables = Exact<{ - input: UpdateActiveAdministratorInput; + input: UpdateActiveAdministratorInput; }>; - -export type UpdateActiveAdministratorMutation = { updateActiveAdministrator: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } }; +export type UpdateActiveAdministratorMutation = { + updateActiveAdministrator: { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; + }; +}; export type DeleteAdministratorMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type DeleteAdministratorMutation = { + deleteAdministrator: { message?: string | null; result: DeletionResult }; +}; -export type DeleteAdministratorMutation = { deleteAdministrator: { message?: string | null, result: DeletionResult } }; - -export type Q1QueryVariables = Exact<{ [key: string]: never; }>; - - -export type Q1Query = { product?: { id: string, name: string } | null }; +export type Q1QueryVariables = Exact<{ [key: string]: never }>; -export type Q2QueryVariables = Exact<{ [key: string]: never; }>; +export type Q1Query = { product?: { id: string; name: string } | null }; +export type Q2QueryVariables = Exact<{ [key: string]: never }>; -export type Q2Query = { product?: { id: string, name: string } | null }; +export type Q2Query = { product?: { id: string; name: string } | null }; export type AssignAssetsToChannelMutationVariables = Exact<{ - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }>; - -export type AssignAssetsToChannelMutation = { assignAssetsToChannel: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }> }; +export type AssignAssetsToChannelMutation = { + assignAssetsToChannel: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; +}; export type CanCreateCustomerMutationVariables = Exact<{ - input: CreateCustomerInput; + input: CreateCustomerInput; }>; - export type CanCreateCustomerMutation = { createCustomer: { id: string } | {} }; -export type GetCustomerCountQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCustomerCountQueryVariables = Exact<{ [key: string]: never }>; export type GetCustomerCountQuery = { customers: { totalItems: number } }; -export type DeepFieldResolutionTestQueryQueryVariables = Exact<{ [key: string]: never; }>; +export type DeepFieldResolutionTestQueryQueryVariables = Exact<{ [key: string]: never }>; - -export type DeepFieldResolutionTestQueryQuery = { product?: { variants: Array<{ taxRateApplied: { customerGroup?: { customers: { items: Array<{ id: string, emailAddress: string }> } } | null } }> } | null }; +export type DeepFieldResolutionTestQueryQuery = { + product?: { + variants: Array<{ + taxRateApplied: { + customerGroup?: { customers: { items: Array<{ id: string; emailAddress: string }> } } | null; + }; + }>; + } | null; +}; export type AuthenticateMutationVariables = Exact<{ - input: AuthenticationInput; + input: AuthenticationInput; }>; +export type AuthenticateMutation = { + authenticate: + | { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } + | { authenticationError: string; errorCode: ErrorCode; message: string }; +}; -export type AuthenticateMutation = { authenticate: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { authenticationError: string, errorCode: ErrorCode, message: string } }; - -export type GetCustomersQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCustomersQueryVariables = Exact<{ [key: string]: never }>; -export type GetCustomersQuery = { customers: { totalItems: number, items: Array<{ id: string, emailAddress: string }> } }; +export type GetCustomersQuery = { + customers: { totalItems: number; items: Array<{ id: string; emailAddress: string }> }; +}; export type GetCustomerUserAuthQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCustomerUserAuthQuery = { customer?: { id: string, user?: { id: string, verified: boolean, authenticationMethods: Array<{ id: string, strategy: string }> } | null } | null }; +export type GetCustomerUserAuthQuery = { + customer?: { + id: string; + user?: { + id: string; + verified: boolean; + authenticationMethods: Array<{ id: string; strategy: string }>; + } | null; + } | null; +}; export type DeleteChannelMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteChannelMutation = { deleteChannel: { message?: string | null, result: DeletionResult } }; +export type DeleteChannelMutation = { deleteChannel: { message?: string | null; result: DeletionResult } }; export type UpdateGlobalLanguagesMutationVariables = Exact<{ - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }>; +export type UpdateGlobalLanguagesMutation = { + updateGlobalSettings: { id: string; availableLanguages: Array } | {}; +}; -export type UpdateGlobalLanguagesMutation = { updateGlobalSettings: { id: string, availableLanguages: Array } | {} }; +export type GetCollectionsWithAssetsQueryVariables = Exact<{ [key: string]: never }>; -export type GetCollectionsWithAssetsQueryVariables = Exact<{ [key: string]: never; }>; +export type GetCollectionsWithAssetsQuery = { + collections: { items: Array<{ assets: Array<{ name: string }> }> }; +}; +export type GetProductsWithVariantIdsQueryVariables = Exact<{ [key: string]: never }>; -export type GetCollectionsWithAssetsQuery = { collections: { items: Array<{ assets: Array<{ name: string }> }> } }; +export type GetProductsWithVariantIdsQuery = { + products: { items: Array<{ id: string; name: string; variants: Array<{ id: string; name: string }> }> }; +}; -export type GetProductsWithVariantIdsQueryVariables = Exact<{ [key: string]: never; }>; +export type GetCollectionQueryVariables = Exact<{ + id?: InputMaybe; + slug?: InputMaybe; + variantListOptions?: InputMaybe; +}>; + +export type GetCollectionQuery = { + collection?: { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + productVariants: { items: Array<{ id: string; name: string; price: number }> }; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + } | null; +}; +export type GetCollectionListAdminQueryVariables = Exact<{ + options?: InputMaybe; +}>; + +export type GetCollectionListAdminQuery = { + collections: { + totalItems: number; + items: Array<{ + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }>; + }; +}; -export type GetProductsWithVariantIdsQuery = { products: { items: Array<{ id: string, name: string, variants: Array<{ id: string, name: string }> }> } }; +export type MoveCollectionMutationVariables = Exact<{ + input: MoveCollectionInput; +}>; + +export type MoveCollectionMutation = { + moveCollection: { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }; +}; + +export type GetFacetValuesQueryVariables = Exact<{ [key: string]: never }>; + +export type GetFacetValuesQuery = { + facets: { + items: Array<{ + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + }>; + }; +}; -export type GetCollectionQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; - variantListOptions?: InputMaybe; +export type GetCollectionProductsQueryVariables = Exact<{ + id: Scalars['ID']; }>; - -export type GetCollectionQuery = { collection?: { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, productVariants: { items: Array<{ id: string, name: string, price: number }> }, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null } | null }; - -export type GetCollectionListAdminQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetCollectionListAdminQuery = { collections: { totalItems: number, items: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> } }; - -export type MoveCollectionMutationVariables = Exact<{ - input: MoveCollectionInput; -}>; - - -export type MoveCollectionMutation = { moveCollection: { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null } }; - -export type GetFacetValuesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetFacetValuesQuery = { facets: { items: Array<{ values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }> } }; - -export type GetCollectionProductsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetCollectionProductsQuery = { collection?: { productVariants: { items: Array<{ id: string, name: string, productId: string, facetValues: Array<{ code: string }> }> } } | null }; +export type GetCollectionProductsQuery = { + collection?: { + productVariants: { + items: Array<{ + id: string; + name: string; + productId: string; + facetValues: Array<{ code: string }>; + }>; + }; + } | null; +}; export type CreateCollectionSelectVariantsMutationVariables = Exact<{ - input: CreateCollectionInput; + input: CreateCollectionInput; }>; - -export type CreateCollectionSelectVariantsMutation = { createCollection: { id: string, productVariants: { totalItems: number, items: Array<{ name: string }> } } }; +export type CreateCollectionSelectVariantsMutation = { + createCollection: { id: string; productVariants: { totalItems: number; items: Array<{ name: string }> } }; +}; export type GetCollectionBreadcrumbsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCollectionBreadcrumbsQuery = { collection?: { breadcrumbs: Array<{ id: string, name: string, slug: string }> } | null }; +export type GetCollectionBreadcrumbsQuery = { + collection?: { breadcrumbs: Array<{ id: string; name: string; slug: string }> } | null; +}; export type GetCollectionsForProductsQueryVariables = Exact<{ - term: Scalars['String']; + term: Scalars['String']; }>; - -export type GetCollectionsForProductsQuery = { products: { items: Array<{ id: string, name: string, collections: Array<{ id: string, name: string }> }> } }; +export type GetCollectionsForProductsQuery = { + products: { + items: Array<{ id: string; name: string; collections: Array<{ id: string; name: string }> }>; + }; +}; export type DeleteCollectionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteCollectionMutation = { deleteCollection: { result: DeletionResult, message?: string | null } }; +export type DeleteCollectionMutation = { + deleteCollection: { result: DeletionResult; message?: string | null }; +}; export type GetProductCollectionsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductCollectionsQuery = { product?: { id: string, collections: Array<{ id: string, name: string }> } | null }; +export type GetProductCollectionsQuery = { + product?: { id: string; collections: Array<{ id: string; name: string }> } | null; +}; export type GetProductCollectionsWithParentQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetProductCollectionsWithParentQuery = { + product?: { + id: string; + collections: Array<{ id: string; name: string; parent?: { id: string; name: string } | null }>; + } | null; +}; -export type GetProductCollectionsWithParentQuery = { product?: { id: string, collections: Array<{ id: string, name: string, parent?: { id: string, name: string } | null }> } | null }; - -export type GetCollectionNestedParentsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCollectionNestedParentsQueryVariables = Exact<{ [key: string]: never }>; -export type GetCollectionNestedParentsQuery = { collections: { items: Array<{ id: string, name: string, parent?: { name: string, parent?: { name: string, parent?: { name: string } | null } | null } | null }> } }; +export type GetCollectionNestedParentsQuery = { + collections: { + items: Array<{ + id: string; + name: string; + parent?: { + name: string; + parent?: { name: string; parent?: { name: string } | null } | null; + } | null; + }>; + }; +}; export type PreviewCollectionVariantsQueryVariables = Exact<{ - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }>; - -export type PreviewCollectionVariantsQuery = { previewCollectionVariants: { totalItems: number, items: Array<{ id: string, name: string }> } }; +export type PreviewCollectionVariantsQuery = { + previewCollectionVariants: { totalItems: number; items: Array<{ id: string; name: string }> }; +}; export type AssignCollectionsToChannelMutationVariables = Exact<{ - input: AssignCollectionsToChannelInput; -}>; - - -export type AssignCollectionsToChannelMutation = { assignCollectionsToChannel: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> }; + input: AssignCollectionsToChannelInput; +}>; + +export type AssignCollectionsToChannelMutation = { + assignCollectionsToChannel: Array<{ + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }>; +}; export type RemoveCollectionsFromChannelMutationVariables = Exact<{ - input: RemoveCollectionsFromChannelInput; -}>; - - -export type RemoveCollectionsFromChannelMutation = { removeCollectionsFromChannel: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> }; + input: RemoveCollectionsFromChannelInput; +}>; + +export type RemoveCollectionsFromChannelMutation = { + removeCollectionsFromChannel: Array<{ + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }>; +}; export type DeleteCollectionsBulkMutationVariables = Exact<{ - ids: Array | Scalars['ID']; + ids: Array | Scalars['ID']; }>; +export type DeleteCollectionsBulkMutation = { + deleteCollections: Array<{ message?: string | null; result: DeletionResult }>; +}; -export type DeleteCollectionsBulkMutation = { deleteCollections: Array<{ message?: string | null, result: DeletionResult }> }; - -export type GetCheckersQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCheckersQueryVariables = Exact<{ [key: string]: never }>; -export type GetCheckersQuery = { shippingEligibilityCheckers: Array<{ code: string, args: Array<{ defaultValue?: any | null, description?: string | null, label?: string | null, list: boolean, name: string, required: boolean, type: string }> }> }; +export type GetCheckersQuery = { + shippingEligibilityCheckers: Array<{ + code: string; + args: Array<{ + defaultValue?: any | null; + description?: string | null; + label?: string | null; + list: boolean; + name: string; + required: boolean; + type: string; + }>; + }>; +}; export type DeleteCountryMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteCountryMutation = { deleteCountry: { result: DeletionResult, message?: string | null } }; +export type DeleteCountryMutation = { deleteCountry: { result: DeletionResult; message?: string | null } }; export type GetCountryQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCountryQuery = { country?: { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } | null }; +export type GetCountryQuery = { + country?: { + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + } | null; +}; export type CreateCountryMutationVariables = Exact<{ - input: CreateCountryInput; + input: CreateCountryInput; }>; - -export type CreateCountryMutation = { createCountry: { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type CreateCountryMutation = { + createCountry: { + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type DeleteCustomerAddressMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeleteCustomerAddressMutation = { deleteCustomerAddress: { success: boolean } }; export type GetCustomerWithUserQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCustomerWithUserQuery = { customer?: { id: string, user?: { id: string, identifier: string, verified: boolean } | null } | null }; +export type GetCustomerWithUserQuery = { + customer?: { id: string; user?: { id: string; identifier: string; verified: boolean } | null } | null; +}; export type GetCustomerOrdersQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCustomerOrdersQuery = { customer?: { orders: { totalItems: number, items: Array<{ id: string }> } } | null }; +export type GetCustomerOrdersQuery = { + customer?: { orders: { totalItems: number; items: Array<{ id: string }> } } | null; +}; export type AddNoteToCustomerMutationVariables = Exact<{ - input: AddNoteToCustomerInput; -}>; - - -export type AddNoteToCustomerMutation = { addNoteToCustomer: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } }; - -export type ReindexMutationVariables = Exact<{ [key: string]: never; }>; - + input: AddNoteToCustomerInput; +}>; + +export type AddNoteToCustomerMutation = { + addNoteToCustomer: { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; + }; +}; + +export type ReindexMutationVariables = Exact<{ [key: string]: never }>; export type ReindexMutation = { reindex: { id: string } }; export type SearchProductsAdminQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; - -export type SearchProductsAdminQuery = { search: { totalItems: number, items: Array<{ enabled: boolean, productId: string, productName: string, slug: string, description: string, productVariantId: string, productVariantName: string, sku: string }> } }; +export type SearchProductsAdminQuery = { + search: { + totalItems: number; + items: Array<{ + enabled: boolean; + productId: string; + productName: string; + slug: string; + description: string; + productVariantId: string; + productVariantName: string; + sku: string; + }>; + }; +}; export type SearchFacetValuesQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; - -export type SearchFacetValuesQuery = { search: { totalItems: number, facetValues: Array<{ count: number, facetValue: { id: string, name: string } }> } }; +export type SearchFacetValuesQuery = { + search: { + totalItems: number; + facetValues: Array<{ count: number; facetValue: { id: string; name: string } }>; + }; +}; export type SearchCollectionsQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; - -export type SearchCollectionsQuery = { search: { totalItems: number, collections: Array<{ count: number, collection: { id: string, name: string } }> } }; +export type SearchCollectionsQuery = { + search: { + totalItems: number; + collections: Array<{ count: number; collection: { id: string; name: string } }>; + }; +}; export type SearchGetAssetsQueryVariables = Exact<{ - input: SearchInput; -}>; - - -export type SearchGetAssetsQuery = { search: { totalItems: number, items: Array<{ productId: string, productName: string, productVariantName: string, productAsset?: { id: string, preview: string, focalPoint?: { x: number, y: number } | null } | null, productVariantAsset?: { id: string, preview: string, focalPoint?: { x: number, y: number } | null } | null }> } }; + input: SearchInput; +}>; + +export type SearchGetAssetsQuery = { + search: { + totalItems: number; + items: Array<{ + productId: string; + productName: string; + productVariantName: string; + productAsset?: { + id: string; + preview: string; + focalPoint?: { x: number; y: number } | null; + } | null; + productVariantAsset?: { + id: string; + preview: string; + focalPoint?: { x: number; y: number } | null; + } | null; + }>; + }; +}; export type SearchGetPricesQueryVariables = Exact<{ - input: SearchInput; -}>; - - -export type SearchGetPricesQuery = { search: { items: Array<{ price: { min: number, max: number } | { value: number }, priceWithTax: { min: number, max: number } | { value: number } }> } }; - -export type CreateDraftOrderMutationVariables = Exact<{ [key: string]: never; }>; - - -export type CreateDraftOrderMutation = { createDraftOrder: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + input: SearchInput; +}>; + +export type SearchGetPricesQuery = { + search: { + items: Array<{ + price: { min: number; max: number } | { value: number }; + priceWithTax: { min: number; max: number } | { value: number }; + }>; + }; +}; + +export type CreateDraftOrderMutationVariables = Exact<{ [key: string]: never }>; + +export type CreateDraftOrderMutation = { + createDraftOrder: { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type AddItemToDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: AddItemToDraftOrderInput; -}>; - - -export type AddItemToDraftOrderMutation = { addItemToDraftOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; +}>; + +export type AddItemToDraftOrderMutation = { + addItemToDraftOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type AdjustDraftOrderLineMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: AdjustDraftOrderLineInput; -}>; - - -export type AdjustDraftOrderLineMutation = { adjustDraftOrderLine: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; +}>; + +export type AdjustDraftOrderLineMutation = { + adjustDraftOrderLine: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type RemoveDraftOrderLineMutationVariables = Exact<{ - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; -}>; - - -export type RemoveDraftOrderLineMutation = { removeDraftOrderLine: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | { errorCode: ErrorCode, message: string } }; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; +}>; + +export type RemoveDraftOrderLineMutation = { + removeDraftOrderLine: + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } + | { errorCode: ErrorCode; message: string }; +}; export type SetCustomerForDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - customerId?: InputMaybe; - input?: InputMaybe; -}>; - - -export type SetCustomerForDraftOrderMutation = { setCustomerForDraftOrder: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; +}>; + +export type SetCustomerForDraftOrderMutation = { + setCustomerForDraftOrder: + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type SetDraftOrderShippingAddressMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: CreateAddressInput; -}>; - - -export type SetDraftOrderShippingAddressMutation = { setDraftOrderShippingAddress: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + orderId: Scalars['ID']; + input: CreateAddressInput; +}>; + +export type SetDraftOrderShippingAddressMutation = { + setDraftOrderShippingAddress: { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type SetDraftOrderBillingAddressMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: CreateAddressInput; -}>; - - -export type SetDraftOrderBillingAddressMutation = { setDraftOrderBillingAddress: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, billingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + orderId: Scalars['ID']; + input: CreateAddressInput; +}>; + +export type SetDraftOrderBillingAddressMutation = { + setDraftOrderBillingAddress: { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + billingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type ApplyCouponCodeToDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - couponCode: Scalars['String']; -}>; - - -export type ApplyCouponCodeToDraftOrderMutation = { applyCouponCodeToDraftOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { couponCodes: Array, id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + orderId: Scalars['ID']; + couponCode: Scalars['String']; +}>; + +export type ApplyCouponCodeToDraftOrderMutation = { + applyCouponCodeToDraftOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + couponCodes: Array; + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type RemoveCouponCodeFromDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - couponCode: Scalars['String']; -}>; - - -export type RemoveCouponCodeFromDraftOrderMutation = { removeCouponCodeFromDraftOrder?: { couponCodes: Array, id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | null }; + orderId: Scalars['ID']; + couponCode: Scalars['String']; +}>; + +export type RemoveCouponCodeFromDraftOrderMutation = { + removeCouponCodeFromDraftOrder?: { + couponCodes: Array; + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } | null; +}; export type DraftOrderEligibleShippingMethodsQueryVariables = Exact<{ - orderId: Scalars['ID']; + orderId: Scalars['ID']; }>; - -export type DraftOrderEligibleShippingMethodsQuery = { eligibleShippingMethodsForDraftOrder: Array<{ id: string, name: string, code: string, description: string, price: number, priceWithTax: number, metadata?: any | null }> }; +export type DraftOrderEligibleShippingMethodsQuery = { + eligibleShippingMethodsForDraftOrder: Array<{ + id: string; + name: string; + code: string; + description: string; + price: number; + priceWithTax: number; + metadata?: any | null; + }>; +}; export type SetDraftOrderShippingMethodMutationVariables = Exact<{ - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; -}>; - - -export type SetDraftOrderShippingMethodMutation = { setDraftOrderShippingMethod: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | { errorCode: ErrorCode, message: string } }; - -export type IdTest1QueryVariables = Exact<{ [key: string]: never; }>; - + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; +}>; + +export type SetDraftOrderShippingMethodMutation = { + setDraftOrderShippingMethod: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } + | { errorCode: ErrorCode; message: string }; +}; + +export type IdTest1QueryVariables = Exact<{ [key: string]: never }>; export type IdTest1Query = { products: { items: Array<{ id: string }> } }; -export type IdTest2QueryVariables = Exact<{ [key: string]: never; }>; - +export type IdTest2QueryVariables = Exact<{ [key: string]: never }>; -export type IdTest2Query = { products: { items: Array<{ id: string, variants: Array<{ id: string, options: Array<{ id: string, name: string }> }> }> } }; - -export type IdTest3QueryVariables = Exact<{ [key: string]: never; }>; +export type IdTest2Query = { + products: { + items: Array<{ + id: string; + variants: Array<{ id: string; options: Array<{ id: string; name: string }> }>; + }>; + }; +}; +export type IdTest3QueryVariables = Exact<{ [key: string]: never }>; export type IdTest3Query = { product?: { id: string } | null }; -export type IdTest4MutationVariables = Exact<{ [key: string]: never; }>; - +export type IdTest4MutationVariables = Exact<{ [key: string]: never }>; -export type IdTest4Mutation = { updateProduct: { id: string, featuredAsset?: { id: string } | null } }; +export type IdTest4Mutation = { updateProduct: { id: string; featuredAsset?: { id: string } | null } }; -export type IdTest5MutationVariables = Exact<{ [key: string]: never; }>; +export type IdTest5MutationVariables = Exact<{ [key: string]: never }>; - -export type IdTest5Mutation = { updateProduct: { id: string, name: string } }; +export type IdTest5Mutation = { updateProduct: { id: string; name: string } }; export type IdTest6QueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type IdTest6Query = { product?: { id: string } | null }; export type IdTest7MutationVariables = Exact<{ - input: UpdateProductInput; + input: UpdateProductInput; }>; - -export type IdTest7Mutation = { updateProduct: { id: string, featuredAsset?: { id: string } | null } }; +export type IdTest7Mutation = { updateProduct: { id: string; featuredAsset?: { id: string } | null } }; export type IdTest8MutationVariables = Exact<{ - input: UpdateProductInput; + input: UpdateProductInput; }>; +export type IdTest8Mutation = { updateProduct: { id: string; name: string } }; -export type IdTest8Mutation = { updateProduct: { id: string, name: string } }; - -export type IdTest9QueryVariables = Exact<{ [key: string]: never; }>; - +export type IdTest9QueryVariables = Exact<{ [key: string]: never }>; -export type IdTest9Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; - -export type ProdFragmentFragment = { id: string, featuredAsset?: { id: string } | null }; - -export type IdTest10QueryVariables = Exact<{ [key: string]: never; }>; +export type IdTest9Query = { + products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; +}; +export type ProdFragmentFragment = { id: string; featuredAsset?: { id: string } | null }; -export type IdTest10Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; +export type IdTest10QueryVariables = Exact<{ [key: string]: never }>; -export type ProdFragment1Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type IdTest10Query = { + products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; +}; -export type ProdFragment2Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type ProdFragment1Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type IdTest11QueryVariables = Exact<{ [key: string]: never; }>; +export type ProdFragment2Fragment = { id: string; featuredAsset?: { id: string } | null }; +export type IdTest11QueryVariables = Exact<{ [key: string]: never }>; -export type IdTest11Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; +export type IdTest11Query = { + products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; +}; -export type ProdFragment1_1Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type ProdFragment1_1Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type ProdFragment2_1Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type ProdFragment2_1Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type ProdFragment3_1Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type ProdFragment3_1Fragment = { id: string; featuredAsset?: { id: string } | null }; export type GetFacetWithValuesQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetFacetWithValuesQuery = { facet?: { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> } | null }; + id: Scalars['ID']; +}>; + +export type GetFacetWithValuesQuery = { + facet?: { + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + } | null; +}; export type DeleteFacetValuesMutationVariables = Exact<{ - ids: Array | Scalars['ID']; - force?: InputMaybe; + ids: Array | Scalars['ID']; + force?: InputMaybe; }>; - -export type DeleteFacetValuesMutation = { deleteFacetValues: Array<{ result: DeletionResult, message?: string | null }> }; +export type DeleteFacetValuesMutation = { + deleteFacetValues: Array<{ result: DeletionResult; message?: string | null }>; +}; export type DeleteFacetMutationVariables = Exact<{ - id: Scalars['ID']; - force?: InputMaybe; + id: Scalars['ID']; + force?: InputMaybe; }>; - -export type DeleteFacetMutation = { deleteFacet: { result: DeletionResult, message?: string | null } }; +export type DeleteFacetMutation = { deleteFacet: { result: DeletionResult; message?: string | null } }; export type GetProductWithFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetProductWithFacetValuesQuery = { + product?: { + id: string; + facetValues: Array<{ id: string; name: string; code: string }>; + variants: Array<{ id: string; facetValues: Array<{ id: string; name: string; code: string }> }>; + } | null; +}; -export type GetProductWithFacetValuesQuery = { product?: { id: string, facetValues: Array<{ id: string, name: string, code: string }>, variants: Array<{ id: string, facetValues: Array<{ id: string, name: string, code: string }> }> } | null }; - -export type GetProductListWithVariantsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProductListWithVariantsQueryVariables = Exact<{ [key: string]: never }>; -export type GetProductListWithVariantsQuery = { products: { totalItems: number, items: Array<{ id: string, name: string, variants: Array<{ id: string, name: string }> }> } }; +export type GetProductListWithVariantsQuery = { + products: { + totalItems: number; + items: Array<{ id: string; name: string; variants: Array<{ id: string; name: string }> }>; + }; +}; export type CreateFacetValuesMutationVariables = Exact<{ - input: Array | CreateFacetValueInput; + input: Array | CreateFacetValueInput; }>; - -export type CreateFacetValuesMutation = { createFacetValues: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }; +export type CreateFacetValuesMutation = { + createFacetValues: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; +}; export type UpdateFacetValuesMutationVariables = Exact<{ - input: Array | UpdateFacetValueInput; + input: Array | UpdateFacetValueInput; }>; - -export type UpdateFacetValuesMutation = { updateFacetValues: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }; +export type UpdateFacetValuesMutation = { + updateFacetValues: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; +}; export type AssignFacetsToChannelMutationVariables = Exact<{ - input: AssignFacetsToChannelInput; + input: AssignFacetsToChannelInput; }>; - -export type AssignFacetsToChannelMutation = { assignFacetsToChannel: Array<{ id: string, name: string }> }; +export type AssignFacetsToChannelMutation = { assignFacetsToChannel: Array<{ id: string; name: string }> }; export type RemoveFacetsFromChannelMutationVariables = Exact<{ - input: RemoveFacetsFromChannelInput; -}>; - - -export type RemoveFacetsFromChannelMutation = { removeFacetsFromChannel: Array<{ id: string, name: string } | { errorCode: ErrorCode, message: string, productCount: number, variantCount: number }> }; - -export type GetGlobalSettingsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetGlobalSettingsQuery = { globalSettings: { id: string, availableLanguages: Array, trackInventory: boolean, outOfStockThreshold: number, serverConfig: { permittedAssetTypes: Array, orderProcess: Array<{ name: string, to: Array }>, permissions: Array<{ name: string, description: string, assignable: boolean }>, customFieldConfig: { Customer: Array<{ name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string }> } } } }; - -export type AdministratorFragment = { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } }; - -export type AssetFragment = { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }; - -export type ProductVariantFragment = { id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }; - -export type ProductWithVariantsFragment = { id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> }; - -export type RoleFragment = { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> }; - -export type ConfigurableOperationFragment = { code: string, args: Array<{ name: string, value: string }> }; - -export type CollectionFragment = { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }; - -export type FacetValueFragment = { id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }; - -export type FacetWithValuesFragment = { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }; - -export type CountryFragment = { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }; - -export type AddressFragment = { id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }; - -export type CustomerFragment = { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null }; - -export type AdjustmentFragment = { adjustmentSource: string, amount: number, description: string, type: AdjustmentType }; - -export type ShippingAddressFragment = { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null }; - -export type OrderFragment = { id: string, createdAt: any, updatedAt: any, code: string, active: boolean, state: string, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, customer?: { id: string, firstName: string, lastName: string } | null }; - -export type OrderItemFragment = { id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }; - -export type PaymentFragment = { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }; - -export type OrderWithLinesFragment = { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null }; - -export type PromotionFragment = { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> }; - -export type ZoneFragment = { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> }; - -export type TaxRateFragment = { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null }; - -export type CurrentUserFragment = { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> }; - -export type VariantWithStockFragment = { id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } }; - -export type FulfillmentFragment = { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, orderItems: Array<{ id: string }> }; - -export type ChannelFragment = { id: string, code: string, token: string, currencyCode: CurrencyCode, defaultLanguageCode: LanguageCode, pricesIncludeTax: boolean, defaultShippingZone?: { id: string } | null, defaultTaxZone?: { id: string } | null }; - -export type GlobalSettingsFragment = { id: string, availableLanguages: Array, trackInventory: boolean, outOfStockThreshold: number, serverConfig: { permittedAssetTypes: Array, orderProcess: Array<{ name: string, to: Array }>, permissions: Array<{ name: string, description: string, assignable: boolean }>, customFieldConfig: { Customer: Array<{ name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string }> } } }; - -export type CustomerGroupFragment = { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } }; - -export type ProductOptionGroupFragment = { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }; - -export type ProductWithOptionsFragment = { id: string, optionGroups: Array<{ id: string, code: string, options: Array<{ id: string, code: string }> }> }; - -export type ShippingMethodFragment = { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } }; + input: RemoveFacetsFromChannelInput; +}>; + +export type RemoveFacetsFromChannelMutation = { + removeFacetsFromChannel: Array< + | { id: string; name: string } + | { errorCode: ErrorCode; message: string; productCount: number; variantCount: number } + >; +}; + +export type GetGlobalSettingsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetGlobalSettingsQuery = { + globalSettings: { + id: string; + availableLanguages: Array; + trackInventory: boolean; + outOfStockThreshold: number; + serverConfig: { + permittedAssetTypes: Array; + orderProcess: Array<{ name: string; to: Array }>; + permissions: Array<{ name: string; description: string; assignable: boolean }>; + customFieldConfig: { + Customer: Array< + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + >; + }; + }; + }; +}; + +export type AdministratorFragment = { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; +}; + +export type AssetFragment = { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; +}; + +export type ProductVariantFragment = { + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; +}; + +export type ProductWithVariantsFragment = { + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; +}; + +export type RoleFragment = { + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; +}; + +export type ConfigurableOperationFragment = { code: string; args: Array<{ name: string; value: string }> }; + +export type CollectionFragment = { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; +}; + +export type FacetValueFragment = { + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; +}; + +export type FacetWithValuesFragment = { + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; +}; + +export type CountryFragment = { + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; +}; + +export type AddressFragment = { + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; +}; + +export type CustomerFragment = { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; +}; + +export type AdjustmentFragment = { + adjustmentSource: string; + amount: number; + description: string; + type: AdjustmentType; +}; + +export type ShippingAddressFragment = { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; +}; + +export type OrderFragment = { + id: string; + createdAt: any; + updatedAt: any; + code: string; + active: boolean; + state: string; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + customer?: { id: string; firstName: string; lastName: string } | null; +}; + +export type OrderItemFragment = { + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; +}; + +export type PaymentFragment = { + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; +}; + +export type OrderWithLinesFragment = { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; +}; + +export type PromotionFragment = { + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; +}; + +export type ZoneFragment = { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; +}; + +export type TaxRateFragment = { + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; +}; + +export type CurrentUserFragment = { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; +}; + +export type VariantWithStockFragment = { + id: string; + stockOnHand: number; + stockAllocated: number; + stockMovements: { + totalItems: number; + items: Array< + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + >; + }; +}; + +export type FulfillmentFragment = { + id: string; + state: string; + nextStates: Array; + method: string; + trackingCode?: string | null; + orderItems: Array<{ id: string }>; +}; + +export type ChannelFragment = { + id: string; + code: string; + token: string; + currencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + pricesIncludeTax: boolean; + defaultShippingZone?: { id: string } | null; + defaultTaxZone?: { id: string } | null; +}; + +export type GlobalSettingsFragment = { + id: string; + availableLanguages: Array; + trackInventory: boolean; + outOfStockThreshold: number; + serverConfig: { + permittedAssetTypes: Array; + orderProcess: Array<{ name: string; to: Array }>; + permissions: Array<{ name: string; description: string; assignable: boolean }>; + customFieldConfig: { + Customer: Array< + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + >; + }; + }; +}; + +export type CustomerGroupFragment = { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; +}; + +export type ProductOptionGroupFragment = { + id: string; + code: string; + name: string; + options: Array<{ id: string; code: string; name: string }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; +}; + +export type ProductWithOptionsFragment = { + id: string; + optionGroups: Array<{ id: string; code: string; options: Array<{ id: string; code: string }> }>; +}; + +export type ShippingMethodFragment = { + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; +}; export type CreateAdministratorMutationVariables = Exact<{ - input: CreateAdministratorInput; + input: CreateAdministratorInput; }>; - -export type CreateAdministratorMutation = { createAdministrator: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } }; +export type CreateAdministratorMutation = { + createAdministrator: { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; + }; +}; export type UpdateProductMutationVariables = Exact<{ - input: UpdateProductInput; -}>; - - -export type UpdateProductMutation = { updateProduct: { id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> } }; + input: UpdateProductInput; +}>; + +export type UpdateProductMutation = { + updateProduct: { + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + }; +}; export type CreateProductMutationVariables = Exact<{ - input: CreateProductInput; -}>; - - -export type CreateProductMutation = { createProduct: { id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> } }; + input: CreateProductInput; +}>; + +export type CreateProductMutation = { + createProduct: { + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + }; +}; export type GetProductWithVariantsQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; -}>; - - -export type GetProductWithVariantsQuery = { product?: { id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> } | null }; + id?: InputMaybe; + slug?: InputMaybe; +}>; + +export type GetProductWithVariantsQuery = { + product?: { + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + } | null; +}; export type GetProductListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetProductListQuery = { products: { totalItems: number, items: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, featuredAsset?: { id: string, preview: string } | null }> } }; +export type GetProductListQuery = { + products: { + totalItems: number; + items: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + featuredAsset?: { id: string; preview: string } | null; + }>; + }; +}; export type CreateProductVariantsMutationVariables = Exact<{ - input: Array | CreateProductVariantInput; -}>; - - -export type CreateProductVariantsMutation = { createProductVariants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> } | null> }; + input: Array | CreateProductVariantInput; +}>; + +export type CreateProductVariantsMutation = { + createProductVariants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + } | null>; +}; export type UpdateProductVariantsMutationVariables = Exact<{ - input: Array | UpdateProductVariantInput; -}>; - - -export type UpdateProductVariantsMutation = { updateProductVariants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> } | null> }; + input: Array | UpdateProductVariantInput; +}>; + +export type UpdateProductVariantsMutation = { + updateProductVariants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + } | null>; +}; export type UpdateTaxRateMutationVariables = Exact<{ - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }>; - -export type UpdateTaxRateMutation = { updateTaxRate: { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null } }; +export type UpdateTaxRateMutation = { + updateTaxRate: { + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; + }; +}; export type CreateFacetMutationVariables = Exact<{ - input: CreateFacetInput; -}>; - - -export type CreateFacetMutation = { createFacet: { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> } }; + input: CreateFacetInput; +}>; + +export type CreateFacetMutation = { + createFacet: { + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + }; +}; export type UpdateFacetMutationVariables = Exact<{ - input: UpdateFacetInput; -}>; - - -export type UpdateFacetMutation = { updateFacet: { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> } }; + input: UpdateFacetInput; +}>; + +export type UpdateFacetMutation = { + updateFacet: { + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + }; +}; export type GetCustomerListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetCustomerListQuery = { customers: { totalItems: number, items: Array<{ id: string, title?: string | null, firstName: string, lastName: string, emailAddress: string, phoneNumber?: string | null, user?: { id: string, verified: boolean } | null }> } }; +export type GetCustomerListQuery = { + customers: { + totalItems: number; + items: Array<{ + id: string; + title?: string | null; + firstName: string; + lastName: string; + emailAddress: string; + phoneNumber?: string | null; + user?: { id: string; verified: boolean } | null; + }>; + }; +}; export type GetAssetListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetAssetListQuery = { assets: { totalItems: number, items: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }> } }; +export type GetAssetListQuery = { + assets: { + totalItems: number; + items: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + }; +}; export type CreateRoleMutationVariables = Exact<{ - input: CreateRoleInput; + input: CreateRoleInput; }>; - -export type CreateRoleMutation = { createRole: { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> } }; +export type CreateRoleMutation = { + createRole: { + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; + }; +}; export type CreateCollectionMutationVariables = Exact<{ - input: CreateCollectionInput; -}>; - - -export type CreateCollectionMutation = { createCollection: { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null } }; + input: CreateCollectionInput; +}>; + +export type CreateCollectionMutation = { + createCollection: { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }; +}; export type UpdateCollectionMutationVariables = Exact<{ - input: UpdateCollectionInput; -}>; - - -export type UpdateCollectionMutation = { updateCollection: { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null } }; + input: UpdateCollectionInput; +}>; + +export type UpdateCollectionMutation = { + updateCollection: { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }; +}; export type GetCustomerQueryVariables = Exact<{ - id: Scalars['ID']; - orderListOptions?: InputMaybe; -}>; - - -export type GetCustomerQuery = { customer?: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, orders: { totalItems: number, items: Array<{ id: string, code: string, state: string, total: number, currencyCode: CurrencyCode, updatedAt: any }> }, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } | null }; + id: Scalars['ID']; + orderListOptions?: InputMaybe; +}>; + +export type GetCustomerQuery = { + customer?: { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + orders: { + totalItems: number; + items: Array<{ + id: string; + code: string; + state: string; + total: number; + currencyCode: CurrencyCode; + updatedAt: any; + }>; + }; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; + } | null; +}; export type AttemptLoginMutationVariables = Exact<{ - username: Scalars['String']; - password: Scalars['String']; - rememberMe?: InputMaybe; + username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; }>; - -export type AttemptLoginMutation = { login: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | {} }; +export type AttemptLoginMutation = { + login: + | { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } + | {}; +}; export type GetCountryListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetCountryListQuery = { countries: { totalItems: number, items: Array<{ id: string, code: string, name: string, enabled: boolean }> } }; +export type GetCountryListQuery = { + countries: { + totalItems: number; + items: Array<{ id: string; code: string; name: string; enabled: boolean }>; + }; +}; export type UpdateCountryMutationVariables = Exact<{ - input: UpdateCountryInput; + input: UpdateCountryInput; }>; - -export type UpdateCountryMutation = { updateCountry: { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type UpdateCountryMutation = { + updateCountry: { + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type GetFacetListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetFacetListQuery = { facets: { totalItems: number, items: Array<{ id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }> } }; + options?: InputMaybe; +}>; + +export type GetFacetListQuery = { + facets: { + totalItems: number; + items: Array<{ + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + }>; + }; +}; export type GetFacetListSimpleQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetFacetListSimpleQuery = { facets: { totalItems: number, items: Array<{ id: string, name: string }> } }; +export type GetFacetListSimpleQuery = { + facets: { totalItems: number; items: Array<{ id: string; name: string }> }; +}; export type DeleteProductMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeleteProductMutation = { deleteProduct: { result: DeletionResult } }; export type GetProductSimpleQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; - -export type GetProductSimpleQuery = { product?: { id: string, slug: string } | null }; +export type GetProductSimpleQuery = { product?: { id: string; slug: string } | null }; export type GetStockMovementQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetStockMovementQuery = { product?: { id: string, variants: Array<{ id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } }> } | null }; + id: Scalars['ID']; +}>; + +export type GetStockMovementQuery = { + product?: { + id: string; + variants: Array<{ + id: string; + stockOnHand: number; + stockAllocated: number; + stockMovements: { + totalItems: number; + items: Array< + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + >; + }; + }>; + } | null; +}; export type GetRunningJobsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetRunningJobsQuery = { jobs: { totalItems: number, items: Array<{ id: string, queueName: string, state: JobState, isSettled: boolean, duration: number }> } }; +export type GetRunningJobsQuery = { + jobs: { + totalItems: number; + items: Array<{ + id: string; + queueName: string; + state: JobState; + isSettled: boolean; + duration: number; + }>; + }; +}; export type CreatePromotionMutationVariables = Exact<{ - input: CreatePromotionInput; + input: CreatePromotionInput; }>; +export type CreatePromotionMutation = { + createPromotion: + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + }; +}; -export type CreatePromotionMutation = { createPromotion: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> } }; - -export type MeQueryVariables = Exact<{ [key: string]: never; }>; - +export type MeQueryVariables = Exact<{ [key: string]: never }>; -export type MeQuery = { me?: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | null }; +export type MeQuery = { + me?: { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } | null; +}; export type CreateChannelMutationVariables = Exact<{ - input: CreateChannelInput; + input: CreateChannelInput; }>; - -export type CreateChannelMutation = { createChannel: { id: string, code: string, token: string, currencyCode: CurrencyCode, defaultLanguageCode: LanguageCode, pricesIncludeTax: boolean, defaultShippingZone?: { id: string } | null, defaultTaxZone?: { id: string } | null } | { errorCode: ErrorCode, message: string, languageCode: string } }; +export type CreateChannelMutation = { + createChannel: + | { + id: string; + code: string; + token: string; + currencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + pricesIncludeTax: boolean; + defaultShippingZone?: { id: string } | null; + defaultTaxZone?: { id: string } | null; + } + | { errorCode: ErrorCode; message: string; languageCode: string }; +}; export type DeleteProductVariantMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteProductVariantMutation = { deleteProductVariant: { result: DeletionResult, message?: string | null } }; +export type DeleteProductVariantMutation = { + deleteProductVariant: { result: DeletionResult; message?: string | null }; +}; export type AssignProductsToChannelMutationVariables = Exact<{ - input: AssignProductsToChannelInput; -}>; - - -export type AssignProductsToChannelMutation = { assignProductsToChannel: Array<{ id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> }> }; + input: AssignProductsToChannelInput; +}>; + +export type AssignProductsToChannelMutation = { + assignProductsToChannel: Array<{ + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + }>; +}; export type RemoveProductsFromChannelMutationVariables = Exact<{ - input: RemoveProductsFromChannelInput; -}>; - - -export type RemoveProductsFromChannelMutation = { removeProductsFromChannel: Array<{ id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> }> }; + input: RemoveProductsFromChannelInput; +}>; + +export type RemoveProductsFromChannelMutation = { + removeProductsFromChannel: Array<{ + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + }>; +}; export type AssignProductVariantsToChannelMutationVariables = Exact<{ - input: AssignProductVariantsToChannelInput; -}>; - - -export type AssignProductVariantsToChannelMutation = { assignProductVariantsToChannel: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }> }; + input: AssignProductVariantsToChannelInput; +}>; + +export type AssignProductVariantsToChannelMutation = { + assignProductVariantsToChannel: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; +}; export type RemoveProductVariantsFromChannelMutationVariables = Exact<{ - input: RemoveProductVariantsFromChannelInput; -}>; - - -export type RemoveProductVariantsFromChannelMutation = { removeProductVariantsFromChannel: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }> }; + input: RemoveProductVariantsFromChannelInput; +}>; + +export type RemoveProductVariantsFromChannelMutation = { + removeProductVariantsFromChannel: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; +}; export type UpdateAssetMutationVariables = Exact<{ - input: UpdateAssetInput; + input: UpdateAssetInput; }>; - -export type UpdateAssetMutation = { updateAsset: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string, tags: Array<{ id: string, value: string }>, focalPoint?: { x: number, y: number } | null } }; +export type UpdateAssetMutation = { + updateAsset: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + tags: Array<{ id: string; value: string }>; + focalPoint?: { x: number; y: number } | null; + }; +}; export type DeleteAssetMutationVariables = Exact<{ - input: DeleteAssetInput; + input: DeleteAssetInput; }>; - -export type DeleteAssetMutation = { deleteAsset: { result: DeletionResult, message?: string | null } }; +export type DeleteAssetMutation = { deleteAsset: { result: DeletionResult; message?: string | null } }; export type UpdateChannelMutationVariables = Exact<{ - input: UpdateChannelInput; + input: UpdateChannelInput; }>; - -export type UpdateChannelMutation = { updateChannel: { id: string, code: string, token: string, currencyCode: CurrencyCode, defaultLanguageCode: LanguageCode, pricesIncludeTax: boolean, defaultShippingZone?: { id: string } | null, defaultTaxZone?: { id: string } | null } | { errorCode: ErrorCode, message: string, languageCode: string } }; +export type UpdateChannelMutation = { + updateChannel: + | { + id: string; + code: string; + token: string; + currencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + pricesIncludeTax: boolean; + defaultShippingZone?: { id: string } | null; + defaultTaxZone?: { id: string } | null; + } + | { errorCode: ErrorCode; message: string; languageCode: string }; +}; export type GetCustomerHistoryQueryVariables = Exact<{ - id: Scalars['ID']; - options?: InputMaybe; + id: Scalars['ID']; + options?: InputMaybe; }>; - -export type GetCustomerHistoryQuery = { customer?: { id: string, history: { totalItems: number, items: Array<{ id: string, type: HistoryEntryType, data: any, administrator?: { id: string } | null }> } } | null }; +export type GetCustomerHistoryQuery = { + customer?: { + id: string; + history: { + totalItems: number; + items: Array<{ + id: string; + type: HistoryEntryType; + data: any; + administrator?: { id: string } | null; + }>; + }; + } | null; +}; export type GetOrderQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetOrderQuery = { order?: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | null }; + id: Scalars['ID']; +}>; + +export type GetOrderQuery = { + order?: { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } | null; +}; export type CreateCustomerGroupMutationVariables = Exact<{ - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }>; - -export type CreateCustomerGroupMutation = { createCustomerGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; +export type CreateCustomerGroupMutation = { + createCustomerGroup: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + }; +}; export type RemoveCustomersFromGroupMutationVariables = Exact<{ - groupId: Scalars['ID']; - customerIds: Array | Scalars['ID']; + groupId: Scalars['ID']; + customerIds: Array | Scalars['ID']; }>; - -export type RemoveCustomersFromGroupMutation = { removeCustomersFromGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; +export type RemoveCustomersFromGroupMutation = { + removeCustomersFromGroup: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + }; +}; export type CreateFulfillmentMutationVariables = Exact<{ - input: FulfillOrderInput; -}>; - - -export type CreateFulfillmentMutation = { addFulfillmentToOrder: { errorCode: ErrorCode, message: string, fulfillmentHandlerError: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, orderItems: Array<{ id: string }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + input: FulfillOrderInput; +}>; + +export type CreateFulfillmentMutation = { + addFulfillmentToOrder: + | { errorCode: ErrorCode; message: string; fulfillmentHandlerError: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + nextStates: Array; + method: string; + trackingCode?: string | null; + orderItems: Array<{ id: string }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type TransitFulfillmentMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; -}>; - - -export type TransitFulfillmentMutation = { transitionFulfillmentToState: { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, orderItems: Array<{ id: string }> } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } }; + id: Scalars['ID']; + state: Scalars['String']; +}>; + +export type TransitFulfillmentMutation = { + transitionFulfillmentToState: + | { + id: string; + state: string; + nextStates: Array; + method: string; + trackingCode?: string | null; + orderItems: Array<{ id: string }>; + } + | { + errorCode: ErrorCode; + message: string; + transitionError: string; + fromState: string; + toState: string; + }; +}; export type GetOrderFulfillmentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOrderFulfillmentsQuery = { order?: { id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string, summary: Array<{ quantity: number, orderLine: { id: string } }> }> | null } | null }; +export type GetOrderFulfillmentsQuery = { + order?: { + id: string; + state: string; + fulfillments?: Array<{ + id: string; + state: string; + nextStates: Array; + method: string; + summary: Array<{ quantity: number; orderLine: { id: string } }>; + }> | null; + } | null; +}; export type GetOrderListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetOrderListQuery = { orders: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, code: string, active: boolean, state: string, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, customer?: { id: string, firstName: string, lastName: string } | null }> } }; + options?: InputMaybe; +}>; + +export type GetOrderListQuery = { + orders: { + totalItems: number; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + code: string; + active: boolean; + state: string; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + customer?: { id: string; firstName: string; lastName: string } | null; + }>; + }; +}; export type CreateAddressMutationVariables = Exact<{ - id: Scalars['ID']; - input: CreateAddressInput; -}>; - - -export type CreateAddressMutation = { createCustomerAddress: { id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { code: string, name: string } } }; + id: Scalars['ID']; + input: CreateAddressInput; +}>; + +export type CreateAddressMutation = { + createCustomerAddress: { + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { code: string; name: string }; + }; +}; export type UpdateAddressMutationVariables = Exact<{ - input: UpdateAddressInput; + input: UpdateAddressInput; }>; - -export type UpdateAddressMutation = { updateCustomerAddress: { id: string, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { code: string, name: string } } }; +export type UpdateAddressMutation = { + updateCustomerAddress: { + id: string; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { code: string; name: string }; + }; +}; export type CreateCustomerMutationVariables = Exact<{ - input: CreateCustomerInput; - password?: InputMaybe; -}>; - - -export type CreateCustomerMutation = { createCustomer: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } | { errorCode: ErrorCode, message: string } }; + input: CreateCustomerInput; + password?: InputMaybe; +}>; + +export type CreateCustomerMutation = { + createCustomer: + | { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; + } + | { errorCode: ErrorCode; message: string }; +}; export type UpdateCustomerMutationVariables = Exact<{ - input: UpdateCustomerInput; -}>; - - -export type UpdateCustomerMutation = { updateCustomer: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } | { errorCode: ErrorCode, message: string } }; + input: UpdateCustomerInput; +}>; + +export type UpdateCustomerMutation = { + updateCustomer: + | { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; + } + | { errorCode: ErrorCode; message: string }; +}; export type DeleteCustomerMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeleteCustomerMutation = { deleteCustomer: { result: DeletionResult } }; export type UpdateCustomerNoteMutationVariables = Exact<{ - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }>; - -export type UpdateCustomerNoteMutation = { updateCustomerNote: { id: string, data: any, isPublic: boolean } }; +export type UpdateCustomerNoteMutation = { updateCustomerNote: { id: string; data: any; isPublic: boolean } }; export type DeleteCustomerNoteMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteCustomerNoteMutation = { deleteCustomerNote: { result: DeletionResult, message?: string | null } }; +export type DeleteCustomerNoteMutation = { + deleteCustomerNote: { result: DeletionResult; message?: string | null }; +}; export type UpdateCustomerGroupMutationVariables = Exact<{ - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }>; - -export type UpdateCustomerGroupMutation = { updateCustomerGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; +export type UpdateCustomerGroupMutation = { + updateCustomerGroup: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + }; +}; export type DeleteCustomerGroupMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteCustomerGroupMutation = { deleteCustomerGroup: { result: DeletionResult, message?: string | null } }; +export type DeleteCustomerGroupMutation = { + deleteCustomerGroup: { result: DeletionResult; message?: string | null }; +}; export type GetCustomerGroupsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetCustomerGroupsQuery = { customerGroups: { totalItems: number, items: Array<{ id: string, name: string }> } }; +export type GetCustomerGroupsQuery = { + customerGroups: { totalItems: number; items: Array<{ id: string; name: string }> }; +}; export type GetCustomerGroupQueryVariables = Exact<{ - id: Scalars['ID']; - options?: InputMaybe; + id: Scalars['ID']; + options?: InputMaybe; }>; - -export type GetCustomerGroupQuery = { customerGroup?: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } | null }; +export type GetCustomerGroupQuery = { + customerGroup?: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + } | null; +}; export type AddCustomersToGroupMutationVariables = Exact<{ - groupId: Scalars['ID']; - customerIds: Array | Scalars['ID']; + groupId: Scalars['ID']; + customerIds: Array | Scalars['ID']; }>; - -export type AddCustomersToGroupMutation = { addCustomersToGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; +export type AddCustomersToGroupMutation = { + addCustomersToGroup: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + }; +}; export type GetCustomerWithGroupsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCustomerWithGroupsQuery = { customer?: { id: string, groups: Array<{ id: string, name: string }> } | null }; +export type GetCustomerWithGroupsQuery = { + customer?: { id: string; groups: Array<{ id: string; name: string }> } | null; +}; export type AdminTransitionMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; -}>; - - -export type AdminTransitionMutation = { transitionOrderToState?: { id: string, createdAt: any, updatedAt: any, code: string, active: boolean, state: string, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, customer?: { id: string, firstName: string, lastName: string } | null } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null }; + id: Scalars['ID']; + state: Scalars['String']; +}>; + +export type AdminTransitionMutation = { + transitionOrderToState?: + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + active: boolean; + state: string; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + customer?: { id: string; firstName: string; lastName: string } | null; + } + | { + errorCode: ErrorCode; + message: string; + transitionError: string; + fromState: string; + toState: string; + } + | null; +}; export type CancelOrderMutationVariables = Exact<{ - input: CancelOrderInput; + input: CancelOrderInput; }>; +export type CancelOrderMutation = { + cancelOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + lines: Array<{ quantity: number; items: Array<{ id: string; cancelled: boolean }> }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; -export type CancelOrderMutation = { cancelOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, lines: Array<{ quantity: number, items: Array<{ id: string, cancelled: boolean }> }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; - -export type CanceledOrderFragment = { id: string, state: string, lines: Array<{ quantity: number, items: Array<{ id: string, cancelled: boolean }> }> }; +export type CanceledOrderFragment = { + id: string; + state: string; + lines: Array<{ quantity: number; items: Array<{ id: string; cancelled: boolean }> }>; +}; export type UpdateGlobalSettingsMutationVariables = Exact<{ - input: UpdateGlobalSettingsInput; -}>; - - -export type UpdateGlobalSettingsMutation = { updateGlobalSettings: { errorCode: ErrorCode, message: string } | { id: string, availableLanguages: Array, trackInventory: boolean, outOfStockThreshold: number, serverConfig: { permittedAssetTypes: Array, orderProcess: Array<{ name: string, to: Array }>, permissions: Array<{ name: string, description: string, assignable: boolean }>, customFieldConfig: { Customer: Array<{ name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string }> } } } }; + input: UpdateGlobalSettingsInput; +}>; + +export type UpdateGlobalSettingsMutation = { + updateGlobalSettings: + | { errorCode: ErrorCode; message: string } + | { + id: string; + availableLanguages: Array; + trackInventory: boolean; + outOfStockThreshold: number; + serverConfig: { + permittedAssetTypes: Array; + orderProcess: Array<{ name: string; to: Array }>; + permissions: Array<{ name: string; description: string; assignable: boolean }>; + customFieldConfig: { + Customer: Array< + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + >; + }; + }; + }; +}; export type UpdateRoleMutationVariables = Exact<{ - input: UpdateRoleInput; + input: UpdateRoleInput; }>; +export type UpdateRoleMutation = { + updateRole: { + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; + }; +}; -export type UpdateRoleMutation = { updateRole: { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> } }; - -export type GetProductsWithVariantPricesQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProductsWithVariantPricesQueryVariables = Exact<{ [key: string]: never }>; -export type GetProductsWithVariantPricesQuery = { products: { items: Array<{ id: string, slug: string, variants: Array<{ id: string, price: number, priceWithTax: number, sku: string, facetValues: Array<{ id: string, code: string }> }> }> } }; +export type GetProductsWithVariantPricesQuery = { + products: { + items: Array<{ + id: string; + slug: string; + variants: Array<{ + id: string; + price: number; + priceWithTax: number; + sku: string; + facetValues: Array<{ id: string; code: string }>; + }>; + }>; + }; +}; export type CreateProductOptionGroupMutationVariables = Exact<{ - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }>; - -export type CreateProductOptionGroupMutation = { createProductOptionGroup: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type CreateProductOptionGroupMutation = { + createProductOptionGroup: { + id: string; + code: string; + name: string; + options: Array<{ id: string; code: string; name: string }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type AddOptionGroupToProductMutationVariables = Exact<{ - productId: Scalars['ID']; - optionGroupId: Scalars['ID']; + productId: Scalars['ID']; + optionGroupId: Scalars['ID']; }>; - -export type AddOptionGroupToProductMutation = { addOptionGroupToProduct: { id: string, optionGroups: Array<{ id: string, code: string, options: Array<{ id: string, code: string }> }> } }; +export type AddOptionGroupToProductMutation = { + addOptionGroupToProduct: { + id: string; + optionGroups: Array<{ id: string; code: string; options: Array<{ id: string; code: string }> }>; + }; +}; export type CreateShippingMethodMutationVariables = Exact<{ - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }>; - -export type CreateShippingMethodMutation = { createShippingMethod: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } }; +export type CreateShippingMethodMutation = { + createShippingMethod: { + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; + }; +}; export type SettlePaymentMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type SettlePaymentMutation = { settlePayment: { errorCode: ErrorCode, message: string } | { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } }; + id: Scalars['ID']; +}>; + +export type SettlePaymentMutation = { + settlePayment: + | { errorCode: ErrorCode; message: string } + | { + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; paymentErrorMessage: string }; +}; export type GetOrderHistoryQueryVariables = Exact<{ - id: Scalars['ID']; - options?: InputMaybe; + id: Scalars['ID']; + options?: InputMaybe; }>; - -export type GetOrderHistoryQuery = { order?: { id: string, history: { totalItems: number, items: Array<{ id: string, type: HistoryEntryType, data: any, administrator?: { id: string } | null }> } } | null }; +export type GetOrderHistoryQuery = { + order?: { + id: string; + history: { + totalItems: number; + items: Array<{ + id: string; + type: HistoryEntryType; + data: any; + administrator?: { id: string } | null; + }>; + }; + } | null; +}; export type UpdateShippingMethodMutationVariables = Exact<{ - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }>; - -export type UpdateShippingMethodMutation = { updateShippingMethod: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } }; +export type UpdateShippingMethodMutation = { + updateShippingMethod: { + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; + }; +}; export type GetAssetQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetAssetQuery = { + asset?: { + width: number; + height: number; + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; +}; -export type GetAssetQuery = { asset?: { width: number, height: number, id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null }; - -export type AssetFragFirstFragment = { id: string, preview: string }; +export type AssetFragFirstFragment = { id: string; preview: string }; export type GetAssetFragmentFirstQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetAssetFragmentFirstQuery = { asset?: { id: string; preview: string } | null }; -export type GetAssetFragmentFirstQuery = { asset?: { id: string, preview: string } | null }; - -export type AssetWithTagsAndFocalPointFragment = { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string, focalPoint?: { x: number, y: number } | null, tags: Array<{ id: string, value: string }> }; +export type AssetWithTagsAndFocalPointFragment = { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + focalPoint?: { x: number; y: number } | null; + tags: Array<{ id: string; value: string }>; +}; export type CreateAssetsMutationVariables = Exact<{ - input: Array | CreateAssetInput; -}>; - - -export type CreateAssetsMutation = { createAssets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string, focalPoint?: { x: number, y: number } | null, tags: Array<{ id: string, value: string }> } | { message: string, fileName: string, mimeType: string }> }; + input: Array | CreateAssetInput; +}>; + +export type CreateAssetsMutation = { + createAssets: Array< + | { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + focalPoint?: { x: number; y: number } | null; + tags: Array<{ id: string; value: string }>; + } + | { message: string; fileName: string; mimeType: string } + >; +}; export type DeleteShippingMethodMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteShippingMethodMutation = { deleteShippingMethod: { result: DeletionResult, message?: string | null } }; +export type DeleteShippingMethodMutation = { + deleteShippingMethod: { result: DeletionResult; message?: string | null }; +}; export type AssignPromotionToChannelMutationVariables = Exact<{ - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }>; - -export type AssignPromotionToChannelMutation = { assignPromotionsToChannel: Array<{ id: string, name: string }> }; +export type AssignPromotionToChannelMutation = { + assignPromotionsToChannel: Array<{ id: string; name: string }>; +}; export type RemovePromotionFromChannelMutationVariables = Exact<{ - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }>; - -export type RemovePromotionFromChannelMutation = { removePromotionsFromChannel: Array<{ id: string, name: string }> }; +export type RemovePromotionFromChannelMutation = { + removePromotionsFromChannel: Array<{ id: string; name: string }>; +}; export type GetTaxRatesQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetTaxRatesQuery = { taxRates: { totalItems: number, items: Array<{ id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null }> } }; - -export type GetShippingMethodListQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetShippingMethodListQuery = { shippingMethods: { totalItems: number, items: Array<{ id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } }> } }; - -export type GetCollectionsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetCollectionsQuery = { collections: { items: Array<{ id: string, name: string, position: number, parent?: { id: string, name: string } | null }> } }; + options?: InputMaybe; +}>; + +export type GetTaxRatesQuery = { + taxRates: { + totalItems: number; + items: Array<{ + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; + }>; + }; +}; + +export type GetShippingMethodListQueryVariables = Exact<{ [key: string]: never }>; + +export type GetShippingMethodListQuery = { + shippingMethods: { + totalItems: number; + items: Array<{ + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; + }>; + }; +}; + +export type GetCollectionsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetCollectionsQuery = { + collections: { + items: Array<{ + id: string; + name: string; + position: number; + parent?: { id: string; name: string } | null; + }>; + }; +}; export type TransitionPaymentToStateMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }>; - -export type TransitionPaymentToStateMutation = { transitionPaymentToState: { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string, transitionError: string } }; +export type TransitionPaymentToStateMutation = { + transitionPaymentToState: + | { + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + } + | { errorCode: ErrorCode; message: string; transitionError: string }; +}; export type GetProductVariantListQueryVariables = Exact<{ - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }>; - -export type GetProductVariantListQuery = { productVariants: { totalItems: number, items: Array<{ id: string, name: string, sku: string, price: number, priceWithTax: number }> } }; +export type GetProductVariantListQuery = { + productVariants: { + totalItems: number; + items: Array<{ id: string; name: string; sku: string; price: number; priceWithTax: number }>; + }; +}; export type DeletePromotionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeletePromotionMutation = { deletePromotion: { result: DeletionResult } }; -export type GetChannelsQueryVariables = Exact<{ [key: string]: never; }>; +export type GetChannelsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetChannelsQuery = { channels: Array<{ id: string, code: string, token: string }> }; +export type GetChannelsQuery = { channels: Array<{ id: string; code: string; token: string }> }; export type UpdateAdministratorMutationVariables = Exact<{ - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }>; - -export type UpdateAdministratorMutation = { updateAdministrator: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } }; +export type UpdateAdministratorMutation = { + updateAdministrator: { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; + }; +}; export type CancelJobMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type CancelJobMutation = { cancelJob: { id: string, state: JobState, isSettled: boolean, settledAt?: any | null } }; +export type CancelJobMutation = { + cancelJob: { id: string; state: JobState; isSettled: boolean; settledAt?: any | null }; +}; export type UpdateOptionGroupMutationVariables = Exact<{ - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }>; - export type UpdateOptionGroupMutation = { updateProductOptionGroup: { id: string } }; -export type GetFulfillmentHandlersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetFulfillmentHandlersQuery = { fulfillmentHandlers: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; - -export type OrderWithModificationsFragment = { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string }, items: Array<{ id: string, createdAt: any, updatedAt: any, cancelled: boolean, unitPrice: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, orderItems?: Array<{ id: string }> | null, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null }; +export type GetFulfillmentHandlersQueryVariables = Exact<{ [key: string]: never }>; + +export type GetFulfillmentHandlersQuery = { + fulfillmentHandlers: Array<{ + code: string; + description: string; + args: Array<{ + name: string; + type: string; + description?: string | null; + label?: string | null; + ui?: any | null; + }>; + }>; +}; + +export type OrderWithModificationsFragment = { + id: string; + state: string; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + discountedLinePriceWithTax: number; + proratedLinePriceWithTax: number; + discounts: Array<{ description: string; amountWithTax: number }>; + productVariant: { id: string; name: string }; + items: Array<{ id: string; createdAt: any; updatedAt: any; cancelled: boolean; unitPrice: number }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + taxRate: number; + }>; + payments?: Array<{ + id: string; + transactionId?: string | null; + state: string; + amount: number; + method: string; + metadata?: any | null; + refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; + }> | null; + modifications: Array<{ + id: string; + note: string; + priceChange: number; + isSettled: boolean; + orderItems?: Array<{ id: string }> | null; + surcharges?: Array<{ id: string }> | null; + payment?: { id: string; state: string; amount: number; method: string } | null; + refund?: { id: string; state: string; total: number; paymentId: string } | null; + }>; + promotions: Array<{ id: string; name: string; couponCode?: string | null }>; + discounts: Array<{ + description: string; + adjustmentSource: string; + amount: number; + amountWithTax: number; + }>; + shippingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + billingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; +}; export type GetOrderWithModificationsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetOrderWithModificationsQuery = { order?: { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string }, items: Array<{ id: string, createdAt: any, updatedAt: any, cancelled: boolean, unitPrice: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, orderItems?: Array<{ id: string }> | null, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } | null }; + id: Scalars['ID']; +}>; + +export type GetOrderWithModificationsQuery = { + order?: { + id: string; + state: string; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + discountedLinePriceWithTax: number; + proratedLinePriceWithTax: number; + discounts: Array<{ description: string; amountWithTax: number }>; + productVariant: { id: string; name: string }; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + cancelled: boolean; + unitPrice: number; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + taxRate: number; + }>; + payments?: Array<{ + id: string; + transactionId?: string | null; + state: string; + amount: number; + method: string; + metadata?: any | null; + refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; + }> | null; + modifications: Array<{ + id: string; + note: string; + priceChange: number; + isSettled: boolean; + orderItems?: Array<{ id: string }> | null; + surcharges?: Array<{ id: string }> | null; + payment?: { id: string; state: string; amount: number; method: string } | null; + refund?: { id: string; state: string; total: number; paymentId: string } | null; + }>; + promotions: Array<{ id: string; name: string; couponCode?: string | null }>; + discounts: Array<{ + description: string; + adjustmentSource: string; + amount: number; + amountWithTax: number; + }>; + shippingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + billingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + } | null; +}; export type ModifyOrderMutationVariables = Exact<{ - input: ModifyOrderInput; -}>; - - -export type ModifyOrderMutation = { modifyOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string }, items: Array<{ id: string, createdAt: any, updatedAt: any, cancelled: boolean, unitPrice: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, orderItems?: Array<{ id: string }> | null, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + input: ModifyOrderInput; +}>; + +export type ModifyOrderMutation = { + modifyOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + discountedLinePriceWithTax: number; + proratedLinePriceWithTax: number; + discounts: Array<{ description: string; amountWithTax: number }>; + productVariant: { id: string; name: string }; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + cancelled: boolean; + unitPrice: number; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + taxRate: number; + }>; + payments?: Array<{ + id: string; + transactionId?: string | null; + state: string; + amount: number; + method: string; + metadata?: any | null; + refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; + }> | null; + modifications: Array<{ + id: string; + note: string; + priceChange: number; + isSettled: boolean; + orderItems?: Array<{ id: string }> | null; + surcharges?: Array<{ id: string }> | null; + payment?: { id: string; state: string; amount: number; method: string } | null; + refund?: { id: string; state: string; total: number; paymentId: string } | null; + }>; + promotions: Array<{ id: string; name: string; couponCode?: string | null }>; + discounts: Array<{ + description: string; + adjustmentSource: string; + amount: number; + amountWithTax: number; + }>; + shippingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + billingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type AddManualPaymentMutationVariables = Exact<{ - input: ManualPaymentInput; -}>; - - -export type AddManualPaymentMutation = { addManualPaymentToOrder: { errorCode: ErrorCode, message: string } | { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string }, items: Array<{ id: string, createdAt: any, updatedAt: any, cancelled: boolean, unitPrice: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, orderItems?: Array<{ id: string }> | null, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } }; - -export type DeletePromotionAdHoc1MutationVariables = Exact<{ [key: string]: never; }>; - + input: ManualPaymentInput; +}>; + +export type AddManualPaymentMutation = { + addManualPaymentToOrder: + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + discountedLinePriceWithTax: number; + proratedLinePriceWithTax: number; + discounts: Array<{ description: string; amountWithTax: number }>; + productVariant: { id: string; name: string }; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + cancelled: boolean; + unitPrice: number; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + taxRate: number; + }>; + payments?: Array<{ + id: string; + transactionId?: string | null; + state: string; + amount: number; + method: string; + metadata?: any | null; + refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; + }> | null; + modifications: Array<{ + id: string; + note: string; + priceChange: number; + isSettled: boolean; + orderItems?: Array<{ id: string }> | null; + surcharges?: Array<{ id: string }> | null; + payment?: { id: string; state: string; amount: number; method: string } | null; + refund?: { id: string; state: string; total: number; paymentId: string } | null; + }>; + promotions: Array<{ id: string; name: string; couponCode?: string | null }>; + discounts: Array<{ + description: string; + adjustmentSource: string; + amount: number; + amountWithTax: number; + }>; + shippingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + billingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + }; +}; + +export type DeletePromotionAdHoc1MutationVariables = Exact<{ [key: string]: never }>; export type DeletePromotionAdHoc1Mutation = { deletePromotion: { result: DeletionResult } }; export type GetTaxRateListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetTaxRateListQuery = { taxRates: { totalItems: number, items: Array<{ id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string } }> } }; +export type GetTaxRateListQuery = { + taxRates: { + totalItems: number; + items: Array<{ + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + }>; + }; +}; export type GetOrderWithLineCalculatedPropsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetOrderWithLineCalculatedPropsQuery = { + order?: { id: string; lines: Array<{ id: string; linePriceWithTax: number; quantity: number }> } | null; +}; -export type GetOrderWithLineCalculatedPropsQuery = { order?: { id: string, lines: Array<{ id: string, linePriceWithTax: number, quantity: number }> } | null }; - -export type GetOrderListFulfillmentsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetOrderListFulfillmentsQueryVariables = Exact<{ [key: string]: never }>; -export type GetOrderListFulfillmentsQuery = { orders: { items: Array<{ id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string }> | null }> } }; +export type GetOrderListFulfillmentsQuery = { + orders: { + items: Array<{ + id: string; + state: string; + fulfillments?: Array<{ + id: string; + state: string; + nextStates: Array; + method: string; + }> | null; + }>; + }; +}; export type GetOrderFulfillmentItemsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetOrderFulfillmentItemsQuery = { order?: { id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, orderItems: Array<{ id: string }> }> | null } | null }; - -export type RefundFragment = { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null }; + id: Scalars['ID']; +}>; + +export type GetOrderFulfillmentItemsQuery = { + order?: { + id: string; + state: string; + fulfillments?: Array<{ + id: string; + state: string; + nextStates: Array; + method: string; + trackingCode?: string | null; + orderItems: Array<{ id: string }>; + }> | null; + } | null; +}; + +export type RefundFragment = { + id: string; + state: string; + items: number; + transactionId?: string | null; + shipping: number; + total: number; + metadata?: any | null; +}; export type RefundOrderMutationVariables = Exact<{ - input: RefundOrderInput; -}>; - - -export type RefundOrderMutation = { refundOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + input: RefundOrderInput; +}>; + +export type RefundOrderMutation = { + refundOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + items: number; + transactionId?: string | null; + shipping: number; + total: number; + metadata?: any | null; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type SettleRefundMutationVariables = Exact<{ - input: SettleRefundInput; + input: SettleRefundInput; }>; - -export type SettleRefundMutation = { settleRefund: { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null } | { errorCode: ErrorCode, message: string } }; +export type SettleRefundMutation = { + settleRefund: + | { + id: string; + state: string; + items: number; + transactionId?: string | null; + shipping: number; + total: number; + metadata?: any | null; + } + | { errorCode: ErrorCode; message: string }; +}; export type AddNoteToOrderMutationVariables = Exact<{ - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }>; - export type AddNoteToOrderMutation = { addNoteToOrder: { id: string } }; export type UpdateOrderNoteMutationVariables = Exact<{ - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }>; - -export type UpdateOrderNoteMutation = { updateOrderNote: { id: string, data: any, isPublic: boolean } }; +export type UpdateOrderNoteMutation = { updateOrderNote: { id: string; data: any; isPublic: boolean } }; export type DeleteOrderNoteMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteOrderNoteMutation = { deleteOrderNote: { result: DeletionResult, message?: string | null } }; +export type DeleteOrderNoteMutation = { + deleteOrderNote: { result: DeletionResult; message?: string | null }; +}; export type GetOrderWithPaymentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOrderWithPaymentsQuery = { order?: { id: string, payments?: Array<{ id: string, errorMessage?: string | null, metadata?: any | null, refunds: Array<{ id: string, total: number }> }> | null } | null }; +export type GetOrderWithPaymentsQuery = { + order?: { + id: string; + payments?: Array<{ + id: string; + errorMessage?: string | null; + metadata?: any | null; + refunds: Array<{ id: string; total: number }>; + }> | null; + } | null; +}; export type GetOrderLineFulfillmentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOrderLineFulfillmentsQuery = { order?: { id: string, lines: Array<{ id: string, fulfillments?: Array<{ id: string, state: string, summary: Array<{ quantity: number, orderLine: { id: string } }> }> | null }> } | null }; +export type GetOrderLineFulfillmentsQuery = { + order?: { + id: string; + lines: Array<{ + id: string; + fulfillments?: Array<{ + id: string; + state: string; + summary: Array<{ quantity: number; orderLine: { id: string } }>; + }> | null; + }>; + } | null; +}; export type GetOrderListWithQtyQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetOrderListWithQtyQuery = { orders: { items: Array<{ id: string, code: string, totalQuantity: number, lines: Array<{ id: string, quantity: number }> }> } }; +export type GetOrderListWithQtyQuery = { + orders: { + items: Array<{ + id: string; + code: string; + totalQuantity: number; + lines: Array<{ id: string; quantity: number }>; + }>; + }; +}; export type CancelPaymentMutationVariables = Exact<{ - paymentId: Scalars['ID']; -}>; - - -export type CancelPaymentMutation = { cancelPayment: { errorCode: ErrorCode, message: string, paymentErrorMessage: string } | { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string, transitionError: string } }; - -export type PaymentMethodFragment = { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } }; + paymentId: Scalars['ID']; +}>; + +export type CancelPaymentMutation = { + cancelPayment: + | { errorCode: ErrorCode; message: string; paymentErrorMessage: string } + | { + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + } + | { errorCode: ErrorCode; message: string; transitionError: string }; +}; + +export type PaymentMethodFragment = { + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; +}; export type CreatePaymentMethodMutationVariables = Exact<{ - input: CreatePaymentMethodInput; + input: CreatePaymentMethodInput; }>; - -export type CreatePaymentMethodMutation = { createPaymentMethod: { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } } }; +export type CreatePaymentMethodMutation = { + createPaymentMethod: { + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; + }; +}; export type UpdatePaymentMethodMutationVariables = Exact<{ - input: UpdatePaymentMethodInput; + input: UpdatePaymentMethodInput; }>; +export type UpdatePaymentMethodMutation = { + updatePaymentMethod: { + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; + }; +}; -export type UpdatePaymentMethodMutation = { updatePaymentMethod: { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } } }; - -export type GetPaymentMethodHandlersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetPaymentMethodHandlersQuery = { paymentMethodHandlers: Array<{ code: string, args: Array<{ name: string, type: string }> }> }; +export type GetPaymentMethodHandlersQueryVariables = Exact<{ [key: string]: never }>; -export type GetPaymentMethodCheckersQueryVariables = Exact<{ [key: string]: never; }>; +export type GetPaymentMethodHandlersQuery = { + paymentMethodHandlers: Array<{ code: string; args: Array<{ name: string; type: string }> }>; +}; +export type GetPaymentMethodCheckersQueryVariables = Exact<{ [key: string]: never }>; -export type GetPaymentMethodCheckersQuery = { paymentMethodEligibilityCheckers: Array<{ code: string, args: Array<{ name: string, type: string }> }> }; +export type GetPaymentMethodCheckersQuery = { + paymentMethodEligibilityCheckers: Array<{ code: string; args: Array<{ name: string; type: string }> }>; +}; export type GetPaymentMethodQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetPaymentMethodQuery = { paymentMethod?: { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } } | null }; +export type GetPaymentMethodQuery = { + paymentMethod?: { + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; + } | null; +}; export type GetPaymentMethodListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetPaymentMethodListQuery = { paymentMethods: { totalItems: number, items: Array<{ id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } }> } }; +export type GetPaymentMethodListQuery = { + paymentMethods: { + totalItems: number; + items: Array<{ + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; + }>; + }; +}; export type DeletePaymentMethodMutationVariables = Exact<{ - id: Scalars['ID']; - force?: InputMaybe; + id: Scalars['ID']; + force?: InputMaybe; }>; - -export type DeletePaymentMethodMutation = { deletePaymentMethod: { message?: string | null, result: DeletionResult } }; +export type DeletePaymentMethodMutation = { + deletePaymentMethod: { message?: string | null; result: DeletionResult }; +}; export type AddManualPayment2MutationVariables = Exact<{ - input: ManualPaymentInput; -}>; - - -export type AddManualPayment2Mutation = { addManualPaymentToOrder: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + input: ManualPaymentInput; +}>; + +export type AddManualPayment2Mutation = { + addManualPaymentToOrder: + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type GetProductOptionGroupQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductOptionGroupQuery = { productOptionGroup?: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }> } | null }; +export type GetProductOptionGroupQuery = { + productOptionGroup?: { + id: string; + code: string; + name: string; + options: Array<{ id: string; code: string; name: string }>; + } | null; +}; export type UpdateProductOptionGroupMutationVariables = Exact<{ - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }>; - -export type UpdateProductOptionGroupMutation = { updateProductOptionGroup: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type UpdateProductOptionGroupMutation = { + updateProductOptionGroup: { + id: string; + code: string; + name: string; + options: Array<{ id: string; code: string; name: string }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type CreateProductOptionMutationVariables = Exact<{ - input: CreateProductOptionInput; + input: CreateProductOptionInput; }>; - -export type CreateProductOptionMutation = { createProductOption: { id: string, code: string, name: string, groupId: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type CreateProductOptionMutation = { + createProductOption: { + id: string; + code: string; + name: string; + groupId: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type UpdateProductOptionMutationVariables = Exact<{ - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }>; - -export type UpdateProductOptionMutation = { updateProductOption: { id: string, code: string, name: string, groupId: string } }; +export type UpdateProductOptionMutation = { + updateProductOption: { id: string; code: string; name: string; groupId: string }; +}; export type DeleteProductOptionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteProductOptionMutation = { deleteProductOption: { result: DeletionResult, message?: string | null } }; +export type DeleteProductOptionMutation = { + deleteProductOption: { result: DeletionResult; message?: string | null }; +}; export type RemoveOptionGroupFromProductMutationVariables = Exact<{ - productId: Scalars['ID']; - optionGroupId: Scalars['ID']; + productId: Scalars['ID']; + optionGroupId: Scalars['ID']; }>; - -export type RemoveOptionGroupFromProductMutation = { removeOptionGroupFromProduct: { id: string, optionGroups: Array<{ id: string, code: string, options: Array<{ id: string, code: string }> }> } | { errorCode: ErrorCode, message: string, optionGroupCode: string, productVariantCount: number } }; +export type RemoveOptionGroupFromProductMutation = { + removeOptionGroupFromProduct: + | { + id: string; + optionGroups: Array<{ id: string; code: string; options: Array<{ id: string; code: string }> }>; + } + | { errorCode: ErrorCode; message: string; optionGroupCode: string; productVariantCount: number }; +}; export type GetOptionGroupQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOptionGroupQuery = { productOptionGroup?: { id: string, code: string, options: Array<{ id: string, code: string }> } | null }; +export type GetOptionGroupQuery = { + productOptionGroup?: { id: string; code: string; options: Array<{ id: string; code: string }> } | null; +}; export type GetProductVariantQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductVariantQuery = { productVariant?: { id: string, name: string } | null }; +export type GetProductVariantQuery = { productVariant?: { id: string; name: string } | null }; export type GetProductWithVariantListQueryVariables = Exact<{ - id?: InputMaybe; - variantListOptions?: InputMaybe; -}>; - - -export type GetProductWithVariantListQuery = { product?: { id: string, variantList: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }> } } | null }; + id?: InputMaybe; + variantListOptions?: InputMaybe; +}>; + +export type GetProductWithVariantListQuery = { + product?: { + id: string; + variantList: { + totalItems: number; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + }; + } | null; +}; export type GetPromotionListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetPromotionListQuery = { promotions: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> }> } }; + options?: InputMaybe; +}>; + +export type GetPromotionListQuery = { + promotions: { + totalItems: number; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + }>; + }; +}; export type GetPromotionQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetPromotionQuery = { promotion?: { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> } | null }; +export type GetPromotionQuery = { + promotion?: { + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + } | null; +}; export type UpdatePromotionMutationVariables = Exact<{ - input: UpdatePromotionInput; -}>; - - -export type UpdatePromotionMutation = { updatePromotion: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> } }; - -export type ConfigurableOperationDefFragment = { code: string, description: string, args: Array<{ name: string, type: string, ui?: any | null }> }; - -export type GetAdjustmentOperationsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetAdjustmentOperationsQuery = { promotionActions: Array<{ code: string, description: string, args: Array<{ name: string, type: string, ui?: any | null }> }>, promotionConditions: Array<{ code: string, description: string, args: Array<{ name: string, type: string, ui?: any | null }> }> }; + input: UpdatePromotionInput; +}>; + +export type UpdatePromotionMutation = { + updatePromotion: + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + }; +}; + +export type ConfigurableOperationDefFragment = { + code: string; + description: string; + args: Array<{ name: string; type: string; ui?: any | null }>; +}; + +export type GetAdjustmentOperationsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetAdjustmentOperationsQuery = { + promotionActions: Array<{ + code: string; + description: string; + args: Array<{ name: string; type: string; ui?: any | null }>; + }>; + promotionConditions: Array<{ + code: string; + description: string; + args: Array<{ name: string; type: string; ui?: any | null }>; + }>; +}; export type GetRolesQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetRolesQuery = { roles: { totalItems: number, items: Array<{ id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> }> } }; +export type GetRolesQuery = { + roles: { + totalItems: number; + items: Array<{ + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; + }>; + }; +}; export type GetRoleQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetRoleQuery = { role?: { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> } | null }; +export type GetRoleQuery = { + role?: { + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; + } | null; +}; export type DeleteRoleMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type DeleteRoleMutation = { deleteRole: { result: DeletionResult; message?: string | null } }; -export type DeleteRoleMutation = { deleteRole: { result: DeletionResult, message?: string | null } }; - -export type LogoutMutationVariables = Exact<{ [key: string]: never; }>; - +export type LogoutMutationVariables = Exact<{ [key: string]: never }>; export type LogoutMutation = { logout: { success: boolean } }; export type GetShippingMethodQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetShippingMethodQuery = { shippingMethod?: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } | null }; - -export type GetEligibilityCheckersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetEligibilityCheckersQuery = { shippingEligibilityCheckers: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; - -export type GetCalculatorsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetCalculatorsQuery = { shippingCalculators: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; + id: Scalars['ID']; +}>; + +export type GetShippingMethodQuery = { + shippingMethod?: { + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; + } | null; +}; + +export type GetEligibilityCheckersQueryVariables = Exact<{ [key: string]: never }>; + +export type GetEligibilityCheckersQuery = { + shippingEligibilityCheckers: Array<{ + code: string; + description: string; + args: Array<{ + name: string; + type: string; + description?: string | null; + label?: string | null; + ui?: any | null; + }>; + }>; +}; + +export type GetCalculatorsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetCalculatorsQuery = { + shippingCalculators: Array<{ + code: string; + description: string; + args: Array<{ + name: string; + type: string; + description?: string | null; + label?: string | null; + ui?: any | null; + }>; + }>; +}; export type TestShippingMethodQueryVariables = Exact<{ - input: TestShippingMethodInput; + input: TestShippingMethodInput; }>; - -export type TestShippingMethodQuery = { testShippingMethod: { eligible: boolean, quote?: { price: number, priceWithTax: number, metadata?: any | null } | null } }; +export type TestShippingMethodQuery = { + testShippingMethod: { + eligible: boolean; + quote?: { price: number; priceWithTax: number; metadata?: any | null } | null; + }; +}; export type TestEligibleMethodsQueryVariables = Exact<{ - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }>; +export type TestEligibleMethodsQuery = { + testEligibleShippingMethods: Array<{ + id: string; + name: string; + description: string; + price: number; + priceWithTax: number; + metadata?: any | null; + }>; +}; -export type TestEligibleMethodsQuery = { testEligibleShippingMethods: Array<{ id: string, name: string, description: string, price: number, priceWithTax: number, metadata?: any | null }> }; - -export type GetMeQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetMeQueryVariables = Exact<{ [key: string]: never }>; export type GetMeQuery = { me?: { identifier: string } | null }; -export type GetProductsTake3QueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProductsTake3QueryVariables = Exact<{ [key: string]: never }>; export type GetProductsTake3Query = { products: { items: Array<{ id: string }> } }; -export type GetProduct1QueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProduct1QueryVariables = Exact<{ [key: string]: never }>; export type GetProduct1Query = { product?: { id: string } | null }; -export type GetProduct2VariantsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProduct2VariantsQueryVariables = Exact<{ [key: string]: never }>; -export type GetProduct2VariantsQuery = { product?: { id: string, variants: Array<{ id: string, name: string }> } | null }; - -export type GetProductCollectionQueryVariables = Exact<{ [key: string]: never; }>; +export type GetProduct2VariantsQuery = { + product?: { id: string; variants: Array<{ id: string; name: string }> } | null; +}; +export type GetProductCollectionQueryVariables = Exact<{ [key: string]: never }>; -export type GetProductCollectionQuery = { product?: { collections: Array<{ id: string, name: string }> } | null }; +export type GetProductCollectionQuery = { + product?: { collections: Array<{ id: string; name: string }> } | null; +}; export type GetCollectionShopQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; - -export type GetCollectionShopQuery = { collection?: { id: string, name: string, slug: string, description: string, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string }> | null } | null }; +export type GetCollectionShopQuery = { + collection?: { + id: string; + name: string; + slug: string; + description: string; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string }> | null; + } | null; +}; export type DisableProductMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DisableProductMutation = { updateProduct: { id: string } }; export type GetCollectionVariantsQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; +export type GetCollectionVariantsQuery = { + collection?: { id: string; productVariants: { items: Array<{ id: string; name: string }> } } | null; +}; -export type GetCollectionVariantsQuery = { collection?: { id: string, productVariants: { items: Array<{ id: string, name: string }> } } | null }; - -export type GetCollectionListQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCollectionListQueryVariables = Exact<{ [key: string]: never }>; -export type GetCollectionListQuery = { collections: { items: Array<{ id: string, name: string }> } }; +export type GetCollectionListQuery = { collections: { items: Array<{ id: string; name: string }> } }; export type GetProductFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductFacetValuesQuery = { product?: { id: string, name: string, facetValues: Array<{ name: string }> } | null }; +export type GetProductFacetValuesQuery = { + product?: { id: string; name: string; facetValues: Array<{ name: string }> } | null; +}; export type GetVariantFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetVariantFacetValuesQuery = { + product?: { + id: string; + name: string; + variants: Array<{ id: string; facetValues: Array<{ name: string }> }>; + } | null; +}; -export type GetVariantFacetValuesQuery = { product?: { id: string, name: string, variants: Array<{ id: string, facetValues: Array<{ name: string }> }> } | null }; - -export type GetCustomerIdsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCustomerIdsQueryVariables = Exact<{ [key: string]: never }>; export type GetCustomerIdsQuery = { customers: { items: Array<{ id: string }> } }; export type UpdateStockMutationVariables = Exact<{ - input: Array | UpdateProductVariantInput; -}>; - - -export type UpdateStockMutation = { updateProductVariants: Array<{ id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } } | null> }; + input: Array | UpdateProductVariantInput; +}>; + +export type UpdateStockMutation = { + updateProductVariants: Array<{ + id: string; + stockOnHand: number; + stockAllocated: number; + stockMovements: { + totalItems: number; + items: Array< + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + >; + }; + } | null>; +}; export type TransitionFulfillmentToStateMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }>; - -export type TransitionFulfillmentToStateMutation = { transitionFulfillmentToState: { id: string, state: string, nextStates: Array, createdAt: any } | { errorCode: ErrorCode, message: string, transitionError: string } }; +export type TransitionFulfillmentToStateMutation = { + transitionFulfillmentToState: + | { id: string; state: string; nextStates: Array; createdAt: any } + | { errorCode: ErrorCode; message: string; transitionError: string }; +}; export type UpdateOrderCustomFieldsMutationVariables = Exact<{ - input: UpdateOrderInput; + input: UpdateOrderInput; }>; - export type UpdateOrderCustomFieldsMutation = { setOrderCustomFields?: { id: string } | null }; export type GetTagListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetTagListQuery = { tags: { totalItems: number, items: Array<{ id: string, value: string }> } }; +export type GetTagListQuery = { tags: { totalItems: number; items: Array<{ id: string; value: string }> } }; export type GetTagQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetTagQuery = { tag: { id: string, value: string } }; +export type GetTagQuery = { tag: { id: string; value: string } }; export type CreateTagMutationVariables = Exact<{ - input: CreateTagInput; + input: CreateTagInput; }>; - -export type CreateTagMutation = { createTag: { id: string, value: string } }; +export type CreateTagMutation = { createTag: { id: string; value: string } }; export type UpdateTagMutationVariables = Exact<{ - input: UpdateTagInput; + input: UpdateTagInput; }>; - -export type UpdateTagMutation = { updateTag: { id: string, value: string } }; +export type UpdateTagMutation = { updateTag: { id: string; value: string } }; export type DeleteTagMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type DeleteTagMutation = { deleteTag: { message?: string | null; result: DeletionResult } }; -export type DeleteTagMutation = { deleteTag: { message?: string | null, result: DeletionResult } }; - -export type GetTaxCategoryListQueryVariables = Exact<{ [key: string]: never; }>; +export type GetTaxCategoryListQueryVariables = Exact<{ [key: string]: never }>; - -export type GetTaxCategoryListQuery = { taxCategories: Array<{ id: string, name: string, isDefault: boolean }> }; +export type GetTaxCategoryListQuery = { + taxCategories: Array<{ id: string; name: string; isDefault: boolean }>; +}; export type GetTaxCategoryQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetTaxCategoryQuery = { taxCategory?: { id: string, name: string, isDefault: boolean } | null }; +export type GetTaxCategoryQuery = { taxCategory?: { id: string; name: string; isDefault: boolean } | null }; export type CreateTaxCategoryMutationVariables = Exact<{ - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }>; - -export type CreateTaxCategoryMutation = { createTaxCategory: { id: string, name: string, isDefault: boolean } }; +export type CreateTaxCategoryMutation = { + createTaxCategory: { id: string; name: string; isDefault: boolean }; +}; export type UpdateTaxCategoryMutationVariables = Exact<{ - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }>; - -export type UpdateTaxCategoryMutation = { updateTaxCategory: { id: string, name: string, isDefault: boolean } }; +export type UpdateTaxCategoryMutation = { + updateTaxCategory: { id: string; name: string; isDefault: boolean }; +}; export type DeleteTaxCategoryMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteTaxCategoryMutation = { deleteTaxCategory: { result: DeletionResult, message?: string | null } }; +export type DeleteTaxCategoryMutation = { + deleteTaxCategory: { result: DeletionResult; message?: string | null }; +}; export type GetTaxRateQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetTaxRateQuery = { taxRate?: { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null } | null }; +export type GetTaxRateQuery = { + taxRate?: { + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; + } | null; +}; export type CreateTaxRateMutationVariables = Exact<{ - input: CreateTaxRateInput; + input: CreateTaxRateInput; }>; - -export type CreateTaxRateMutation = { createTaxRate: { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null } }; +export type CreateTaxRateMutation = { + createTaxRate: { + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; + }; +}; export type DeleteTaxRateMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteTaxRateMutation = { deleteTaxRate: { result: DeletionResult, message?: string | null } }; +export type DeleteTaxRateMutation = { deleteTaxRate: { result: DeletionResult; message?: string | null } }; export type DeleteZoneMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type DeleteZoneMutation = { deleteZone: { result: DeletionResult; message?: string | null } }; -export type DeleteZoneMutation = { deleteZone: { result: DeletionResult, message?: string | null } }; +export type GetZonesQueryVariables = Exact<{ [key: string]: never }>; -export type GetZonesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetZonesQuery = { zones: Array<{ id: string, name: string }> }; +export type GetZonesQuery = { zones: Array<{ id: string; name: string }> }; export type GetZoneQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetZoneQuery = { + zone?: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + } | null; +}; -export type GetZoneQuery = { zone?: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } | null }; - -export type GetActiveChannelWithZoneMembersQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetActiveChannelWithZoneMembersQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveChannelWithZoneMembersQuery = { activeChannel: { id: string, defaultShippingZone?: { id: string, members: Array<{ name: string }> } | null } }; +export type GetActiveChannelWithZoneMembersQuery = { + activeChannel: { + id: string; + defaultShippingZone?: { id: string; members: Array<{ name: string }> } | null; + }; +}; export type CreateZoneMutationVariables = Exact<{ - input: CreateZoneInput; + input: CreateZoneInput; }>; - -export type CreateZoneMutation = { createZone: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } }; +export type CreateZoneMutation = { + createZone: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + }; +}; export type UpdateZoneMutationVariables = Exact<{ - input: UpdateZoneInput; + input: UpdateZoneInput; }>; - -export type UpdateZoneMutation = { updateZone: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } }; +export type UpdateZoneMutation = { + updateZone: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + }; +}; export type AddMembersToZoneMutationVariables = Exact<{ - zoneId: Scalars['ID']; - memberIds: Array | Scalars['ID']; + zoneId: Scalars['ID']; + memberIds: Array | Scalars['ID']; }>; - -export type AddMembersToZoneMutation = { addMembersToZone: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } }; +export type AddMembersToZoneMutation = { + addMembersToZone: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + }; +}; export type RemoveMembersFromZoneMutationVariables = Exact<{ - zoneId: Scalars['ID']; - memberIds: Array | Scalars['ID']; -}>; - - -export type RemoveMembersFromZoneMutation = { removeMembersFromZone: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } }; + zoneId: Scalars['ID']; + memberIds: Array | Scalars['ID']; +}>; + +export type RemoveMembersFromZoneMutation = { + removeMembersFromZone: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + }; +}; diff --git a/packages/core/e2e/graphql/generated-e2e-shop-types.ts b/packages/core/e2e/graphql/generated-e2e-shop-types.ts index 2ae10522c5..a35b931840 100644 --- a/packages/core/e2e/graphql/generated-e2e-shop-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-shop-types.ts @@ -6,197 +6,209 @@ export type MakeOptional = Omit & { [SubKey in K]?: 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; - /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - DateTime: any; - /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSON: any; - /** The `Upload` scalar type represents a file upload. */ - Upload: any; + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ + DateTime: any; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ + JSON: any; + /** The `Upload` scalar type represents a file upload. */ + Upload: any; }; export type ActiveOrderResult = NoActiveOrderError | Order; -export type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError; +export type AddPaymentToOrderResult = + | IneligiblePaymentMethodError + | NoActiveOrderError + | Order + | OrderPaymentStateError + | OrderStateTransitionError + | PaymentDeclinedError + | PaymentFailedError; export type Address = Node & { - city?: Maybe; - company?: Maybe; - country: Country; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - defaultBillingAddress?: Maybe; - defaultShippingAddress?: Maybe; - fullName?: Maybe; - id: Scalars['ID']; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - updatedAt: Scalars['DateTime']; + city?: Maybe; + company?: Maybe; + country: Country; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + defaultBillingAddress?: Maybe; + defaultShippingAddress?: Maybe; + fullName?: Maybe; + id: Scalars['ID']; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + updatedAt: Scalars['DateTime']; }; export type Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION' + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION', } /** Returned when attempting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; +export type ApplyCouponCodeResult = + | CouponCodeExpiredError + | CouponCodeInvalidError + | CouponCodeLimitError + | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO' + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO', } export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - token: Scalars['String']; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + token: Scalars['String']; + updatedAt: Scalars['DateTime']; + vendor?: Maybe; }; export type Collection = Node & { - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; - export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -204,142 +216,142 @@ export type CollectionListOptions = { * by the search, and in what quantity. */ export type CollectionResult = { - collection: Collection; - count: Scalars['Int']; + collection: Collection; + count: Scalars['Int']; }; export type CollectionSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ConfigArg = { - name: Scalars['String']; - value: Scalars['String']; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - defaultValue?: Maybe; - description?: Maybe; - label?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - required: Scalars['Boolean']; - type: Scalars['String']; - ui?: Maybe; + defaultValue?: Maybe; + description?: Maybe; + label?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + required: Scalars['Boolean']; + type: Scalars['String']; + ui?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - /** A JSON stringified representation of the actual value */ - value: Scalars['String']; + name: Scalars['String']; + /** A JSON stringified representation of the actual value */ + value: Scalars['String']; }; export type ConfigurableOperation = { - args: Array; - code: Scalars['String']; + args: Array; + code: Scalars['String']; }; export type ConfigurableOperationDefinition = { - args: Array; - code: Scalars['String']; - description: Scalars['String']; + args: Array; + code: Scalars['String']; + description: Scalars['String']; }; export type ConfigurableOperationInput = { - arguments: Array; - code: Scalars['String']; + arguments: Array; + code: Scalars['String']; }; export type Coordinate = { - x: Scalars['Float']; - y: Scalars['Float']; + x: Scalars['Float']; + y: Scalars['Float']; }; export type Country = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type CountryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CountryTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - limit: Scalars['Int']; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + limit: Scalars['Int']; + message: Scalars['String']; }; export type CreateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode: Scalars['String']; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1: Scalars['String']; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode: Scalars['String']; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1: Scalars['String']; + streetLine2?: InputMaybe; }; export type CreateCustomerInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; /** @@ -349,440 +361,446 @@ export type CreateCustomerInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL' + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL', } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; +}; + +export type CustomFieldConfig = + | BooleanCustomFieldConfig + | DateTimeCustomFieldConfig + | FloatCustomFieldConfig + | IntCustomFieldConfig + | LocaleStringCustomFieldConfig + | RelationCustomFieldConfig + | StringCustomFieldConfig + | TextCustomFieldConfig; export type Customer = Node & { - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; - export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; - export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -790,148 +808,148 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeletionResponse = { - message?: Maybe; - result: DeletionResult; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED' + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED', } export type Discount = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - amountWithTax: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + amountWithTax: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export enum ErrorCode { - ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', - IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', - INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', - INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', - INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', - NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', - PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', - PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', - PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', - PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', - PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', - UNKNOWN_ERROR = 'UNKNOWN_ERROR', - VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', - VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR' + ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', + IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', + INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', + INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', + INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', + NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', + PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', + PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', + PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', + PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', + PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', + VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', + VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Facet = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - values: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + values: Array; }; export type FacetFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type FacetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type FacetSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValue = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - facet: Facet; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + facet: Facet; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; /** @@ -943,8 +961,8 @@ export type FacetValue = Node & { * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }` */ export type FacetValueFilterInput = { - and?: InputMaybe; - or?: InputMaybe>; + and?: InputMaybe; + or?: InputMaybe>; }; /** @@ -952,134 +970,134 @@ export type FacetValueFilterInput = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - method: Scalars['String']; - orderItems: Array; - state: Scalars['String']; - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + method: Scalars['String']; + orderItems: Array; + state: Scalars['String']; + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLineSummary = { - orderLine: OrderLine; - quantity: Scalars['Int']; + orderLine: OrderLine; + quantity: Scalars['Int']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE' + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE', } export type HistoryEntry = Node & { - createdAt: Scalars['DateTime']; - data: Scalars['JSON']; - id: Scalars['ID']; - type: HistoryEntryType; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + data: Scalars['JSON']; + id: Scalars['ID']; + type: HistoryEntryType; + updatedAt: Scalars['DateTime']; }; export type HistoryEntryFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type HistoryEntryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type HistoryEntryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type HistoryEntrySortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export enum HistoryEntryType { - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_MODIFIED = 'ORDER_MODIFIED', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION' + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_MODIFIED = 'ORDER_MODIFIED', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', } /** Operators for filtering on a list of ID fields */ export type IdListOperators = { - inList: Scalars['ID']; + inList: Scalars['ID']; }; /** Operators for filtering on an ID field */ export type IdOperators = { - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; }; /** @@ -1087,8 +1105,8 @@ export type IdOperators = { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type IdentifierChangeTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1096,51 +1114,51 @@ export type IdentifierChangeTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type IdentifierChangeTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */ export type IneligiblePaymentMethodError = ErrorResult & { - eligibilityCheckerMessage?: Maybe; - errorCode: ErrorCode; - message: Scalars['String']; + eligibilityCheckerMessage?: Maybe; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */ export type IneligibleShippingMethodError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add more items to the Order than are available */ export type InsufficientStockError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - order: Order; - quantityAvailable: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + order: Order; + quantityAvailable: Scalars['Int']; }; export type IntCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - authenticationError: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + authenticationError: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1153,595 +1171,573 @@ export type InvalidCredentialsError = ErrorResult & { * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Belarusian */ - be = 'be', - /** Bulgarian */ - bg = 'bg', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Tibetan */ - bo = 'bo', - /** Breton */ - br = 'br', - /** Bosnian */ - bs = 'bs', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Corsican */ - co = 'co', - /** Czech */ - cs = 'cs', - /** Church Slavic */ - cu = 'cu', - /** Welsh */ - cy = 'cy', - /** Danish */ - da = 'da', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Dzongkha */ - dz = 'dz', - /** Ewe */ - ee = 'ee', - /** Greek */ - el = 'el', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Estonian */ - et = 'et', - /** Basque */ - eu = 'eu', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Fulah */ - ff = 'ff', - /** Finnish */ - fi = 'fi', - /** Faroese */ - fo = 'fo', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Western Frisian */ - fy = 'fy', - /** Irish */ - ga = 'ga', - /** Scottish Gaelic */ - gd = 'gd', - /** Galician */ - gl = 'gl', - /** Gujarati */ - gu = 'gu', - /** Manx */ - gv = 'gv', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Croatian */ - hr = 'hr', - /** Haitian Creole */ - ht = 'ht', - /** Hungarian */ - hu = 'hu', - /** Armenian */ - hy = 'hy', - /** Interlingua */ - ia = 'ia', - /** Indonesian */ - id = 'id', - /** Igbo */ - ig = 'ig', - /** Sichuan Yi */ - ii = 'ii', - /** Icelandic */ - is = 'is', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Georgian */ - ka = 'ka', - /** Kikuyu */ - ki = 'ki', - /** Kazakh */ - kk = 'kk', - /** Kalaallisut */ - kl = 'kl', - /** Khmer */ - km = 'km', - /** Kannada */ - kn = 'kn', - /** Korean */ - ko = 'ko', - /** Kashmiri */ - ks = 'ks', - /** Kurdish */ - ku = 'ku', - /** Cornish */ - kw = 'kw', - /** Kyrgyz */ - ky = 'ky', - /** Latin */ - la = 'la', - /** Luxembourgish */ - lb = 'lb', - /** Ganda */ - lg = 'lg', - /** Lingala */ - ln = 'ln', - /** Lao */ - lo = 'lo', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Latvian */ - lv = 'lv', - /** Malagasy */ - mg = 'mg', - /** Maori */ - mi = 'mi', - /** Macedonian */ - mk = 'mk', - /** Malayalam */ - ml = 'ml', - /** Mongolian */ - mn = 'mn', - /** Marathi */ - mr = 'mr', - /** Malay */ - ms = 'ms', - /** Maltese */ - mt = 'mt', - /** Burmese */ - my = 'my', - /** Norwegian Bokmål */ - nb = 'nb', - /** North Ndebele */ - nd = 'nd', - /** Nepali */ - ne = 'ne', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Oromo */ - om = 'om', - /** Odia */ - or = 'or', - /** Ossetic */ - os = 'os', - /** Punjabi */ - pa = 'pa', - /** Polish */ - pl = 'pl', - /** Pashto */ - ps = 'ps', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Quechua */ - qu = 'qu', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Russian */ - ru = 'ru', - /** Kinyarwanda */ - rw = 'rw', - /** Sanskrit */ - sa = 'sa', - /** Sindhi */ - sd = 'sd', - /** Northern Sami */ - se = 'se', - /** Sango */ - sg = 'sg', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Samoan */ - sm = 'sm', - /** Shona */ - sn = 'sn', - /** Somali */ - so = 'so', - /** Albanian */ - sq = 'sq', - /** Serbian */ - sr = 'sr', - /** Southern Sotho */ - st = 'st', - /** Sundanese */ - su = 'su', - /** Swedish */ - sv = 'sv', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Tamil */ - ta = 'ta', - /** Telugu */ - te = 'te', - /** Tajik */ - tg = 'tg', - /** Thai */ - th = 'th', - /** Tigrinya */ - ti = 'ti', - /** Turkmen */ - tk = 'tk', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Tatar */ - tt = 'tt', - /** Uyghur */ - ug = 'ug', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Zulu */ - zu = 'zu' + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Belarusian */ + be = 'be', + /** Bulgarian */ + bg = 'bg', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Tibetan */ + bo = 'bo', + /** Breton */ + br = 'br', + /** Bosnian */ + bs = 'bs', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Corsican */ + co = 'co', + /** Czech */ + cs = 'cs', + /** Church Slavic */ + cu = 'cu', + /** Welsh */ + cy = 'cy', + /** Danish */ + da = 'da', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Dzongkha */ + dz = 'dz', + /** Ewe */ + ee = 'ee', + /** Greek */ + el = 'el', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Estonian */ + et = 'et', + /** Basque */ + eu = 'eu', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Fulah */ + ff = 'ff', + /** Finnish */ + fi = 'fi', + /** Faroese */ + fo = 'fo', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Western Frisian */ + fy = 'fy', + /** Irish */ + ga = 'ga', + /** Scottish Gaelic */ + gd = 'gd', + /** Galician */ + gl = 'gl', + /** Gujarati */ + gu = 'gu', + /** Manx */ + gv = 'gv', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Croatian */ + hr = 'hr', + /** Haitian Creole */ + ht = 'ht', + /** Hungarian */ + hu = 'hu', + /** Armenian */ + hy = 'hy', + /** Interlingua */ + ia = 'ia', + /** Indonesian */ + id = 'id', + /** Igbo */ + ig = 'ig', + /** Sichuan Yi */ + ii = 'ii', + /** Icelandic */ + is = 'is', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Georgian */ + ka = 'ka', + /** Kikuyu */ + ki = 'ki', + /** Kazakh */ + kk = 'kk', + /** Kalaallisut */ + kl = 'kl', + /** Khmer */ + km = 'km', + /** Kannada */ + kn = 'kn', + /** Korean */ + ko = 'ko', + /** Kashmiri */ + ks = 'ks', + /** Kurdish */ + ku = 'ku', + /** Cornish */ + kw = 'kw', + /** Kyrgyz */ + ky = 'ky', + /** Latin */ + la = 'la', + /** Luxembourgish */ + lb = 'lb', + /** Ganda */ + lg = 'lg', + /** Lingala */ + ln = 'ln', + /** Lao */ + lo = 'lo', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Latvian */ + lv = 'lv', + /** Malagasy */ + mg = 'mg', + /** Maori */ + mi = 'mi', + /** Macedonian */ + mk = 'mk', + /** Malayalam */ + ml = 'ml', + /** Mongolian */ + mn = 'mn', + /** Marathi */ + mr = 'mr', + /** Malay */ + ms = 'ms', + /** Maltese */ + mt = 'mt', + /** Burmese */ + my = 'my', + /** Norwegian Bokmål */ + nb = 'nb', + /** North Ndebele */ + nd = 'nd', + /** Nepali */ + ne = 'ne', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Oromo */ + om = 'om', + /** Odia */ + or = 'or', + /** Ossetic */ + os = 'os', + /** Punjabi */ + pa = 'pa', + /** Polish */ + pl = 'pl', + /** Pashto */ + ps = 'ps', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Quechua */ + qu = 'qu', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Russian */ + ru = 'ru', + /** Kinyarwanda */ + rw = 'rw', + /** Sanskrit */ + sa = 'sa', + /** Sindhi */ + sd = 'sd', + /** Northern Sami */ + se = 'se', + /** Sango */ + sg = 'sg', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Samoan */ + sm = 'sm', + /** Shona */ + sn = 'sn', + /** Somali */ + so = 'so', + /** Albanian */ + sq = 'sq', + /** Serbian */ + sr = 'sr', + /** Southern Sotho */ + st = 'st', + /** Sundanese */ + su = 'su', + /** Swedish */ + sv = 'sv', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Tamil */ + ta = 'ta', + /** Telugu */ + te = 'te', + /** Tajik */ + tg = 'tg', + /** Thai */ + th = 'th', + /** Tigrinya */ + ti = 'ti', + /** Turkmen */ + tk = 'tk', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Tatar */ + tt = 'tt', + /** Uyghur */ + ug = 'ug', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Zulu */ + zu = 'zu', } export type LocaleStringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type LocalizedString = { - languageCode: LanguageCode; - value: Scalars['String']; + languageCode: LanguageCode; + value: Scalars['String']; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR' + AND = 'AND', + OR = 'OR', } /** Returned when attempting to register or verify a customer account without a password, when one is required. */ export type MissingPasswordError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Mutation = { - /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ - addItemToOrder: UpdateOrderItemsResult; - /** Add a Payment to the Order */ - addPaymentToOrder: AddPaymentToOrderResult; - /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the active Order */ - applyCouponCode: ApplyCouponCodeResult; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - /** Create a new Customer Address */ - createCustomerAddress: Address; - /** Delete an existing Address */ - deleteCustomerAddress: Success; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - /** End the current authenticated session */ - logout: Success; - /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ - refreshCustomerVerification: RefreshCustomerVerificationResult; - /** - * Register a Customer account with the given credentials. There are three possible registration flows: - * - * _If `authOptions.requireVerification` is set to `true`:_ - * - * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then - * verified and authenticated in one step. - * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then - * verified and authenticated in one step. - * - * _If `authOptions.requireVerification` is set to `false`:_ - * - * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. - */ - registerCustomerAccount: RegisterCustomerAccountResult; - /** Remove all OrderLine from the Order */ - removeAllOrderLines: RemoveOrderItemsResult; - /** Removes the given coupon code from the active Order */ - removeCouponCode?: Maybe; - /** Remove an OrderLine from the Order */ - removeOrderLine: RemoveOrderItemsResult; - /** Requests a password reset email to be sent */ - requestPasswordReset?: Maybe; - /** - * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled - * (as is the default), then the `identifierChangeToken` will be assigned to the current User and - * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email - * that verification token to the Customer, which is then used to verify the change of email address. - */ - requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; - /** Resets a Customer's password based on the provided token */ - resetPassword: ResetPasswordResult; - /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ - setCustomerForOrder: SetCustomerForOrderResult; - /** Sets the billing address for this order */ - setOrderBillingAddress: ActiveOrderResult; - /** Allows any custom fields to be set for the active order */ - setOrderCustomFields: ActiveOrderResult; - /** Sets the shipping address for this order */ - setOrderShippingAddress: ActiveOrderResult; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Add a Payment to the Order */ + addPaymentToOrder: AddPaymentToOrderResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** + * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled + * (as is the default), then the `identifierChangeToken` will be assigned to the current User and + * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email + * that verification token to the Customer, which is then used to verify the change of email address. + */ + requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder: SetCustomerForOrderResult; + /** Sets the billing address for this order */ + setOrderBillingAddress: ActiveOrderResult; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields: ActiveOrderResult; + /** Sets the shipping address for this order */ + setOrderShippingAddress: ActiveOrderResult; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; }; - export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; - export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; - export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; - export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; - export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; - export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; - export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; - export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; - export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; - export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }; - export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; - export type MutationRequestUpdateCustomerEmailAddressArgs = { - newEmailAddress: Scalars['String']; - password: Scalars['String']; + newEmailAddress: Scalars['String']; + password: Scalars['String']; }; - export type MutationResetPasswordArgs = { - password: Scalars['String']; - token: Scalars['String']; + password: Scalars['String']; + token: Scalars['String']; }; - export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; - export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; - export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; - export type MutationTransitionOrderToStateArgs = { - state: Scalars['String']; + state: Scalars['String']; }; - export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; - export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; - export type MutationUpdateCustomerEmailAddressArgs = { - token: Scalars['String']; + token: Scalars['String']; }; - export type MutationUpdateCustomerPasswordArgs = { - currentPassword: Scalars['String']; - newPassword: Scalars['String']; + currentPassword: Scalars['String']; + newPassword: Scalars['String']; }; - export type MutationVerifyCustomerAccountArgs = { - password?: InputMaybe; - token: Scalars['String']; + password?: InputMaybe; + token: Scalars['String']; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError; +export type NativeAuthenticationResult = + | CurrentUser + | InvalidCredentialsError + | NativeAuthStrategyError + | NotVerifiedError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1749,12 +1745,12 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** @@ -1762,281 +1758,280 @@ export type Node = { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['Int']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Int']; - state: Scalars['String']; - /** - * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level - * discounts which have been prorated (proportionally distributed) amongst the OrderItems. - * To get a total of all OrderLines which does not account for prorated discounts, use the - * sum of `OrderLine.discountedLinePrice` values. - */ - subTotal: Scalars['Int']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Int']; - /** - * Surcharges are arbitrary modifications to the Order total which are neither - * ProductVariants nor discounts resulting from applied Promotions. For example, - * one-off discounts based on customer interaction, or surcharges based on payment - * methods. - */ - surcharges: Array; - /** A summary of the taxes being applied to this Order */ - taxSummary: Array; - /** Equal to subTotal plus shipping */ - total: Scalars['Int']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']; + billingAddress?: Maybe; + /** A unique code for the Order */ + code: Scalars['String']; + /** An array of all coupon codes applied to the Order */ + couponCodes: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + customer?: Maybe; + discounts: Array; + fulfillments?: Maybe>; + history: HistoryEntryList; + id: Scalars['ID']; + lines: Array; + /** + * The date & time that the Order was placed, i.e. the Customer + * completed the checkout and the Order is no longer "active" + */ + orderPlacedAt?: Maybe; + payments?: Maybe>; + /** Promotions applied to the order. Only gets populated after the payment process has completed. */ + promotions: Array; + shipping: Scalars['Int']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Int']; + state: Scalars['String']; + /** + * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level + * discounts which have been prorated (proportionally distributed) amongst the OrderItems. + * To get a total of all OrderLines which does not account for prorated discounts, use the + * sum of `OrderLine.discountedLinePrice` values. + */ + subTotal: Scalars['Int']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Int']; + /** + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + surcharges: Array; + /** A summary of the taxes being applied to this Order */ + taxSummary: Array; + /** Equal to subTotal plus shipping */ + total: Scalars['Int']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; - export type OrderHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type OrderAddress = { - city?: Maybe; - company?: Maybe; - country?: Maybe; - countryCode?: Maybe; - customFields?: Maybe; - fullName?: Maybe; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; + city?: Maybe; + company?: Maybe; + country?: Maybe; + countryCode?: Maybe; + customFields?: Maybe; + fullName?: Maybe; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; }; export type OrderFilterParameter = { - active?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - updatedAt?: InputMaybe; + active?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + updatedAt?: InputMaybe; }; export type OrderItem = Node & { - adjustments: Array; - cancelled: Scalars['Boolean']; - createdAt: Scalars['DateTime']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - fulfillment?: Maybe; - id: Scalars['ID']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - unitTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + adjustments: Array; + cancelled: Scalars['Boolean']; + createdAt: Scalars['DateTime']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + fulfillment?: Maybe; + id: Scalars['ID']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + unitTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; /** Returned when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - errorCode: ErrorCode; - maxItems: Scalars['Int']; - message: Scalars['String']; + errorCode: ErrorCode; + maxItems: Scalars['Int']; + message: Scalars['String']; }; export type OrderLine = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - /** The price of the line including discounts, excluding tax */ - discountedLinePrice: Scalars['Int']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Int']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - discounts: Array; - featuredAsset?: Maybe; - fulfillments?: Maybe>; - id: Scalars['ID']; - items: Array; - /** The total price of the line excluding tax and discounts. */ - linePrice: Scalars['Int']; - /** The total price of the line including tax but excluding discounts. */ - linePriceWithTax: Scalars['Int']; - /** The total tax on this line */ - lineTax: Scalars['Int']; - order: Order; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['Int']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Int']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Int']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Int']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + discounts: Array; + featuredAsset?: Maybe; + fulfillments?: Maybe>; + id: Scalars['ID']; + items: Array; + /** The total price of the line excluding tax and discounts. */ + linePrice: Scalars['Int']; + /** The total price of the line including tax but excluding discounts. */ + linePriceWithTax: Scalars['Int']; + /** The total tax on this line */ + lineTax: Scalars['Int']; + order: Order; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['Int']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Int']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type OrderList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type OrderListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */ export type OrderPaymentStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -2044,25 +2039,25 @@ export type OrderStateTransitionError = ErrorResult & { * by taxRate. */ export type OrderTaxSummary = { - /** A description of this tax */ - description: Scalars['String']; - /** The total net price or OrderItems to which this taxRate applies */ - taxBase: Scalars['Int']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Int']; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Int']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Int']; }; export type PaginatedList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; /** Returned when attempting to verify a customer account with a password, when a password has already been set. */ export type PasswordAlreadySetError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -2070,8 +2065,8 @@ export type PasswordAlreadySetError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type PasswordResetTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -2079,77 +2074,77 @@ export type PasswordResetTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type PasswordResetTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to register or verify a customer account where the given password fails password validation. */ export type PasswordValidationError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - validationErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + validationErrorMessage: Scalars['String']; }; export type Payment = Node & { - amount: Scalars['Int']; - createdAt: Scalars['DateTime']; - errorMessage?: Maybe; - id: Scalars['ID']; - metadata?: Maybe; - method: Scalars['String']; - refunds: Array; - state: Scalars['String']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + amount: Scalars['Int']; + createdAt: Scalars['DateTime']; + errorMessage?: Maybe; + id: Scalars['ID']; + metadata?: Maybe; + method: Scalars['String']; + refunds: Array; + state: Scalars['String']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; /** Returned when a Payment is declined by the payment provider. */ export type PaymentDeclinedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned when a Payment fails due to an error. */ export type PaymentFailedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Passed as input to the `addPaymentToOrder` mutation. */ export type PaymentInput = { - /** - * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method - * as the "metadata" argument. For example, it could contain an ID for the payment and other - * data generated by the payment provider. - */ - metadata: Scalars['JSON']; - /** This field should correspond to the `code` property of a PaymentMethod. */ - method: Scalars['String']; + /** + * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method + * as the "metadata" argument. For example, it could contain an ID for the payment and other + * data generated by the payment provider. + */ + metadata: Scalars['JSON']; + /** This field should correspond to the `code` property of a PaymentMethod. */ + method: Scalars['String']; }; export type PaymentMethod = Node & { - checker?: Maybe; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - handler: ConfigurableOperation; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + checker?: Maybe; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + handler: ConfigurableOperation; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type PaymentMethodQuote = { - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - eligibilityMessage?: Maybe; - id: Scalars['ID']; - isEligible: Scalars['Boolean']; - name: Scalars['String']; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + eligibilityMessage?: Maybe; + id: Scalars['ID']; + isEligible: Scalars['Boolean']; + name: Scalars['String']; }; /** @@ -2185,836 +2180,876 @@ export type PaymentMethodQuote = { * @docsCategory common */ export enum Permission { - /** Authenticated means simply that the user is logged in */ - Authenticated = 'Authenticated', - /** Grants permission to create Administrator */ - CreateAdministrator = 'CreateAdministrator', - /** Grants permission to create Asset */ - CreateAsset = 'CreateAsset', - /** Grants permission to create Products, Facets, Assets, Collections */ - CreateCatalog = 'CreateCatalog', - /** Grants permission to create Channel */ - CreateChannel = 'CreateChannel', - /** Grants permission to create Collection */ - CreateCollection = 'CreateCollection', - /** Grants permission to create Country */ - CreateCountry = 'CreateCountry', - /** Grants permission to create Customer */ - CreateCustomer = 'CreateCustomer', - /** Grants permission to create CustomerGroup */ - CreateCustomerGroup = 'CreateCustomerGroup', - /** Grants permission to create Facet */ - CreateFacet = 'CreateFacet', - /** Grants permission to create Order */ - CreateOrder = 'CreateOrder', - /** Grants permission to create PaymentMethod */ - CreatePaymentMethod = 'CreatePaymentMethod', - /** Grants permission to create Product */ - CreateProduct = 'CreateProduct', - /** Grants permission to create Promotion */ - CreatePromotion = 'CreatePromotion', - /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - CreateSettings = 'CreateSettings', - /** Grants permission to create ShippingMethod */ - CreateShippingMethod = 'CreateShippingMethod', - /** Grants permission to create System */ - CreateSystem = 'CreateSystem', - /** Grants permission to create Tag */ - CreateTag = 'CreateTag', - /** Grants permission to create TaxCategory */ - CreateTaxCategory = 'CreateTaxCategory', - /** Grants permission to create TaxRate */ - CreateTaxRate = 'CreateTaxRate', - /** Grants permission to create Zone */ - CreateZone = 'CreateZone', - /** Grants permission to delete Administrator */ - DeleteAdministrator = 'DeleteAdministrator', - /** Grants permission to delete Asset */ - DeleteAsset = 'DeleteAsset', - /** Grants permission to delete Products, Facets, Assets, Collections */ - DeleteCatalog = 'DeleteCatalog', - /** Grants permission to delete Channel */ - DeleteChannel = 'DeleteChannel', - /** Grants permission to delete Collection */ - DeleteCollection = 'DeleteCollection', - /** Grants permission to delete Country */ - DeleteCountry = 'DeleteCountry', - /** Grants permission to delete Customer */ - DeleteCustomer = 'DeleteCustomer', - /** Grants permission to delete CustomerGroup */ - DeleteCustomerGroup = 'DeleteCustomerGroup', - /** Grants permission to delete Facet */ - DeleteFacet = 'DeleteFacet', - /** Grants permission to delete Order */ - DeleteOrder = 'DeleteOrder', - /** Grants permission to delete PaymentMethod */ - DeletePaymentMethod = 'DeletePaymentMethod', - /** Grants permission to delete Product */ - DeleteProduct = 'DeleteProduct', - /** Grants permission to delete Promotion */ - DeletePromotion = 'DeletePromotion', - /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - DeleteSettings = 'DeleteSettings', - /** Grants permission to delete ShippingMethod */ - DeleteShippingMethod = 'DeleteShippingMethod', - /** Grants permission to delete System */ - DeleteSystem = 'DeleteSystem', - /** Grants permission to delete Tag */ - DeleteTag = 'DeleteTag', - /** Grants permission to delete TaxCategory */ - DeleteTaxCategory = 'DeleteTaxCategory', - /** Grants permission to delete TaxRate */ - DeleteTaxRate = 'DeleteTaxRate', - /** Grants permission to delete Zone */ - DeleteZone = 'DeleteZone', - /** Owner means the user owns this entity, e.g. a Customer's own Order */ - Owner = 'Owner', - /** Public means any unauthenticated user may perform the operation */ - Public = 'Public', - /** Grants permission to read Administrator */ - ReadAdministrator = 'ReadAdministrator', - /** Grants permission to read Asset */ - ReadAsset = 'ReadAsset', - /** Grants permission to read Products, Facets, Assets, Collections */ - ReadCatalog = 'ReadCatalog', - /** Grants permission to read Channel */ - ReadChannel = 'ReadChannel', - /** Grants permission to read Collection */ - ReadCollection = 'ReadCollection', - /** Grants permission to read Country */ - ReadCountry = 'ReadCountry', - /** Grants permission to read Customer */ - ReadCustomer = 'ReadCustomer', - /** Grants permission to read CustomerGroup */ - ReadCustomerGroup = 'ReadCustomerGroup', - /** Grants permission to read Facet */ - ReadFacet = 'ReadFacet', - /** Grants permission to read Order */ - ReadOrder = 'ReadOrder', - /** Grants permission to read PaymentMethod */ - ReadPaymentMethod = 'ReadPaymentMethod', - /** Grants permission to read Product */ - ReadProduct = 'ReadProduct', - /** Grants permission to read Promotion */ - ReadPromotion = 'ReadPromotion', - /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - ReadSettings = 'ReadSettings', - /** Grants permission to read ShippingMethod */ - ReadShippingMethod = 'ReadShippingMethod', - /** Grants permission to read System */ - ReadSystem = 'ReadSystem', - /** Grants permission to read Tag */ - ReadTag = 'ReadTag', - /** Grants permission to read TaxCategory */ - ReadTaxCategory = 'ReadTaxCategory', - /** Grants permission to read TaxRate */ - ReadTaxRate = 'ReadTaxRate', - /** Grants permission to read Zone */ - ReadZone = 'ReadZone', - /** SuperAdmin has unrestricted access to all operations */ - SuperAdmin = 'SuperAdmin', - /** Grants permission to update Administrator */ - UpdateAdministrator = 'UpdateAdministrator', - /** Grants permission to update Asset */ - UpdateAsset = 'UpdateAsset', - /** Grants permission to update Products, Facets, Assets, Collections */ - UpdateCatalog = 'UpdateCatalog', - /** Grants permission to update Channel */ - UpdateChannel = 'UpdateChannel', - /** Grants permission to update Collection */ - UpdateCollection = 'UpdateCollection', - /** Grants permission to update Country */ - UpdateCountry = 'UpdateCountry', - /** Grants permission to update Customer */ - UpdateCustomer = 'UpdateCustomer', - /** Grants permission to update CustomerGroup */ - UpdateCustomerGroup = 'UpdateCustomerGroup', - /** Grants permission to update Facet */ - UpdateFacet = 'UpdateFacet', - /** Grants permission to update GlobalSettings */ - UpdateGlobalSettings = 'UpdateGlobalSettings', - /** Grants permission to update Order */ - UpdateOrder = 'UpdateOrder', - /** Grants permission to update PaymentMethod */ - UpdatePaymentMethod = 'UpdatePaymentMethod', - /** Grants permission to update Product */ - UpdateProduct = 'UpdateProduct', - /** Grants permission to update Promotion */ - UpdatePromotion = 'UpdatePromotion', - /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - UpdateSettings = 'UpdateSettings', - /** Grants permission to update ShippingMethod */ - UpdateShippingMethod = 'UpdateShippingMethod', - /** Grants permission to update System */ - UpdateSystem = 'UpdateSystem', - /** Grants permission to update Tag */ - UpdateTag = 'UpdateTag', - /** Grants permission to update TaxCategory */ - UpdateTaxCategory = 'UpdateTaxCategory', - /** Grants permission to update TaxRate */ - UpdateTaxRate = 'UpdateTaxRate', - /** Grants permission to update Zone */ - UpdateZone = 'UpdateZone' + /** Authenticated means simply that the user is logged in */ + Authenticated = 'Authenticated', + /** Grants permission to create Administrator */ + CreateAdministrator = 'CreateAdministrator', + /** Grants permission to create Asset */ + CreateAsset = 'CreateAsset', + /** Grants permission to create Products, Facets, Assets, Collections */ + CreateCatalog = 'CreateCatalog', + /** Grants permission to create Channel */ + CreateChannel = 'CreateChannel', + /** Grants permission to create Collection */ + CreateCollection = 'CreateCollection', + /** Grants permission to create Country */ + CreateCountry = 'CreateCountry', + /** Grants permission to create Customer */ + CreateCustomer = 'CreateCustomer', + /** Grants permission to create CustomerGroup */ + CreateCustomerGroup = 'CreateCustomerGroup', + /** Grants permission to create Facet */ + CreateFacet = 'CreateFacet', + /** Grants permission to create Order */ + CreateOrder = 'CreateOrder', + /** Grants permission to create PaymentMethod */ + CreatePaymentMethod = 'CreatePaymentMethod', + /** Grants permission to create Product */ + CreateProduct = 'CreateProduct', + /** Grants permission to create Promotion */ + CreatePromotion = 'CreatePromotion', + /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + CreateSettings = 'CreateSettings', + /** Grants permission to create ShippingMethod */ + CreateShippingMethod = 'CreateShippingMethod', + /** Grants permission to create System */ + CreateSystem = 'CreateSystem', + /** Grants permission to create Tag */ + CreateTag = 'CreateTag', + /** Grants permission to create TaxCategory */ + CreateTaxCategory = 'CreateTaxCategory', + /** Grants permission to create TaxRate */ + CreateTaxRate = 'CreateTaxRate', + /** Grants permission to create Vendor */ + CreateVendor = 'CreateVendor', + /** Grants permission to create Zone */ + CreateZone = 'CreateZone', + /** Grants permission to delete Administrator */ + DeleteAdministrator = 'DeleteAdministrator', + /** Grants permission to delete Asset */ + DeleteAsset = 'DeleteAsset', + /** Grants permission to delete Products, Facets, Assets, Collections */ + DeleteCatalog = 'DeleteCatalog', + /** Grants permission to delete Channel */ + DeleteChannel = 'DeleteChannel', + /** Grants permission to delete Collection */ + DeleteCollection = 'DeleteCollection', + /** Grants permission to delete Country */ + DeleteCountry = 'DeleteCountry', + /** Grants permission to delete Customer */ + DeleteCustomer = 'DeleteCustomer', + /** Grants permission to delete CustomerGroup */ + DeleteCustomerGroup = 'DeleteCustomerGroup', + /** Grants permission to delete Facet */ + DeleteFacet = 'DeleteFacet', + /** Grants permission to delete Order */ + DeleteOrder = 'DeleteOrder', + /** Grants permission to delete PaymentMethod */ + DeletePaymentMethod = 'DeletePaymentMethod', + /** Grants permission to delete Product */ + DeleteProduct = 'DeleteProduct', + /** Grants permission to delete Promotion */ + DeletePromotion = 'DeletePromotion', + /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + DeleteSettings = 'DeleteSettings', + /** Grants permission to delete ShippingMethod */ + DeleteShippingMethod = 'DeleteShippingMethod', + /** Grants permission to delete System */ + DeleteSystem = 'DeleteSystem', + /** Grants permission to delete Tag */ + DeleteTag = 'DeleteTag', + /** Grants permission to delete TaxCategory */ + DeleteTaxCategory = 'DeleteTaxCategory', + /** Grants permission to delete TaxRate */ + DeleteTaxRate = 'DeleteTaxRate', + /** Grants permission to delete Vendor */ + DeleteVendor = 'DeleteVendor', + /** Grants permission to delete Zone */ + DeleteZone = 'DeleteZone', + /** Owner means the user owns this entity, e.g. a Customer's own Order */ + Owner = 'Owner', + /** Public means any unauthenticated user may perform the operation */ + Public = 'Public', + /** Grants permission to read Administrator */ + ReadAdministrator = 'ReadAdministrator', + /** Grants permission to read Asset */ + ReadAsset = 'ReadAsset', + /** Grants permission to read Products, Facets, Assets, Collections */ + ReadCatalog = 'ReadCatalog', + /** Grants permission to read Channel */ + ReadChannel = 'ReadChannel', + /** Grants permission to read Collection */ + ReadCollection = 'ReadCollection', + /** Grants permission to read Country */ + ReadCountry = 'ReadCountry', + /** Grants permission to read Customer */ + ReadCustomer = 'ReadCustomer', + /** Grants permission to read CustomerGroup */ + ReadCustomerGroup = 'ReadCustomerGroup', + /** Grants permission to read Facet */ + ReadFacet = 'ReadFacet', + /** Grants permission to read Order */ + ReadOrder = 'ReadOrder', + /** Grants permission to read PaymentMethod */ + ReadPaymentMethod = 'ReadPaymentMethod', + /** Grants permission to read Product */ + ReadProduct = 'ReadProduct', + /** Grants permission to read Promotion */ + ReadPromotion = 'ReadPromotion', + /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + ReadSettings = 'ReadSettings', + /** Grants permission to read ShippingMethod */ + ReadShippingMethod = 'ReadShippingMethod', + /** Grants permission to read System */ + ReadSystem = 'ReadSystem', + /** Grants permission to read Tag */ + ReadTag = 'ReadTag', + /** Grants permission to read TaxCategory */ + ReadTaxCategory = 'ReadTaxCategory', + /** Grants permission to read TaxRate */ + ReadTaxRate = 'ReadTaxRate', + /** Grants permission to read Vendor */ + ReadVendor = 'ReadVendor', + /** Grants permission to read Zone */ + ReadZone = 'ReadZone', + /** SuperAdmin has unrestricted access to all operations */ + SuperAdmin = 'SuperAdmin', + /** Grants permission to update Administrator */ + UpdateAdministrator = 'UpdateAdministrator', + /** Grants permission to update Asset */ + UpdateAsset = 'UpdateAsset', + /** Grants permission to update Products, Facets, Assets, Collections */ + UpdateCatalog = 'UpdateCatalog', + /** Grants permission to update Channel */ + UpdateChannel = 'UpdateChannel', + /** Grants permission to update Collection */ + UpdateCollection = 'UpdateCollection', + /** Grants permission to update Country */ + UpdateCountry = 'UpdateCountry', + /** Grants permission to update Customer */ + UpdateCustomer = 'UpdateCustomer', + /** Grants permission to update CustomerGroup */ + UpdateCustomerGroup = 'UpdateCustomerGroup', + /** Grants permission to update Facet */ + UpdateFacet = 'UpdateFacet', + /** Grants permission to update GlobalSettings */ + UpdateGlobalSettings = 'UpdateGlobalSettings', + /** Grants permission to update Order */ + UpdateOrder = 'UpdateOrder', + /** Grants permission to update PaymentMethod */ + UpdatePaymentMethod = 'UpdatePaymentMethod', + /** Grants permission to update Product */ + UpdateProduct = 'UpdateProduct', + /** Grants permission to update Promotion */ + UpdatePromotion = 'UpdatePromotion', + /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + UpdateSettings = 'UpdateSettings', + /** Grants permission to update ShippingMethod */ + UpdateShippingMethod = 'UpdateShippingMethod', + /** Grants permission to update System */ + UpdateSystem = 'UpdateSystem', + /** Grants permission to update Tag */ + UpdateTag = 'UpdateTag', + /** Grants permission to update TaxCategory */ + UpdateTaxCategory = 'UpdateTaxCategory', + /** Grants permission to update TaxRate */ + UpdateTaxRate = 'UpdateTaxRate', + /** Grants permission to update Vendor */ + UpdateVendor = 'UpdateVendor', + /** Grants permission to update Zone */ + UpdateZone = 'UpdateZone', } /** The price range where the result has more than one price */ export type PriceRange = { - max: Scalars['Int']; - min: Scalars['Int']; + max: Scalars['Int']; + min: Scalars['Int']; }; export type Product = Node & { - assets: Array; - collections: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - optionGroups: Array; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - /** Returns a paginated, sortable, filterable list of ProductVariants */ - variantList: ProductVariantList; - /** Returns all ProductVariants */ - variants: Array; + assets: Array; + collections: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + optionGroups: Array; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + /** Returns a paginated, sortable, filterable list of ProductVariants */ + variantList: ProductVariantList; + /** Returns all ProductVariants */ + variants: Array; }; - export type ProductVariantListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductOption = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - group: ProductOptionGroup; - groupId: Scalars['ID']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + group: ProductOptionGroup; + groupId: Scalars['ID']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroup = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariant = Node & { - assets: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - product: Product; - productId: Scalars['ID']; - sku: Scalars['String']; - stockLevel: Scalars['String']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevel: Scalars['String']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type Promotion = Node & { - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - updatedAt: Scalars['DateTime']; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PromotionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Query = { - /** The active Channel */ - activeChannel: Channel; - /** The active Customer */ - activeCustomer?: Maybe; - /** - * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the - * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this - * query will once again return `null`. - */ - activeOrder?: Maybe; - /** An array of supported Countries */ - availableCountries: Array; - /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - collection?: Maybe; - /** A list of Collections available to the shop */ - collections: CollectionList; - /** Returns a list of payment methods and their eligibility based on the current active Order */ - eligiblePaymentMethods: Array; - /** Returns a list of eligible shipping methods based on the current active Order */ - eligibleShippingMethods: Array; - /** Returns a Facet by its id */ - facet?: Maybe; - /** A list of Facets available to the shop */ - facets: FacetList; - /** Returns information about the current authenticated User */ - me?: Maybe; - /** Returns the possible next states that the activeOrder can transition to */ - nextOrderStates: Array; - /** - * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the - * currently-authenticated User may be queried. - */ - order?: Maybe; - /** - * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) - * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation - * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing - * general anonymous access to Order data. - */ - orderByCode?: Maybe; - /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - product?: Maybe; - /** Get a list of Products */ - products: ProductList; - /** Search Products based on the criteria set by the `SearchInput` */ - search: SearchResponse; + /** The active Channel */ + activeChannel: Channel; + /** The active Customer */ + activeCustomer?: Maybe; + /** + * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the + * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this + * query will once again return `null`. + */ + activeOrder?: Maybe; + /** An array of supported Countries */ + availableCountries: Array; + /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + collection?: Maybe; + /** A list of Collections available to the shop */ + collections: CollectionList; + /** Returns a list of payment methods and their eligibility based on the current active Order */ + eligiblePaymentMethods: Array; + /** Returns a list of eligible shipping methods based on the current active Order */ + eligibleShippingMethods: Array; + /** Returns a Facet by its id */ + facet?: Maybe; + /** A list of Facets available to the shop */ + facets: FacetList; + /** Returns information about the current authenticated User */ + me?: Maybe; + /** Returns the possible next states that the activeOrder can transition to */ + nextOrderStates: Array; + /** + * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the + * currently-authenticated User may be queried. + */ + order?: Maybe; + /** + * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) + * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation + * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing + * general anonymous access to Order data. + */ + orderByCode?: Maybe; + /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + product?: Maybe; + /** Get a list of Products */ + products: ProductList; + /** Search Products based on the criteria set by the `SearchInput` */ + search: SearchResponse; }; - export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryOrderByCodeArgs = { - code: Scalars['String']; + code: Scalars['String']; }; - export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; export type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success; export type Refund = Node & { - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - metadata?: Maybe; - method?: Maybe; - orderItems: Array; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Int']; - state: Scalars['String']; - total: Scalars['Int']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; -}; - -export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success; + adjustment: Scalars['Int']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Int']; + metadata?: Maybe; + method?: Maybe; + orderItems: Array; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; +}; + +export type RegisterCustomerAccountResult = + | MissingPasswordError + | NativeAuthStrategyError + | PasswordValidationError + | Success; export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + emailAddress: Scalars['String']; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type RelationCustomFieldConfig = CustomField & { - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; }; export type RemoveOrderItemsResult = Order | OrderModificationError; export type RequestPasswordResetResult = NativeAuthStrategyError | Success; -export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success; +export type RequestUpdateCustomerEmailAddressResult = + | EmailAddressConflictError + | InvalidCredentialsError + | NativeAuthStrategyError + | Success; -export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError; +export type ResetPasswordResult = + | CurrentUser + | NativeAuthStrategyError + | NotVerifiedError + | PasswordResetTokenExpiredError + | PasswordResetTokenInvalidError + | PasswordValidationError; export type Role = Node & { - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - facetValueIds?: InputMaybe>; - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + facetValueIds?: InputMaybe>; + facetValueOperator?: InputMaybe; + groupByProduct?: InputMaybe; + skip?: InputMaybe; + sort?: InputMaybe; + take?: InputMaybe; + term?: InputMaybe; }; export type SearchReindexResponse = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type SearchResponse = { - collections: Array; - facetValues: Array; - items: Array; - totalItems: Scalars['Int']; + collections: Array; + facetValues: Array; + items: Array; + totalItems: Scalars['Int']; }; export type SearchResult = { - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - currencyCode: CurrencyCode; - description: Scalars['String']; - facetIds: Array; - facetValueIds: Array; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - productAsset?: Maybe; - productId: Scalars['ID']; - productName: Scalars['String']; - productVariantAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** A relevance score for the result. Differs between database implementations */ - score: Scalars['Float']; - sku: Scalars['String']; - slug: Scalars['String']; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + currencyCode: CurrencyCode; + description: Scalars['String']; + facetIds: Array; + facetValueIds: Array; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + productAsset?: Maybe; + productId: Scalars['ID']; + productName: Scalars['String']; + productVariantAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** A relevance score for the result. Differs between database implementations */ + score: Scalars['Float']; + sku: Scalars['String']; + slug: Scalars['String']; }; export type SearchResultAsset = { - focalPoint?: Maybe; - id: Scalars['ID']; - preview: Scalars['String']; + focalPoint?: Maybe; + id: Scalars['ID']; + preview: Scalars['String']; }; /** The price of a search result product, either as a range or as a single price */ export type SearchResultPrice = PriceRange | SinglePrice; export type SearchResultSortParameter = { - name?: InputMaybe; - price?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; }; -export type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | NoActiveOrderError | Order; +export type SetCustomerForOrderResult = + | AlreadyLoggedInError + | EmailAddressConflictError + | NoActiveOrderError + | Order; -export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; +export type SetOrderShippingMethodResult = + | IneligibleShippingMethodError + | NoActiveOrderError + | Order + | OrderModificationError; export type ShippingLine = { - discountedPrice: Scalars['Int']; - discountedPriceWithTax: Scalars['Int']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - shippingMethod: ShippingMethod; + discountedPrice: Scalars['Int']; + discountedPriceWithTax: Scalars['Int']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + shippingMethod: ShippingMethod; }; export type ShippingMethod = Node & { - calculator: ConfigurableOperation; - checker: ConfigurableOperation; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - fulfillmentHandlerCode: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + calculator: ConfigurableOperation; + checker: ConfigurableOperation; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + fulfillmentHandlerCode: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodQuote = { - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ - metadata?: Maybe; - name: Scalars['String']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ + metadata?: Maybe; + name: Scalars['String']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type ShippingMethodTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** The price value where the result has a single price */ export type SinglePrice = { - value: Scalars['Int']; + value: Scalars['Int']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC' + ASC = 'ASC', + DESC = 'DESC', } export type StringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - label?: Maybe>; - value: Scalars['String']; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type Tag = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - updatedAt: Scalars['DateTime']; - value: Scalars['String']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + value: Scalars['String']; }; export type TagList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TaxCategory = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isDefault: Scalars['Boolean']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isDefault: Scalars['Boolean']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type TaxLine = { - description: Scalars['String']; - taxRate: Scalars['Float']; + description: Scalars['String']; + taxRate: Scalars['Float']; }; export type TaxRate = Node & { - category: TaxCategory; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customerGroup?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; - value: Scalars['Float']; - zone: Zone; + category: TaxCategory; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customerGroup?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; + value: Scalars['Float']; + zone: Zone; }; export type TaxRateList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TextCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type TransitionOrderToStateResult = Order | OrderStateTransitionError; export type UpdateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode?: InputMaybe; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - id: Scalars['ID']; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1?: InputMaybe; - streetLine2?: InputMaybe; -}; - -export type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success; + city?: InputMaybe; + company?: InputMaybe; + countryCode?: InputMaybe; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + id: Scalars['ID']; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1?: InputMaybe; + streetLine2?: InputMaybe; +}; + +export type UpdateCustomerEmailAddressResult = + | IdentifierChangeTokenExpiredError + | IdentifierChangeTokenInvalidError + | NativeAuthStrategyError + | Success; export type UpdateCustomerInput = { - customFields?: InputMaybe; - firstName?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + firstName?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; -export type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success; +export type UpdateCustomerPasswordResult = + | InvalidCredentialsError + | NativeAuthStrategyError + | PasswordValidationError + | Success; export type UpdateOrderInput = { - customFields?: InputMaybe; + customFields?: InputMaybe; }; -export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError; +export type UpdateOrderItemsResult = + | InsufficientStockError + | NegativeQuantityError + | Order + | OrderLimitError + | OrderModificationError; export type User = Node & { - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; +}; + +export type Vendor = Node & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** @@ -3022,8 +3057,8 @@ export type User = Node & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3031,320 +3066,1357 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError; +export type VerifyCustomerAccountResult = + | CurrentUser + | MissingPasswordError + | NativeAuthStrategyError + | PasswordAlreadySetError + | PasswordValidationError + | VerificationTokenExpiredError + | VerificationTokenInvalidError; export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; + +export type TestOrderFragmentFragment = { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; +}; + +export type UpdatedOrderFragment = { + id: string; + code: string; + state: string; + active: boolean; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + }>; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; }; -export type TestOrderFragmentFragment = { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } }; - -export type UpdatedOrderFragment = { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }; - export type AddItemToOrderMutationVariables = Exact<{ - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }>; - -export type AddItemToOrderMutation = { addItemToOrder: { errorCode: ErrorCode, message: string, quantityAvailable: number, order: { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> } } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; +export type AddItemToOrderMutation = { + addItemToOrder: + | { + errorCode: ErrorCode; + message: string; + quantityAvailable: number; + order: { + id: string; + code: string; + state: string; + active: boolean; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + }>; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + }; + } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + }>; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type SearchProductsShopQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; - -export type SearchProductsShopQuery = { search: { totalItems: number, items: Array<{ productId: string, productName: string, productVariantId: string, productVariantName: string, sku: string, collectionIds: Array, price: { min: number, max: number } | { value: number } }> } }; +export type SearchProductsShopQuery = { + search: { + totalItems: number; + items: Array<{ + productId: string; + productName: string; + productVariantId: string; + productVariantName: string; + sku: string; + collectionIds: Array; + price: { min: number; max: number } | { value: number }; + }>; + }; +}; export type RegisterMutationVariables = Exact<{ - input: RegisterCustomerInput; + input: RegisterCustomerInput; }>; +export type RegisterMutation = { + registerCustomerAccount: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; validationErrorMessage: string } + | { success: boolean }; +}; -export type RegisterMutation = { registerCustomerAccount: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } | { success: boolean } }; - -export type CurrentUserShopFragment = { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> }; +export type CurrentUserShopFragment = { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; +}; export type VerifyMutationVariables = Exact<{ - password?: InputMaybe; - token: Scalars['String']; + password?: InputMaybe; + token: Scalars['String']; }>; - -export type VerifyMutation = { verifyCustomerAccount: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; +export type VerifyMutation = { + verifyCustomerAccount: + | { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; validationErrorMessage: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type RefreshTokenMutationVariables = Exact<{ - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }>; - -export type RefreshTokenMutation = { refreshCustomerVerification: { errorCode: ErrorCode, message: string } | { success: boolean } }; +export type RefreshTokenMutation = { + refreshCustomerVerification: { errorCode: ErrorCode; message: string } | { success: boolean }; +}; export type RequestPasswordResetMutationVariables = Exact<{ - identifier: Scalars['String']; + identifier: Scalars['String']; }>; - -export type RequestPasswordResetMutation = { requestPasswordReset?: { errorCode: ErrorCode, message: string } | { success: boolean } | null }; +export type RequestPasswordResetMutation = { + requestPasswordReset?: { errorCode: ErrorCode; message: string } | { success: boolean } | null; +}; export type ResetPasswordMutationVariables = Exact<{ - token: Scalars['String']; - password: Scalars['String']; + token: Scalars['String']; + password: Scalars['String']; }>; - -export type ResetPasswordMutation = { resetPassword: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } }; +export type ResetPasswordMutation = { + resetPassword: + | { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; validationErrorMessage: string }; +}; export type RequestUpdateEmailAddressMutationVariables = Exact<{ - password: Scalars['String']; - newEmailAddress: Scalars['String']; + password: Scalars['String']; + newEmailAddress: Scalars['String']; }>; - -export type RequestUpdateEmailAddressMutation = { requestUpdateCustomerEmailAddress: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; +export type RequestUpdateEmailAddressMutation = { + requestUpdateCustomerEmailAddress: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { success: boolean }; +}; export type UpdateEmailAddressMutationVariables = Exact<{ - token: Scalars['String']; + token: Scalars['String']; }>; +export type UpdateEmailAddressMutation = { + updateCustomerEmailAddress: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { success: boolean }; +}; -export type UpdateEmailAddressMutation = { updateCustomerEmailAddress: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; - -export type GetActiveCustomerQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetActiveCustomerQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveCustomerQuery = { activeCustomer?: { id: string, emailAddress: string } | null }; +export type GetActiveCustomerQuery = { activeCustomer?: { id: string; emailAddress: string } | null }; export type CreateAddressShopMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; - -export type CreateAddressShopMutation = { createCustomerAddress: { id: string, streetLine1: string, country: { code: string } } }; +export type CreateAddressShopMutation = { + createCustomerAddress: { id: string; streetLine1: string; country: { code: string } }; +}; export type UpdateAddressShopMutationVariables = Exact<{ - input: UpdateAddressInput; + input: UpdateAddressInput; }>; - -export type UpdateAddressShopMutation = { updateCustomerAddress: { streetLine1: string, country: { code: string } } }; +export type UpdateAddressShopMutation = { + updateCustomerAddress: { streetLine1: string; country: { code: string } }; +}; export type DeleteAddressShopMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeleteAddressShopMutation = { deleteCustomerAddress: { success: boolean } }; export type UpdateCustomerMutationVariables = Exact<{ - input: UpdateCustomerInput; + input: UpdateCustomerInput; }>; - -export type UpdateCustomerMutation = { updateCustomer: { id: string, firstName: string, lastName: string } }; +export type UpdateCustomerMutation = { updateCustomer: { id: string; firstName: string; lastName: string } }; export type UpdatePasswordMutationVariables = Exact<{ - old: Scalars['String']; - new: Scalars['String']; + old: Scalars['String']; + new: Scalars['String']; }>; - -export type UpdatePasswordMutation = { updateCustomerPassword: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; - -export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveOrderQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; - -export type GetActiveOrderWithPriceDataQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveOrderWithPriceDataQuery = { activeOrder?: { id: string, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, taxRate: number, linePrice: number, lineTax: number, linePriceWithTax: number, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, taxRate: number }>, taxLines: Array<{ taxRate: number, description: string }> }>, taxSummary: Array<{ description: string, taxRate: number, taxBase: number, taxTotal: number }> } | null }; +export type UpdatePasswordMutation = { + updateCustomerPassword: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { success: boolean }; +}; + +export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveOrderQuery = { + activeOrder?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; + +export type GetActiveOrderWithPriceDataQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveOrderWithPriceDataQuery = { + activeOrder?: { + id: string; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + linePrice: number; + lineTax: number; + linePriceWithTax: number; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number; taxRate: number }>; + taxLines: Array<{ taxRate: number; description: string }>; + }>; + taxSummary: Array<{ description: string; taxRate: number; taxBase: number; taxTotal: number }>; + } | null; +}; export type AdjustItemQuantityMutationVariables = Exact<{ - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }>; - -export type AdjustItemQuantityMutation = { adjustOrderLine: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; +export type AdjustItemQuantityMutation = { + adjustOrderLine: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type RemoveItemFromOrderMutationVariables = Exact<{ - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }>; - -export type RemoveItemFromOrderMutation = { removeOrderLine: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; - -export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetShippingMethodsQuery = { eligibleShippingMethods: Array<{ id: string, code: string, price: number, name: string, description: string }> }; +export type RemoveItemFromOrderMutation = { + removeOrderLine: + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string }; +}; + +export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetShippingMethodsQuery = { + eligibleShippingMethods: Array<{ + id: string; + code: string; + price: number; + name: string; + description: string; + }>; +}; export type SetShippingMethodMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type SetShippingMethodMutation = { setOrderShippingMethod: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; - -export type ActiveOrderCustomerFragment = { id: string, customer?: { id: string, emailAddress: string, firstName: string, lastName: string } | null, lines: Array<{ id: string }> }; +export type SetShippingMethodMutation = { + setOrderShippingMethod: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string }; +}; + +export type ActiveOrderCustomerFragment = { + id: string; + customer?: { id: string; emailAddress: string; firstName: string; lastName: string } | null; + lines: Array<{ id: string }>; +}; export type SetCustomerForOrderMutationVariables = Exact<{ - input: CreateCustomerInput; + input: CreateCustomerInput; }>; - -export type SetCustomerForOrderMutation = { setCustomerForOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, customer?: { id: string, emailAddress: string, firstName: string, lastName: string } | null, lines: Array<{ id: string }> } }; +export type SetCustomerForOrderMutation = { + setCustomerForOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + customer?: { id: string; emailAddress: string; firstName: string; lastName: string } | null; + lines: Array<{ id: string }>; + }; +}; export type GetOrderByCodeQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; - -export type GetOrderByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; +export type GetOrderByCodeQuery = { + orderByCode?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; export type GetOrderShopQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOrderShopQuery = { order?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; +export type GetOrderShopQuery = { + order?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; export type GetOrderPromotionsByCodeQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; - -export type GetOrderPromotionsByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, promotions: Array<{ id: string, name: string }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; - -export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetAvailableCountriesQuery = { availableCountries: Array<{ id: string, code: string }> }; +export type GetOrderPromotionsByCodeQuery = { + orderByCode?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + promotions: Array<{ id: string; name: string }>; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; + +export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never }>; + +export type GetAvailableCountriesQuery = { availableCountries: Array<{ id: string; code: string }> }; export type TransitionToStateMutationVariables = Exact<{ - state: Scalars['String']; + state: Scalars['String']; }>; - -export type TransitionToStateMutation = { transitionOrderToState?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null }; +export type TransitionToStateMutation = { + transitionOrderToState?: + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { + errorCode: ErrorCode; + message: string; + transitionError: string; + fromState: string; + toState: string; + } + | null; +}; export type SetShippingAddressMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; - -export type SetShippingAddressMutation = { setOrderShippingAddress: { errorCode: ErrorCode, message: string } | { shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null } }; +export type SetShippingAddressMutation = { + setOrderShippingAddress: + | { errorCode: ErrorCode; message: string } + | { + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + }; +}; export type SetBillingAddressMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; - -export type SetBillingAddressMutation = { setOrderBillingAddress: { errorCode: ErrorCode, message: string } | { billingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null } }; - -export type TestOrderWithPaymentsFragment = { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } }; - -export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveOrderWithPaymentsQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; +export type SetBillingAddressMutation = { + setOrderBillingAddress: + | { errorCode: ErrorCode; message: string } + | { + billingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + }; +}; + +export type TestOrderWithPaymentsFragment = { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + metadata?: any | null; + }> | null; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; +}; + +export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveOrderWithPaymentsQuery = { + activeOrder?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + metadata?: any | null; + }> | null; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; export type AddPaymentToOrderMutationVariables = Exact<{ - input: PaymentInput; + input: PaymentInput; }>; - -export type AddPaymentToOrderMutation = { addPaymentToOrder: { errorCode: ErrorCode, message: string, eligibilityCheckerMessage?: string | null } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, transitionError: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } }; - -export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveOrderPaymentsQuery = { activeOrder?: { id: string, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, errorMessage?: string | null, metadata?: any | null }> | null } | null }; +export type AddPaymentToOrderMutation = { + addPaymentToOrder: + | { errorCode: ErrorCode; message: string; eligibilityCheckerMessage?: string | null } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + metadata?: any | null; + }> | null; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; transitionError: string } + | { errorCode: ErrorCode; message: string; paymentErrorMessage: string } + | { errorCode: ErrorCode; message: string; paymentErrorMessage: string }; +}; + +export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveOrderPaymentsQuery = { + activeOrder?: { + id: string; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + errorMessage?: string | null; + metadata?: any | null; + }> | null; + } | null; +}; export type GetOrderByCodeWithPaymentsQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; - -export type GetOrderByCodeWithPaymentsQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; - -export type GetActiveCustomerOrderWithItemFulfillmentsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveCustomerOrderWithItemFulfillmentsQuery = { activeCustomer?: { orders: { totalItems: number, items: Array<{ id: string, code: string, state: string, lines: Array<{ id: string, items: Array<{ id: string, fulfillment?: { id: string, state: string, method: string, trackingCode?: string | null } | null }> }> }> } } | null }; - -export type GetNextOrderStatesQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetOrderByCodeWithPaymentsQuery = { + orderByCode?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + metadata?: any | null; + }> | null; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; + +export type GetActiveCustomerOrderWithItemFulfillmentsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveCustomerOrderWithItemFulfillmentsQuery = { + activeCustomer?: { + orders: { + totalItems: number; + items: Array<{ + id: string; + code: string; + state: string; + lines: Array<{ + id: string; + items: Array<{ + id: string; + fulfillment?: { + id: string; + state: string; + method: string; + trackingCode?: string | null; + } | null; + }>; + }>; + }>; + }; + } | null; +}; + +export type GetNextOrderStatesQueryVariables = Exact<{ [key: string]: never }>; export type GetNextOrderStatesQuery = { nextOrderStates: Array }; -export type GetCustomerAddressesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetCustomerAddressesQuery = { activeOrder?: { customer?: { addresses?: Array<{ id: string, streetLine1: string }> | null } | null } | null }; - -export type GetCustomerOrdersQueryVariables = Exact<{ [key: string]: never; }>; +export type GetCustomerAddressesQueryVariables = Exact<{ [key: string]: never }>; +export type GetCustomerAddressesQuery = { + activeOrder?: { + customer?: { addresses?: Array<{ id: string; streetLine1: string }> | null } | null; + } | null; +}; -export type GetCustomerOrdersQuery = { activeOrder?: { customer?: { orders: { items: Array<{ id: string }> } } | null } | null }; +export type GetCustomerOrdersQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveCustomerOrdersQueryVariables = Exact<{ [key: string]: never; }>; +export type GetCustomerOrdersQuery = { + activeOrder?: { customer?: { orders: { items: Array<{ id: string }> } } | null } | null; +}; +export type GetActiveCustomerOrdersQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveCustomerOrdersQuery = { activeCustomer?: { id: string, orders: { totalItems: number, items: Array<{ id: string, state: string }> } } | null }; +export type GetActiveCustomerOrdersQuery = { + activeCustomer?: { + id: string; + orders: { totalItems: number; items: Array<{ id: string; state: string }> }; + } | null; +}; export type ApplyCouponCodeMutationVariables = Exact<{ - couponCode: Scalars['String']; + couponCode: Scalars['String']; }>; - -export type ApplyCouponCodeMutation = { applyCouponCode: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } }; +export type ApplyCouponCodeMutation = { + applyCouponCode: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + }; +}; export type RemoveCouponCodeMutationVariables = Exact<{ - couponCode: Scalars['String']; + couponCode: Scalars['String']; }>; - -export type RemoveCouponCodeMutation = { removeCouponCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; - -export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never; }>; - - -export type RemoveAllOrderLinesMutation = { removeAllOrderLines: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; - -export type GetEligiblePaymentMethodsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetEligiblePaymentMethodsQuery = { eligiblePaymentMethods: Array<{ id: string, code: string, eligibilityMessage?: string | null, isEligible: boolean }> }; +export type RemoveCouponCodeMutation = { + removeCouponCode?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; + +export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never }>; + +export type RemoveAllOrderLinesMutation = { + removeAllOrderLines: + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string }; +}; + +export type GetEligiblePaymentMethodsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetEligiblePaymentMethodsQuery = { + eligiblePaymentMethods: Array<{ + id: string; + code: string; + eligibilityMessage?: string | null; + isEligible: boolean; + }>; +}; export type GetProductStockLevelQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductStockLevelQuery = { product?: { id: string, variants: Array<{ id: string, stockLevel: string }> } | null }; +export type GetProductStockLevelQuery = { + product?: { id: string; variants: Array<{ id: string; stockLevel: string }> } | null; +}; export type GetActiveCustomerWithOrdersProductSlugQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetActiveCustomerWithOrdersProductSlugQuery = { activeCustomer?: { orders: { items: Array<{ lines: Array<{ productVariant: { product: { slug: string } } }> }> } } | null }; +export type GetActiveCustomerWithOrdersProductSlugQuery = { + activeCustomer?: { + orders: { items: Array<{ lines: Array<{ productVariant: { product: { slug: string } } }> }> }; + } | null; +}; export type GetActiveCustomerWithOrdersProductPriceQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetActiveCustomerWithOrdersProductPriceQuery = { activeCustomer?: { orders: { items: Array<{ lines: Array<{ linePrice: number, productVariant: { id: string, name: string, price: number } }> }> } } | null }; +export type GetActiveCustomerWithOrdersProductPriceQuery = { + activeCustomer?: { + orders: { + items: Array<{ + lines: Array<{ + linePrice: number; + productVariant: { id: string; name: string; price: number }; + }>; + }>; + }; + } | null; +}; diff --git a/packages/core/src/api/api-internal-modules.ts b/packages/core/src/api/api-internal-modules.ts index cee91d73b7..b3eec4a729 100644 --- a/packages/core/src/api/api-internal-modules.ts +++ b/packages/core/src/api/api-internal-modules.ts @@ -35,9 +35,11 @@ import { ShippingMethodResolver } from './resolvers/admin/shipping-method.resolv import { TagResolver } from './resolvers/admin/tag.resolver'; import { TaxCategoryResolver } from './resolvers/admin/tax-category.resolver'; import { TaxRateResolver } from './resolvers/admin/tax-rate.resolver'; +import { VendorResolver } from './resolvers/admin/vendor.resolver'; import { ZoneResolver } from './resolvers/admin/zone.resolver'; import { AdministratorEntityResolver } from './resolvers/entity/administrator-entity.resolver'; import { AssetEntityResolver } from './resolvers/entity/asset-entity.resolver'; +import { ChannelEntityResolver } from './resolvers/entity/channel-entity.resolver'; import { CollectionEntityResolver } from './resolvers/entity/collection-entity.resolver'; import { CountryEntityResolver } from './resolvers/entity/country-entity.resolver'; import { @@ -108,6 +110,7 @@ const adminResolvers = [ TagResolver, TaxCategoryResolver, TaxRateResolver, + VendorResolver, ZoneResolver, ]; @@ -120,6 +123,7 @@ const shopResolvers = [ ]; export const entityResolvers = [ + ChannelEntityResolver, CollectionEntityResolver, CountryEntityResolver, CustomerEntityResolver, diff --git a/packages/core/src/api/resolvers/admin/vendor.resolver.ts b/packages/core/src/api/resolvers/admin/vendor.resolver.ts new file mode 100644 index 0000000000..6367c1bb04 --- /dev/null +++ b/packages/core/src/api/resolvers/admin/vendor.resolver.ts @@ -0,0 +1,59 @@ +import { Args, Mutation, Query, Resolver } from '@nestjs/graphql'; +import { + DeletionResponse, + MutationCreateVendorArgs, + MutationDeleteVendorArgs, + MutationUpdateVendorArgs, + Permission, + QueryVendorArgs, + QueryVendorsArgs, + VendorList, +} from '@vendure/common/lib/generated-types'; + +import { Vendor } from '../../../entity/vendor/vendor.entity'; +import { VendorService } from '../../../service/services/vendor.service'; +import { RequestContext } from '../../common/request-context'; +import { Allow } from '../../decorators/allow.decorator'; +import { Ctx } from '../../decorators/request-context.decorator'; +import { Transaction } from '../../decorators/transaction.decorator'; + +@Resolver('Vendor') +export class VendorResolver { + constructor(private vendorService: VendorService) {} + + @Query() + @Allow(Permission.ReadSettings, Permission.ReadVendor, Permission.ReadAsset) + async vendors(@Ctx() ctx: RequestContext, @Args() args: QueryVendorsArgs): Promise { + return this.vendorService.findAll(ctx, args.options); + } + + @Query() + @Allow(Permission.ReadSettings, Permission.ReadVendor, Permission.ReadAsset) + async vendor(@Ctx() ctx: RequestContext, @Args() args: QueryVendorArgs): Promise { + return this.vendorService.findOne(ctx, args.id); + } + + @Transaction() + @Mutation() + @Allow(Permission.CreateSettings, Permission.CreateVendor) + async createVendor(@Ctx() ctx: RequestContext, @Args() args: MutationCreateVendorArgs): Promise { + return this.vendorService.create(ctx, args.input); + } + + @Transaction() + @Mutation() + @Allow(Permission.UpdateSettings, Permission.UpdateVendor) + async updateVendor(@Ctx() ctx: RequestContext, @Args() args: MutationUpdateVendorArgs): Promise { + return this.vendorService.update(ctx, args.input); + } + + @Transaction() + @Mutation() + @Allow(Permission.DeleteSettings, Permission.DeleteVendor) + async deleteVendor( + @Ctx() ctx: RequestContext, + @Args() args: MutationDeleteVendorArgs, + ): Promise { + return this.vendorService.delete(ctx, args.id); + } +} diff --git a/packages/core/src/api/resolvers/entity/channel-entity.resolver.ts b/packages/core/src/api/resolvers/entity/channel-entity.resolver.ts new file mode 100644 index 0000000000..0f032c1261 --- /dev/null +++ b/packages/core/src/api/resolvers/entity/channel-entity.resolver.ts @@ -0,0 +1,20 @@ +import { Parent, ResolveField, Resolver } from '@nestjs/graphql'; + +import { Channel } from '../../../entity/channel/channel.entity'; +import { Vendor } from '../../../entity/vendor/vendor.entity'; +import { VendorService } from '../../../service/index'; +import { RequestContext } from '../../common/request-context'; +import { Ctx } from '../../decorators/request-context.decorator'; + +@Resolver('Channel') +export class ChannelEntityResolver { + constructor(private vendorService: VendorService) {} + + @ResolveField() + async vendor(@Ctx() ctx: RequestContext, @Parent() channel: Channel): Promise { + if (!channel.vendorId) { + return; + } + return channel.vendor ?? (await this.vendorService.findOne(ctx, channel.vendorId)); + } +} diff --git a/packages/core/src/api/schema/admin-api/channel.api.graphql b/packages/core/src/api/schema/admin-api/channel.api.graphql index b01d7ba85f..ac0ac829a0 100644 --- a/packages/core/src/api/schema/admin-api/channel.api.graphql +++ b/packages/core/src/api/schema/admin-api/channel.api.graphql @@ -23,6 +23,7 @@ input CreateChannelInput { currencyCode: CurrencyCode! defaultTaxZoneId: ID! defaultShippingZoneId: ID! + vendorId: ID } input UpdateChannelInput { @@ -34,6 +35,7 @@ input UpdateChannelInput { currencyCode: CurrencyCode defaultTaxZoneId: ID defaultShippingZoneId: ID + vendorId: ID } "Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings" diff --git a/packages/core/src/api/schema/admin-api/vendor.api.graphql b/packages/core/src/api/schema/admin-api/vendor.api.graphql new file mode 100644 index 0000000000..f1f5886c13 --- /dev/null +++ b/packages/core/src/api/schema/admin-api/vendor.api.graphql @@ -0,0 +1,29 @@ +type Query { + vendors(options: VendorListOptions): VendorList! + vendor(id: ID!): Vendor +} + +type Mutation { + "Create a new Vendor" + createVendor(input: CreateVendorInput!): Vendor! + "Update an existing Vendor" + updateVendor(input: UpdateVendorInput!): Vendor! + "Delete a Vendor" + deleteVendor(id: ID!): DeletionResponse! +} + +type VendorList implements PaginatedList { + items: [Vendor!]! + totalItems: Int! +} + +input VendorListOptions + +input CreateVendorInput { + name: String! +} + +input UpdateVendorInput { + id: ID! + name: String +} diff --git a/packages/core/src/api/schema/common/channel.type.graphql b/packages/core/src/api/schema/common/channel.type.graphql index dffc346794..614535c148 100644 --- a/packages/core/src/api/schema/common/channel.type.graphql +++ b/packages/core/src/api/schema/common/channel.type.graphql @@ -9,4 +9,5 @@ type Channel implements Node { defaultLanguageCode: LanguageCode! currencyCode: CurrencyCode! pricesIncludeTax: Boolean! + vendor: Vendor } diff --git a/packages/core/src/api/schema/common/vendor.type.graphql b/packages/core/src/api/schema/common/vendor.type.graphql new file mode 100644 index 0000000000..9ebe7eacfd --- /dev/null +++ b/packages/core/src/api/schema/common/vendor.type.graphql @@ -0,0 +1,6 @@ +type Vendor implements Node { + id: ID! + createdAt: DateTime! + updatedAt: DateTime! + name: String! +} diff --git a/packages/core/src/common/constants.ts b/packages/core/src/common/constants.ts index 9a920de661..ba24d632e2 100644 --- a/packages/core/src/common/constants.ts +++ b/packages/core/src/common/constants.ts @@ -67,6 +67,7 @@ export const DEFAULT_PERMISSIONS: PermissionDefinition[] = [ new CrudPermissionDefinition('TaxCategory'), new CrudPermissionDefinition('TaxRate'), new CrudPermissionDefinition('System'), + new CrudPermissionDefinition('Vendor'), new CrudPermissionDefinition('Zone'), ]; diff --git a/packages/core/src/config/config.module.ts b/packages/core/src/config/config.module.ts index bd803985b8..e6405805c3 100644 --- a/packages/core/src/config/config.module.ts +++ b/packages/core/src/config/config.module.ts @@ -88,6 +88,7 @@ export class ConfigModule implements OnApplicationBootstrap, OnApplicationShutdo stockAllocationStrategy, activeOrderStrategy, changedPriceHandlingStrategy, + vendorSelectionStrategy, } = this.configService.orderOptions; const { customFulfillmentProcess } = this.configService.shippingOptions; const { customPaymentProcess } = this.configService.paymentOptions; @@ -125,6 +126,7 @@ export class ConfigModule implements OnApplicationBootstrap, OnApplicationShutdo assetImportStrategy, changedPriceHandlingStrategy, ...(Array.isArray(activeOrderStrategy) ? activeOrderStrategy : [activeOrderStrategy]), + vendorSelectionStrategy, ]; } diff --git a/packages/core/src/config/default-config.ts b/packages/core/src/config/default-config.ts index a8288da690..d78b2362a0 100644 --- a/packages/core/src/config/default-config.ts +++ b/packages/core/src/config/default-config.ts @@ -27,6 +27,7 @@ import { DefaultChangedPriceHandlingStrategy } from './order/default-changed-pri import { DefaultOrderItemPriceCalculationStrategy } from './order/default-order-item-price-calculation-strategy'; import { DefaultOrderPlacedStrategy } from './order/default-order-placed-strategy'; import { DefaultStockAllocationStrategy } from './order/default-stock-allocation-strategy'; +import { DefaultVendorSelectionStrategy } from './order/default-vendor-selection-strategy'; import { MergeOrdersStrategy } from './order/merge-orders-strategy'; import { DefaultOrderByCodeAccessStrategy } from './order/order-by-code-access-strategy'; import { DefaultOrderCodeStrategy } from './order/order-code-strategy'; @@ -140,6 +141,7 @@ export const defaultConfig: RuntimeVendureConfig = { changedPriceHandlingStrategy: new DefaultChangedPriceHandlingStrategy(), orderPlacedStrategy: new DefaultOrderPlacedStrategy(), activeOrderStrategy: new DefaultActiveOrderStrategy(), + vendorSelectionStrategy: new DefaultVendorSelectionStrategy(), }, paymentOptions: { paymentMethodEligibilityCheckers: [], diff --git a/packages/core/src/config/order/default-vendor-selection-strategy.ts b/packages/core/src/config/order/default-vendor-selection-strategy.ts new file mode 100644 index 0000000000..6f28254cf6 --- /dev/null +++ b/packages/core/src/config/order/default-vendor-selection-strategy.ts @@ -0,0 +1,7 @@ +import { VendorSelectionStrategy } from './vendor-selection-strategy'; + +export class DefaultVendorSelectionStrategy implements VendorSelectionStrategy { + selectChannelIdForVendorOrder() { + return undefined; + } +} diff --git a/packages/core/src/config/order/order-code-strategy.ts b/packages/core/src/config/order/order-code-strategy.ts index b8dffcf9cf..e361d1f3db 100644 --- a/packages/core/src/config/order/order-code-strategy.ts +++ b/packages/core/src/config/order/order-code-strategy.ts @@ -1,6 +1,8 @@ import { RequestContext } from '../../api/common/request-context'; import { generatePublicId } from '../../common/generate-public-id'; import { InjectableStrategy } from '../../common/types/injectable-strategy'; +import { Channel } from '../../entity/index'; +import { Vendor } from '../../entity/vendor/vendor.entity'; /** * @description @@ -34,7 +36,7 @@ export interface OrderCodeStrategy extends InjectableStrategy { * @description * Generates the order code. */ - generate(ctx: RequestContext): string | Promise; + generate(ctx: RequestContext, channel?: Channel): string | Promise; } /** diff --git a/packages/core/src/config/order/vendor-selection-strategy.ts b/packages/core/src/config/order/vendor-selection-strategy.ts new file mode 100644 index 0000000000..2a53979e96 --- /dev/null +++ b/packages/core/src/config/order/vendor-selection-strategy.ts @@ -0,0 +1,27 @@ +import { ID } from '@vendure/common/lib/shared-types'; + +import { RequestContext } from '../../api/common/request-context'; +import { InjectableStrategy } from '../../common/types/injectable-strategy'; +import { OrderLine } from '../../entity'; +import { Order } from '../../entity/order/order.entity'; +import { ProductVariant } from '../../entity/product-variant/product-variant.entity'; +import { OrderState } from '../../service/helpers/order-state-machine/order-state'; + +/** + * @description + * This strategy is responsible for selecting a specific Vendor when creating a multivendor Order. + * + * @docsCategory orders + */ +export interface VendorSelectionStrategy extends InjectableStrategy { + /** + * @description + * Should return the ID of a Channel, or `undefined` if this OrderLine should not + * be assigned to a Vendor. + */ + selectChannelIdForVendorOrder( + ctx: RequestContext, + order: Order, + orderLine: OrderLine, + ): undefined | ID | Promise; +} diff --git a/packages/core/src/config/vendure-config.ts b/packages/core/src/config/vendure-config.ts index b81e56c4d1..cbd74ce03d 100644 --- a/packages/core/src/config/vendure-config.ts +++ b/packages/core/src/config/vendure-config.ts @@ -35,6 +35,7 @@ import { OrderItemPriceCalculationStrategy } from './order/order-item-price-calc import { OrderMergeStrategy } from './order/order-merge-strategy'; import { OrderPlacedStrategy } from './order/order-placed-strategy'; import { StockAllocationStrategy } from './order/stock-allocation-strategy'; +import { VendorSelectionStrategy } from './order/vendor-selection-strategy'; import { CustomPaymentProcess } from './payment/custom-payment-process'; import { PaymentMethodEligibilityChecker } from './payment/payment-method-eligibility-checker'; import { PaymentMethodHandler } from './payment/payment-method-handler'; @@ -570,6 +571,7 @@ export interface OrderOptions { * @default DefaultActiveOrderStrategy */ activeOrderStrategy?: ActiveOrderStrategy | Array>; + vendorSelectionStrategy?: VendorSelectionStrategy; } /** diff --git a/packages/core/src/entity/channel/channel.entity.ts b/packages/core/src/entity/channel/channel.entity.ts index 6524cf7a2d..539f5f18d9 100644 --- a/packages/core/src/entity/channel/channel.entity.ts +++ b/packages/core/src/entity/channel/channel.entity.ts @@ -1,9 +1,11 @@ import { CurrencyCode, LanguageCode } from '@vendure/common/lib/generated-types'; -import { DeepPartial } from '@vendure/common/lib/shared-types'; +import { DeepPartial, ID } from '@vendure/common/lib/shared-types'; import { Column, Entity, Index, ManyToOne } from 'typeorm'; import { VendureEntity } from '../base/base.entity'; import { CustomChannelFields } from '../custom-entity-fields'; +import { EntityId } from '../entity-id.decorator'; +import { Vendor } from '../vendor/vendor.entity'; import { Zone } from '../zone/zone.entity'; /** @@ -28,6 +30,15 @@ export class Channel extends VendureEntity { @Column({ unique: true }) token: string; + @Column({ default: '', nullable: true }) + description: string; + + @ManyToOne(type => Vendor) + vendor?: Vendor; + + @EntityId({ nullable: true }) + vendorId: ID | null; + @Column('varchar') defaultLanguageCode: LanguageCode; @Index() diff --git a/packages/core/src/entity/entities.ts b/packages/core/src/entity/entities.ts index ecc43e218f..057e394122 100644 --- a/packages/core/src/entity/entities.ts +++ b/packages/core/src/entity/entities.ts @@ -58,6 +58,8 @@ import { Tag } from './tag/tag.entity'; import { TaxCategory } from './tax-category/tax-category.entity'; import { TaxRate } from './tax-rate/tax-rate.entity'; import { User } from './user/user.entity'; +import { VendorOrder } from './vendor-order/vendor-order.entity'; +import { Vendor } from './vendor/vendor.entity'; import { Zone } from './zone/zone.entity'; /** @@ -124,5 +126,7 @@ export const coreEntitiesMap = { TaxCategory, TaxRate, User, + Vendor, + VendorOrder, Zone, }; diff --git a/packages/core/src/entity/order/order.entity.ts b/packages/core/src/entity/order/order.entity.ts index 62775153c7..ff44321e61 100644 --- a/packages/core/src/entity/order/order.entity.ts +++ b/packages/core/src/entity/order/order.entity.ts @@ -27,6 +27,7 @@ import { Payment } from '../payment/payment.entity'; import { Promotion } from '../promotion/promotion.entity'; import { ShippingLine } from '../shipping-line/shipping-line.entity'; import { Surcharge } from '../surcharge/surcharge.entity'; +import { VendorOrder } from '../vendor-order/vendor-order.entity'; /** * @description @@ -55,6 +56,9 @@ export class Order extends VendureEntity implements ChannelAware, HasCustomField @Index({ unique: true }) code: string; + @OneToMany(type => VendorOrder, vendorOrder => vendorOrder.parent) + vendorOrders: VendorOrder[]; + @Column('varchar') state: OrderState; /** diff --git a/packages/core/src/entity/vendor-order/vendor-order.entity.ts b/packages/core/src/entity/vendor-order/vendor-order.entity.ts new file mode 100644 index 0000000000..68519cecb6 --- /dev/null +++ b/packages/core/src/entity/vendor-order/vendor-order.entity.ts @@ -0,0 +1,83 @@ +import { DeepPartial, ID } from '@vendure/common/lib/shared-types'; +import { Column, Entity, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, OneToOne } from 'typeorm'; + +import { VendureEntity } from '../base/base.entity'; +import { Channel } from '../channel/channel.entity'; +import { CustomOrderFields } from '../custom-entity-fields'; +import { EntityId } from '../entity-id.decorator'; +import { OrderLine } from '../order-line/order-line.entity'; +import { OrderModification } from '../order-modification/order-modification.entity'; +import { Order } from '../order/order.entity'; +import { Payment } from '../payment/payment.entity'; +import { ShippingLine } from '../shipping-line/shipping-line.entity'; +import { Surcharge } from '../surcharge/surcharge.entity'; +import { Vendor } from '../vendor/vendor.entity'; + +/** + * @description + * + * + * @docsCategory entities + */ +@Entity() +export class VendorOrder extends VendureEntity { + constructor(input?: DeepPartial) { + super(input); + } + + @ManyToOne(type => Channel) + channel: Channel; + + @EntityId() + channelId: ID; + + @ManyToOne(type => Order) + parent: Order; + + @EntityId() + parentId: ID; + + /** + * @description + * A unique code for the Order, generated according to the + * {@link OrderCodeStrategy}. This should be used as an order reference + * for Customers, rather than the Order's id. + */ + @Column() + @Index({ unique: true }) + code: string; + + @ManyToMany(type => OrderLine, line => line.order) + @JoinTable() + lines: OrderLine[]; + + /** + * @description + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + @ManyToMany(type => Surcharge, surcharge => surcharge.order) + @JoinTable() + surcharges: Surcharge[]; + + @ManyToMany(type => Payment, payment => payment.order) + @JoinTable() + payments: Payment[]; + + @Column(type => CustomOrderFields) + customFields: CustomOrderFields; + + @ManyToMany(type => OrderModification, modification => modification.order) + @JoinTable() + modifications: OrderModification[]; + + /** + * @description + * The shipping charges applied to this order. + */ + @ManyToMany(type => ShippingLine, shippingLine => shippingLine.order) + @JoinTable() + shippingLines: ShippingLine[]; +} diff --git a/packages/core/src/entity/vendor/vendor.entity.ts b/packages/core/src/entity/vendor/vendor.entity.ts new file mode 100644 index 0000000000..8e4475e976 --- /dev/null +++ b/packages/core/src/entity/vendor/vendor.entity.ts @@ -0,0 +1,26 @@ +import { DeepPartial } from '@vendure/common/lib/shared-types'; +import { Column, Entity } from 'typeorm'; + +import { SoftDeletable } from '../../common/types/common-types'; +import { VendureEntity } from '../base/base.entity'; + +/** + * @description + * An administrative user who has access to the admin ui. + * + * @docsCategory entities + */ +@Entity() +export class Vendor extends VendureEntity implements SoftDeletable /*, HasCustomFields*/ { + constructor(input?: DeepPartial) { + super(input); + } + + @Column({ type: Date, nullable: true }) + deletedAt: Date | null; + + @Column() name: string; + + // @Column(type => CustomAdministratorFields) + // customFields: CustomAdministratorFields; +} diff --git a/packages/core/src/service/helpers/order-modifier/order-modifier.ts b/packages/core/src/service/helpers/order-modifier/order-modifier.ts index 89258efc40..7058022047 100644 --- a/packages/core/src/service/helpers/order-modifier/order-modifier.ts +++ b/packages/core/src/service/helpers/order-modifier/order-modifier.ts @@ -29,6 +29,7 @@ import { ConfigService } from '../../../config/config.service'; import { CustomFieldConfig } from '../../../config/custom-field/custom-field-types'; import { TransactionalConnection } from '../../../connection/transactional-connection'; import { VendureEntity } from '../../../entity/base/base.entity'; +import { Channel } from '../../../entity/index'; import { OrderItem } from '../../../entity/order-item/order-item.entity'; import { OrderLine } from '../../../entity/order-line/order-line.entity'; import { OrderModification } from '../../../entity/order-modification/order-modification.entity'; @@ -37,6 +38,8 @@ import { Payment } from '../../../entity/payment/payment.entity'; import { ProductVariant } from '../../../entity/product-variant/product-variant.entity'; import { ShippingLine } from '../../../entity/shipping-line/shipping-line.entity'; import { Surcharge } from '../../../entity/surcharge/surcharge.entity'; +import { VendorOrder } from '../../../entity/vendor-order/vendor-order.entity'; +import { Vendor } from '../../../entity/vendor/vendor.entity'; import { EventBus } from '../../../event-bus/event-bus'; import { OrderLineEvent } from '../../../event-bus/index'; import { CountryService } from '../../services/country.service'; @@ -166,11 +169,45 @@ export class OrderModifier { ctx, ); order.lines.push(lineWithRelations); + await this.assignToVendorOrder(ctx, order, lineWithRelations); await this.connection.getRepository(ctx, Order).save(order, { reload: false }); this.eventBus.publish(new OrderLineEvent(ctx, order, lineWithRelations, 'created')); return lineWithRelations; } + private async assignToVendorOrder(ctx: RequestContext, order: Order, orderLine: OrderLine) { + const { vendorSelectionStrategy } = this.configService.orderOptions; + const channelId = await vendorSelectionStrategy.selectChannelIdForVendorOrder(ctx, order, orderLine); + if (!channelId) { + return; + } + const channel = await this.connection.getEntityOrThrow(ctx, Channel, channelId); + const { vendorOrders } = await this.connection.getEntityOrThrow(ctx, Order, order.id, { + relations: ['vendorOrders'], + }); + let vendorOrder = vendorOrders.find(vo => idsAreEqual(vo.channelId, channelId)); + if (!vendorOrder) { + vendorOrder = await this.connection.getRepository(ctx, VendorOrder).save( + new VendorOrder({ + code: await this.configService.orderOptions.orderCodeStrategy.generate(ctx, channel), + lines: [], + surcharges: [], + modifications: [], + channel, + parent: order, + }), + ); + await this.connection + .getRepository(ctx, Order) + .createQueryBuilder() + .relation(Order, 'vendorOrders') + .of(order) + .add(vendorOrder); + } + vendorOrder.lines.push(orderLine); + await this.connection.getRepository(ctx, VendorOrder).save(vendorOrder); + } + /** * @description * Updates the quantity of an OrderLine, taking into account the available saleable stock level. diff --git a/packages/core/src/service/index.ts b/packages/core/src/service/index.ts index a957b151d6..3d558c53be 100644 --- a/packages/core/src/service/index.ts +++ b/packages/core/src/service/index.ts @@ -52,4 +52,5 @@ export * from './services/tag.service'; export * from './services/tax-category.service'; export * from './services/tax-rate.service'; export * from './services/user.service'; +export * from './services/vendor.service'; export * from './services/zone.service'; diff --git a/packages/core/src/service/service.module.ts b/packages/core/src/service/service.module.ts index 8848e10953..922231b1d0 100644 --- a/packages/core/src/service/service.module.ts +++ b/packages/core/src/service/service.module.ts @@ -60,6 +60,7 @@ import { TagService } from './services/tag.service'; import { TaxCategoryService } from './services/tax-category.service'; import { TaxRateService } from './services/tax-rate.service'; import { UserService } from './services/user.service'; +import { VendorService } from './services/vendor.service'; import { ZoneService } from './services/zone.service'; const services = [ @@ -94,6 +95,7 @@ const services = [ TaxCategoryService, TaxRateService, UserService, + VendorService, ZoneService, ]; diff --git a/packages/core/src/service/services/channel.service.ts b/packages/core/src/service/services/channel.service.ts index 653c63eb00..14f6f0e5c7 100644 --- a/packages/core/src/service/services/channel.service.ts +++ b/packages/core/src/service/services/channel.service.ts @@ -12,6 +12,7 @@ import { DEFAULT_CHANNEL_CODE } from '@vendure/common/lib/shared-constants'; import { ID, PaginatedList, Type } from '@vendure/common/lib/shared-types'; import { unique } from '@vendure/common/lib/unique'; +import { RelationPaths } from '../../api'; import { RequestContext } from '../../api/common/request-context'; import { ErrorResultUnion, isGraphQlErrorResult } from '../../common/error/error-result'; import { ChannelNotFoundError, EntityNotFoundError, InternalServerError } from '../../common/error/errors'; @@ -26,15 +27,16 @@ import { Channel } from '../../entity/channel/channel.entity'; import { Order } from '../../entity/order/order.entity'; import { ProductVariantPrice } from '../../entity/product-variant/product-variant-price.entity'; import { Session } from '../../entity/session/session.entity'; +import { Vendor } from '../../entity/vendor/vendor.entity'; import { Zone } from '../../entity/zone/zone.entity'; import { EventBus } from '../../event-bus'; import { ChangeChannelEvent } from '../../event-bus/events/change-channel-event'; import { ChannelEvent } from '../../event-bus/events/channel-event'; import { CustomFieldRelationService } from '../helpers/custom-field-relation/custom-field-relation.service'; +import { ListQueryBuilder } from '../helpers/list-query-builder/list-query-builder'; import { patchEntity } from '../helpers/utils/patch-entity'; + import { GlobalSettingsService } from './global-settings.service'; -import { RelationPaths } from '../../api'; -import { ListQueryBuilder } from '../helpers/list-query-builder/list-query-builder'; /** * @description @@ -76,11 +78,11 @@ export class ChannelService { name: 'ChannelService.allChannels', ttl: this.configService.entityOptions.channelCacheTtl, refresh: { - fn: async (ctx) => { + fn: async ctx => { const { items } = await this.findAll(ctx); - return items + return items; }, - defaultArgs: [RequestContext.empty()] + defaultArgs: [RequestContext.empty()], }, }); } @@ -196,7 +198,7 @@ export class ChannelService { findAll( ctx: RequestContext, options?: ListQueryOptions, - relations?: RelationPaths + relations?: RelationPaths, ): Promise> { return this.listQueryBuilder .build(Channel, options, { @@ -240,10 +242,15 @@ export class ChannelService { ); } const newChannel = await this.connection.getRepository(ctx, Channel).save(channel); + if (input.vendorId) { + const vendor = await this.connection.getEntityOrThrow(ctx, Vendor, input.vendorId); + newChannel.vendor = vendor; + await this.connection.getRepository(ctx, Channel).save(newChannel); + } await this.customFieldRelationService.updateRelations(ctx, Channel, input, newChannel); await this.allChannels.refresh(ctx); this.eventBus.publish(new ChannelEvent(ctx, newChannel, 'created', input)); - return channel; + return newChannel; } async update( @@ -273,6 +280,10 @@ export class ChannelService { input.defaultShippingZoneId, ); } + if (input.vendorId) { + const vendor = await this.connection.getEntityOrThrow(ctx, Vendor, input.vendorId); + updatedChannel.vendor = vendor; + } await this.connection.getRepository(ctx, Channel).save(updatedChannel, { reload: false }); await this.customFieldRelationService.updateRelations(ctx, Channel, input, updatedChannel); await this.allChannels.refresh(ctx); diff --git a/packages/core/src/service/services/order.service.ts b/packages/core/src/service/services/order.service.ts index b4153f68f9..d08ded0d47 100644 --- a/packages/core/src/service/services/order.service.ts +++ b/packages/core/src/service/services/order.service.ts @@ -82,7 +82,7 @@ import { TransactionalConnection } from '../../connection/transactional-connecti import { Customer } from '../../entity/customer/customer.entity'; import { Fulfillment } from '../../entity/fulfillment/fulfillment.entity'; import { HistoryEntry } from '../../entity/history-entry/history-entry.entity'; -import { Session } from '../../entity/index'; +import { Channel, Session } from '../../entity/index'; import { OrderItem } from '../../entity/order-item/order-item.entity'; import { OrderLine } from '../../entity/order-line/order-line.entity'; import { OrderModification } from '../../entity/order-modification/order-modification.entity'; @@ -95,6 +95,7 @@ import { ShippingLine } from '../../entity/shipping-line/shipping-line.entity'; import { Allocation } from '../../entity/stock-movement/allocation.entity'; import { Surcharge } from '../../entity/surcharge/surcharge.entity'; import { User } from '../../entity/user/user.entity'; +import { VendorOrder } from '../../entity/vendor-order/vendor-order.entity'; import { EventBus } from '../../event-bus/event-bus'; import { CouponCodeEvent } from '../../event-bus/index'; import { OrderEvent } from '../../event-bus/index'; @@ -538,6 +539,7 @@ export class OrderService { } const quantityWasAdjustedDown = correctedQuantity < quantity; const updatedOrder = await this.applyPriceAdjustments(ctx, order, [orderLine]); + await this.updateOrderChannels(ctx, order); if (quantityWasAdjustedDown) { return new InsufficientStockError({ quantityAvailable: correctedQuantity, order: updatedOrder }); } else { @@ -584,6 +586,7 @@ export class OrderService { if (correctedQuantity === 0) { order.lines = order.lines.filter(l => !idsAreEqual(l.id, orderLine.id)); await this.connection.getRepository(ctx, OrderLine).remove(orderLine); + await this.updateOrderChannels(ctx, order); this.eventBus.publish(new OrderLineEvent(ctx, order, orderLine, 'deleted')); updatedOrderLines = []; } else { @@ -615,6 +618,7 @@ export class OrderService { const orderLine = this.getOrderLineOrThrow(order, orderLineId); order.lines = order.lines.filter(line => !idsAreEqual(line.id, orderLineId)); const updatedOrder = await this.applyPriceAdjustments(ctx, order); + await this.updateOrderChannels(ctx, order); await this.connection.getRepository(ctx, OrderLine).remove(orderLine); this.eventBus.publish(new OrderLineEvent(ctx, order, orderLine, 'deleted')); return updatedOrder; @@ -639,6 +643,22 @@ export class OrderService { return updatedOrder; } + private async updateOrderChannels(ctx: RequestContext, order: Order) { + const vendorOrders = await this.connection + .getRepository(ctx, Order) + .createQueryBuilder() + .relation('vendorOrders') + .of(order) + .loadMany(); + + const channelIds = new Set([ctx.channelId]); + for (const vendorOrder of vendorOrders) { + channelIds.add(vendorOrder.channelId); + } + order.channels = [...channelIds].map(id => new Channel({ id })); + await this.connection.getRepository(ctx, Order).save(order, { reload: false }); + } + /** * @description * Adds a {@link Surcharge} to the Order. diff --git a/packages/core/src/service/services/vendor.service.ts b/packages/core/src/service/services/vendor.service.ts new file mode 100644 index 0000000000..ae2f2c813b --- /dev/null +++ b/packages/core/src/service/services/vendor.service.ts @@ -0,0 +1,60 @@ +import { Injectable } from '@nestjs/common'; +import { + CreateVendorInput, + DeletionResponse, + DeletionResult, + UpdateVendorInput, +} from '@vendure/common/lib/generated-types'; +import { ID, PaginatedList } from '@vendure/common/lib/shared-types'; + +import { RequestContext } from '../../api/common/request-context'; +import { ListQueryOptions } from '../../common/types/common-types'; +import { TransactionalConnection } from '../../connection/transactional-connection'; +import { Vendor } from '../../entity/vendor/vendor.entity'; +import { ListQueryBuilder } from '../helpers/list-query-builder/list-query-builder'; + +/** + * @description + * Contains methods relating to {@link Vendor} entities. + * + * @docsCategory services + */ +@Injectable() +export class VendorService { + constructor(private connection: TransactionalConnection, private listQueryBuilder: ListQueryBuilder) {} + + findAll(ctx: RequestContext, options?: ListQueryOptions): Promise> { + return this.listQueryBuilder + .build(Vendor, options, { ctx }) + .getManyAndCount() + .then(([items, totalItems]) => ({ + items, + totalItems, + })); + } + + findOne(ctx: RequestContext, vendorId: ID): Promise { + return this.connection.getRepository(ctx, Vendor).findOne(vendorId); + } + + create(ctx: RequestContext, input: CreateVendorInput) { + return this.connection.getRepository(ctx, Vendor).save(new Vendor(input)); + } + + async update(ctx: RequestContext, input: UpdateVendorInput) { + const vendor = await this.connection.getEntityOrThrow(ctx, Vendor, input.id); + if (input.name) { + vendor.name = input.name; + await this.connection.getRepository(ctx, Vendor).save(vendor); + } + return vendor; + } + + async delete(ctx: RequestContext, id: ID): Promise { + const vendor = await this.connection.getEntityOrThrow(ctx, Vendor, id); + await this.connection.getRepository(ctx, Vendor).remove(vendor); + return { + result: DeletionResult.DELETED, + }; + } +}