From 7b407de250d3052ff665712a3366d75eb924bdd8 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Wed, 19 Apr 2023 21:18:51 +0200 Subject: [PATCH] fix(core): Fix issues with Promotion & PaymentMethod null descriptions BREAKING CHANGE: `Promotion` & `PaymentMethod` `description` is once again non-nullable. This will require a simple non-destructive DB migration. --- packages/core/e2e/graphql/fragments.ts | 7 + .../e2e/graphql/generated-e2e-admin-types.ts | 13606 ++++++---------- .../e2e/graphql/generated-e2e-shop-types.ts | 6020 +++---- packages/core/e2e/payment-method.e2e-spec.ts | 70 + packages/core/e2e/promotion.e2e-spec.ts | 37 +- .../payment-method-translation.entity.ts | 7 +- .../promotion/promotion-translation.entity.ts | 7 +- 7 files changed, 7576 insertions(+), 12178 deletions(-) diff --git a/packages/core/e2e/graphql/fragments.ts b/packages/core/e2e/graphql/fragments.ts index 429bba5474..8f06f29d66 100644 --- a/packages/core/e2e/graphql/fragments.ts +++ b/packages/core/e2e/graphql/fragments.ts @@ -441,6 +441,7 @@ export const PROMOTION_FRAGMENT = gql` startsAt endsAt name + description enabled conditions { ...ConfigurableOperation @@ -448,6 +449,12 @@ export const PROMOTION_FRAGMENT = gql` actions { ...ConfigurableOperation } + translations { + id + languageCode + name + description + } } ${CONFIGURABLE_FRAGMENT} `; diff --git a/packages/core/e2e/graphql/generated-e2e-admin-types.ts b/packages/core/e2e/graphql/generated-e2e-admin-types.ts index f892838d81..ead1cbcd5c 100644 --- a/packages/core/e2e/graphql/generated-e2e-admin-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-admin-types.ts @@ -6,366 +6,347 @@ 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; - DateTime: any; - JSON: any; - Money: number; - Upload: any; -}; - -export type AddFulfillmentToOrderResult = - | CreateFulfillmentError - | EmptyOrderLineSelectionError - | Fulfillment - | FulfillmentStateTransitionError - | InsufficientStockOnHandError - | InvalidFulfillmentHandlerError - | ItemsAlreadyFulfilledError; + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + DateTime: any; + JSON: any; + Money: number; + 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 Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Money']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Money']; + data?: Maybe; + 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']; - /** @deprecated Use defaultCurrencyCode instead */ - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultCurrencyCode: CurrencyCode; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - seller?: Maybe; - token: Scalars['String']; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + /** @deprecated Use defaultCurrencyCode instead */ + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultCurrencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + seller?: Maybe; + token: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** @@ -373,73 +354,74 @@ 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; }; /** @@ -447,412 +429,411 @@ 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']; -}; - -export type Country = Node & - Region & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']; - updatedAt: Scalars['DateTime']; - }; + x: Scalars['Float']; + y: Scalars['Float']; +}; + +export type Country = Node & Region & { + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; export type CountryFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - parentId?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + parentId?: InputMaybe; + type?: 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; - parentId?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + parentId?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; 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']; - sellerId?: InputMaybe; - token: Scalars['String']; + code: Scalars['String']; + currencyCode: CurrencyCode; + customFields?: InputMaybe; + defaultLanguageCode: LanguageCode; + defaultShippingZoneId: Scalars['ID']; + defaultTaxZoneId: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + sellerId?: InputMaybe; + token: Scalars['String']; }; 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; - enabled: Scalars['Boolean']; - handler: ConfigurableOperationInput; - translations: Array; + checker?: InputMaybe; + code: Scalars['String']; + customFields?: InputMaybe; + enabled: Scalars['Boolean']; + handler: ConfigurableOperationInput; + translations: Array; }; 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']; - stockLevels?: InputMaybe>; - 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']; + stockLevels?: InputMaybe>; + 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; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; - translations: Array; + actions: Array; + conditions: Array; + couponCode?: InputMaybe; + customFields?: InputMaybe; + enabled: Scalars['Boolean']; + endsAt?: InputMaybe; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; + translations: Array; }; export type CreatePromotionResult = MissingConditionsError | Promotion; export type CreateProvinceInput = { - code: Scalars['String']; - customFields?: InputMaybe; - enabled: Scalars['Boolean']; - translations: Array; + code: Scalars['String']; + customFields?: InputMaybe; + enabled: Scalars['Boolean']; + translations: Array; }; 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 CreateSellerInput = { - customFields?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + name: Scalars['String']; }; 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 CreateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + description?: InputMaybe; + name: Scalars['String']; }; 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 CreateZoneInput = { - customFields?: InputMaybe; - memberIds?: InputMaybe>; - name: Scalars['String']; + customFields?: InputMaybe; + memberIds?: InputMaybe>; + name: Scalars['String']; }; /** @@ -862,516 +843,510 @@ 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 - | LocaleTextCustomFieldConfig - | 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 | LocaleTextCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig; export type CustomFields = { - Address: Array; - Administrator: Array; - Asset: Array; - Channel: Array; - Collection: 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; - Region: Array; - Seller: Array; - ShippingMethod: Array; - StockLocation: Array; - TaxCategory: Array; - TaxRate: Array; - User: Array; - Zone: Array; + Address: Array; + Administrator: Array; + Asset: Array; + Channel: Array; + Collection: 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; + Region: Array; + Seller: Array; + ShippingMethod: Array; + StockLocation: 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']; }; /** @@ -1379,202 +1354,202 @@ 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 DeleteStockLocationInput = { - id: Scalars['ID']; - transferToLocationId?: InputMaybe; + id: Scalars['ID']; + transferToLocationId?: 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['Money']; - amountWithTax: Scalars['Money']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Money']; + amountWithTax: Scalars['Money']; + 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', - GUEST_CHECKOUT_ERROR = 'GUEST_CHECKOUT_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', + GUEST_CHECKOUT_ERROR = 'GUEST_CHECKOUT_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']; }; /** @@ -1586,35 +1561,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; }; /** @@ -1622,209 +1597,209 @@ 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']; - lines: Array; - method: Scalars['String']; - nextStates: Array; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + nextStates: Array; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + 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']; }; /** Returned when attempting to set the Customer on a guest checkout when the configured GuestCheckoutStrategy does not allow it. */ export type GuestCheckoutError = ErrorResult & { - errorCode: ErrorCode; - errorDetail: Scalars['String']; - message: Scalars['String']; + errorCode: ErrorCode; + errorDetail: Scalars['String']; + message: Scalars['String']; }; 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']; }; /** @@ -1832,116 +1807,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; }; /** @@ -1951,12 +1926,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' } /** @@ -1969,370 +1944,370 @@ 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 LocaleTextCustomFieldConfig = 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 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; }; /** @@ -2340,923 +2315,1048 @@ 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 Province */ - createProvince: Province; - /** Create a new Role */ - createRole: Role; - /** Create a new Seller */ - createSeller: Seller; - /** Create a new ShippingMethod */ - createShippingMethod: ShippingMethod; - createStockLocation: StockLocation; - /** 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 a Province */ - deleteProvince: DeletionResponse; - /** Delete an existing Role */ - deleteRole: DeletionResponse; - /** Delete a Seller */ - deleteSeller: DeletionResponse; - /** Delete a ShippingMethod */ - deleteShippingMethod: DeletionResponse; - deleteStockLocation: 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 Province */ - updateProvince: Province; - /** Update an existing Role */ - updateRole: Role; - /** Update an existing Seller */ - updateSeller: Seller; - /** Update an existing ShippingMethod */ - updateShippingMethod: ShippingMethod; - updateStockLocation: StockLocation; - /** 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 Province */ + createProvince: Province; + /** Create a new Role */ + createRole: Role; + /** Create a new Seller */ + createSeller: Seller; + /** Create a new ShippingMethod */ + createShippingMethod: ShippingMethod; + createStockLocation: StockLocation; + /** 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 a Province */ + deleteProvince: DeletionResponse; + /** Delete an existing Role */ + deleteRole: DeletionResponse; + /** Delete a Seller */ + deleteSeller: DeletionResponse; + /** Delete a ShippingMethod */ + deleteShippingMethod: DeletionResponse; + deleteStockLocation: 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 Province */ + updateProvince: Province; + /** Update an existing Role */ + updateRole: Role; + /** Update an existing Seller */ + updateSeller: Seller; + /** Update an existing ShippingMethod */ + updateShippingMethod: ShippingMethod; + updateStockLocation: StockLocation; + /** Update an existing Tag */ + updateTag: Tag; + /** Update an existing TaxCategory */ + updateTaxCategory: TaxCategory; + /** Update an existing TaxRate */ + updateTaxRate: TaxRate; + /** 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 MutationCreateProvinceArgs = { - input: CreateProvinceInput; + input: CreateProvinceInput; }; + export type MutationCreateRoleArgs = { - input: CreateRoleInput; + input: CreateRoleInput; }; + export type MutationCreateSellerArgs = { - input: CreateSellerInput; + input: CreateSellerInput; }; + export type MutationCreateShippingMethodArgs = { - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }; + export type MutationCreateStockLocationArgs = { - input: CreateStockLocationInput; + input: CreateStockLocationInput; }; + export type MutationCreateTagArgs = { - input: CreateTagInput; + input: CreateTagInput; }; + export type MutationCreateTaxCategoryArgs = { - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }; + export type MutationCreateTaxRateArgs = { - input: CreateTaxRateInput; + input: CreateTaxRateInput; }; + 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 MutationDeleteProvinceArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteSellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteStockLocationArgs = { - input: DeleteStockLocationInput; + input: DeleteStockLocationInput; }; + 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 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 MutationUpdateProvinceArgs = { - input: UpdateProvinceInput; + input: UpdateProvinceInput; }; + export type MutationUpdateRoleArgs = { - input: UpdateRoleInput; + input: UpdateRoleInput; }; + export type MutationUpdateSellerArgs = { - input: UpdateSellerInput; + input: UpdateSellerInput; }; + export type MutationUpdateShippingMethodArgs = { - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }; + export type MutationUpdateStockLocationArgs = { - input: UpdateStockLocationInput; + input: UpdateStockLocationInput; }; + export type MutationUpdateTagArgs = { - input: UpdateTagInput; + input: UpdateTagInput; }; + export type MutationUpdateTaxCategoryArgs = { - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }; + export type MutationUpdateTaxRateArgs = { - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }; + 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']; }; /** @@ -3264,342 +3364,343 @@ 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']; - aggregateOrder?: Maybe; - aggregateOrderId?: Maybe; - billingAddress?: Maybe; - channels: Array; - /** 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; - sellerOrders?: Maybe>; - shipping: Scalars['Money']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Money']; - 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['Money']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Money']; - /** - * 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['Money']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Money']; - type: OrderType; - updatedAt: Scalars['DateTime']; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']; + aggregateOrder?: Maybe; + aggregateOrderId?: Maybe; + billingAddress?: Maybe; + channels: Array; + /** 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; + sellerOrders?: Maybe>; + shipping: Scalars['Money']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Money']; + 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['Money']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Money']; + /** + * 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['Money']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Money']; + type: OrderType; + 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; - aggregateOrderId?: 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; - type?: InputMaybe; - updatedAt?: InputMaybe; + active?: InputMaybe; + aggregateOrderId?: 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; + type?: 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['Money']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Money']; - 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['Money']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Money']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Money']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Money']; - unitTax: Scalars['Money']; - 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['Money']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Money']; + 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['Money']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Money']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Money']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Money']; + unitTax: Scalars['Money']; + 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['Money']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Money']; - /** - * 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['Money']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Money']; - discounts: Array; - featuredAsset?: Maybe; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** The total price of the line excluding tax and discounts. */ - linePrice: Scalars['Money']; - /** The total price of the line including tax but excluding discounts. */ - linePriceWithTax: Scalars['Money']; - /** The total tax on this line */ - lineTax: Scalars['Money']; - order: Order; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - 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['Money']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Money']; - /** - * 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['Money']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Money']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Money']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Money']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Money']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Money']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Money']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Money']; + /** + * 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['Money']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Money']; + discounts: Array; + featuredAsset?: Maybe; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** The total price of the line excluding tax and discounts. */ + linePrice: Scalars['Money']; + /** The total price of the line including tax but excluding discounts. */ + linePriceWithTax: Scalars['Money']; + /** The total tax on this line */ + lineTax: Scalars['Money']; + order: Order; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + 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['Money']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Money']; + /** + * 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['Money']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Money']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Money']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Money']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Money']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Money']; + 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']; - lines: Array; - note: Scalars['String']; - payment?: Maybe; - priceChange: Scalars['Money']; - refund?: Maybe; - surcharges?: Maybe>; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + isSettled: Scalars['Boolean']; + lines: Array; + note: Scalars['String']; + payment?: Maybe; + priceChange: Scalars['Money']; + 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']; }; export type OrderModificationLine = { - modification: OrderModification; - modificationId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + modification: OrderModification; + modificationId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** 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 = { - aggregateOrderId?: 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; + aggregateOrderId?: 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']; }; /** @@ -3607,81 +3708,81 @@ 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['Money']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Money']; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Money']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Money']; }; export enum OrderType { - Aggregate = 'Aggregate', - Regular = 'Regular', - Seller = 'Seller', + Aggregate = 'Aggregate', + Regular = 'Regular', + Seller = 'Seller' } export type PaginatedList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Payment = Node & { - amount: Scalars['Money']; - 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['Money']; + 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']; - translations: Array; - 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']; + translations: Array; + 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; }; /** @@ -3689,59 +3790,59 @@ 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; }; export type PaymentMethodTranslation = { - 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 PaymentMethodTranslationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: 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']; }; /** @@ -3777,949 +3878,994 @@ 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 Seller */ - CreateSeller = 'CreateSeller', - /** 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 Seller */ - DeleteSeller = 'DeleteSeller', - /** 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 Seller */ - ReadSeller = 'ReadSeller', - /** 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 Seller */ - UpdateSeller = 'UpdateSeller', - /** 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 Seller */ + CreateSeller = 'CreateSeller', + /** 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 Seller */ + DeleteSeller = 'DeleteSeller', + /** 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 Seller */ + ReadSeller = 'ReadSeller', + /** 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 Seller */ + UpdateSeller = 'UpdateSeller', + /** 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' } 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['Money']; - min: Scalars['Money']; + max: Scalars['Money']; + min: Scalars['Money']; }; 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['Money']; - priceWithTax: Scalars['Money']; - product: Product; - productId: Scalars['ID']; - sku: Scalars['String']; - /** @deprecated use stockLevels */ - stockAllocated: Scalars['Int']; - stockLevel: Scalars['String']; - stockLevels: Array; - stockMovements: StockMovementList; - /** @deprecated use stockLevels */ - 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['Money']; + priceWithTax: Scalars['Money']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + /** @deprecated use stockLevels */ + stockAllocated: Scalars['Int']; + stockLevel: Scalars['String']; + stockLevels: Array; + stockMovements: StockMovementList; + /** @deprecated use stockLevels */ + 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; - description: Scalars['String']; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - translations: Array; - updatedAt: Scalars['DateTime']; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type PromotionFilterParameter = { - couponCode?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; - updatedAt?: InputMaybe; + couponCode?: InputMaybe; + createdAt?: InputMaybe; + description?: 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; - description?: InputMaybe; - endsAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; - updatedAt?: InputMaybe; + couponCode?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + endsAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; + updatedAt?: InputMaybe; }; export type PromotionTranslation = { - 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 PromotionTranslationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; -}; - -export type Province = Node & - Region & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']; - updatedAt: Scalars['DateTime']; - }; + customFields?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; +}; + +export type Province = Node & Region & { + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; export type ProvinceFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - parentId?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + parentId?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProvinceList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProvinceListOptions = { - /** 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 ProvinceSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - parentId?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + parentId?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProvinceTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: 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; - province?: Maybe; - provinces: ProvinceList; - role?: Maybe; - roles: RoleList; - search: SearchResponse; - seller?: Maybe; - sellers: SellerList; - shippingCalculators: Array; - shippingEligibilityCheckers: Array; - shippingMethod?: Maybe; - shippingMethods: ShippingMethodList; - stockLocation?: Maybe; - stockLocations: StockLocationList; - 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; + province?: Maybe; + provinces: ProvinceList; + role?: Maybe; + roles: RoleList; + search: SearchResponse; + seller?: Maybe; + sellers: SellerList; + shippingCalculators: Array; + shippingEligibilityCheckers: Array; + shippingMethod?: Maybe; + shippingMethods: ShippingMethodList; + stockLocation?: Maybe; + stockLocations: StockLocationList; + tag: Tag; + tags: TagList; + taxCategories: Array; + taxCategory?: Maybe; + taxRate?: Maybe; + taxRates: TaxRateList; + testEligibleShippingMethods: Array; + testShippingMethod: TestShippingMethodResult; + 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 QueryProvinceArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProvincesArgs = { - 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 QuerySellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QuerySellersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryShippingMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryStockLocationArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryStockLocationsArgs = { - 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 QueryZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; export type Refund = Node & { - adjustment: Scalars['Money']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Money']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Money']; - state: Scalars['String']; - total: Scalars['Money']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + adjustment: Scalars['Money']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Money']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Money']; + state: Scalars['String']; + total: Scalars['Money']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; export type RefundOrderInput = { - adjustment: Scalars['Money']; - lines: Array; - paymentId: Scalars['ID']; - reason?: InputMaybe; - shipping: Scalars['Money']; -}; - -export type RefundOrderResult = - | AlreadyRefundedError - | MultipleOrderError - | NothingToRefundError - | OrderStateTransitionError - | PaymentOrderMismatchError - | QuantityTooGreatError - | Refund - | RefundOrderStateError - | RefundStateTransitionError; + adjustment: Scalars['Money']; + lines: Array; + paymentId: Scalars['ID']; + reason?: InputMaybe; + shipping: Scalars['Money']; +}; + +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']; }; /** @@ -4727,77 +4873,76 @@ 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 Region = { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type RegionTranslation = { - 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 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; @@ -4805,629 +4950,618 @@ 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>; - /** @deprecated Use `facetValueFilters` instead */ - facetValueIds?: InputMaybe>; - /** @deprecated Use `facetValueFilters` instead */ - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + /** @deprecated Use `facetValueFilters` instead */ + facetValueIds?: InputMaybe>; + /** @deprecated Use `facetValueFilters` instead */ + 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 Seller = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type SellerFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type SellerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SellerListOptions = { - /** 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 SellerSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: 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['Money']; - discountedPriceWithTax: Scalars['Money']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Money']; - priceWithTax: Scalars['Money']; - shippingMethod: ShippingMethod; + discountedPrice: Scalars['Money']; + discountedPriceWithTax: Scalars['Money']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Money']; + priceWithTax: Scalars['Money']; + 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['Money']; - priceWithTax: Scalars['Money']; + 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['Money']; + priceWithTax: Scalars['Money']; }; 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['Money']; + value: Scalars['Money']; }; 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 StockLevel = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - stockAllocated: Scalars['Int']; - stockLocation: StockLocation; - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + stockAllocated: Scalars['Int']; + stockLocation: StockLocation; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type StockLevelInput = { - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; }; export type StockLocation = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type StockLocationFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockLocationList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockLocationListOptions = { - /** 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 StockLocationSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; 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['Money']; - priceWithTax: Scalars['Money']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Money']; + priceWithTax: Scalars['Money']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type SurchargeInput = { - description: Scalars['String']; - price: Scalars['Money']; - priceIncludesTax: Scalars['Boolean']; - sku?: InputMaybe; - taxDescription?: InputMaybe; - taxRate?: InputMaybe; + description: Scalars['String']; + price: Scalars['Money']; + 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['Money']; - priceWithTax: Scalars['Money']; + metadata?: Maybe; + price: Scalars['Money']; + priceWithTax: Scalars['Money']; }; 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; @@ -5437,5916 +5571,2118 @@ 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; - sellerId?: InputMaybe; - token?: InputMaybe; + code?: InputMaybe; + currencyCode?: InputMaybe; + customFields?: InputMaybe; + defaultLanguageCode?: InputMaybe; + defaultShippingZoneId?: InputMaybe; + defaultTaxZoneId?: InputMaybe; + id: Scalars['ID']; + pricesIncludeTax?: InputMaybe; + sellerId?: InputMaybe; + token?: 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; - enabled?: InputMaybe; - handler?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + checker?: InputMaybe; + code?: InputMaybe; + customFields?: InputMaybe; + enabled?: InputMaybe; + handler?: InputMaybe; + id: Scalars['ID']; + translations?: 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; - stockLevels?: 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; + stockLevels?: 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']; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; - translations?: InputMaybe>; + actions?: InputMaybe>; + conditions?: InputMaybe>; + couponCode?: InputMaybe; + customFields?: InputMaybe; + enabled?: InputMaybe; + endsAt?: InputMaybe; + id: Scalars['ID']; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; + translations?: InputMaybe>; }; export type UpdatePromotionResult = MissingConditionsError | Promotion; export type UpdateProvinceInput = { - code?: InputMaybe; - customFields?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + code?: InputMaybe; + customFields?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; 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 UpdateSellerInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: 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 UpdateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; 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 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']; + 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; - }>; - }; - }>; - }; -}; + 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 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; -}; + 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 Q1QueryVariables = Exact<{ [key: string]: never }>; +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 Q1Query = { product?: { id: string, name: string } | null }; -export type Q2QueryVariables = Exact<{ [key: string]: never }>; +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 GetCustomersQueryVariables = Exact<{ [key: string]: never }>; +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 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 GetCollectionsWithAssetsQueryVariables = Exact<{ [key: string]: never }>; +export type UpdateGlobalLanguagesMutation = { updateGlobalSettings: { id: string, availableLanguages: Array } | {} }; -export type GetCollectionsWithAssetsQuery = { - collections: { items: Array<{ assets: Array<{ name: string }> }> }; -}; +export type GetCollectionsWithAssetsQueryVariables = Exact<{ [key: string]: never; }>; -export type GetProductsWithVariantIdsQueryVariables = Exact<{ [key: string]: never }>; -export type GetProductsWithVariantIdsQuery = { - products: { items: Array<{ id: string; name: string; variants: Array<{ id: string; name: string }> }> }; -}; +export type GetCollectionsWithAssetsQuery = { collections: { items: Array<{ assets: Array<{ name: string }> }> } }; -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 GetProductsWithVariantIdsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetProductsWithVariantIdsQuery = { products: { items: Array<{ id: string, name: string, variants: Array<{ id: string, name: string }> }> } }; + +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 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 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 }; - }>; - }>; - }; -}; + 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']; + 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 GetCollectionNestedParentsQueryVariables = Exact<{ [key: string]: never }>; +export type GetProductCollectionsWithParentQuery = { product?: { id: string, collections: Array<{ id: string, name: string, parent?: { id: string, name: string } | 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 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 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 GetCheckersQueryVariables = Exact<{ [key: string]: never }>; +export type DeleteCollectionsBulkMutation = { deleteCollections: Array<{ message?: string | null, result: DeletionResult }> }; -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 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 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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 IdTest9QueryVariables = Exact<{ [key: string]: never }>; +export type IdTest8Mutation = { updateProduct: { id: string, name: string } }; -export type IdTest9Query = { - products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; -}; +export type IdTest9QueryVariables = Exact<{ [key: string]: never; }>; -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 IdTest10Query = { - products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; -}; +export type ProdFragmentFragment = { id: string, featuredAsset?: { id: string } | null }; -export type ProdFragment1Fragment = { id: string; featuredAsset?: { id: string } | null }; +export type IdTest10QueryVariables = Exact<{ [key: string]: never; }>; -export type ProdFragment2Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type IdTest11QueryVariables = Exact<{ [key: string]: never }>; +export type IdTest10Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; -export type IdTest11Query = { - products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; -}; +export type ProdFragment1Fragment = { id: string, featuredAsset?: { id: string } | null }; -export type ProdFragment1_1Fragment = { id: string; featuredAsset?: { id: string } | null }; +export type ProdFragment2Fragment = { id: string, featuredAsset?: { id: string } | null }; -export type ProdFragment2_1Fragment = { id: string; featuredAsset?: { id: string } | null }; +export type IdTest11QueryVariables = Exact<{ [key: string]: never; }>; -export type ProdFragment3_1Fragment = { 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 ProdFragment2_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 GetProductListWithVariantsQueryVariables = Exact<{ [key: string]: never }>; +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 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 } - | { 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 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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; - lines: Array<{ orderLineId: string; quantity: number }>; -}; - -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 } - | { 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 } | { 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 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null }; + +export type PromotionFragment = { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, description: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: 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, lines: Array<{ orderLineId: string, quantity: number }> }; + +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 } | { 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; identifier: 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, identifier: 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 }>; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + +export type AttemptLoginMutation = { login: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; 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 MeQueryVariables = Exact<{ [key: string]: never }>; +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, description: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: string }> } }; -export type MeQuery = { - me?: { - id: string; - identifier: string; - channels: Array<{ code: string; token: string; permissions: Array }>; - } | null; -}; +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 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - lines: Array<{ orderLineId: string; quantity: number }>; - } - | { 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, lines: Array<{ orderLineId: string, quantity: number }> } | { 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; - lines: Array<{ orderLineId: string; quantity: number }>; - } - | { - 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, lines: Array<{ orderLineId: string, quantity: number }> } | { 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<{ id: string; quantity: number }> } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; -export type CanceledOrderFragment = { - id: string; - state: string; - lines: Array<{ id: string; quantity: number }>; -}; +export type CancelOrderMutation = { cancelOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, lines: Array<{ id: string, quantity: number }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + +export type CanceledOrderFragment = { id: string, state: string, lines: Array<{ id: string, quantity: number }> }; 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 } - | { 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 } | { 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 GetProductsWithVariantPricesQueryVariables = Exact<{ [key: string]: never }>; +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 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 AssetFragFirstFragment = { id: string; preview: string }; +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 GetAssetFragmentFirstQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -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 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 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; - orderPlacedQuantity: number; - linePrice: number; - linePriceWithTax: number; - unitPriceWithTax: number; - discountedLinePriceWithTax: number; - proratedLinePriceWithTax: number; - proratedUnitPriceWithTax: number; - discounts: Array<{ description: string; amountWithTax: number }>; - productVariant: { id: string; name: string }; - }>; - 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; - lines: Array<{ orderLineId: string; quantity: number }>; - 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, orderPlacedQuantity: number, linePrice: number, linePriceWithTax: number, unitPriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, proratedUnitPriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string } }>, 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, lines: Array<{ orderLineId: string, quantity: number }>, 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; - orderPlacedQuantity: number; - linePrice: number; - linePriceWithTax: number; - unitPriceWithTax: number; - discountedLinePriceWithTax: number; - proratedLinePriceWithTax: number; - proratedUnitPriceWithTax: number; - discounts: Array<{ description: string; amountWithTax: number }>; - productVariant: { id: string; name: string }; - }>; - 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; - lines: Array<{ orderLineId: string; quantity: number }>; - 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, orderPlacedQuantity: number, linePrice: number, linePriceWithTax: number, unitPriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, proratedUnitPriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string } }>, 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, lines: Array<{ orderLineId: string, quantity: number }>, 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; - orderPlacedQuantity: number; - linePrice: number; - linePriceWithTax: number; - unitPriceWithTax: number; - discountedLinePriceWithTax: number; - proratedLinePriceWithTax: number; - proratedUnitPriceWithTax: number; - discounts: Array<{ description: string; amountWithTax: number }>; - productVariant: { id: string; name: string }; - }>; - 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; - lines: Array<{ orderLineId: string; quantity: number }>; - 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, orderPlacedQuantity: number, linePrice: number, linePriceWithTax: number, unitPriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, proratedUnitPriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string } }>, 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, lines: Array<{ orderLineId: string, quantity: number }>, 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; - orderPlacedQuantity: number; - linePrice: number; - linePriceWithTax: number; - unitPriceWithTax: number; - discountedLinePriceWithTax: number; - proratedLinePriceWithTax: number; - proratedUnitPriceWithTax: number; - discounts: Array<{ description: string; amountWithTax: number }>; - productVariant: { id: string; name: string }; - }>; - 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; - lines: Array<{ orderLineId: string; quantity: number }>; - 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, orderPlacedQuantity: number, linePrice: number, linePriceWithTax: number, unitPriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, proratedUnitPriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string } }>, 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, lines: Array<{ orderLineId: string, quantity: number }>, 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 GetOrderListFulfillmentsQueryVariables = Exact<{ [key: string]: never }>; +export type GetOrderWithLineCalculatedPropsQuery = { order?: { id: string, lines: Array<{ id: string, linePriceWithTax: number, quantity: number }> } | null }; + +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; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, lines: Array<{ orderLineId: string, quantity: number }> }> | 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; - fulfillmentLines?: Array<{ - orderLineId: string; - quantity: number; - fulfillment: { id: string; state: string }; - }> | null; - }>; - } | null; -}; + +export type GetOrderLineFulfillmentsQuery = { order?: { id: string, lines: Array<{ id: string, fulfillmentLines?: Array<{ orderLineId: string, quantity: number, fulfillment: { id: string, state: 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 }> }, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: 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 }> }, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: 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 GetPaymentMethodHandlersQueryVariables = Exact<{ [key: string]: never }>; +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 }> }, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: string }> } }; -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 GetPaymentMethodCheckersQuery = { - paymentMethodEligibilityCheckers: Array<{ code: string; args: Array<{ name: string; type: string }> }>; -}; +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 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 }> }, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: 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 }> }, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - 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; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | 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, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, 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, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | 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, description: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: 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, description: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: 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, description: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, description: 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 LogoutMutationVariables = Exact<{ [key: string]: never }>; +export type DeleteRoleMutation = { deleteRole: { result: DeletionResult, message?: string | null } }; + +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 GetMeQueryVariables = Exact<{ [key: string]: never }>; +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 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 GetCollectionListQueryVariables = Exact<{ [key: string]: never }>; +export type GetCollectionVariantsQuery = { collection?: { id: string, productVariants: { items: Array<{ id: string, name: string }> } } | null }; + +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 GetCustomerIdsQueryVariables = Exact<{ [key: string]: never }>; +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 GetCustomerIdsQuery = { customers: { items: Array<{ id: string }> } }; -export type StockLocationFragment = { id: string; name: string; description: string }; +export type StockLocationFragment = { id: string, name: string, description: string }; export type GetStockLocationQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetStockLocationQuery = { - stockLocation?: { id: string; name: string; description: string } | null; -}; + +export type GetStockLocationQuery = { stockLocation?: { id: string, name: string, description: string } | null }; export type GetStockLocationsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetStockLocationsQuery = { - stockLocations: { totalItems: number; items: Array<{ id: string; name: string; description: string }> }; -}; + +export type GetStockLocationsQuery = { stockLocations: { totalItems: number, items: Array<{ id: string, name: string, description: string }> } }; export type CreateStockLocationMutationVariables = Exact<{ - input: CreateStockLocationInput; + input: CreateStockLocationInput; }>; -export type CreateStockLocationMutation = { - createStockLocation: { id: string; name: string; description: string }; -}; + +export type CreateStockLocationMutation = { createStockLocation: { id: string, name: string, description: string } }; export type UpdateStockLocationMutationVariables = Exact<{ - input: UpdateStockLocationInput; + input: UpdateStockLocationInput; }>; -export type UpdateStockLocationMutation = { - updateStockLocation: { id: string; name: string; description: string }; -}; + +export type UpdateStockLocationMutation = { updateStockLocation: { id: string, name: string, description: string } }; export type GetVariantStockLevelsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetVariantStockLevelsQuery = { - productVariants: { - items: Array<{ - id: string; - name: string; - stockOnHand: number; - stockAllocated: number; - stockLevels: Array<{ stockLocationId: string; stockOnHand: number; stockAllocated: number }>; - }>; - }; -}; + +export type GetVariantStockLevelsQuery = { productVariants: { items: Array<{ id: string, name: string, stockOnHand: number, stockAllocated: number, stockLevels: Array<{ stockLocationId: string, stockOnHand: number, stockAllocated: number }> }> } }; 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 GetTaxCategoryListQueryVariables = Exact<{ [key: string]: never }>; +export type DeleteTagMutation = { deleteTag: { message?: string | null, result: DeletionResult } }; -export type GetTaxCategoryListQuery = { - taxCategories: Array<{ id: string; name: string; isDefault: boolean }>; -}; +export type GetTaxCategoryListQueryVariables = Exact<{ [key: string]: never; }>; + + +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 GetZonesQueryVariables = Exact<{ [key: string]: never }>; +export type DeleteZoneMutation = { deleteZone: { result: DeletionResult, message?: string | null } }; + +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 GetActiveChannelWithZoneMembersQueryVariables = Exact<{ [key: string]: never }>; +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 GetActiveChannelWithZoneMembersQuery = { - activeChannel: { - id: string; - defaultShippingZone?: { id: string; members: Array<{ name: string } | { name: string }> } | null; - }; -}; +export type GetActiveChannelWithZoneMembersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetActiveChannelWithZoneMembersQuery = { activeChannel: { id: string, defaultShippingZone?: { id: string, members: Array<{ name: string } | { name: string }> } | null } }; export type CreateZoneMutationVariables = Exact<{ - 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 }>; - } - | {} - >; - }; -}; + 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 UpdateZoneMutationVariables = Exact<{ - 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 }>; - } - | {} - >; - }; -}; + 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 AddMembersToZoneMutationVariables = Exact<{ - 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 }>; - } - | {} - >; - }; -}; + 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 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 f9ce30dd75..0d95966558 100644 --- a/packages/core/e2e/graphql/generated-e2e-shop-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-shop-types.ts @@ -6,210 +6,200 @@ 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; - DateTime: any; - JSON: any; - Money: number; - Upload: any; + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + DateTime: any; + JSON: any; + Money: number; + 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['Money']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Money']; + data?: Maybe; + 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']; - 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 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']; - /** @deprecated Use defaultCurrencyCode instead */ - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultCurrencyCode: CurrencyCode; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - seller?: Maybe; - token: Scalars['String']; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + /** @deprecated Use defaultCurrencyCode instead */ + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultCurrencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + seller?: Maybe; + token: Scalars['String']; + updatedAt: Scalars['DateTime']; }; 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; }; /** @@ -217,138 +207,137 @@ 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']; -}; - -export type Country = Node & - Region & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']; - updatedAt: Scalars['DateTime']; - }; + x: Scalars['Float']; + y: Scalars['Float']; +}; + +export type Country = Node & Region & { + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; export type CountryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; /** 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; }; /** @@ -358,447 +347,440 @@ 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 - | LocaleTextCustomFieldConfig - | 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 | LocaleTextCustomFieldConfig | 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']; }; /** @@ -806,149 +788,149 @@ 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['Money']; - amountWithTax: Scalars['Money']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Money']; + amountWithTax: Scalars['Money']; + 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', - GUEST_CHECKOUT_ERROR = 'GUEST_CHECKOUT_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', + GUEST_CHECKOUT_ERROR = 'GUEST_CHECKOUT_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']; }; /** @@ -960,8 +942,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>; }; /** @@ -969,145 +951,145 @@ 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']; - lines: Array; - method: Scalars['String']; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } /** Returned when attempting to set the Customer on a guest checkout when the configured GuestCheckoutStrategy does not allow it. */ export type GuestCheckoutError = ErrorResult & { - errorCode: ErrorCode; - errorDetail: Scalars['String']; - message: Scalars['String']; + errorCode: ErrorCode; + errorDetail: Scalars['String']; + message: Scalars['String']; }; 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>; }; /** @@ -1115,8 +1097,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']; }; /** @@ -1124,51 +1106,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']; }; /** @@ -1181,590 +1163,612 @@ 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 LocaleTextCustomFieldConfig = 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 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. - * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, - * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each - * shipping method will apply to. - */ - 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. + * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, + * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each + * shipping method will apply to. + */ + 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: Array; + shippingMethodId: Array; }; + 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']; }; /** @@ -1772,12 +1776,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']; }; /** @@ -1785,283 +1789,284 @@ 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['Money']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Money']; - 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['Money']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Money']; - /** - * 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['Money']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Money']; - type: OrderType; - 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['Money']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Money']; + 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['Money']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Money']; + /** + * 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['Money']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Money']; + type: OrderType; + 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; - type?: 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; + type?: 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['Money']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Money']; - 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['Money']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Money']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Money']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Money']; - unitTax: Scalars['Money']; - 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['Money']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Money']; + 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['Money']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Money']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Money']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Money']; + unitTax: Scalars['Money']; + 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['Money']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Money']; - /** - * 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['Money']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Money']; - discounts: Array; - featuredAsset?: Maybe; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** The total price of the line excluding tax and discounts. */ - linePrice: Scalars['Money']; - /** The total price of the line including tax but excluding discounts. */ - linePriceWithTax: Scalars['Money']; - /** The total tax on this line */ - lineTax: Scalars['Money']; - order: Order; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - 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['Money']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Money']; - /** - * 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['Money']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Money']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Money']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Money']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Money']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Money']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Money']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Money']; + /** + * 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['Money']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Money']; + discounts: Array; + featuredAsset?: Maybe; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** The total price of the line excluding tax and discounts. */ + linePrice: Scalars['Money']; + /** The total price of the line including tax but excluding discounts. */ + linePriceWithTax: Scalars['Money']; + /** The total tax on this line */ + lineTax: Scalars['Money']; + order: Order; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + 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['Money']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Money']; + /** + * 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['Money']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Money']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Money']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Money']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Money']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Money']; + 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']; }; /** @@ -2069,31 +2074,31 @@ 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['Money']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Money']; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Money']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Money']; }; export enum OrderType { - Aggregate = 'Aggregate', - Regular = 'Regular', - Seller = 'Seller', + Aggregate = 'Aggregate', + Regular = 'Regular', + Seller = 'Seller' } 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']; }; /** @@ -2101,8 +2106,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']; }; /** @@ -2110,87 +2115,87 @@ 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['Money']; - 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['Money']; + 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']; - translations: Array; - 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']; + translations: Array; + 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']; }; export type PaymentMethodTranslation = { - 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']; }; /** @@ -2226,942 +2231,915 @@ export type PaymentMethodTranslation = { * @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 Seller */ - CreateSeller = 'CreateSeller', - /** 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 Seller */ - DeleteSeller = 'DeleteSeller', - /** 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 Seller */ - ReadSeller = 'ReadSeller', - /** 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 Seller */ - UpdateSeller = 'UpdateSeller', - /** 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 Seller */ + CreateSeller = 'CreateSeller', + /** 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 Seller */ + DeleteSeller = 'DeleteSeller', + /** 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 Seller */ + ReadSeller = 'ReadSeller', + /** 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 Seller */ + UpdateSeller = 'UpdateSeller', + /** 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' } /** The price range where the result has more than one price */ export type PriceRange = { - max: Scalars['Money']; - min: Scalars['Money']; + max: Scalars['Money']; + min: Scalars['Money']; }; 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['Money']; - priceWithTax: Scalars['Money']; - 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['Money']; + priceWithTax: Scalars['Money']; + 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; - description: Scalars['String']; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - translations: Array; - updatedAt: Scalars['DateTime']; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type PromotionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type PromotionTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type Province = Node & - Region & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']; - updatedAt: Scalars['DateTime']; - }; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; + +export type Province = Node & Region & { + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; export type ProvinceList = 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['Money']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Money']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Money']; - state: Scalars['String']; - total: Scalars['Money']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + adjustment: Scalars['Money']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Money']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Money']; + state: Scalars['String']; + total: Scalars['Money']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; export type Region = { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type RegionTranslation = { - 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 RegisterCustomerAccountResult = - | MissingPasswordError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +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>; - /** @deprecated Use `facetValueFilters` instead */ - facetValueIds?: InputMaybe>; - /** @deprecated Use `facetValueFilters` instead */ - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + /** @deprecated Use `facetValueFilters` instead */ + facetValueIds?: InputMaybe>; + /** @deprecated Use `facetValueFilters` instead */ + 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 Seller = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type SetCustomerForOrderResult = - | AlreadyLoggedInError - | EmailAddressConflictError - | GuestCheckoutError - | NoActiveOrderError - | Order; - -export type SetOrderShippingMethodResult = - | IneligibleShippingMethodError - | NoActiveOrderError - | Order - | OrderModificationError; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; + +export type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | GuestCheckoutError | NoActiveOrderError | Order; + +export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; export type ShippingLine = { - discountedPrice: Scalars['Money']; - discountedPriceWithTax: Scalars['Money']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Money']; - priceWithTax: Scalars['Money']; - shippingMethod: ShippingMethod; + discountedPrice: Scalars['Money']; + discountedPriceWithTax: Scalars['Money']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Money']; + priceWithTax: Scalars['Money']; + 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['Money']; - priceWithTax: Scalars['Money']; + 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['Money']; + priceWithTax: Scalars['Money']; }; 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['Money']; + value: Scalars['Money']; }; 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['Money']; - priceWithTax: Scalars['Money']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Money']; + priceWithTax: Scalars['Money']; + 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']; }; /** @@ -3169,8 +3147,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']; }; /** @@ -3178,1358 +3156,320 @@ 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']; -}; - -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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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; - linePrice: number; - linePriceWithTax: 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; - }>; + 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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, linePrice: number, linePriceWithTax: 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; - linePrice: number; - linePriceWithTax: 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; - linePrice: number; - linePriceWithTax: 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, linePrice: number, linePriceWithTax: 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, linePrice: number, linePriceWithTax: 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 CurrentUserShopFragment = { - id: string; - identifier: string; - channels: Array<{ code: string; token: string; permissions: Array }>; -}; +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 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 GetActiveCustomerQueryVariables = Exact<{ [key: string]: never }>; +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 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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: Array | Scalars['ID']; + id: Array | 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; errorDetail: 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, errorDetail: 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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 }>; - fulfillments?: Array<{ - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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 }>, fulfillments?: Array<{ 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 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 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 GetActiveCustomerOrdersQuery = { - activeCustomer?: { - id: string; - orders: { totalItems: number; items: Array<{ id: string; state: string }> }; - } | null; -}; +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 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, 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/e2e/payment-method.e2e-spec.ts b/packages/core/e2e/payment-method.e2e-spec.ts index 570c466876..2273ce70d0 100644 --- a/packages/core/e2e/payment-method.e2e-spec.ts +++ b/packages/core/e2e/payment-method.e2e-spec.ts @@ -112,6 +112,14 @@ describe('PaymentMethod resolver', () => { ], code: 'dummy-payment-handler', }, + translations: [ + { + description: 'This is a test payment method', + id: 'T_1', + languageCode: 'en', + name: 'No Checker', + }, + ], }); }); @@ -158,6 +166,14 @@ describe('PaymentMethod resolver', () => { ], code: dummyPaymentHandler.code, }, + translations: [ + { + description: 'modified', + id: 'T_1', + languageCode: 'en', + name: 'No Checker', + }, + ], }); }); @@ -483,6 +499,54 @@ describe('PaymentMethod resolver', () => { expect(check2.totalItems).toBe(4); }); }); + + it('create without description', async () => { + const { createPaymentMethod } = await adminClient.query< + Codegen.CreatePaymentMethodMutation, + Codegen.CreatePaymentMethodMutationVariables + >(CREATE_PAYMENT_METHOD, { + input: { + code: 'no-description', + enabled: true, + handler: { + code: dummyPaymentHandler.code, + arguments: [{ name: 'automaticSettle', value: 'true' }], + }, + translations: [ + { + languageCode: LanguageCode.en, + name: 'No Description', + }, + ], + }, + }); + + expect(createPaymentMethod).toEqual({ + id: 'T_6', + name: 'No Description', + code: 'no-description', + description: '', + enabled: true, + checker: null, + handler: { + args: [ + { + name: 'automaticSettle', + value: 'true', + }, + ], + code: 'dummy-payment-handler', + }, + translations: [ + { + description: '', + id: 'T_6', + languageCode: 'en', + name: 'No Description', + }, + ], + }); + }); }); export const PAYMENT_METHOD_FRAGMENT = gql` @@ -506,6 +570,12 @@ export const PAYMENT_METHOD_FRAGMENT = gql` value } } + translations { + id + languageCode + name + description + } } `; diff --git a/packages/core/e2e/promotion.e2e-spec.ts b/packages/core/e2e/promotion.e2e-spec.ts index 1e70ebfc69..2fa81e99cd 100644 --- a/packages/core/e2e/promotion.e2e-spec.ts +++ b/packages/core/e2e/promotion.e2e-spec.ts @@ -110,6 +110,41 @@ describe('Promotion resolver', () => { expect(pick(promotion, snapshotProps)).toMatchSnapshot(); }); + it('createPromotion with no description', async () => { + const { createPromotion } = await adminClient.query< + Codegen.CreatePromotionMutation, + Codegen.CreatePromotionMutationVariables + >(CREATE_PROMOTION, { + input: { + enabled: true, + couponCode: 'TEST567', + translations: [ + { + languageCode: LanguageCode.en, + name: 'test promotion no description', + customFields: {}, + }, + ], + conditions: [], + actions: [ + { + code: promoAction.code, + arguments: [ + { + name: 'facetValueIds', + value: '["T_1"]', + }, + ], + }, + ], + }, + }); + promotionGuard.assertSuccess(createPromotion); + expect(createPromotion.name).toBe('test promotion no description'); + expect(createPromotion.description).toBe(''); + expect(createPromotion.translations[0].description).toBe(''); + }); + it('createPromotion return error result with empty conditions and no couponCode', async () => { const { createPromotion } = await adminClient.query< Codegen.CreatePromotionMutation, @@ -208,7 +243,7 @@ describe('Promotion resolver', () => { Codegen.GetPromotionListQueryVariables >(GET_PROMOTION_LIST, {}); - expect(result.promotions.totalItems).toBe(1); + expect(result.promotions.totalItems).toBe(2); expect(result.promotions.items[0].name).toBe('test promotion'); }); diff --git a/packages/core/src/entity/payment-method/payment-method-translation.entity.ts b/packages/core/src/entity/payment-method/payment-method-translation.entity.ts index b3eaf24fff..5dda4ede97 100644 --- a/packages/core/src/entity/payment-method/payment-method-translation.entity.ts +++ b/packages/core/src/entity/payment-method/payment-method-translation.entity.ts @@ -16,13 +16,18 @@ export class PaymentMethodTranslation { constructor(input?: DeepPartial>) { super(input); + // This is a workaround for the fact that + // MySQL does not support default values on TEXT columns + if (this.description === undefined) { + this.description = ''; + } } @Column('varchar') languageCode: LanguageCode; @Column() name: string; - @Column('text', { nullable: true }) description: string; + @Column('text') description: string; @Index() @ManyToOne(type => PaymentMethod, base => base.translations, { onDelete: 'CASCADE' }) diff --git a/packages/core/src/entity/promotion/promotion-translation.entity.ts b/packages/core/src/entity/promotion/promotion-translation.entity.ts index 7ab8460d1e..e5b81dce7f 100644 --- a/packages/core/src/entity/promotion/promotion-translation.entity.ts +++ b/packages/core/src/entity/promotion/promotion-translation.entity.ts @@ -13,13 +13,18 @@ import { Promotion } from './promotion.entity'; export class PromotionTranslation extends VendureEntity implements Translation, HasCustomFields { constructor(input?: DeepPartial>) { super(input); + // This is a workaround for the fact that + // MySQL does not support default values on TEXT columns + if (this.description === undefined) { + this.description = ''; + } } @Column('varchar') languageCode: LanguageCode; @Column() name: string; - @Column('text', { nullable: true }) description: string; + @Column('text') description: string; @Index() @ManyToOne(type => Promotion, base => base.translations, { onDelete: 'CASCADE' })